/sqlite3cc

To get this branch, use:
bzr branch http://bzr.ed.am/sqlite3cc
5 by edam
- updated README
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.64 for sqlite3cc 0.1.0.
4
#
5
# Report bugs to <edam@waxworlds.org>.
6
#
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9
# Foundation, Inc.
10
#
11
# This configure script is free software; the Free Software Foundation
12
# gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
16
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
  emulate sh
21
  NULLCMD=:
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
  # is contrary to our usage.  Disable this feature.
24
  alias -g '${1+"$@"}'='"$@"'
25
  setopt NO_GLOB_SUBST
26
else
27
  case `(set -o) 2>/dev/null` in #(
28
  *posix*) :
29
    set -o posix ;; #(
30
  *) :
31
     ;;
32
esac
33
fi
34
35
36
as_nl='
37
'
38
export as_nl
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47
  as_echo='print -r --'
48
  as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50
  as_echo='printf %s\n'
51
  as_echo_n='printf %s'
52
else
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
    as_echo_n='/usr/ucb/echo -n'
56
  else
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58
    as_echo_n_body='eval
59
      arg=$1;
60
      case $arg in #(
61
      *"$as_nl"*)
62
	expr "X$arg" : "X\\(.*\\)$as_nl";
63
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64
      esac;
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
    '
67
    export as_echo_n_body
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
69
  fi
70
  export as_echo_body
71
  as_echo='sh -c $as_echo_body as_echo'
72
fi
73
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
76
  PATH_SEPARATOR=:
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79
      PATH_SEPARATOR=';'
80
  }
81
fi
82
83
84
# IFS
85
# We need space, tab and new line, in precisely that order.  Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
89
IFS=" ""	$as_nl"
90
91
# Find who we are.  Look in the path if we contain no directory separator.
92
case $0 in #((
93
  *[\\/]* ) as_myself=$0 ;;
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95
for as_dir in $PATH
96
do
97
  IFS=$as_save_IFS
98
  test -z "$as_dir" && as_dir=.
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100
  done
101
IFS=$as_save_IFS
102
103
     ;;
104
esac
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
108
  as_myself=$0
109
fi
110
if test ! -f "$as_myself"; then
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112
  exit 1
113
fi
114
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there.  '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122
done
123
PS1='$ '
124
PS2='> '
125
PS4='+ '
126
127
# NLS nuisances.
128
LC_ALL=C
129
export LC_ALL
130
LANGUAGE=C
131
export LANGUAGE
132
133
# CDPATH.
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136
if test "x$CONFIG_SHELL" = x; then
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138
  emulate sh
139
  NULLCMD=:
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
  # is contrary to our usage.  Disable this feature.
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143
  setopt NO_GLOB_SUBST
144
else
145
  case \`(set -o) 2>/dev/null\` in #(
146
  *posix*) :
147
    set -o posix ;; #(
148
  *) :
149
     ;;
150
esac
151
fi
152
"
153
  as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
158
159
exitcode=0
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166
else
167
  exitcode=1; echo positional parameters were not saved.
168
fi
169
test x\$exitcode = x0 || exit 1"
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
  if (eval "$as_required") 2>/dev/null; then :
176
  as_have_required=yes
177
else
178
  as_have_required=no
179
fi
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182
else
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184
as_found=false
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186
do
187
  IFS=$as_save_IFS
188
  test -z "$as_dir" && as_dir=.
189
  as_found=:
190
  case $as_dir in #(
191
	 /*)
192
	   for as_base in sh bash ksh sh5; do
193
	     # Try only shells that exist, to save several forks.
194
	     as_shell=$as_dir/$as_base
195
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
  CONFIG_SHELL=$as_shell as_have_required=yes
198
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  break 2
200
fi
201
fi
202
	   done;;
203
       esac
204
  as_found=false
205
done
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
  CONFIG_SHELL=$SHELL as_have_required=yes
209
fi; }
210
IFS=$as_save_IFS
211
212
213
      if test "x$CONFIG_SHELL" != x; then :
214
  # We cannot yet assume a decent shell, so we have to provide a
215
	# neutralization value for shells without unset; and this also
216
	# works around shells that cannot unset nonexistent variables.
217
	BASH_ENV=/dev/null
218
	ENV=/dev/null
219
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220
	export CONFIG_SHELL
221
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222
fi
223
224
    if test x$as_have_required = xno; then :
225
  $as_echo "$0: This script requires a shell more modern than all"
226
  $as_echo "$0: the shells that I found on your system."
227
  if test x${ZSH_VERSION+set} = xset ; then
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230
  else
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org
232
$0: about your system, including any error possibly output
233
$0: before this message. Then install a modern shell, or
234
$0: manually run the script under such a shell if you do
235
$0: have one."
236
  fi
237
  exit 1
238
fi
239
fi
240
fi
241
SHELL=${CONFIG_SHELL-/bin/sh}
242
export SHELL
243
# Unset more variables known to interfere with behavior of common tools.
244
CLICOLOR_FORCE= GREP_OPTIONS=
245
unset CLICOLOR_FORCE GREP_OPTIONS
246
247
## --------------------- ##
248
## M4sh Shell Functions. ##
249
## --------------------- ##
250
# as_fn_unset VAR
251
# ---------------
252
# Portably unset VAR.
253
as_fn_unset ()
254
{
255
  { eval $1=; unset $1;}
256
}
257
as_unset=as_fn_unset
258
259
# as_fn_set_status STATUS
260
# -----------------------
261
# Set $? to STATUS, without forking.
262
as_fn_set_status ()
263
{
264
  return $1
265
} # as_fn_set_status
266
267
# as_fn_exit STATUS
268
# -----------------
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270
as_fn_exit ()
271
{
272
  set +e
273
  as_fn_set_status $1
274
  exit $1
275
} # as_fn_exit
276
277
# as_fn_mkdir_p
278
# -------------
279
# Create "$as_dir" as a directory, including parents if necessary.
280
as_fn_mkdir_p ()
281
{
282
283
  case $as_dir in #(
284
  -*) as_dir=./$as_dir;;
285
  esac
286
  test -d "$as_dir" || eval $as_mkdir_p || {
287
    as_dirs=
288
    while :; do
289
      case $as_dir in #(
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291
      *) as_qdir=$as_dir;;
292
      esac
293
      as_dirs="'$as_qdir' $as_dirs"
294
      as_dir=`$as_dirname -- "$as_dir" ||
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296
	 X"$as_dir" : 'X\(//\)[^/]' \| \
297
	 X"$as_dir" : 'X\(//\)$' \| \
298
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299
$as_echo X"$as_dir" |
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301
	    s//\1/
302
	    q
303
	  }
304
	  /^X\(\/\/\)[^/].*/{
305
	    s//\1/
306
	    q
307
	  }
308
	  /^X\(\/\/\)$/{
309
	    s//\1/
310
	    q
311
	  }
312
	  /^X\(\/\).*/{
313
	    s//\1/
314
	    q
315
	  }
316
	  s/.*/./; q'`
317
      test -d "$as_dir" && break
318
    done
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323
} # as_fn_mkdir_p
324
# as_fn_append VAR VALUE
325
# ----------------------
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
327
# advantage of any shell optimizations that allow amortized linear growth over
328
# repeated appends, instead of the typical quadratic growth present in naive
329
# implementations.
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331
  eval 'as_fn_append ()
332
  {
333
    eval $1+=\$2
334
  }'
335
else
336
  as_fn_append ()
337
  {
338
    eval $1=\$$1\$2
339
  }
340
fi # as_fn_append
341
342
# as_fn_arith ARG...
343
# ------------------
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
346
# must be portable across $(()) and expr.
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348
  eval 'as_fn_arith ()
349
  {
350
    as_val=$(( $* ))
351
  }'
352
else
353
  as_fn_arith ()
354
  {
355
    as_val=`expr "$@" || test $? -eq 1`
356
  }
357
fi # as_fn_arith
358
359
360
# as_fn_error ERROR [LINENO LOG_FD]
361
# ---------------------------------
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364
# script with status $?, using 1 if that was 0.
365
as_fn_error ()
366
{
367
  as_status=$?; test $as_status -eq 0 && as_status=1
368
  if test "$3"; then
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371
  fi
372
  $as_echo "$as_me: error: $1" >&2
373
  as_fn_exit $as_status
374
} # as_fn_error
375
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
378
  as_expr=expr
379
else
380
  as_expr=false
381
fi
382
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384
  as_basename=basename
385
else
386
  as_basename=false
387
fi
388
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390
  as_dirname=dirname
391
else
392
  as_dirname=false
393
fi
394
395
as_me=`$as_basename -- "$0" ||
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397
	 X"$0" : 'X\(//\)$' \| \
398
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
$as_echo X/"$0" |
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
401
	    s//\1/
402
	    q
403
	  }
404
	  /^X\/\(\/\/\)$/{
405
	    s//\1/
406
	    q
407
	  }
408
	  /^X\/\(\/\).*/{
409
	    s//\1/
410
	    q
411
	  }
412
	  s/.*/./; q'`
413
414
# Avoid depending upon Character Ranges.
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418
as_cr_digits='0123456789'
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427
  sed -n '
428
    p
429
    /[$]LINENO/=
430
  ' <$as_myself |
431
    sed '
432
      s/[$]LINENO.*/&-/
433
      t lineno
434
      b
435
      :lineno
436
      N
437
      :loop
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439
      t loop
440
      s/-\n.*//
441
    ' >$as_me.lineno &&
442
  chmod +x "$as_me.lineno" ||
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445
  # Don't try to exec as it changes $[0], causing all sort of problems
446
  # (the dirname of $[0] is not the place where we might find the
447
  # original and so on.  Autoconf is especially sensitive to this).
448
  . "./$as_me.lineno"
449
  # Exit status is that of the last command.
450
  exit
451
}
452
453
ECHO_C= ECHO_N= ECHO_T=
454
case `echo -n x` in #(((((
455
-n*)
456
  case `echo 'xy\c'` in
457
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
458
  xy)  ECHO_C='\c';;
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460
       ECHO_T='	';;
461
  esac;;
462
*)
463
  ECHO_N='-n';;
464
esac
465
466
rm -f conf$$ conf$$.exe conf$$.file
467
if test -d conf$$.dir; then
468
  rm -f conf$$.dir/conf$$.file
469
else
470
  rm -f conf$$.dir
471
  mkdir conf$$.dir 2>/dev/null
472
fi
473
if (echo >conf$$.file) 2>/dev/null; then
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
475
    as_ln_s='ln -s'
476
    # ... but there are two gotchas:
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479
    # In both cases, we have to default to `cp -p'.
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
      as_ln_s='cp -p'
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
483
    as_ln_s=ln
484
  else
485
    as_ln_s='cp -p'
486
  fi
487
else
488
  as_ln_s='cp -p'
489
fi
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491
rmdir conf$$.dir 2>/dev/null
492
493
if mkdir -p . 2>/dev/null; then
494
  as_mkdir_p='mkdir -p "$as_dir"'
495
else
496
  test -d ./-p && rmdir ./-p
497
  as_mkdir_p=false
498
fi
499
500
if test -x / >/dev/null 2>&1; then
501
  as_test_x='test -x'
502
else
503
  if ls -dL / >/dev/null 2>&1; then
504
    as_ls_L_option=L
505
  else
506
    as_ls_L_option=
507
  fi
508
  as_test_x='
509
    eval sh -c '\''
510
      if test -d "$1"; then
511
	test -d "$1/.";
512
      else
513
	case $1 in #(
514
	-*)set "./$1";;
515
	esac;
516
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517
	???[sx]*):;;*)false;;esac;fi
518
    '\'' sh
519
  '
520
fi
521
as_executable_p=$as_test_x
522
523
# Sed expression to map a string onto a valid CPP name.
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526
# Sed expression to map a string onto a valid variable name.
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531
# Check that we are running under the correct shell.
532
SHELL=${CONFIG_SHELL-/bin/sh}
533
534
case X$lt_ECHO in
535
X*--fallback-echo)
536
  # Remove one level of quotation (which was required for Make).
537
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538
  ;;
539
esac
540
541
ECHO=${lt_ECHO-echo}
542
if test "X$1" = X--no-reexec; then
543
  # Discard the --no-reexec flag, and continue.
544
  shift
545
elif test "X$1" = X--fallback-echo; then
546
  # Avoid inline document here, it may be left over
547
  :
548
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549
  # Yippee, $ECHO works!
550
  :
551
else
552
  # Restart under the correct shell.
553
  exec $SHELL "$0" --no-reexec ${1+"$@"}
554
fi
555
556
if test "X$1" = X--fallback-echo; then
557
  # used as fallback echo
558
  shift
559
  cat <<_LT_EOF
560
$*
561
_LT_EOF
562
  exit 0
563
fi
564
565
# The HP-UX ksh and POSIX shell print the target directory to stdout
566
# if CDPATH is set.
567
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569
if test -z "$lt_ECHO"; then
570
  if test "X${echo_test_string+set}" != Xset; then
571
    # find a string as large as possible, as long as the shell can cope with it
572
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575
	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576
      then
577
        break
578
      fi
579
    done
580
  fi
581
582
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584
     test "X$echo_testing_string" = "X$echo_test_string"; then
585
    :
586
  else
587
    # The Solaris, AIX, and Digital Unix default echo programs unquote
588
    # backslashes.  This makes it impossible to quote backslashes using
589
    #   echo "$something" | sed 's/\\/\\\\/g'
590
    #
591
    # So, first we look for a working echo in the user's PATH.
592
593
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594
    for dir in $PATH /usr/ucb; do
595
      IFS="$lt_save_ifs"
596
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599
         test "X$echo_testing_string" = "X$echo_test_string"; then
600
        ECHO="$dir/echo"
601
        break
602
      fi
603
    done
604
    IFS="$lt_save_ifs"
605
606
    if test "X$ECHO" = Xecho; then
607
      # We didn't find a better echo, so look for alternatives.
608
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610
         test "X$echo_testing_string" = "X$echo_test_string"; then
611
        # This shell has a builtin print -r that does the trick.
612
        ECHO='print -r'
613
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614
	   test "X$CONFIG_SHELL" != X/bin/ksh; then
615
        # If we have ksh, try running configure again with it.
616
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617
        export ORIGINAL_CONFIG_SHELL
618
        CONFIG_SHELL=/bin/ksh
619
        export CONFIG_SHELL
620
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621
      else
622
        # Try using printf.
623
        ECHO='printf %s\n'
624
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625
	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626
	   test "X$echo_testing_string" = "X$echo_test_string"; then
627
	  # Cool, printf works
628
	  :
629
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630
	     test "X$echo_testing_string" = 'X\t' &&
631
	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632
	     test "X$echo_testing_string" = "X$echo_test_string"; then
633
	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634
	  export CONFIG_SHELL
635
	  SHELL="$CONFIG_SHELL"
636
	  export SHELL
637
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
638
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639
	     test "X$echo_testing_string" = 'X\t' &&
640
	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641
	     test "X$echo_testing_string" = "X$echo_test_string"; then
642
	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
        else
644
	  # maybe with a smaller string...
645
	  prev=:
646
647
	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648
	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649
	    then
650
	      break
651
	    fi
652
	    prev="$cmd"
653
	  done
654
655
	  if test "$prev" != 'sed 50q "$0"'; then
656
	    echo_test_string=`eval $prev`
657
	    export echo_test_string
658
	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659
	  else
660
	    # Oops.  We lost completely, so just stick with echo.
661
	    ECHO=echo
662
	  fi
663
        fi
664
      fi
665
    fi
666
  fi
667
fi
668
669
# Copy echo and quote the copy suitably for passing to libtool from
670
# the Makefile, instead of quoting the original, which is used later.
671
lt_ECHO=$ECHO
672
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674
fi
675
676
677
678
679
exec 7<&0 </dev/null 6>&1
680
681
# Name of the host.
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686
#
687
# Initializations.
688
#
689
ac_default_prefix=/usr/local
690
ac_clean_files=
691
ac_config_libobj_dir=.
692
LIBOBJS=
693
cross_compiling=no
694
subdirs=
695
MFLAGS=
696
MAKEFLAGS=
697
698
# Identity of this package.
699
PACKAGE_NAME='sqlite3cc'
700
PACKAGE_TARNAME='sqlite3cc'
701
PACKAGE_VERSION='0.1.0'
702
PACKAGE_STRING='sqlite3cc 0.1.0'
703
PACKAGE_BUGREPORT='edam@waxworlds.org'
7 by edam
- removed "OK" from test-main when test is successful
704
PACKAGE_URL='http://www.waxworlds.org/edam/software/sqlite3cc'
5 by edam
- updated README
705
706
ac_unique_file="src/database.cc"
707
# Factoring default headers for most tests.
708
ac_includes_default="\
709
#include <stdio.h>
710
#ifdef HAVE_SYS_TYPES_H
711
# include <sys/types.h>
712
#endif
713
#ifdef HAVE_SYS_STAT_H
714
# include <sys/stat.h>
715
#endif
716
#ifdef STDC_HEADERS
717
# include <stdlib.h>
718
# include <stddef.h>
719
#else
720
# ifdef HAVE_STDLIB_H
721
#  include <stdlib.h>
722
# endif
723
#endif
724
#ifdef HAVE_STRING_H
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726
#  include <memory.h>
727
# endif
728
# include <string.h>
729
#endif
730
#ifdef HAVE_STRINGS_H
731
# include <strings.h>
732
#endif
733
#ifdef HAVE_INTTYPES_H
734
# include <inttypes.h>
735
#endif
736
#ifdef HAVE_STDINT_H
737
# include <stdint.h>
738
#endif
739
#ifdef HAVE_UNISTD_H
740
# include <unistd.h>
741
#endif"
742
743
ac_subst_vars='am__EXEEXT_FALSE
744
am__EXEEXT_TRUE
745
LTLIBOBJS
746
LIBOBJS
747
CXXCPP
6 by edam
- fixed .am files so the library gets built!
748
am__fastdepCXX_FALSE
749
am__fastdepCXX_TRUE
750
CXXDEPMODE
751
ac_ct_CXX
752
CXXFLAGS
753
CXX
5 by edam
- updated README
754
CPP
755
OTOOL64
756
OTOOL
757
LIPO
758
NMEDIT
759
DSYMUTIL
760
lt_ECHO
761
RANLIB
762
AR
763
OBJDUMP
764
LN_S
765
NM
766
ac_ct_DUMPBIN
767
DUMPBIN
768
LD
769
FGREP
770
EGREP
771
GREP
772
SED
773
am__fastdepCC_FALSE
774
am__fastdepCC_TRUE
775
CCDEPMODE
6 by edam
- fixed .am files so the library gets built!
776
AMDEPBACKSLASH
777
AMDEP_FALSE
778
AMDEP_TRUE
779
am__quote
780
am__include
781
DEPDIR
782
OBJEXT
783
EXEEXT
5 by edam
- updated README
784
ac_ct_CC
6 by edam
- fixed .am files so the library gets built!
785
CPPFLAGS
786
LDFLAGS
5 by edam
- updated README
787
CFLAGS
788
CC
789
host_os
790
host_vendor
791
host_cpu
792
host
793
build_os
794
build_vendor
795
build_cpu
796
build
797
LIBTOOL
798
am__untar
799
am__tar
800
AMTAR
801
am__leading_dot
802
SET_MAKE
803
AWK
804
mkdir_p
805
MKDIR_P
806
INSTALL_STRIP_PROGRAM
807
STRIP
808
install_sh
809
MAKEINFO
810
AUTOHEADER
811
AUTOMAKE
812
AUTOCONF
813
ACLOCAL
814
VERSION
815
PACKAGE
816
CYGPATH_W
817
am__isrc
818
INSTALL_DATA
819
INSTALL_SCRIPT
820
INSTALL_PROGRAM
7 by edam
- removed "OK" from test-main when test is successful
821
LIBSQLITE3CC_INTERFACE
5 by edam
- updated README
822
target_alias
823
host_alias
824
build_alias
825
LIBS
826
ECHO_T
827
ECHO_N
828
ECHO_C
829
DEFS
830
mandir
831
localedir
832
libdir
833
psdir
834
pdfdir
835
dvidir
836
htmldir
837
infodir
838
docdir
839
oldincludedir
840
includedir
841
localstatedir
842
sharedstatedir
843
sysconfdir
844
datadir
845
datarootdir
846
libexecdir
847
sbindir
848
bindir
849
program_transform_name
850
prefix
851
exec_prefix
852
PACKAGE_URL
853
PACKAGE_BUGREPORT
854
PACKAGE_STRING
855
PACKAGE_VERSION
856
PACKAGE_TARNAME
857
PACKAGE_NAME
858
PATH_SEPARATOR
859
SHELL'
860
ac_subst_files=''
861
ac_user_opts='
862
enable_option_checking
863
enable_shared
864
enable_static
865
with_pic
866
enable_fast_install
6 by edam
- fixed .am files so the library gets built!
867
enable_dependency_tracking
5 by edam
- updated README
868
with_gnu_ld
869
enable_libtool_lock
870
'
871
      ac_precious_vars='build_alias
872
host_alias
873
target_alias
6 by edam
- fixed .am files so the library gets built!
874
CC
875
CFLAGS
5 by edam
- updated README
876
LDFLAGS
877
LIBS
878
CPPFLAGS
6 by edam
- fixed .am files so the library gets built!
879
CPP
880
CXX
881
CXXFLAGS
5 by edam
- updated README
882
CCC
883
CXXCPP'
884
885
886
# Initialize some variables set by options.
887
ac_init_help=
888
ac_init_version=false
889
ac_unrecognized_opts=
890
ac_unrecognized_sep=
891
# The variables have the same names as the options, with
892
# dashes changed to underlines.
893
cache_file=/dev/null
894
exec_prefix=NONE
895
no_create=
896
no_recursion=
897
prefix=NONE
898
program_prefix=NONE
899
program_suffix=NONE
900
program_transform_name=s,x,x,
901
silent=
902
site=
903
srcdir=
904
verbose=
905
x_includes=NONE
906
x_libraries=NONE
907
908
# Installation directory options.
909
# These are left unexpanded so users can "make install exec_prefix=/foo"
910
# and all the variables that are supposed to be based on exec_prefix
911
# by default will actually change.
912
# Use braces instead of parens because sh, perl, etc. also accept them.
913
# (The list follows the same order as the GNU Coding Standards.)
914
bindir='${exec_prefix}/bin'
915
sbindir='${exec_prefix}/sbin'
916
libexecdir='${exec_prefix}/libexec'
917
datarootdir='${prefix}/share'
918
datadir='${datarootdir}'
919
sysconfdir='${prefix}/etc'
920
sharedstatedir='${prefix}/com'
921
localstatedir='${prefix}/var'
922
includedir='${prefix}/include'
923
oldincludedir='/usr/include'
924
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925
infodir='${datarootdir}/info'
926
htmldir='${docdir}'
927
dvidir='${docdir}'
928
pdfdir='${docdir}'
929
psdir='${docdir}'
930
libdir='${exec_prefix}/lib'
931
localedir='${datarootdir}/locale'
932
mandir='${datarootdir}/man'
933
934
ac_prev=
935
ac_dashdash=
936
for ac_option
937
do
938
  # If the previous option needs an argument, assign it.
939
  if test -n "$ac_prev"; then
940
    eval $ac_prev=\$ac_option
941
    ac_prev=
942
    continue
943
  fi
944
945
  case $ac_option in
946
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947
  *)	ac_optarg=yes ;;
948
  esac
949
950
  # Accept the important Cygnus configure options, so we can diagnose typos.
951
952
  case $ac_dashdash$ac_option in
953
  --)
954
    ac_dashdash=yes ;;
955
956
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
957
    ac_prev=bindir ;;
958
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959
    bindir=$ac_optarg ;;
960
961
  -build | --build | --buil | --bui | --bu)
962
    ac_prev=build_alias ;;
963
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964
    build_alias=$ac_optarg ;;
965
966
  -cache-file | --cache-file | --cache-fil | --cache-fi \
967
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968
    ac_prev=cache_file ;;
969
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971
    cache_file=$ac_optarg ;;
972
973
  --config-cache | -C)
974
    cache_file=config.cache ;;
975
976
  -datadir | --datadir | --datadi | --datad)
977
    ac_prev=datadir ;;
978
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
979
    datadir=$ac_optarg ;;
980
981
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982
  | --dataroo | --dataro | --datar)
983
    ac_prev=datarootdir ;;
984
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986
    datarootdir=$ac_optarg ;;
987
988
  -disable-* | --disable-*)
989
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990
    # Reject names that are not valid shell variable names.
991
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992
      as_fn_error "invalid feature name: $ac_useropt"
993
    ac_useropt_orig=$ac_useropt
994
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995
    case $ac_user_opts in
996
      *"
997
"enable_$ac_useropt"
998
"*) ;;
999
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000
	 ac_unrecognized_sep=', ';;
1001
    esac
1002
    eval enable_$ac_useropt=no ;;
1003
1004
  -docdir | --docdir | --docdi | --doc | --do)
1005
    ac_prev=docdir ;;
1006
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007
    docdir=$ac_optarg ;;
1008
1009
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010
    ac_prev=dvidir ;;
1011
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012
    dvidir=$ac_optarg ;;
1013
1014
  -enable-* | --enable-*)
1015
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016
    # Reject names that are not valid shell variable names.
1017
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018
      as_fn_error "invalid feature name: $ac_useropt"
1019
    ac_useropt_orig=$ac_useropt
1020
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021
    case $ac_user_opts in
1022
      *"
1023
"enable_$ac_useropt"
1024
"*) ;;
1025
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026
	 ac_unrecognized_sep=', ';;
1027
    esac
1028
    eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032
  | --exec | --exe | --ex)
1033
    ac_prev=exec_prefix ;;
1034
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036
  | --exec=* | --exe=* | --ex=*)
1037
    exec_prefix=$ac_optarg ;;
1038
1039
  -gas | --gas | --ga | --g)
1040
    # Obsolete; use --with-gas.
1041
    with_gas=yes ;;
1042
1043
  -help | --help | --hel | --he | -h)
1044
    ac_init_help=long ;;
1045
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046
    ac_init_help=recursive ;;
1047
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048
    ac_init_help=short ;;
1049
1050
  -host | --host | --hos | --ho)
1051
    ac_prev=host_alias ;;
1052
  -host=* | --host=* | --hos=* | --ho=*)
1053
    host_alias=$ac_optarg ;;
1054
1055
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056
    ac_prev=htmldir ;;
1057
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058
  | --ht=*)
1059
    htmldir=$ac_optarg ;;
1060
1061
  -includedir | --includedir | --includedi | --included | --include \
1062
  | --includ | --inclu | --incl | --inc)
1063
    ac_prev=includedir ;;
1064
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066
    includedir=$ac_optarg ;;
1067
1068
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069
    ac_prev=infodir ;;
1070
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071
    infodir=$ac_optarg ;;
1072
1073
  -libdir | --libdir | --libdi | --libd)
1074
    ac_prev=libdir ;;
1075
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076
    libdir=$ac_optarg ;;
1077
1078
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079
  | --libexe | --libex | --libe)
1080
    ac_prev=libexecdir ;;
1081
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082
  | --libexe=* | --libex=* | --libe=*)
1083
    libexecdir=$ac_optarg ;;
1084
1085
  -localedir | --localedir | --localedi | --localed | --locale)
1086
    ac_prev=localedir ;;
1087
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088
    localedir=$ac_optarg ;;
1089
1090
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091
  | --localstate | --localstat | --localsta | --localst | --locals)
1092
    ac_prev=localstatedir ;;
1093
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095
    localstatedir=$ac_optarg ;;
1096
1097
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098
    ac_prev=mandir ;;
1099
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100
    mandir=$ac_optarg ;;
1101
1102
  -nfp | --nfp | --nf)
1103
    # Obsolete; use --without-fp.
1104
    with_fp=no ;;
1105
1106
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107
  | --no-cr | --no-c | -n)
1108
    no_create=yes ;;
1109
1110
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112
    no_recursion=yes ;;
1113
1114
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116
  | --oldin | --oldi | --old | --ol | --o)
1117
    ac_prev=oldincludedir ;;
1118
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121
    oldincludedir=$ac_optarg ;;
1122
1123
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124
    ac_prev=prefix ;;
1125
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126
    prefix=$ac_optarg ;;
1127
1128
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129
  | --program-pre | --program-pr | --program-p)
1130
    ac_prev=program_prefix ;;
1131
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133
    program_prefix=$ac_optarg ;;
1134
1135
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136
  | --program-suf | --program-su | --program-s)
1137
    ac_prev=program_suffix ;;
1138
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140
    program_suffix=$ac_optarg ;;
1141
1142
  -program-transform-name | --program-transform-name \
1143
  | --program-transform-nam | --program-transform-na \
1144
  | --program-transform-n | --program-transform- \
1145
  | --program-transform | --program-transfor \
1146
  | --program-transfo | --program-transf \
1147
  | --program-trans | --program-tran \
1148
  | --progr-tra | --program-tr | --program-t)
1149
    ac_prev=program_transform_name ;;
1150
  -program-transform-name=* | --program-transform-name=* \
1151
  | --program-transform-nam=* | --program-transform-na=* \
1152
  | --program-transform-n=* | --program-transform-=* \
1153
  | --program-transform=* | --program-transfor=* \
1154
  | --program-transfo=* | --program-transf=* \
1155
  | --program-trans=* | --program-tran=* \
1156
  | --progr-tra=* | --program-tr=* | --program-t=*)
1157
    program_transform_name=$ac_optarg ;;
1158
1159
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160
    ac_prev=pdfdir ;;
1161
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162
    pdfdir=$ac_optarg ;;
1163
1164
  -psdir | --psdir | --psdi | --psd | --ps)
1165
    ac_prev=psdir ;;
1166
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167
    psdir=$ac_optarg ;;
1168
1169
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170
  | -silent | --silent | --silen | --sile | --sil)
1171
    silent=yes ;;
1172
1173
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174
    ac_prev=sbindir ;;
1175
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176
  | --sbi=* | --sb=*)
1177
    sbindir=$ac_optarg ;;
1178
1179
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181
  | --sharedst | --shareds | --shared | --share | --shar \
1182
  | --sha | --sh)
1183
    ac_prev=sharedstatedir ;;
1184
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187
  | --sha=* | --sh=*)
1188
    sharedstatedir=$ac_optarg ;;
1189
1190
  -site | --site | --sit)
1191
    ac_prev=site ;;
1192
  -site=* | --site=* | --sit=*)
1193
    site=$ac_optarg ;;
1194
1195
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196
    ac_prev=srcdir ;;
1197
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198
    srcdir=$ac_optarg ;;
1199
1200
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201
  | --syscon | --sysco | --sysc | --sys | --sy)
1202
    ac_prev=sysconfdir ;;
1203
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205
    sysconfdir=$ac_optarg ;;
1206
1207
  -target | --target | --targe | --targ | --tar | --ta | --t)
1208
    ac_prev=target_alias ;;
1209
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210
    target_alias=$ac_optarg ;;
1211
1212
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213
    verbose=yes ;;
1214
1215
  -version | --version | --versio | --versi | --vers | -V)
1216
    ac_init_version=: ;;
1217
1218
  -with-* | --with-*)
1219
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220
    # Reject names that are not valid shell variable names.
1221
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222
      as_fn_error "invalid package name: $ac_useropt"
1223
    ac_useropt_orig=$ac_useropt
1224
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225
    case $ac_user_opts in
1226
      *"
1227
"with_$ac_useropt"
1228
"*) ;;
1229
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230
	 ac_unrecognized_sep=', ';;
1231
    esac
1232
    eval with_$ac_useropt=\$ac_optarg ;;
1233
1234
  -without-* | --without-*)
1235
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236
    # Reject names that are not valid shell variable names.
1237
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238
      as_fn_error "invalid package name: $ac_useropt"
1239
    ac_useropt_orig=$ac_useropt
1240
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241
    case $ac_user_opts in
1242
      *"
1243
"with_$ac_useropt"
1244
"*) ;;
1245
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246
	 ac_unrecognized_sep=', ';;
1247
    esac
1248
    eval with_$ac_useropt=no ;;
1249
1250
  --x)
1251
    # Obsolete; use --with-x.
1252
    with_x=yes ;;
1253
1254
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255
  | --x-incl | --x-inc | --x-in | --x-i)
1256
    ac_prev=x_includes ;;
1257
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259
    x_includes=$ac_optarg ;;
1260
1261
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263
    ac_prev=x_libraries ;;
1264
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266
    x_libraries=$ac_optarg ;;
1267
1268
  -*) as_fn_error "unrecognized option: \`$ac_option'
1269
Try \`$0 --help' for more information."
1270
    ;;
1271
1272
  *=*)
1273
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274
    # Reject names that are not valid shell variable names.
1275
    case $ac_envvar in #(
1276
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1277
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1278
    esac
1279
    eval $ac_envvar=\$ac_optarg
1280
    export $ac_envvar ;;
1281
1282
  *)
1283
    # FIXME: should be removed in autoconf 3.0.
1284
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288
    ;;
1289
1290
  esac
1291
done
1292
1293
if test -n "$ac_prev"; then
1294
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295
  as_fn_error "missing argument to $ac_option"
1296
fi
1297
1298
if test -n "$ac_unrecognized_opts"; then
1299
  case $enable_option_checking in
1300
    no) ;;
1301
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1302
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303
  esac
1304
fi
1305
1306
# Check all directory arguments for consistency.
1307
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308
		datadir sysconfdir sharedstatedir localstatedir includedir \
1309
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310
		libdir localedir mandir
1311
do
1312
  eval ac_val=\$$ac_var
1313
  # Remove trailing slashes.
1314
  case $ac_val in
1315
    */ )
1316
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317
      eval $ac_var=\$ac_val;;
1318
  esac
1319
  # Be sure to have absolute directory names.
1320
  case $ac_val in
1321
    [\\/$]* | ?:[\\/]* )  continue;;
1322
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323
  esac
1324
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1325
done
1326
1327
# There might be people who depend on the old broken behavior: `$host'
1328
# used to hold the argument of --host etc.
1329
# FIXME: To remove some day.
1330
build=$build_alias
1331
host=$host_alias
1332
target=$target_alias
1333
1334
# FIXME: To remove some day.
1335
if test "x$host_alias" != x; then
1336
  if test "x$build_alias" = x; then
1337
    cross_compiling=maybe
1338
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339
    If a cross compiler is detected then cross compile mode will be used." >&2
1340
  elif test "x$build_alias" != "x$host_alias"; then
1341
    cross_compiling=yes
1342
  fi
1343
fi
1344
1345
ac_tool_prefix=
1346
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1347
1348
test "$silent" = yes && exec 6>/dev/null
1349
1350
1351
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352
ac_ls_di=`ls -di .` &&
1353
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354
  as_fn_error "working directory cannot be determined"
1355
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356
  as_fn_error "pwd does not report name of working directory"
1357
1358
1359
# Find the source files, if location was not specified.
1360
if test -z "$srcdir"; then
1361
  ac_srcdir_defaulted=yes
1362
  # Try the directory containing this script, then the parent directory.
1363
  ac_confdir=`$as_dirname -- "$as_myself" ||
1364
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1366
	 X"$as_myself" : 'X\(//\)$' \| \
1367
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368
$as_echo X"$as_myself" |
1369
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370
	    s//\1/
1371
	    q
1372
	  }
1373
	  /^X\(\/\/\)[^/].*/{
1374
	    s//\1/
1375
	    q
1376
	  }
1377
	  /^X\(\/\/\)$/{
1378
	    s//\1/
1379
	    q
1380
	  }
1381
	  /^X\(\/\).*/{
1382
	    s//\1/
1383
	    q
1384
	  }
1385
	  s/.*/./; q'`
1386
  srcdir=$ac_confdir
1387
  if test ! -r "$srcdir/$ac_unique_file"; then
1388
    srcdir=..
1389
  fi
1390
else
1391
  ac_srcdir_defaulted=no
1392
fi
1393
if test ! -r "$srcdir/$ac_unique_file"; then
1394
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1396
fi
1397
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398
ac_abs_confdir=`(
1399
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1400
	pwd)`
1401
# When building in place, set srcdir=.
1402
if test "$ac_abs_confdir" = "$ac_pwd"; then
1403
  srcdir=.
1404
fi
1405
# Remove unnecessary trailing slashes from srcdir.
1406
# Double slashes in file names in object file debugging info
1407
# mess up M-x gdb in Emacs.
1408
case $srcdir in
1409
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410
esac
1411
for ac_var in $ac_precious_vars; do
1412
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413
  eval ac_env_${ac_var}_value=\$${ac_var}
1414
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416
done
1417
1418
#
1419
# Report the --help message.
1420
#
1421
if test "$ac_init_help" = "long"; then
1422
  # Omit some internal or obsolete options to make the list less imposing.
1423
  # This message is too long to be a string in the A/UX 3.1 sh.
1424
  cat <<_ACEOF
1425
\`configure' configures sqlite3cc 0.1.0 to adapt to many kinds of systems.
1426
1427
Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430
VAR=VALUE.  See below for descriptions of some of the useful variables.
1431
1432
Defaults for the options are specified in brackets.
1433
1434
Configuration:
1435
  -h, --help              display this help and exit
1436
      --help=short        display options specific to this package
1437
      --help=recursive    display the short help of all the included packages
1438
  -V, --version           display version information and exit
1439
  -q, --quiet, --silent   do not print \`checking...' messages
1440
      --cache-file=FILE   cache test results in FILE [disabled]
1441
  -C, --config-cache      alias for \`--cache-file=config.cache'
1442
  -n, --no-create         do not create output files
1443
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1444
1445
Installation directories:
1446
  --prefix=PREFIX         install architecture-independent files in PREFIX
1447
                          [$ac_default_prefix]
1448
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1449
                          [PREFIX]
1450
1451
By default, \`make install' will install all the files in
1452
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1453
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454
for instance \`--prefix=\$HOME'.
1455
1456
For better control, use the options below.
1457
1458
Fine tuning of the installation directories:
1459
  --bindir=DIR            user executables [EPREFIX/bin]
1460
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1461
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1462
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1463
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1464
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1465
  --libdir=DIR            object code libraries [EPREFIX/lib]
1466
  --includedir=DIR        C header files [PREFIX/include]
1467
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1468
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1469
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1470
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1471
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1472
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1473
  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite3cc]
1474
  --htmldir=DIR           html documentation [DOCDIR]
1475
  --dvidir=DIR            dvi documentation [DOCDIR]
1476
  --pdfdir=DIR            pdf documentation [DOCDIR]
1477
  --psdir=DIR             ps documentation [DOCDIR]
1478
_ACEOF
1479
1480
  cat <<\_ACEOF
1481
1482
Program names:
1483
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1484
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1485
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1486
1487
System types:
1488
  --build=BUILD     configure for building on BUILD [guessed]
1489
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1490
_ACEOF
1491
fi
1492
1493
if test -n "$ac_init_help"; then
1494
  case $ac_init_help in
1495
     short | recursive ) echo "Configuration of sqlite3cc 0.1.0:";;
1496
   esac
1497
  cat <<\_ACEOF
1498
1499
Optional Features:
1500
  --disable-option-checking  ignore unrecognized --enable/--with options
1501
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1502
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1503
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1504
  --enable-static[=PKGS]  build static libraries [default=yes]
1505
  --enable-fast-install[=PKGS]
1506
                          optimize for fast installation [default=yes]
6 by edam
- fixed .am files so the library gets built!
1507
  --disable-dependency-tracking  speeds up one-time build
1508
  --enable-dependency-tracking   do not reject slow dependency extractors
5 by edam
- updated README
1509
  --disable-libtool-lock  avoid locking (might break parallel builds)
1510
1511
Optional Packages:
1512
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514
  --with-pic              try to use only PIC/non-PIC objects [default=use
1515
                          both]
1516
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1517
1518
Some influential environment variables:
6 by edam
- fixed .am files so the library gets built!
1519
  CC          C compiler command
1520
  CFLAGS      C compiler flags
5 by edam
- updated README
1521
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522
              nonstandard directory <lib dir>
1523
  LIBS        libraries to pass to the linker, e.g. -l<library>
1524
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1525
              you have headers in a nonstandard directory <include dir>
1526
  CPP         C preprocessor
6 by edam
- fixed .am files so the library gets built!
1527
  CXX         C++ compiler command
1528
  CXXFLAGS    C++ compiler flags
5 by edam
- updated README
1529
  CXXCPP      C++ preprocessor
1530
1531
Use these variables to override the choices made by `configure' or to help
1532
it to find libraries and programs with nonstandard names/locations.
1533
1534
Report bugs to <edam@waxworlds.org>.
7 by edam
- removed "OK" from test-main when test is successful
1535
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>.
5 by edam
- updated README
1536
_ACEOF
1537
ac_status=$?
1538
fi
1539
1540
if test "$ac_init_help" = "recursive"; then
1541
  # If there are subdirs, report their specific --help.
1542
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543
    test -d "$ac_dir" ||
1544
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545
      continue
1546
    ac_builddir=.
1547
1548
case "$ac_dir" in
1549
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550
*)
1551
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552
  # A ".." for each directory in $ac_dir_suffix.
1553
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554
  case $ac_top_builddir_sub in
1555
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557
  esac ;;
1558
esac
1559
ac_abs_top_builddir=$ac_pwd
1560
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561
# for backward compatibility:
1562
ac_top_builddir=$ac_top_build_prefix
1563
1564
case $srcdir in
1565
  .)  # We are building in place.
1566
    ac_srcdir=.
1567
    ac_top_srcdir=$ac_top_builddir_sub
1568
    ac_abs_top_srcdir=$ac_pwd ;;
1569
  [\\/]* | ?:[\\/]* )  # Absolute name.
1570
    ac_srcdir=$srcdir$ac_dir_suffix;
1571
    ac_top_srcdir=$srcdir
1572
    ac_abs_top_srcdir=$srcdir ;;
1573
  *) # Relative name.
1574
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1576
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577
esac
1578
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580
    cd "$ac_dir" || { ac_status=$?; continue; }
1581
    # Check for guested configure.
1582
    if test -f "$ac_srcdir/configure.gnu"; then
1583
      echo &&
1584
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585
    elif test -f "$ac_srcdir/configure"; then
1586
      echo &&
1587
      $SHELL "$ac_srcdir/configure" --help=recursive
1588
    else
1589
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590
    fi || ac_status=$?
1591
    cd "$ac_pwd" || { ac_status=$?; break; }
1592
  done
1593
fi
1594
1595
test -n "$ac_init_help" && exit $ac_status
1596
if $ac_init_version; then
1597
  cat <<\_ACEOF
1598
sqlite3cc configure 0.1.0
1599
generated by GNU Autoconf 2.64
1600
1601
Copyright (C) 2009 Free Software Foundation, Inc.
1602
This configure script is free software; the Free Software Foundation
1603
gives unlimited permission to copy, distribute and modify it.
1604
_ACEOF
1605
  exit
1606
fi
1607
1608
## ------------------------ ##
1609
## Autoconf initialization. ##
1610
## ------------------------ ##
1611
1612
# ac_fn_c_try_compile LINENO
1613
# --------------------------
1614
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615
ac_fn_c_try_compile ()
1616
{
1617
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618
  rm -f conftest.$ac_objext
1619
  if { { ac_try="$ac_compile"
1620
case "(($ac_try" in
1621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622
  *) ac_try_echo=$ac_try;;
1623
esac
1624
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625
$as_echo "$ac_try_echo"; } >&5
1626
  (eval "$ac_compile") 2>conftest.err
1627
  ac_status=$?
1628
  if test -s conftest.err; then
1629
    grep -v '^ *+' conftest.err >conftest.er1
1630
    cat conftest.er1 >&5
1631
    mv -f conftest.er1 conftest.err
1632
  fi
1633
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634
  test $ac_status = 0; } && {
1635
	 test -z "$ac_c_werror_flag" ||
1636
	 test ! -s conftest.err
1637
       } && test -s conftest.$ac_objext; then :
1638
  ac_retval=0
1639
else
1640
  $as_echo "$as_me: failed program was:" >&5
1641
sed 's/^/| /' conftest.$ac_ext >&5
1642
1643
	ac_retval=1
1644
fi
1645
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
  return $ac_retval
1647
1648
} # ac_fn_c_try_compile
1649
1650
# ac_fn_c_try_link LINENO
1651
# -----------------------
1652
# Try to link conftest.$ac_ext, and return whether this succeeded.
1653
ac_fn_c_try_link ()
1654
{
1655
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656
  rm -f conftest.$ac_objext conftest$ac_exeext
1657
  if { { ac_try="$ac_link"
1658
case "(($ac_try" in
1659
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660
  *) ac_try_echo=$ac_try;;
1661
esac
1662
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663
$as_echo "$ac_try_echo"; } >&5
1664
  (eval "$ac_link") 2>conftest.err
1665
  ac_status=$?
1666
  if test -s conftest.err; then
1667
    grep -v '^ *+' conftest.err >conftest.er1
1668
    cat conftest.er1 >&5
1669
    mv -f conftest.er1 conftest.err
1670
  fi
1671
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672
  test $ac_status = 0; } && {
1673
	 test -z "$ac_c_werror_flag" ||
1674
	 test ! -s conftest.err
1675
       } && test -s conftest$ac_exeext && {
1676
	 test "$cross_compiling" = yes ||
1677
	 $as_test_x conftest$ac_exeext
1678
       }; then :
1679
  ac_retval=0
1680
else
1681
  $as_echo "$as_me: failed program was:" >&5
1682
sed 's/^/| /' conftest.$ac_ext >&5
1683
1684
	ac_retval=1
1685
fi
1686
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1687
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1688
  # interfere with the next link command; also delete a directory that is
1689
  # left behind by Apple's compiler.  We do this before executing the actions.
1690
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692
  return $ac_retval
1693
1694
} # ac_fn_c_try_link
1695
1696
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1697
# -------------------------------------------------------
1698
# Tests whether HEADER exists and can be compiled using the include files in
1699
# INCLUDES, setting the cache variable VAR accordingly.
1700
ac_fn_c_check_header_compile ()
1701
{
1702
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704
$as_echo_n "checking for $2... " >&6; }
1705
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706
  $as_echo_n "(cached) " >&6
1707
else
1708
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709
/* end confdefs.h.  */
1710
$4
1711
#include <$2>
1712
_ACEOF
1713
if ac_fn_c_try_compile "$LINENO"; then :
1714
  eval "$3=yes"
1715
else
1716
  eval "$3=no"
1717
fi
1718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719
fi
1720
eval ac_res=\$$3
1721
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722
$as_echo "$ac_res" >&6; }
1723
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724
1725
} # ac_fn_c_check_header_compile
1726
1727
# ac_fn_c_try_cpp LINENO
1728
# ----------------------
1729
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730
ac_fn_c_try_cpp ()
1731
{
1732
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1734
case "(($ac_try" in
1735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736
  *) ac_try_echo=$ac_try;;
1737
esac
1738
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739
$as_echo "$ac_try_echo"; } >&5
1740
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741
  ac_status=$?
1742
  if test -s conftest.err; then
1743
    grep -v '^ *+' conftest.err >conftest.er1
1744
    cat conftest.er1 >&5
1745
    mv -f conftest.er1 conftest.err
1746
  fi
1747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748
  test $ac_status = 0; } >/dev/null && {
1749
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750
	 test ! -s conftest.err
1751
       }; then :
1752
  ac_retval=0
1753
else
1754
  $as_echo "$as_me: failed program was:" >&5
1755
sed 's/^/| /' conftest.$ac_ext >&5
1756
1757
    ac_retval=1
1758
fi
1759
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760
  return $ac_retval
1761
1762
} # ac_fn_c_try_cpp
1763
1764
# ac_fn_c_try_run LINENO
1765
# ----------------------
1766
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1767
# that executables *can* be run.
1768
ac_fn_c_try_run ()
1769
{
1770
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
  if { { ac_try="$ac_link"
1772
case "(($ac_try" in
1773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774
  *) ac_try_echo=$ac_try;;
1775
esac
1776
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777
$as_echo "$ac_try_echo"; } >&5
1778
  (eval "$ac_link") 2>&5
1779
  ac_status=$?
1780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1782
  { { case "(($ac_try" in
1783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784
  *) ac_try_echo=$ac_try;;
1785
esac
1786
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787
$as_echo "$ac_try_echo"; } >&5
1788
  (eval "$ac_try") 2>&5
1789
  ac_status=$?
1790
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791
  test $ac_status = 0; }; }; then :
1792
  ac_retval=0
1793
else
1794
  $as_echo "$as_me: program exited with status $ac_status" >&5
1795
       $as_echo "$as_me: failed program was:" >&5
1796
sed 's/^/| /' conftest.$ac_ext >&5
1797
1798
       ac_retval=$ac_status
1799
fi
1800
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1801
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
  return $ac_retval
1803
1804
} # ac_fn_c_try_run
1805
1806
# ac_fn_c_check_func LINENO FUNC VAR
1807
# ----------------------------------
1808
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1809
ac_fn_c_check_func ()
1810
{
1811
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813
$as_echo_n "checking for $2... " >&6; }
1814
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815
  $as_echo_n "(cached) " >&6
1816
else
1817
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818
/* end confdefs.h.  */
1819
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1821
#define $2 innocuous_$2
1822
1823
/* System header to define __stub macros and hopefully few prototypes,
1824
    which can conflict with char $2 (); below.
1825
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1826
    <limits.h> exists even on freestanding compilers.  */
1827
1828
#ifdef __STDC__
1829
# include <limits.h>
1830
#else
1831
# include <assert.h>
1832
#endif
1833
1834
#undef $2
1835
1836
/* Override any GCC internal prototype to avoid an error.
1837
   Use char because int might match the return type of a GCC
1838
   builtin and then its argument prototype would still apply.  */
1839
#ifdef __cplusplus
1840
extern "C"
1841
#endif
1842
char $2 ();
1843
/* The GNU C library defines this for functions which it implements
1844
    to always fail with ENOSYS.  Some functions are actually named
1845
    something starting with __ and the normal name is an alias.  */
1846
#if defined __stub_$2 || defined __stub___$2
1847
choke me
1848
#endif
1849
1850
int
1851
main ()
1852
{
1853
return $2 ();
1854
  ;
1855
  return 0;
1856
}
1857
_ACEOF
1858
if ac_fn_c_try_link "$LINENO"; then :
1859
  eval "$3=yes"
1860
else
1861
  eval "$3=no"
1862
fi
1863
rm -f core conftest.err conftest.$ac_objext \
1864
    conftest$ac_exeext conftest.$ac_ext
1865
fi
1866
eval ac_res=\$$3
1867
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868
$as_echo "$ac_res" >&6; }
1869
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870
1871
} # ac_fn_c_check_func
1872
6 by edam
- fixed .am files so the library gets built!
1873
# ac_fn_cxx_try_compile LINENO
1874
# ----------------------------
1875
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1876
ac_fn_cxx_try_compile ()
1877
{
1878
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879
  rm -f conftest.$ac_objext
1880
  if { { ac_try="$ac_compile"
1881
case "(($ac_try" in
1882
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883
  *) ac_try_echo=$ac_try;;
1884
esac
1885
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886
$as_echo "$ac_try_echo"; } >&5
1887
  (eval "$ac_compile") 2>conftest.err
1888
  ac_status=$?
1889
  if test -s conftest.err; then
1890
    grep -v '^ *+' conftest.err >conftest.er1
1891
    cat conftest.er1 >&5
1892
    mv -f conftest.er1 conftest.err
1893
  fi
1894
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895
  test $ac_status = 0; } && {
1896
	 test -z "$ac_cxx_werror_flag" ||
1897
	 test ! -s conftest.err
1898
       } && test -s conftest.$ac_objext; then :
1899
  ac_retval=0
1900
else
1901
  $as_echo "$as_me: failed program was:" >&5
1902
sed 's/^/| /' conftest.$ac_ext >&5
1903
1904
	ac_retval=1
1905
fi
1906
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
  return $ac_retval
1908
1909
} # ac_fn_cxx_try_compile
1910
5 by edam
- updated README
1911
# ac_fn_cxx_try_cpp LINENO
1912
# ------------------------
1913
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1914
ac_fn_cxx_try_cpp ()
1915
{
1916
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1918
case "(($ac_try" in
1919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920
  *) ac_try_echo=$ac_try;;
1921
esac
1922
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923
$as_echo "$ac_try_echo"; } >&5
1924
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1925
  ac_status=$?
1926
  if test -s conftest.err; then
1927
    grep -v '^ *+' conftest.err >conftest.er1
1928
    cat conftest.er1 >&5
1929
    mv -f conftest.er1 conftest.err
1930
  fi
1931
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932
  test $ac_status = 0; } >/dev/null && {
1933
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1934
	 test ! -s conftest.err
1935
       }; then :
1936
  ac_retval=0
1937
else
1938
  $as_echo "$as_me: failed program was:" >&5
1939
sed 's/^/| /' conftest.$ac_ext >&5
1940
1941
    ac_retval=1
1942
fi
1943
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
  return $ac_retval
1945
1946
} # ac_fn_cxx_try_cpp
1947
1948
# ac_fn_cxx_try_link LINENO
1949
# -------------------------
1950
# Try to link conftest.$ac_ext, and return whether this succeeded.
1951
ac_fn_cxx_try_link ()
1952
{
1953
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954
  rm -f conftest.$ac_objext conftest$ac_exeext
1955
  if { { ac_try="$ac_link"
1956
case "(($ac_try" in
1957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958
  *) ac_try_echo=$ac_try;;
1959
esac
1960
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961
$as_echo "$ac_try_echo"; } >&5
1962
  (eval "$ac_link") 2>conftest.err
1963
  ac_status=$?
1964
  if test -s conftest.err; then
1965
    grep -v '^ *+' conftest.err >conftest.er1
1966
    cat conftest.er1 >&5
1967
    mv -f conftest.er1 conftest.err
1968
  fi
1969
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970
  test $ac_status = 0; } && {
1971
	 test -z "$ac_cxx_werror_flag" ||
1972
	 test ! -s conftest.err
1973
       } && test -s conftest$ac_exeext && {
1974
	 test "$cross_compiling" = yes ||
1975
	 $as_test_x conftest$ac_exeext
1976
       }; then :
1977
  ac_retval=0
1978
else
1979
  $as_echo "$as_me: failed program was:" >&5
1980
sed 's/^/| /' conftest.$ac_ext >&5
1981
1982
	ac_retval=1
1983
fi
1984
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1985
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1986
  # interfere with the next link command; also delete a directory that is
1987
  # left behind by Apple's compiler.  We do this before executing the actions.
1988
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
  return $ac_retval
1991
1992
} # ac_fn_cxx_try_link
1993
1994
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1995
# -------------------------------------------------------
1996
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1997
# the include files in INCLUDES and setting the cache variable VAR
1998
# accordingly.
1999
ac_fn_c_check_header_mongrel ()
2000
{
2001
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004
$as_echo_n "checking for $2... " >&6; }
2005
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2006
  $as_echo_n "(cached) " >&6
2007
fi
2008
eval ac_res=\$$3
2009
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010
$as_echo "$ac_res" >&6; }
2011
else
2012
  # Is the header compilable?
2013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2014
$as_echo_n "checking $2 usability... " >&6; }
2015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016
/* end confdefs.h.  */
2017
$4
2018
#include <$2>
2019
_ACEOF
2020
if ac_fn_c_try_compile "$LINENO"; then :
2021
  ac_header_compiler=yes
2022
else
2023
  ac_header_compiler=no
2024
fi
2025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2027
$as_echo "$ac_header_compiler" >&6; }
2028
2029
# Is the header present?
2030
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2031
$as_echo_n "checking $2 presence... " >&6; }
2032
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033
/* end confdefs.h.  */
2034
#include <$2>
2035
_ACEOF
2036
if ac_fn_c_try_cpp "$LINENO"; then :
2037
  ac_header_preproc=yes
2038
else
2039
  ac_header_preproc=no
2040
fi
2041
rm -f conftest.err conftest.$ac_ext
2042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2043
$as_echo "$ac_header_preproc" >&6; }
2044
2045
# So?  What about this header?
2046
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2047
  yes:no: )
2048
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2049
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2050
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052
    ;;
2053
  no:yes:* )
2054
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2055
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2056
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2057
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2058
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2059
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2060
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2061
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2062
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064
( cat <<\_ASBOX
2065
## --------------------------------- ##
2066
## Report this to edam@waxworlds.org ##
2067
## --------------------------------- ##
2068
_ASBOX
2069
     ) | sed "s/^/$as_me: WARNING:     /" >&2
2070
    ;;
2071
esac
2072
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073
$as_echo_n "checking for $2... " >&6; }
2074
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2075
  $as_echo_n "(cached) " >&6
2076
else
2077
  eval "$3=\$ac_header_compiler"
2078
fi
2079
eval ac_res=\$$3
2080
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081
$as_echo "$ac_res" >&6; }
2082
fi
2083
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084
2085
} # ac_fn_c_check_header_mongrel
2086
cat >config.log <<_ACEOF
2087
This file contains any messages produced by compilers while
2088
running configure, to aid debugging if configure makes a mistake.
2089
2090
It was created by sqlite3cc $as_me 0.1.0, which was
2091
generated by GNU Autoconf 2.64.  Invocation command line was
2092
2093
  $ $0 $@
2094
2095
_ACEOF
2096
exec 5>>config.log
2097
{
2098
cat <<_ASUNAME
2099
## --------- ##
2100
## Platform. ##
2101
## --------- ##
2102
2103
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2108
2109
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2111
2112
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2113
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2114
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2116
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2117
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2118
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2119
2120
_ASUNAME
2121
2122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123
for as_dir in $PATH
2124
do
2125
  IFS=$as_save_IFS
2126
  test -z "$as_dir" && as_dir=.
2127
    $as_echo "PATH: $as_dir"
2128
  done
2129
IFS=$as_save_IFS
2130
2131
} >&5
2132
2133
cat >&5 <<_ACEOF
2134
2135
2136
## ----------- ##
2137
## Core tests. ##
2138
## ----------- ##
2139
2140
_ACEOF
2141
2142
2143
# Keep a trace of the command line.
2144
# Strip out --no-create and --no-recursion so they do not pile up.
2145
# Strip out --silent because we don't want to record it for future runs.
2146
# Also quote any args containing shell meta-characters.
2147
# Make two passes to allow for proper duplicate-argument suppression.
2148
ac_configure_args=
2149
ac_configure_args0=
2150
ac_configure_args1=
2151
ac_must_keep_next=false
2152
for ac_pass in 1 2
2153
do
2154
  for ac_arg
2155
  do
2156
    case $ac_arg in
2157
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159
    | -silent | --silent | --silen | --sile | --sil)
2160
      continue ;;
2161
    *\'*)
2162
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163
    esac
2164
    case $ac_pass in
2165
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2166
    2)
2167
      as_fn_append ac_configure_args1 " '$ac_arg'"
2168
      if test $ac_must_keep_next = true; then
2169
	ac_must_keep_next=false # Got value, back to normal.
2170
      else
2171
	case $ac_arg in
2172
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2173
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175
	  | -with-* | --with-* | -without-* | --without-* | --x)
2176
	    case "$ac_configure_args0 " in
2177
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178
	    esac
2179
	    ;;
2180
	  -* ) ac_must_keep_next=true ;;
2181
	esac
2182
      fi
2183
      as_fn_append ac_configure_args " '$ac_arg'"
2184
      ;;
2185
    esac
2186
  done
2187
done
2188
{ ac_configure_args0=; unset ac_configure_args0;}
2189
{ ac_configure_args1=; unset ac_configure_args1;}
2190
2191
# When interrupted or exit'd, cleanup temporary files, and complete
2192
# config.log.  We remove comments because anyway the quotes in there
2193
# would cause problems or look ugly.
2194
# WARNING: Use '\'' to represent an apostrophe within the trap.
2195
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196
trap 'exit_status=$?
2197
  # Save into config.log some information that might help in debugging.
2198
  {
2199
    echo
2200
2201
    cat <<\_ASBOX
2202
## ---------------- ##
2203
## Cache variables. ##
2204
## ---------------- ##
2205
_ASBOX
2206
    echo
2207
    # The following way of writing the cache mishandles newlines in values,
2208
(
2209
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2210
    eval ac_val=\$$ac_var
2211
    case $ac_val in #(
2212
    *${as_nl}*)
2213
      case $ac_var in #(
2214
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2215
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2216
      esac
2217
      case $ac_var in #(
2218
      _ | IFS | as_nl) ;; #(
2219
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2220
      *) { eval $ac_var=; unset $ac_var;} ;;
2221
      esac ;;
2222
    esac
2223
  done
2224
  (set) 2>&1 |
2225
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2226
    *${as_nl}ac_space=\ *)
2227
      sed -n \
2228
	"s/'\''/'\''\\\\'\'''\''/g;
2229
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2230
      ;; #(
2231
    *)
2232
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2233
      ;;
2234
    esac |
2235
    sort
2236
)
2237
    echo
2238
2239
    cat <<\_ASBOX
2240
## ----------------- ##
2241
## Output variables. ##
2242
## ----------------- ##
2243
_ASBOX
2244
    echo
2245
    for ac_var in $ac_subst_vars
2246
    do
2247
      eval ac_val=\$$ac_var
2248
      case $ac_val in
2249
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250
      esac
2251
      $as_echo "$ac_var='\''$ac_val'\''"
2252
    done | sort
2253
    echo
2254
2255
    if test -n "$ac_subst_files"; then
2256
      cat <<\_ASBOX
2257
## ------------------- ##
2258
## File substitutions. ##
2259
## ------------------- ##
2260
_ASBOX
2261
      echo
2262
      for ac_var in $ac_subst_files
2263
      do
2264
	eval ac_val=\$$ac_var
2265
	case $ac_val in
2266
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267
	esac
2268
	$as_echo "$ac_var='\''$ac_val'\''"
2269
      done | sort
2270
      echo
2271
    fi
2272
2273
    if test -s confdefs.h; then
2274
      cat <<\_ASBOX
2275
## ----------- ##
2276
## confdefs.h. ##
2277
## ----------- ##
2278
_ASBOX
2279
      echo
2280
      cat confdefs.h
2281
      echo
2282
    fi
2283
    test "$ac_signal" != 0 &&
2284
      $as_echo "$as_me: caught signal $ac_signal"
2285
    $as_echo "$as_me: exit $exit_status"
2286
  } >&5
2287
  rm -f core *.core core.conftest.* &&
2288
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289
    exit $exit_status
2290
' 0
2291
for ac_signal in 1 2 13 15; do
2292
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293
done
2294
ac_signal=0
2295
2296
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2297
rm -f -r conftest* confdefs.h
2298
2299
$as_echo "/* confdefs.h */" > confdefs.h
2300
2301
# Predefined preprocessor variables.
2302
2303
cat >>confdefs.h <<_ACEOF
2304
#define PACKAGE_NAME "$PACKAGE_NAME"
2305
_ACEOF
2306
2307
cat >>confdefs.h <<_ACEOF
2308
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309
_ACEOF
2310
2311
cat >>confdefs.h <<_ACEOF
2312
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2313
_ACEOF
2314
2315
cat >>confdefs.h <<_ACEOF
2316
#define PACKAGE_STRING "$PACKAGE_STRING"
2317
_ACEOF
2318
2319
cat >>confdefs.h <<_ACEOF
2320
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321
_ACEOF
2322
2323
cat >>confdefs.h <<_ACEOF
2324
#define PACKAGE_URL "$PACKAGE_URL"
2325
_ACEOF
2326
2327
2328
# Let the site file select an alternate cache file if it wants to.
2329
# Prefer an explicitly selected file to automatically selected ones.
2330
ac_site_file1=NONE
2331
ac_site_file2=NONE
2332
if test -n "$CONFIG_SITE"; then
2333
  ac_site_file1=$CONFIG_SITE
2334
elif test "x$prefix" != xNONE; then
2335
  ac_site_file1=$prefix/share/config.site
2336
  ac_site_file2=$prefix/etc/config.site
2337
else
2338
  ac_site_file1=$ac_default_prefix/share/config.site
2339
  ac_site_file2=$ac_default_prefix/etc/config.site
2340
fi
2341
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2342
do
2343
  test "x$ac_site_file" = xNONE && continue
2344
  if test -r "$ac_site_file"; then
2345
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2346
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2347
    sed 's/^/| /' "$ac_site_file" >&5
2348
    . "$ac_site_file"
2349
  fi
2350
done
2351
2352
if test -r "$cache_file"; then
2353
  # Some versions of bash will fail to source /dev/null (special
2354
  # files actually), so we avoid doing that.
2355
  if test -f "$cache_file"; then
2356
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2357
$as_echo "$as_me: loading cache $cache_file" >&6;}
2358
    case $cache_file in
2359
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2360
      *)                      . "./$cache_file";;
2361
    esac
2362
  fi
2363
else
2364
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2365
$as_echo "$as_me: creating cache $cache_file" >&6;}
2366
  >$cache_file
2367
fi
2368
2369
# Check that the precious variables saved in the cache have kept the same
2370
# value.
2371
ac_cache_corrupted=false
2372
for ac_var in $ac_precious_vars; do
2373
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2374
  eval ac_new_set=\$ac_env_${ac_var}_set
2375
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2376
  eval ac_new_val=\$ac_env_${ac_var}_value
2377
  case $ac_old_set,$ac_new_set in
2378
    set,)
2379
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2380
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2381
      ac_cache_corrupted=: ;;
2382
    ,set)
2383
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2384
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2385
      ac_cache_corrupted=: ;;
2386
    ,);;
2387
    *)
2388
      if test "x$ac_old_val" != "x$ac_new_val"; then
2389
	# differences in whitespace do not lead to failure.
2390
	ac_old_val_w=`echo x $ac_old_val`
2391
	ac_new_val_w=`echo x $ac_new_val`
2392
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2393
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2394
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2395
	  ac_cache_corrupted=:
2396
	else
2397
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2398
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2399
	  eval $ac_var=\$ac_old_val
2400
	fi
2401
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2402
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2403
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2404
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2405
      fi;;
2406
  esac
2407
  # Pass precious variables to config.status.
2408
  if test "$ac_new_set" = set; then
2409
    case $ac_new_val in
2410
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2411
    *) ac_arg=$ac_var=$ac_new_val ;;
2412
    esac
2413
    case " $ac_configure_args " in
2414
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2415
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2416
    esac
2417
  fi
2418
done
2419
if $ac_cache_corrupted; then
2420
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2423
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2424
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2425
fi
2426
## -------------------- ##
2427
## Main body of script. ##
2428
## -------------------- ##
2429
2430
ac_ext=c
2431
ac_cpp='$CPP $CPPFLAGS'
2432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2435
2436
7 by edam
- removed "OK" from test-main when test is successful
2437
LIBSQLITE3CC_INTERFACE=0:0:0
2438
5 by edam
- updated README
2439
ac_aux_dir=
2440
for ac_dir in build-aux "$srcdir"/build-aux; do
2441
  for ac_t in install-sh install.sh shtool; do
2442
    if test -f "$ac_dir/$ac_t"; then
2443
      ac_aux_dir=$ac_dir
2444
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2445
      break 2
2446
    fi
2447
  done
2448
done
2449
if test -z "$ac_aux_dir"; then
2450
  as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2451
fi
2452
2453
# These three variables are undocumented and unsupported,
2454
# and are intended to be withdrawn in a future Autoconf release.
2455
# They can cause serious problems if a builder's source tree is in a directory
2456
# whose full name contains unusual characters.
2457
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2458
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2459
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2460
2461
2462
2463
am__api_version='1.11'
2464
2465
# Find a good install program.  We prefer a C program (faster),
2466
# so one script is as good as another.  But avoid the broken or
2467
# incompatible versions:
2468
# SysV /etc/install, /usr/sbin/install
2469
# SunOS /usr/etc/install
2470
# IRIX /sbin/install
2471
# AIX /bin/install
2472
# AmigaOS /C/install, which installs bootblocks on floppy discs
2473
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2474
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2475
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2476
# OS/2's system install, which has a completely different semantic
2477
# ./install, which can be erroneously created by make from ./install.sh.
2478
# Reject install programs that cannot install multiple files.
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2480
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2481
if test -z "$INSTALL"; then
2482
if test "${ac_cv_path_install+set}" = set; then :
2483
  $as_echo_n "(cached) " >&6
2484
else
2485
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486
for as_dir in $PATH
2487
do
2488
  IFS=$as_save_IFS
2489
  test -z "$as_dir" && as_dir=.
2490
    # Account for people who put trailing slashes in PATH elements.
2491
case $as_dir/ in #((
2492
  ./ | .// | /[cC]/* | \
2493
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2494
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2495
  /usr/ucb/* ) ;;
2496
  *)
2497
    # OSF1 and SCO ODT 3.0 have their own names for install.
2498
    # Don't use installbsd from OSF since it installs stuff as root
2499
    # by default.
2500
    for ac_prog in ginstall scoinst install; do
2501
      for ac_exec_ext in '' $ac_executable_extensions; do
2502
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2503
	  if test $ac_prog = install &&
2504
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505
	    # AIX install.  It has an incompatible calling convention.
2506
	    :
2507
	  elif test $ac_prog = install &&
2508
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2509
	    # program-specific install script used by HP pwplus--don't use.
2510
	    :
2511
	  else
2512
	    rm -rf conftest.one conftest.two conftest.dir
2513
	    echo one > conftest.one
2514
	    echo two > conftest.two
2515
	    mkdir conftest.dir
2516
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2517
	      test -s conftest.one && test -s conftest.two &&
2518
	      test -s conftest.dir/conftest.one &&
2519
	      test -s conftest.dir/conftest.two
2520
	    then
2521
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2522
	      break 3
2523
	    fi
2524
	  fi
2525
	fi
2526
      done
2527
    done
2528
    ;;
2529
esac
2530
2531
  done
2532
IFS=$as_save_IFS
2533
2534
rm -rf conftest.one conftest.two conftest.dir
2535
2536
fi
2537
  if test "${ac_cv_path_install+set}" = set; then
2538
    INSTALL=$ac_cv_path_install
2539
  else
2540
    # As a last resort, use the slow shell script.  Don't cache a
2541
    # value for INSTALL within a source directory, because that will
2542
    # break other packages using the cache if that directory is
2543
    # removed, or if the value is a relative name.
2544
    INSTALL=$ac_install_sh
2545
  fi
2546
fi
2547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2548
$as_echo "$INSTALL" >&6; }
2549
2550
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2551
# It thinks the first close brace ends the variable substitution.
2552
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2553
2554
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2555
2556
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2557
2558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2559
$as_echo_n "checking whether build environment is sane... " >&6; }
2560
# Just in case
2561
sleep 1
2562
echo timestamp > conftest.file
2563
# Reject unsafe characters in $srcdir or the absolute working directory
2564
# name.  Accept space and tab only in the latter.
2565
am_lf='
2566
'
2567
case `pwd` in
2568
  *[\\\"\#\$\&\'\`$am_lf]*)
2569
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2570
esac
2571
case $srcdir in
2572
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2573
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2574
esac
2575
2576
# Do `set' in a subshell so we don't clobber the current shell's
2577
# arguments.  Must try -L first in case configure is actually a
2578
# symlink; some systems play weird games with the mod time of symlinks
2579
# (eg FreeBSD returns the mod time of the symlink's containing
2580
# directory).
2581
if (
2582
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2583
   if test "$*" = "X"; then
2584
      # -L didn't work.
2585
      set X `ls -t "$srcdir/configure" conftest.file`
2586
   fi
2587
   rm -f conftest.file
2588
   if test "$*" != "X $srcdir/configure conftest.file" \
2589
      && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591
      # If neither matched, then we have a broken ls.  This can happen
2592
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2593
      # broken ls alias from the environment.  This has actually
2594
      # happened.  Such a system could not be considered "sane".
2595
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2596
alias in your environment" "$LINENO" 5
2597
   fi
2598
2599
   test "$2" = conftest.file
2600
   )
2601
then
2602
   # Ok.
2603
   :
2604
else
2605
   as_fn_error "newly created file is older than distributed files!
2606
Check your system clock" "$LINENO" 5
2607
fi
2608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2609
$as_echo "yes" >&6; }
2610
test "$program_prefix" != NONE &&
2611
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2612
# Use a double $ so make ignores it.
2613
test "$program_suffix" != NONE &&
2614
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2615
# Double any \ or $.
2616
# By default was `s,x,x', remove it if useless.
2617
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2618
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2619
2620
# expand $ac_aux_dir to an absolute path
2621
am_aux_dir=`cd $ac_aux_dir && pwd`
2622
2623
if test x"${MISSING+set}" != xset; then
2624
  case $am_aux_dir in
2625
  *\ * | *\	*)
2626
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2627
  *)
2628
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2629
  esac
2630
fi
2631
# Use eval to expand $SHELL
2632
if eval "$MISSING --run true"; then
2633
  am_missing_run="$MISSING --run "
2634
else
2635
  am_missing_run=
2636
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2637
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638
fi
2639
2640
if test x"${install_sh}" != xset; then
2641
  case $am_aux_dir in
2642
  *\ * | *\	*)
2643
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2644
  *)
2645
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2646
  esac
2647
fi
2648
2649
# Installed binaries are usually stripped using `strip' when the user
2650
# run `make install-strip'.  However `strip' might not be the right
2651
# tool to use in cross-compilation environments, therefore Automake
2652
# will honor the `STRIP' environment variable to overrule this program.
2653
if test "$cross_compiling" != no; then
2654
  if test -n "$ac_tool_prefix"; then
2655
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656
set dummy ${ac_tool_prefix}strip; ac_word=$2
2657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658
$as_echo_n "checking for $ac_word... " >&6; }
2659
if test "${ac_cv_prog_STRIP+set}" = set; then :
2660
  $as_echo_n "(cached) " >&6
2661
else
2662
  if test -n "$STRIP"; then
2663
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2664
else
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
for as_dir in $PATH
2667
do
2668
  IFS=$as_save_IFS
2669
  test -z "$as_dir" && as_dir=.
2670
    for ac_exec_ext in '' $ac_executable_extensions; do
2671
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674
    break 2
2675
  fi
2676
done
2677
  done
2678
IFS=$as_save_IFS
2679
2680
fi
2681
fi
2682
STRIP=$ac_cv_prog_STRIP
2683
if test -n "$STRIP"; then
2684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2685
$as_echo "$STRIP" >&6; }
2686
else
2687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688
$as_echo "no" >&6; }
2689
fi
2690
2691
2692
fi
2693
if test -z "$ac_cv_prog_STRIP"; then
2694
  ac_ct_STRIP=$STRIP
2695
  # Extract the first word of "strip", so it can be a program name with args.
2696
set dummy strip; ac_word=$2
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698
$as_echo_n "checking for $ac_word... " >&6; }
2699
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2700
  $as_echo_n "(cached) " >&6
2701
else
2702
  if test -n "$ac_ct_STRIP"; then
2703
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2704
else
2705
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706
for as_dir in $PATH
2707
do
2708
  IFS=$as_save_IFS
2709
  test -z "$as_dir" && as_dir=.
2710
    for ac_exec_ext in '' $ac_executable_extensions; do
2711
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712
    ac_cv_prog_ac_ct_STRIP="strip"
2713
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714
    break 2
2715
  fi
2716
done
2717
  done
2718
IFS=$as_save_IFS
2719
2720
fi
2721
fi
2722
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723
if test -n "$ac_ct_STRIP"; then
2724
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2725
$as_echo "$ac_ct_STRIP" >&6; }
2726
else
2727
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728
$as_echo "no" >&6; }
2729
fi
2730
2731
  if test "x$ac_ct_STRIP" = x; then
2732
    STRIP=":"
2733
  else
2734
    case $cross_compiling:$ac_tool_warned in
2735
yes:)
2736
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2737
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738
ac_tool_warned=yes ;;
2739
esac
2740
    STRIP=$ac_ct_STRIP
2741
  fi
2742
else
2743
  STRIP="$ac_cv_prog_STRIP"
2744
fi
2745
2746
fi
2747
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2748
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2750
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2751
if test -z "$MKDIR_P"; then
2752
  if test "${ac_cv_path_mkdir+set}" = set; then :
2753
  $as_echo_n "(cached) " >&6
2754
else
2755
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2757
do
2758
  IFS=$as_save_IFS
2759
  test -z "$as_dir" && as_dir=.
2760
    for ac_prog in mkdir gmkdir; do
2761
	 for ac_exec_ext in '' $ac_executable_extensions; do
2762
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2763
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2764
	     'mkdir (GNU coreutils) '* | \
2765
	     'mkdir (coreutils) '* | \
2766
	     'mkdir (fileutils) '4.1*)
2767
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2768
	       break 3;;
2769
	   esac
2770
	 done
2771
       done
2772
  done
2773
IFS=$as_save_IFS
2774
2775
fi
2776
2777
  if test "${ac_cv_path_mkdir+set}" = set; then
2778
    MKDIR_P="$ac_cv_path_mkdir -p"
2779
  else
2780
    # As a last resort, use the slow shell script.  Don't cache a
2781
    # value for MKDIR_P within a source directory, because that will
2782
    # break other packages using the cache if that directory is
2783
    # removed, or if the value is a relative name.
2784
    test -d ./--version && rmdir ./--version
2785
    MKDIR_P="$ac_install_sh -d"
2786
  fi
2787
fi
2788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2789
$as_echo "$MKDIR_P" >&6; }
2790
2791
mkdir_p="$MKDIR_P"
2792
case $mkdir_p in
2793
  [\\/$]* | ?:[\\/]*) ;;
2794
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2795
esac
2796
2797
for ac_prog in gawk mawk nawk awk
2798
do
2799
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2800
set dummy $ac_prog; ac_word=$2
2801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802
$as_echo_n "checking for $ac_word... " >&6; }
2803
if test "${ac_cv_prog_AWK+set}" = set; then :
2804
  $as_echo_n "(cached) " >&6
2805
else
2806
  if test -n "$AWK"; then
2807
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2808
else
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810
for as_dir in $PATH
2811
do
2812
  IFS=$as_save_IFS
2813
  test -z "$as_dir" && as_dir=.
2814
    for ac_exec_ext in '' $ac_executable_extensions; do
2815
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816
    ac_cv_prog_AWK="$ac_prog"
2817
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818
    break 2
2819
  fi
2820
done
2821
  done
2822
IFS=$as_save_IFS
2823
2824
fi
2825
fi
2826
AWK=$ac_cv_prog_AWK
2827
if test -n "$AWK"; then
2828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2829
$as_echo "$AWK" >&6; }
2830
else
2831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832
$as_echo "no" >&6; }
2833
fi
2834
2835
2836
  test -n "$AWK" && break
2837
done
2838
2839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2840
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2841
set x ${MAKE-make}
2842
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2843
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2844
  $as_echo_n "(cached) " >&6
2845
else
2846
  cat >conftest.make <<\_ACEOF
2847
SHELL = /bin/sh
2848
all:
2849
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2850
_ACEOF
2851
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2852
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2853
  *@@@%%%=?*=@@@%%%*)
2854
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2855
  *)
2856
    eval ac_cv_prog_make_${ac_make}_set=no;;
2857
esac
2858
rm -f conftest.make
2859
fi
2860
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2862
$as_echo "yes" >&6; }
2863
  SET_MAKE=
2864
else
2865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866
$as_echo "no" >&6; }
2867
  SET_MAKE="MAKE=${MAKE-make}"
2868
fi
2869
2870
rm -rf .tst 2>/dev/null
2871
mkdir .tst 2>/dev/null
2872
if test -d .tst; then
2873
  am__leading_dot=.
2874
else
2875
  am__leading_dot=_
2876
fi
2877
rmdir .tst 2>/dev/null
2878
2879
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881
  # is not polluted with repeated "-I."
2882
  am__isrc=' -I$(srcdir)'
2883
  # test to see if srcdir already configured
2884
  if test -f $srcdir/config.status; then
2885
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2886
  fi
2887
fi
2888
2889
# test whether we have cygpath
2890
if test -z "$CYGPATH_W"; then
2891
  if (cygpath --version) >/dev/null 2>/dev/null; then
2892
    CYGPATH_W='cygpath -w'
2893
  else
2894
    CYGPATH_W=echo
2895
  fi
2896
fi
2897
2898
2899
# Define the identity of the package.
2900
 PACKAGE='sqlite3cc'
2901
 VERSION='0.1.0'
2902
2903
2904
cat >>confdefs.h <<_ACEOF
2905
#define PACKAGE "$PACKAGE"
2906
_ACEOF
2907
2908
2909
cat >>confdefs.h <<_ACEOF
2910
#define VERSION "$VERSION"
2911
_ACEOF
2912
2913
# Some tools Automake needs.
2914
2915
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2916
2917
2918
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2919
2920
2921
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2922
2923
2924
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2925
2926
2927
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2928
2929
# We need awk for the "check" target.  The system "awk" is bad on
2930
# some platforms.
2931
# Always define AMTAR for backward compatibility.
2932
2933
AMTAR=${AMTAR-"${am_missing_run}tar"}
2934
2935
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2936
2937
2938
2939
2940
2941
2942
ac_config_headers="$ac_config_headers config.h"
2943
6 by edam
- fixed .am files so the library gets built!
2944
case `pwd` in
2945
  *\ * | *\	*)
2946
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2947
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2948
esac
2949
2950
2951
2952
macro_version='2.2.6'
2953
macro_revision='1.3012'
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
ltmain="$ac_aux_dir/ltmain.sh"
2968
2969
# Make sure we can run config.sub.
2970
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2971
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2972
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2974
$as_echo_n "checking build system type... " >&6; }
2975
if test "${ac_cv_build+set}" = set; then :
2976
  $as_echo_n "(cached) " >&6
2977
else
2978
  ac_build_alias=$build_alias
2979
test "x$ac_build_alias" = x &&
2980
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2981
test "x$ac_build_alias" = x &&
2982
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2983
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2984
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2985
2986
fi
2987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2988
$as_echo "$ac_cv_build" >&6; }
2989
case $ac_cv_build in
2990
*-*-*) ;;
2991
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2992
esac
2993
build=$ac_cv_build
2994
ac_save_IFS=$IFS; IFS='-'
2995
set x $ac_cv_build
2996
shift
2997
build_cpu=$1
2998
build_vendor=$2
2999
shift; shift
3000
# Remember, the first character of IFS is used to create $*,
3001
# except with old shells:
3002
build_os=$*
3003
IFS=$ac_save_IFS
3004
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3005
3006
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3008
$as_echo_n "checking host system type... " >&6; }
3009
if test "${ac_cv_host+set}" = set; then :
3010
  $as_echo_n "(cached) " >&6
3011
else
3012
  if test "x$host_alias" = x; then
3013
  ac_cv_host=$ac_cv_build
3014
else
3015
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3016
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3017
fi
3018
3019
fi
3020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3021
$as_echo "$ac_cv_host" >&6; }
3022
case $ac_cv_host in
3023
*-*-*) ;;
3024
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3025
esac
3026
host=$ac_cv_host
3027
ac_save_IFS=$IFS; IFS='-'
3028
set x $ac_cv_host
3029
shift
3030
host_cpu=$1
3031
host_vendor=$2
3032
shift; shift
3033
# Remember, the first character of IFS is used to create $*,
3034
# except with old shells:
3035
host_os=$*
3036
IFS=$ac_save_IFS
3037
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3038
3039
3040
DEPDIR="${am__leading_dot}deps"
3041
3042
ac_config_commands="$ac_config_commands depfiles"
3043
3044
3045
am_make=${MAKE-make}
3046
cat > confinc << 'END'
3047
am__doit:
3048
	@echo this is the am__doit target
3049
.PHONY: am__doit
3050
END
3051
# If we don't find an include directive, just comment out the code.
3052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3053
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3054
am__include="#"
3055
am__quote=
3056
_am_result=none
3057
# First try GNU make style include.
3058
echo "include confinc" > confmf
3059
# Ignore all kinds of additional output from `make'.
3060
case `$am_make -s -f confmf 2> /dev/null` in #(
3061
*the\ am__doit\ target*)
3062
  am__include=include
3063
  am__quote=
3064
  _am_result=GNU
3065
  ;;
3066
esac
3067
# Now try BSD make style include.
3068
if test "$am__include" = "#"; then
3069
   echo '.include "confinc"' > confmf
3070
   case `$am_make -s -f confmf 2> /dev/null` in #(
3071
   *the\ am__doit\ target*)
3072
     am__include=.include
3073
     am__quote="\""
3074
     _am_result=BSD
3075
     ;;
3076
   esac
3077
fi
3078
3079
3080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3081
$as_echo "$_am_result" >&6; }
3082
rm -f confinc confmf
3083
3084
# Check whether --enable-dependency-tracking was given.
3085
if test "${enable_dependency_tracking+set}" = set; then :
3086
  enableval=$enable_dependency_tracking;
3087
fi
3088
3089
if test "x$enable_dependency_tracking" != xno; then
3090
  am_depcomp="$ac_aux_dir/depcomp"
3091
  AMDEPBACKSLASH='\'
3092
fi
3093
 if test "x$enable_dependency_tracking" != xno; then
3094
  AMDEP_TRUE=
3095
  AMDEP_FALSE='#'
3096
else
3097
  AMDEP_TRUE='#'
3098
  AMDEP_FALSE=
3099
fi
3100
3101
3102
ac_ext=c
3103
ac_cpp='$CPP $CPPFLAGS'
3104
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
if test -n "$ac_tool_prefix"; then
3108
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3109
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111
$as_echo_n "checking for $ac_word... " >&6; }
3112
if test "${ac_cv_prog_CC+set}" = set; then :
3113
  $as_echo_n "(cached) " >&6
3114
else
3115
  if test -n "$CC"; then
3116
  ac_cv_prog_CC="$CC" # Let the user override the test.
3117
else
3118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119
for as_dir in $PATH
3120
do
3121
  IFS=$as_save_IFS
3122
  test -z "$as_dir" && as_dir=.
3123
    for ac_exec_ext in '' $ac_executable_extensions; do
3124
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3126
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127
    break 2
3128
  fi
3129
done
3130
  done
3131
IFS=$as_save_IFS
3132
3133
fi
3134
fi
3135
CC=$ac_cv_prog_CC
3136
if test -n "$CC"; then
3137
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138
$as_echo "$CC" >&6; }
3139
else
3140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141
$as_echo "no" >&6; }
3142
fi
3143
3144
3145
fi
3146
if test -z "$ac_cv_prog_CC"; then
3147
  ac_ct_CC=$CC
3148
  # Extract the first word of "gcc", so it can be a program name with args.
3149
set dummy gcc; ac_word=$2
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151
$as_echo_n "checking for $ac_word... " >&6; }
3152
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153
  $as_echo_n "(cached) " >&6
3154
else
3155
  if test -n "$ac_ct_CC"; then
3156
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157
else
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159
for as_dir in $PATH
3160
do
3161
  IFS=$as_save_IFS
3162
  test -z "$as_dir" && as_dir=.
3163
    for ac_exec_ext in '' $ac_executable_extensions; do
3164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165
    ac_cv_prog_ac_ct_CC="gcc"
3166
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167
    break 2
3168
  fi
3169
done
3170
  done
3171
IFS=$as_save_IFS
3172
3173
fi
3174
fi
3175
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176
if test -n "$ac_ct_CC"; then
3177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178
$as_echo "$ac_ct_CC" >&6; }
3179
else
3180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181
$as_echo "no" >&6; }
3182
fi
3183
3184
  if test "x$ac_ct_CC" = x; then
3185
    CC=""
5 by edam
- updated README
3186
  else
6 by edam
- fixed .am files so the library gets built!
3187
    case $cross_compiling:$ac_tool_warned in
3188
yes:)
3189
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191
ac_tool_warned=yes ;;
3192
esac
3193
    CC=$ac_ct_CC
3194
  fi
3195
else
3196
  CC="$ac_cv_prog_CC"
3197
fi
3198
3199
if test -z "$CC"; then
3200
          if test -n "$ac_tool_prefix"; then
3201
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3202
set dummy ${ac_tool_prefix}cc; ac_word=$2
3203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204
$as_echo_n "checking for $ac_word... " >&6; }
3205
if test "${ac_cv_prog_CC+set}" = set; then :
3206
  $as_echo_n "(cached) " >&6
3207
else
3208
  if test -n "$CC"; then
3209
  ac_cv_prog_CC="$CC" # Let the user override the test.
3210
else
3211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212
for as_dir in $PATH
3213
do
3214
  IFS=$as_save_IFS
3215
  test -z "$as_dir" && as_dir=.
3216
    for ac_exec_ext in '' $ac_executable_extensions; do
3217
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3219
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220
    break 2
3221
  fi
3222
done
3223
  done
3224
IFS=$as_save_IFS
3225
3226
fi
3227
fi
3228
CC=$ac_cv_prog_CC
3229
if test -n "$CC"; then
3230
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231
$as_echo "$CC" >&6; }
3232
else
3233
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234
$as_echo "no" >&6; }
3235
fi
3236
3237
3238
  fi
3239
fi
3240
if test -z "$CC"; then
3241
  # Extract the first word of "cc", so it can be a program name with args.
3242
set dummy cc; ac_word=$2
3243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244
$as_echo_n "checking for $ac_word... " >&6; }
3245
if test "${ac_cv_prog_CC+set}" = set; then :
3246
  $as_echo_n "(cached) " >&6
3247
else
3248
  if test -n "$CC"; then
3249
  ac_cv_prog_CC="$CC" # Let the user override the test.
3250
else
3251
  ac_prog_rejected=no
3252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253
for as_dir in $PATH
3254
do
3255
  IFS=$as_save_IFS
3256
  test -z "$as_dir" && as_dir=.
3257
    for ac_exec_ext in '' $ac_executable_extensions; do
3258
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260
       ac_prog_rejected=yes
3261
       continue
3262
     fi
3263
    ac_cv_prog_CC="cc"
3264
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265
    break 2
3266
  fi
3267
done
3268
  done
3269
IFS=$as_save_IFS
3270
3271
if test $ac_prog_rejected = yes; then
3272
  # We found a bogon in the path, so make sure we never use it.
3273
  set dummy $ac_cv_prog_CC
3274
  shift
3275
  if test $# != 0; then
3276
    # We chose a different compiler from the bogus one.
3277
    # However, it has the same basename, so the bogon will be chosen
3278
    # first if we set CC to just the basename; use the full file name.
3279
    shift
3280
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3281
  fi
3282
fi
3283
fi
3284
fi
3285
CC=$ac_cv_prog_CC
3286
if test -n "$CC"; then
3287
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288
$as_echo "$CC" >&6; }
3289
else
3290
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291
$as_echo "no" >&6; }
3292
fi
3293
3294
3295
fi
3296
if test -z "$CC"; then
3297
  if test -n "$ac_tool_prefix"; then
3298
  for ac_prog in cl.exe
5 by edam
- updated README
3299
  do
3300
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3301
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303
$as_echo_n "checking for $ac_word... " >&6; }
6 by edam
- fixed .am files so the library gets built!
3304
if test "${ac_cv_prog_CC+set}" = set; then :
5 by edam
- updated README
3305
  $as_echo_n "(cached) " >&6
3306
else
6 by edam
- fixed .am files so the library gets built!
3307
  if test -n "$CC"; then
3308
  ac_cv_prog_CC="$CC" # Let the user override the test.
5 by edam
- updated README
3309
else
3310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311
for as_dir in $PATH
3312
do
3313
  IFS=$as_save_IFS
3314
  test -z "$as_dir" && as_dir=.
3315
    for ac_exec_ext in '' $ac_executable_extensions; do
3316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6 by edam
- fixed .am files so the library gets built!
3317
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5 by edam
- updated README
3318
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319
    break 2
3320
  fi
3321
done
3322
  done
3323
IFS=$as_save_IFS
3324
3325
fi
3326
fi
6 by edam
- fixed .am files so the library gets built!
3327
CC=$ac_cv_prog_CC
3328
if test -n "$CC"; then
3329
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330
$as_echo "$CC" >&6; }
5 by edam
- updated README
3331
else
3332
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333
$as_echo "no" >&6; }
3334
fi
3335
3336
6 by edam
- fixed .am files so the library gets built!
3337
    test -n "$CC" && break
5 by edam
- updated README
3338
  done
3339
fi
6 by edam
- fixed .am files so the library gets built!
3340
if test -z "$CC"; then
3341
  ac_ct_CC=$CC
3342
  for ac_prog in cl.exe
5 by edam
- updated README
3343
do
3344
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3345
set dummy $ac_prog; ac_word=$2
3346
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347
$as_echo_n "checking for $ac_word... " >&6; }
6 by edam
- fixed .am files so the library gets built!
3348
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5 by edam
- updated README
3349
  $as_echo_n "(cached) " >&6
3350
else
6 by edam
- fixed .am files so the library gets built!
3351
  if test -n "$ac_ct_CC"; then
3352
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5 by edam
- updated README
3353
else
3354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355
for as_dir in $PATH
3356
do
3357
  IFS=$as_save_IFS
3358
  test -z "$as_dir" && as_dir=.
3359
    for ac_exec_ext in '' $ac_executable_extensions; do
3360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6 by edam
- fixed .am files so the library gets built!
3361
    ac_cv_prog_ac_ct_CC="$ac_prog"
5 by edam
- updated README
3362
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363
    break 2
3364
  fi
3365
done
3366
  done
3367
IFS=$as_save_IFS
3368
3369
fi
3370
fi
6 by edam
- fixed .am files so the library gets built!
3371
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372
if test -n "$ac_ct_CC"; then
3373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374
$as_echo "$ac_ct_CC" >&6; }
5 by edam
- updated README
3375
else
3376
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377
$as_echo "no" >&6; }
3378
fi
3379
3380
6 by edam
- fixed .am files so the library gets built!
3381
  test -n "$ac_ct_CC" && break
5 by edam
- updated README
3382
done
3383
6 by edam
- fixed .am files so the library gets built!
3384
  if test "x$ac_ct_CC" = x; then
3385
    CC=""
5 by edam
- updated README
3386
  else
3387
    case $cross_compiling:$ac_tool_warned in
3388
yes:)
3389
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3391
ac_tool_warned=yes ;;
3392
esac
6 by edam
- fixed .am files so the library gets built!
3393
    CC=$ac_ct_CC
3394
  fi
3395
fi
3396
3397
fi
3398
3399
3400
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402
as_fn_error "no acceptable C compiler found in \$PATH
3403
See \`config.log' for more details." "$LINENO" 5; }
3404
5 by edam
- updated README
3405
# Provide some information about the compiler.
6 by edam
- fixed .am files so the library gets built!
3406
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5 by edam
- updated README
3407
set X $ac_compile
3408
ac_compiler=$2
3409
for ac_option in --version -v -V -qversion; do
3410
  { { ac_try="$ac_compiler $ac_option >&5"
3411
case "(($ac_try" in
3412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413
  *) ac_try_echo=$ac_try;;
3414
esac
3415
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416
$as_echo "$ac_try_echo"; } >&5
3417
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3418
  ac_status=$?
3419
  if test -s conftest.err; then
3420
    sed '10a\
3421
... rest of stderr output deleted ...
3422
         10q' conftest.err >conftest.er1
3423
    cat conftest.er1 >&5
3424
    rm -f conftest.er1 conftest.err
3425
  fi
3426
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427
  test $ac_status = 0; }
3428
done
3429
3430
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431
/* end confdefs.h.  */
3432
#include <stdio.h>
3433
int
3434
main ()
3435
{
3436
FILE *f = fopen ("conftest.out", "w");
3437
 return ferror (f) || fclose (f) != 0;
3438
3439
  ;
3440
  return 0;
3441
}
3442
_ACEOF
3443
ac_clean_files_save=$ac_clean_files
3444
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3445
# Try to create an executable without -o first, disregard a.out.
3446
# It will help us diagnose broken compilers, and finding out an intuition
3447
# of exeext.
6 by edam
- fixed .am files so the library gets built!
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449
$as_echo_n "checking for C compiler default output file name... " >&6; }
5 by edam
- updated README
3450
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3451
3452
# The possible output files:
3453
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454
3455
ac_rmfiles=
3456
for ac_file in $ac_files
3457
do
3458
  case $ac_file in
3459
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3460
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3461
  esac
3462
done
3463
rm -f $ac_rmfiles
3464
3465
if { { ac_try="$ac_link_default"
3466
case "(($ac_try" in
3467
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468
  *) ac_try_echo=$ac_try;;
3469
esac
3470
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471
$as_echo "$ac_try_echo"; } >&5
3472
  (eval "$ac_link_default") 2>&5
3473
  ac_status=$?
3474
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475
  test $ac_status = 0; }; then :
3476
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3477
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3478
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3479
# so that the user can short-circuit this test for compilers unknown to
3480
# Autoconf.
3481
for ac_file in $ac_files ''
3482
do
3483
  test -f "$ac_file" || continue
3484
  case $ac_file in
3485
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3486
	;;
3487
    [ab].out )
3488
	# We found the default executable, but exeext='' is most
3489
	# certainly right.
3490
	break;;
3491
    *.* )
3492
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3493
	then :; else
3494
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495
	fi
3496
	# We set ac_cv_exeext here because the later test for it is not
3497
	# safe: cross compilers may not add the suffix if given an `-o'
3498
	# argument, so we may need to know it at that point already.
3499
	# Even if this section looks crufty: it has the advantage of
3500
	# actually working.
3501
	break;;
3502
    * )
3503
	break;;
3504
  esac
3505
done
3506
test "$ac_cv_exeext" = no && ac_cv_exeext=
3507
3508
else
3509
  ac_file=''
3510
fi
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3512
$as_echo "$ac_file" >&6; }
3513
if test -z "$ac_file"; then :
3514
  $as_echo "$as_me: failed program was:" >&5
3515
sed 's/^/| /' conftest.$ac_ext >&5
3516
3517
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519
{ as_fn_set_status 77
6 by edam
- fixed .am files so the library gets built!
3520
as_fn_error "C compiler cannot create executables
5 by edam
- updated README
3521
See \`config.log' for more details." "$LINENO" 5; }; }
3522
fi
3523
ac_exeext=$ac_cv_exeext
3524
3525
# Check that the compiler produces executables we can run.  If not, either
3526
# the compiler is broken, or we cross compile.
6 by edam
- fixed .am files so the library gets built!
3527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3528
$as_echo_n "checking whether the C compiler works... " >&6; }
5 by edam
- updated README
3529
# If not cross compiling, check that we can run a simple program.
3530
if test "$cross_compiling" != yes; then
3531
  if { ac_try='./$ac_file'
3532
  { { case "(($ac_try" in
3533
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534
  *) ac_try_echo=$ac_try;;
3535
esac
3536
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537
$as_echo "$ac_try_echo"; } >&5
3538
  (eval "$ac_try") 2>&5
3539
  ac_status=$?
3540
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541
  test $ac_status = 0; }; }; then
3542
    cross_compiling=no
3543
  else
3544
    if test "$cross_compiling" = maybe; then
3545
	cross_compiling=yes
3546
    else
3547
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6 by edam
- fixed .am files so the library gets built!
3549
as_fn_error "cannot run C compiled programs.
5 by edam
- updated README
3550
If you meant to cross compile, use \`--host'.
3551
See \`config.log' for more details." "$LINENO" 5; }
3552
    fi
3553
  fi
3554
fi
3555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556
$as_echo "yes" >&6; }
3557
3558
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3559
ac_clean_files=$ac_clean_files_save
3560
# Check that the compiler produces executables we can run.  If not, either
3561
# the compiler is broken, or we cross compile.
3562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3563
$as_echo_n "checking whether we are cross compiling... " >&6; }
3564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565
$as_echo "$cross_compiling" >&6; }
3566
3567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3568
$as_echo_n "checking for suffix of executables... " >&6; }
3569
if { { ac_try="$ac_link"
3570
case "(($ac_try" in
3571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572
  *) ac_try_echo=$ac_try;;
3573
esac
3574
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575
$as_echo "$ac_try_echo"; } >&5
3576
  (eval "$ac_link") 2>&5
3577
  ac_status=$?
3578
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579
  test $ac_status = 0; }; then :
3580
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3581
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3582
# work properly (i.e., refer to `conftest.exe'), while it won't with
3583
# `rm'.
3584
for ac_file in conftest.exe conftest conftest.*; do
3585
  test -f "$ac_file" || continue
3586
  case $ac_file in
3587
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3588
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589
	  break;;
3590
    * ) break;;
3591
  esac
3592
done
3593
else
3594
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596
as_fn_error "cannot compute suffix of executables: cannot compile and link
3597
See \`config.log' for more details." "$LINENO" 5; }
3598
fi
3599
rm -f conftest$ac_cv_exeext
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3601
$as_echo "$ac_cv_exeext" >&6; }
3602
3603
rm -f conftest.$ac_ext
3604
EXEEXT=$ac_cv_exeext
3605
ac_exeext=$EXEEXT
3606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3607
$as_echo_n "checking for suffix of object files... " >&6; }
3608
if test "${ac_cv_objext+set}" = set; then :
3609
  $as_echo_n "(cached) " >&6
3610
else
3611
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612
/* end confdefs.h.  */
3613
3614
int
3615
main ()
3616
{
3617
3618
  ;
3619
  return 0;
3620
}
3621
_ACEOF
3622
rm -f conftest.o conftest.obj
3623
if { { ac_try="$ac_compile"
3624
case "(($ac_try" in
3625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626
  *) ac_try_echo=$ac_try;;
3627
esac
3628
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629
$as_echo "$ac_try_echo"; } >&5
3630
  (eval "$ac_compile") 2>&5
3631
  ac_status=$?
3632
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633
  test $ac_status = 0; }; then :
3634
  for ac_file in conftest.o conftest.obj conftest.*; do
3635
  test -f "$ac_file" || continue;
3636
  case $ac_file in
3637
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3638
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3639
       break;;
3640
  esac
3641
done
3642
else
3643
  $as_echo "$as_me: failed program was:" >&5
3644
sed 's/^/| /' conftest.$ac_ext >&5
3645
3646
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648
as_fn_error "cannot compute suffix of object files: cannot compile
3649
See \`config.log' for more details." "$LINENO" 5; }
3650
fi
3651
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3652
fi
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3654
$as_echo "$ac_cv_objext" >&6; }
3655
OBJEXT=$ac_cv_objext
3656
ac_objext=$OBJEXT
3657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3658
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3659
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3660
  $as_echo_n "(cached) " >&6
3661
else
3662
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663
/* end confdefs.h.  */
3664
3665
int
3666
main ()
3667
{
3668
#ifndef __GNUC__
3669
       choke me
3670
#endif
3671
3672
  ;
3673
  return 0;
3674
}
3675
_ACEOF
3676
if ac_fn_c_try_compile "$LINENO"; then :
3677
  ac_compiler_gnu=yes
3678
else
3679
  ac_compiler_gnu=no
3680
fi
3681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3683
3684
fi
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3686
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3687
if test $ac_compiler_gnu = yes; then
3688
  GCC=yes
3689
else
3690
  GCC=
3691
fi
3692
ac_test_CFLAGS=${CFLAGS+set}
3693
ac_save_CFLAGS=$CFLAGS
3694
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3695
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3696
if test "${ac_cv_prog_cc_g+set}" = set; then :
3697
  $as_echo_n "(cached) " >&6
3698
else
3699
  ac_save_c_werror_flag=$ac_c_werror_flag
3700
   ac_c_werror_flag=yes
3701
   ac_cv_prog_cc_g=no
3702
   CFLAGS="-g"
3703
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704
/* end confdefs.h.  */
3705
3706
int
3707
main ()
3708
{
3709
3710
  ;
3711
  return 0;
3712
}
3713
_ACEOF
3714
if ac_fn_c_try_compile "$LINENO"; then :
3715
  ac_cv_prog_cc_g=yes
3716
else
3717
  CFLAGS=""
3718
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719
/* end confdefs.h.  */
3720
3721
int
3722
main ()
3723
{
3724
3725
  ;
3726
  return 0;
3727
}
3728
_ACEOF
3729
if ac_fn_c_try_compile "$LINENO"; then :
3730
3731
else
3732
  ac_c_werror_flag=$ac_save_c_werror_flag
3733
	 CFLAGS="-g"
3734
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735
/* end confdefs.h.  */
3736
3737
int
3738
main ()
3739
{
3740
3741
  ;
3742
  return 0;
3743
}
3744
_ACEOF
3745
if ac_fn_c_try_compile "$LINENO"; then :
3746
  ac_cv_prog_cc_g=yes
3747
fi
3748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749
fi
3750
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751
fi
3752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753
   ac_c_werror_flag=$ac_save_c_werror_flag
3754
fi
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3756
$as_echo "$ac_cv_prog_cc_g" >&6; }
3757
if test "$ac_test_CFLAGS" = set; then
3758
  CFLAGS=$ac_save_CFLAGS
3759
elif test $ac_cv_prog_cc_g = yes; then
3760
  if test "$GCC" = yes; then
3761
    CFLAGS="-g -O2"
3762
  else
3763
    CFLAGS="-g"
3764
  fi
3765
else
3766
  if test "$GCC" = yes; then
3767
    CFLAGS="-O2"
3768
  else
3769
    CFLAGS=
3770
  fi
3771
fi
3772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3773
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3774
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3775
  $as_echo_n "(cached) " >&6
3776
else
3777
  ac_cv_prog_cc_c89=no
3778
ac_save_CC=$CC
3779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780
/* end confdefs.h.  */
3781
#include <stdarg.h>
3782
#include <stdio.h>
3783
#include <sys/types.h>
3784
#include <sys/stat.h>
3785
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3786
struct buf { int x; };
3787
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3788
static char *e (p, i)
3789
     char **p;
3790
     int i;
3791
{
3792
  return p[i];
3793
}
3794
static char *f (char * (*g) (char **, int), char **p, ...)
3795
{
3796
  char *s;
3797
  va_list v;
3798
  va_start (v,p);
3799
  s = g (p, va_arg (v,int));
3800
  va_end (v);
3801
  return s;
3802
}
3803
3804
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3805
   function prototypes and stuff, but not '\xHH' hex character constants.
3806
   These don't provoke an error unfortunately, instead are silently treated
3807
   as 'x'.  The following induces an error, until -std is added to get
3808
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3809
   array size at least.  It's necessary to write '\x00'==0 to get something
3810
   that's true only with -std.  */
3811
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3812
3813
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3814
   inside strings and character constants.  */
3815
#define FOO(x) 'x'
3816
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3817
3818
int test (int i, double x);
3819
struct s1 {int (*f) (int a);};
3820
struct s2 {int (*f) (double a);};
3821
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3822
int argc;
3823
char **argv;
3824
int
3825
main ()
3826
{
3827
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3828
  ;
3829
  return 0;
3830
}
3831
_ACEOF
3832
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3833
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3834
do
3835
  CC="$ac_save_CC $ac_arg"
3836
  if ac_fn_c_try_compile "$LINENO"; then :
3837
  ac_cv_prog_cc_c89=$ac_arg
3838
fi
3839
rm -f core conftest.err conftest.$ac_objext
3840
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3841
done
3842
rm -f conftest.$ac_ext
3843
CC=$ac_save_CC
3844
3845
fi
3846
# AC_CACHE_VAL
3847
case "x$ac_cv_prog_cc_c89" in
3848
  x)
3849
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3850
$as_echo "none needed" >&6; } ;;
3851
  xno)
3852
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3853
$as_echo "unsupported" >&6; } ;;
3854
  *)
3855
    CC="$CC $ac_cv_prog_cc_c89"
3856
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3857
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858
esac
3859
if test "x$ac_cv_prog_cc_c89" != xno; then :
3860
3861
fi
3862
3863
ac_ext=c
3864
ac_cpp='$CPP $CPPFLAGS'
3865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869
depcc="$CC"   am_compiler_list=
3870
3871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3872
$as_echo_n "checking dependency style of $depcc... " >&6; }
3873
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3874
  $as_echo_n "(cached) " >&6
3875
else
3876
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3877
  # We make a subdir and do the tests there.  Otherwise we can end up
3878
  # making bogus files that we don't know about and never remove.  For
3879
  # instance it was reported that on HP-UX the gcc test will end up
3880
  # making a dummy file named `D' -- because `-MD' means `put the output
3881
  # in D'.
3882
  mkdir conftest.dir
3883
  # Copy depcomp to subdir because otherwise we won't find it if we're
3884
  # using a relative directory.
3885
  cp "$am_depcomp" conftest.dir
3886
  cd conftest.dir
3887
  # We will build objects and dependencies in a subdirectory because
3888
  # it helps to detect inapplicable dependency modes.  For instance
3889
  # both Tru64's cc and ICC support -MD to output dependencies as a
3890
  # side effect of compilation, but ICC will put the dependencies in
3891
  # the current directory while Tru64 will put them in the object
3892
  # directory.
3893
  mkdir sub
3894
3895
  am_cv_CC_dependencies_compiler_type=none
3896
  if test "$am_compiler_list" = ""; then
3897
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3898
  fi
3899
  am__universal=false
3900
  case " $depcc " in #(
3901
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3902
     esac
3903
3904
  for depmode in $am_compiler_list; do
3905
    # Setup a source with many dependencies, because some compilers
3906
    # like to wrap large dependency lists on column 80 (with \), and
3907
    # we should not choose a depcomp mode which is confused by this.
3908
    #
3909
    # We need to recreate these files for each test, as the compiler may
3910
    # overwrite some of them when testing with obscure command lines.
3911
    # This happens at least with the AIX C compiler.
3912
    : > sub/conftest.c
3913
    for i in 1 2 3 4 5 6; do
3914
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3915
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3916
      # Solaris 8's {/usr,}/bin/sh.
3917
      touch sub/conftst$i.h
3918
    done
3919
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3920
3921
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3922
    # mode.  It turns out that the SunPro C++ compiler does not properly
3923
    # handle `-M -o', and we need to detect this.  Also, some Intel
3924
    # versions had trouble with output in subdirs
3925
    am__obj=sub/conftest.${OBJEXT-o}
3926
    am__minus_obj="-o $am__obj"
3927
    case $depmode in
3928
    gcc)
3929
      # This depmode causes a compiler race in universal mode.
3930
      test "$am__universal" = false || continue
3931
      ;;
3932
    nosideeffect)
3933
      # after this tag, mechanisms are not by side-effect, so they'll
3934
      # only be used when explicitly requested
3935
      if test "x$enable_dependency_tracking" = xyes; then
3936
	continue
3937
      else
3938
	break
3939
      fi
3940
      ;;
3941
    msvisualcpp | msvcmsys)
3942
      # This compiler won't grok `-c -o', but also, the minuso test has
3943
      # not run yet.  These depmodes are late enough in the game, and
3944
      # so weak that their functioning should not be impacted.
3945
      am__obj=conftest.${OBJEXT-o}
3946
      am__minus_obj=
3947
      ;;
3948
    none) break ;;
3949
    esac
3950
    if depmode=$depmode \
3951
       source=sub/conftest.c object=$am__obj \
3952
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3953
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3954
         >/dev/null 2>conftest.err &&
3955
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3956
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3957
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3958
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3959
      # icc doesn't choke on unknown options, it will just issue warnings
3960
      # or remarks (even with -Werror).  So we grep stderr for any message
3961
      # that says an option was ignored or not supported.
3962
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3963
      #   icc: Command line warning: ignoring option '-M'; no argument required
3964
      # The diagnosis changed in icc 8.0:
3965
      #   icc: Command line remark: option '-MP' not supported
3966
      if (grep 'ignoring option' conftest.err ||
3967
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3968
        am_cv_CC_dependencies_compiler_type=$depmode
3969
        break
3970
      fi
3971
    fi
3972
  done
3973
3974
  cd ..
3975
  rm -rf conftest.dir
3976
else
3977
  am_cv_CC_dependencies_compiler_type=none
3978
fi
3979
3980
fi
3981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3982
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3983
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3984
3985
 if
3986
  test "x$enable_dependency_tracking" != xno \
3987
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3988
  am__fastdepCC_TRUE=
3989
  am__fastdepCC_FALSE='#'
3990
else
3991
  am__fastdepCC_TRUE='#'
3992
  am__fastdepCC_FALSE=
3993
fi
3994
3995
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3997
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3998
if test "${ac_cv_path_SED+set}" = set; then :
3999
  $as_echo_n "(cached) " >&6
4000
else
4001
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4002
     for ac_i in 1 2 3 4 5 6 7; do
4003
       ac_script="$ac_script$as_nl$ac_script"
4004
     done
4005
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4006
     { ac_script=; unset ac_script;}
4007
     if test -z "$SED"; then
4008
  ac_path_SED_found=false
4009
  # Loop through the user's path and test for each of PROGNAME-LIST
4010
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011
for as_dir in $PATH
4012
do
4013
  IFS=$as_save_IFS
4014
  test -z "$as_dir" && as_dir=.
4015
    for ac_prog in sed gsed; do
4016
    for ac_exec_ext in '' $ac_executable_extensions; do
4017
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4018
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4019
# Check for GNU ac_path_SED and select it if it is found.
4020
  # Check for GNU $ac_path_SED
4021
case `"$ac_path_SED" --version 2>&1` in
4022
*GNU*)
4023
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4024
*)
4025
  ac_count=0
4026
  $as_echo_n 0123456789 >"conftest.in"
4027
  while :
4028
  do
4029
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4030
    mv "conftest.tmp" "conftest.in"
4031
    cp "conftest.in" "conftest.nl"
4032
    $as_echo '' >> "conftest.nl"
4033
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4036
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4037
      # Best one so far, save it but keep looking for a better one
4038
      ac_cv_path_SED="$ac_path_SED"
4039
      ac_path_SED_max=$ac_count
4040
    fi
4041
    # 10*(2^10) chars as input seems more than enough
4042
    test $ac_count -gt 10 && break
4043
  done
4044
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045
esac
4046
4047
      $ac_path_SED_found && break 3
4048
    done
4049
  done
4050
  done
4051
IFS=$as_save_IFS
4052
  if test -z "$ac_cv_path_SED"; then
4053
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4054
  fi
4055
else
4056
  ac_cv_path_SED=$SED
4057
fi
4058
4059
fi
4060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4061
$as_echo "$ac_cv_path_SED" >&6; }
4062
 SED="$ac_cv_path_SED"
4063
  rm -f conftest.sed
4064
4065
test -z "$SED" && SED=sed
4066
Xsed="$SED -e 1s/^X//"
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4079
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4080
if test "${ac_cv_path_GREP+set}" = set; then :
4081
  $as_echo_n "(cached) " >&6
4082
else
4083
  if test -z "$GREP"; then
4084
  ac_path_GREP_found=false
4085
  # Loop through the user's path and test for each of PROGNAME-LIST
4086
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4088
do
4089
  IFS=$as_save_IFS
4090
  test -z "$as_dir" && as_dir=.
4091
    for ac_prog in grep ggrep; do
4092
    for ac_exec_ext in '' $ac_executable_extensions; do
4093
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4094
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4095
# Check for GNU ac_path_GREP and select it if it is found.
4096
  # Check for GNU $ac_path_GREP
4097
case `"$ac_path_GREP" --version 2>&1` in
4098
*GNU*)
4099
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4100
*)
4101
  ac_count=0
4102
  $as_echo_n 0123456789 >"conftest.in"
4103
  while :
4104
  do
4105
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4106
    mv "conftest.tmp" "conftest.in"
4107
    cp "conftest.in" "conftest.nl"
4108
    $as_echo 'GREP' >> "conftest.nl"
4109
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4110
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4111
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4112
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4113
      # Best one so far, save it but keep looking for a better one
4114
      ac_cv_path_GREP="$ac_path_GREP"
4115
      ac_path_GREP_max=$ac_count
4116
    fi
4117
    # 10*(2^10) chars as input seems more than enough
4118
    test $ac_count -gt 10 && break
4119
  done
4120
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4121
esac
4122
4123
      $ac_path_GREP_found && break 3
4124
    done
4125
  done
4126
  done
4127
IFS=$as_save_IFS
4128
  if test -z "$ac_cv_path_GREP"; then
4129
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4130
  fi
4131
else
4132
  ac_cv_path_GREP=$GREP
4133
fi
4134
4135
fi
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4137
$as_echo "$ac_cv_path_GREP" >&6; }
4138
 GREP="$ac_cv_path_GREP"
4139
4140
4141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4142
$as_echo_n "checking for egrep... " >&6; }
4143
if test "${ac_cv_path_EGREP+set}" = set; then :
4144
  $as_echo_n "(cached) " >&6
4145
else
4146
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4147
   then ac_cv_path_EGREP="$GREP -E"
4148
   else
4149
     if test -z "$EGREP"; then
4150
  ac_path_EGREP_found=false
4151
  # Loop through the user's path and test for each of PROGNAME-LIST
4152
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4154
do
4155
  IFS=$as_save_IFS
4156
  test -z "$as_dir" && as_dir=.
4157
    for ac_prog in egrep; do
4158
    for ac_exec_ext in '' $ac_executable_extensions; do
4159
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4160
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4161
# Check for GNU ac_path_EGREP and select it if it is found.
4162
  # Check for GNU $ac_path_EGREP
4163
case `"$ac_path_EGREP" --version 2>&1` in
4164
*GNU*)
4165
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4166
*)
4167
  ac_count=0
4168
  $as_echo_n 0123456789 >"conftest.in"
4169
  while :
4170
  do
4171
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4172
    mv "conftest.tmp" "conftest.in"
4173
    cp "conftest.in" "conftest.nl"
4174
    $as_echo 'EGREP' >> "conftest.nl"
4175
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4178
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4179
      # Best one so far, save it but keep looking for a better one
4180
      ac_cv_path_EGREP="$ac_path_EGREP"
4181
      ac_path_EGREP_max=$ac_count
4182
    fi
4183
    # 10*(2^10) chars as input seems more than enough
4184
    test $ac_count -gt 10 && break
4185
  done
4186
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4187
esac
4188
4189
      $ac_path_EGREP_found && break 3
4190
    done
4191
  done
4192
  done
4193
IFS=$as_save_IFS
4194
  if test -z "$ac_cv_path_EGREP"; then
4195
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4196
  fi
4197
else
4198
  ac_cv_path_EGREP=$EGREP
4199
fi
4200
4201
   fi
4202
fi
4203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4204
$as_echo "$ac_cv_path_EGREP" >&6; }
4205
 EGREP="$ac_cv_path_EGREP"
4206
4207
4208
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4209
$as_echo_n "checking for fgrep... " >&6; }
4210
if test "${ac_cv_path_FGREP+set}" = set; then :
4211
  $as_echo_n "(cached) " >&6
4212
else
4213
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4214
   then ac_cv_path_FGREP="$GREP -F"
4215
   else
4216
     if test -z "$FGREP"; then
4217
  ac_path_FGREP_found=false
4218
  # Loop through the user's path and test for each of PROGNAME-LIST
4219
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4221
do
4222
  IFS=$as_save_IFS
4223
  test -z "$as_dir" && as_dir=.
4224
    for ac_prog in fgrep; do
4225
    for ac_exec_ext in '' $ac_executable_extensions; do
4226
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4227
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4228
# Check for GNU ac_path_FGREP and select it if it is found.
4229
  # Check for GNU $ac_path_FGREP
4230
case `"$ac_path_FGREP" --version 2>&1` in
4231
*GNU*)
4232
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4233
*)
4234
  ac_count=0
4235
  $as_echo_n 0123456789 >"conftest.in"
4236
  while :
4237
  do
4238
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4239
    mv "conftest.tmp" "conftest.in"
4240
    cp "conftest.in" "conftest.nl"
4241
    $as_echo 'FGREP' >> "conftest.nl"
4242
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4243
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4244
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4245
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4246
      # Best one so far, save it but keep looking for a better one
4247
      ac_cv_path_FGREP="$ac_path_FGREP"
4248
      ac_path_FGREP_max=$ac_count
4249
    fi
4250
    # 10*(2^10) chars as input seems more than enough
4251
    test $ac_count -gt 10 && break
4252
  done
4253
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4254
esac
4255
4256
      $ac_path_FGREP_found && break 3
4257
    done
4258
  done
4259
  done
4260
IFS=$as_save_IFS
4261
  if test -z "$ac_cv_path_FGREP"; then
4262
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4263
  fi
4264
else
4265
  ac_cv_path_FGREP=$FGREP
4266
fi
4267
4268
   fi
4269
fi
4270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4271
$as_echo "$ac_cv_path_FGREP" >&6; }
4272
 FGREP="$ac_cv_path_FGREP"
4273
4274
4275
test -z "$GREP" && GREP=grep
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
# Check whether --with-gnu-ld was given.
4296
if test "${with_gnu_ld+set}" = set; then :
4297
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4298
else
4299
  with_gnu_ld=no
4300
fi
4301
4302
ac_prog=ld
4303
if test "$GCC" = yes; then
4304
  # Check if gcc -print-prog-name=ld gives a path.
4305
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4306
$as_echo_n "checking for ld used by $CC... " >&6; }
4307
  case $host in
4308
  *-*-mingw*)
4309
    # gcc leaves a trailing carriage return which upsets mingw
4310
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4311
  *)
4312
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4313
  esac
4314
  case $ac_prog in
4315
    # Accept absolute paths.
4316
    [\\/]* | ?:[\\/]*)
4317
      re_direlt='/[^/][^/]*/\.\./'
4318
      # Canonicalize the pathname of ld
4319
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4320
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4321
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4322
      done
4323
      test -z "$LD" && LD="$ac_prog"
4324
      ;;
4325
  "")
4326
    # If it fails, then pretend we aren't using GCC.
4327
    ac_prog=ld
4328
    ;;
4329
  *)
4330
    # If it is relative, then search for the first ld in PATH.
4331
    with_gnu_ld=unknown
4332
    ;;
4333
  esac
4334
elif test "$with_gnu_ld" = yes; then
4335
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4336
$as_echo_n "checking for GNU ld... " >&6; }
4337
else
4338
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4339
$as_echo_n "checking for non-GNU ld... " >&6; }
4340
fi
4341
if test "${lt_cv_path_LD+set}" = set; then :
4342
  $as_echo_n "(cached) " >&6
4343
else
4344
  if test -z "$LD"; then
4345
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4346
  for ac_dir in $PATH; do
4347
    IFS="$lt_save_ifs"
4348
    test -z "$ac_dir" && ac_dir=.
4349
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4350
      lt_cv_path_LD="$ac_dir/$ac_prog"
4351
      # Check to see if the program is GNU ld.  I'd rather use --version,
4352
      # but apparently some variants of GNU ld only accept -v.
4353
      # Break only if it was the GNU/non-GNU ld that we prefer.
4354
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4355
      *GNU* | *'with BFD'*)
4356
	test "$with_gnu_ld" != no && break
4357
	;;
4358
      *)
4359
	test "$with_gnu_ld" != yes && break
4360
	;;
4361
      esac
4362
    fi
4363
  done
4364
  IFS="$lt_save_ifs"
4365
else
4366
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4367
fi
4368
fi
4369
4370
LD="$lt_cv_path_LD"
4371
if test -n "$LD"; then
4372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4373
$as_echo "$LD" >&6; }
4374
else
4375
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376
$as_echo "no" >&6; }
4377
fi
4378
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4380
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4381
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4382
  $as_echo_n "(cached) " >&6
4383
else
4384
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4385
case `$LD -v 2>&1 </dev/null` in
4386
*GNU* | *'with BFD'*)
4387
  lt_cv_prog_gnu_ld=yes
4388
  ;;
4389
*)
4390
  lt_cv_prog_gnu_ld=no
4391
  ;;
4392
esac
4393
fi
4394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4395
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4396
with_gnu_ld=$lt_cv_prog_gnu_ld
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4407
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4408
if test "${lt_cv_path_NM+set}" = set; then :
4409
  $as_echo_n "(cached) " >&6
4410
else
4411
  if test -n "$NM"; then
4412
  # Let the user override the test.
4413
  lt_cv_path_NM="$NM"
4414
else
4415
  lt_nm_to_check="${ac_tool_prefix}nm"
4416
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4417
    lt_nm_to_check="$lt_nm_to_check nm"
4418
  fi
4419
  for lt_tmp_nm in $lt_nm_to_check; do
4420
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4422
      IFS="$lt_save_ifs"
4423
      test -z "$ac_dir" && ac_dir=.
4424
      tmp_nm="$ac_dir/$lt_tmp_nm"
4425
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4426
	# Check to see if the nm accepts a BSD-compat flag.
4427
	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4428
	#   nm: unknown option "B" ignored
4429
	# Tru64's nm complains that /dev/null is an invalid object file
4430
	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4431
	*/dev/null* | *'Invalid file or object type'*)
4432
	  lt_cv_path_NM="$tmp_nm -B"
4433
	  break
4434
	  ;;
4435
	*)
4436
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4437
	  */dev/null*)
4438
	    lt_cv_path_NM="$tmp_nm -p"
4439
	    break
4440
	    ;;
4441
	  *)
4442
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4443
	    continue # so that we can try to find one that supports BSD flags
4444
	    ;;
4445
	  esac
4446
	  ;;
4447
	esac
4448
      fi
4449
    done
4450
    IFS="$lt_save_ifs"
4451
  done
4452
  : ${lt_cv_path_NM=no}
4453
fi
4454
fi
4455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4456
$as_echo "$lt_cv_path_NM" >&6; }
4457
if test "$lt_cv_path_NM" != "no"; then
4458
  NM="$lt_cv_path_NM"
4459
else
4460
  # Didn't find any BSD compatible name lister, look for dumpbin.
4461
  if test -n "$ac_tool_prefix"; then
4462
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4463
  do
4464
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4465
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4466
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467
$as_echo_n "checking for $ac_word... " >&6; }
4468
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4469
  $as_echo_n "(cached) " >&6
4470
else
4471
  if test -n "$DUMPBIN"; then
4472
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4473
else
4474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475
for as_dir in $PATH
4476
do
4477
  IFS=$as_save_IFS
4478
  test -z "$as_dir" && as_dir=.
4479
    for ac_exec_ext in '' $ac_executable_extensions; do
4480
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483
    break 2
4484
  fi
4485
done
4486
  done
4487
IFS=$as_save_IFS
4488
4489
fi
4490
fi
4491
DUMPBIN=$ac_cv_prog_DUMPBIN
4492
if test -n "$DUMPBIN"; then
4493
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4494
$as_echo "$DUMPBIN" >&6; }
4495
else
4496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497
$as_echo "no" >&6; }
4498
fi
4499
4500
4501
    test -n "$DUMPBIN" && break
4502
  done
4503
fi
4504
if test -z "$DUMPBIN"; then
4505
  ac_ct_DUMPBIN=$DUMPBIN
4506
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4507
do
4508
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4509
set dummy $ac_prog; ac_word=$2
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511
$as_echo_n "checking for $ac_word... " >&6; }
4512
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4513
  $as_echo_n "(cached) " >&6
4514
else
4515
  if test -n "$ac_ct_DUMPBIN"; then
4516
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4517
else
4518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519
for as_dir in $PATH
4520
do
4521
  IFS=$as_save_IFS
4522
  test -z "$as_dir" && as_dir=.
4523
    for ac_exec_ext in '' $ac_executable_extensions; do
4524
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4526
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527
    break 2
4528
  fi
4529
done
4530
  done
4531
IFS=$as_save_IFS
4532
4533
fi
4534
fi
4535
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4536
if test -n "$ac_ct_DUMPBIN"; then
4537
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4538
$as_echo "$ac_ct_DUMPBIN" >&6; }
4539
else
4540
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541
$as_echo "no" >&6; }
4542
fi
4543
4544
4545
  test -n "$ac_ct_DUMPBIN" && break
4546
done
4547
4548
  if test "x$ac_ct_DUMPBIN" = x; then
4549
    DUMPBIN=":"
4550
  else
4551
    case $cross_compiling:$ac_tool_warned in
4552
yes:)
4553
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4554
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4555
ac_tool_warned=yes ;;
4556
esac
4557
    DUMPBIN=$ac_ct_DUMPBIN
4558
  fi
4559
fi
4560
4561
4562
  if test "$DUMPBIN" != ":"; then
4563
    NM="$DUMPBIN"
4564
  fi
4565
fi
4566
test -z "$NM" && NM=nm
4567
4568
4569
4570
4571
4572
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4574
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4575
if test "${lt_cv_nm_interface+set}" = set; then :
4576
  $as_echo_n "(cached) " >&6
4577
else
4578
  lt_cv_nm_interface="BSD nm"
4579
  echo "int some_variable = 0;" > conftest.$ac_ext
7 by edam
- removed "OK" from test-main when test is successful
4580
  (eval echo "\"\$as_me:4580: $ac_compile\"" >&5)
5 by edam
- updated README
4581
  (eval "$ac_compile" 2>conftest.err)
4582
  cat conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
4583
  (eval echo "\"\$as_me:4583: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5 by edam
- updated README
4584
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4585
  cat conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
4586
  (eval echo "\"\$as_me:4586: output\"" >&5)
5 by edam
- updated README
4587
  cat conftest.out >&5
4588
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4589
    lt_cv_nm_interface="MS dumpbin"
4590
  fi
4591
  rm -f conftest*
4592
fi
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4594
$as_echo "$lt_cv_nm_interface" >&6; }
4595
4596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4597
$as_echo_n "checking whether ln -s works... " >&6; }
4598
LN_S=$as_ln_s
4599
if test "$LN_S" = "ln -s"; then
4600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601
$as_echo "yes" >&6; }
4602
else
4603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4604
$as_echo "no, using $LN_S" >&6; }
4605
fi
4606
4607
# find the maximum length of command line arguments
4608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4609
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4610
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4611
  $as_echo_n "(cached) " >&6
4612
else
4613
    i=0
4614
  teststring="ABCD"
4615
4616
  case $build_os in
4617
  msdosdjgpp*)
4618
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4619
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4620
    # during glob expansion).  Even if it were fixed, the result of this
4621
    # check would be larger than it should be.
4622
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4623
    ;;
4624
4625
  gnu*)
4626
    # Under GNU Hurd, this test is not required because there is
4627
    # no limit to the length of command line arguments.
4628
    # Libtool will interpret -1 as no limit whatsoever
4629
    lt_cv_sys_max_cmd_len=-1;
4630
    ;;
4631
4632
  cygwin* | mingw* | cegcc*)
4633
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4634
    # about 5 minutes as the teststring grows exponentially.
4635
    # Worse, since 9x/ME are not pre-emptively multitasking,
4636
    # you end up with a "frozen" computer, even though with patience
4637
    # the test eventually succeeds (with a max line length of 256k).
4638
    # Instead, let's just punt: use the minimum linelength reported by
4639
    # all of the supported platforms: 8192 (on NT/2K/XP).
4640
    lt_cv_sys_max_cmd_len=8192;
4641
    ;;
4642
4643
  amigaos*)
4644
    # On AmigaOS with pdksh, this test takes hours, literally.
4645
    # So we just punt and use a minimum line length of 8192.
4646
    lt_cv_sys_max_cmd_len=8192;
4647
    ;;
4648
4649
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4650
    # This has been around since 386BSD, at least.  Likely further.
4651
    if test -x /sbin/sysctl; then
4652
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4653
    elif test -x /usr/sbin/sysctl; then
4654
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4655
    else
4656
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4657
    fi
4658
    # And add a safety zone
4659
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4660
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4661
    ;;
4662
4663
  interix*)
4664
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4665
    lt_cv_sys_max_cmd_len=196608
4666
    ;;
4667
4668
  osf*)
4669
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4670
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4671
    # nice to cause kernel panics so lets avoid the loop below.
4672
    # First set a reasonable default.
4673
    lt_cv_sys_max_cmd_len=16384
4674
    #
4675
    if test -x /sbin/sysconfig; then
4676
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4677
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4678
      esac
4679
    fi
4680
    ;;
4681
  sco3.2v5*)
4682
    lt_cv_sys_max_cmd_len=102400
4683
    ;;
4684
  sysv5* | sco5v6* | sysv4.2uw2*)
4685
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4686
    if test -n "$kargmax"; then
4687
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4688
    else
4689
      lt_cv_sys_max_cmd_len=32768
4690
    fi
4691
    ;;
4692
  *)
4693
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4694
    if test -n "$lt_cv_sys_max_cmd_len"; then
4695
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4696
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4697
    else
4698
      # Make teststring a little bigger before we do anything with it.
4699
      # a 1K string should be a reasonable start.
4700
      for i in 1 2 3 4 5 6 7 8 ; do
4701
        teststring=$teststring$teststring
4702
      done
4703
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4704
      # If test is not a shell built-in, we'll probably end up computing a
4705
      # maximum length that is only half of the actual maximum length, but
4706
      # we can't tell.
4707
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4708
	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4709
	      test $i != 17 # 1/2 MB should be enough
4710
      do
4711
        i=`expr $i + 1`
4712
        teststring=$teststring$teststring
4713
      done
4714
      # Only check the string length outside the loop.
4715
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4716
      teststring=
4717
      # Add a significant safety factor because C++ compilers can tack on
4718
      # massive amounts of additional arguments before passing them to the
4719
      # linker.  It appears as though 1/2 is a usable value.
4720
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4721
    fi
4722
    ;;
4723
  esac
4724
4725
fi
4726
4727
if test -n $lt_cv_sys_max_cmd_len ; then
4728
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4729
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4730
else
4731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4732
$as_echo "none" >&6; }
4733
fi
4734
max_cmd_len=$lt_cv_sys_max_cmd_len
4735
4736
4737
4738
4739
4740
4741
: ${CP="cp -f"}
4742
: ${MV="mv -f"}
4743
: ${RM="rm -f"}
4744
4745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4746
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4747
# Try some XSI features
4748
xsi_shell=no
4749
( _lt_dummy="a/b/c"
4750
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4751
      = c,a/b,, \
4752
    && eval 'test $(( 1 + 1 )) -eq 2 \
4753
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4754
  && xsi_shell=yes
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4756
$as_echo "$xsi_shell" >&6; }
4757
4758
4759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4760
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4761
lt_shell_append=no
4762
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4763
    >/dev/null 2>&1 \
4764
  && lt_shell_append=yes
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4766
$as_echo "$lt_shell_append" >&6; }
4767
4768
4769
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4770
  lt_unset=unset
4771
else
4772
  lt_unset=false
4773
fi
4774
4775
4776
4777
4778
4779
# test EBCDIC or ASCII
4780
case `echo X|tr X '\101'` in
4781
 A) # ASCII based system
4782
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4783
  lt_SP2NL='tr \040 \012'
4784
  lt_NL2SP='tr \015\012 \040\040'
4785
  ;;
4786
 *) # EBCDIC based system
4787
  lt_SP2NL='tr \100 \n'
4788
  lt_NL2SP='tr \r\n \100\100'
4789
  ;;
4790
esac
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4801
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4802
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4803
  $as_echo_n "(cached) " >&6
4804
else
4805
  lt_cv_ld_reload_flag='-r'
4806
fi
4807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4808
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4809
reload_flag=$lt_cv_ld_reload_flag
4810
case $reload_flag in
4811
"" | " "*) ;;
4812
*) reload_flag=" $reload_flag" ;;
4813
esac
4814
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4815
case $host_os in
4816
  darwin*)
4817
    if test "$GCC" = yes; then
4818
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4819
    else
4820
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4821
    fi
4822
    ;;
4823
esac
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
if test -n "$ac_tool_prefix"; then
4834
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4835
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837
$as_echo_n "checking for $ac_word... " >&6; }
4838
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4839
  $as_echo_n "(cached) " >&6
4840
else
4841
  if test -n "$OBJDUMP"; then
4842
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4843
else
4844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845
for as_dir in $PATH
4846
do
4847
  IFS=$as_save_IFS
4848
  test -z "$as_dir" && as_dir=.
4849
    for ac_exec_ext in '' $ac_executable_extensions; do
4850
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4852
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853
    break 2
4854
  fi
4855
done
4856
  done
4857
IFS=$as_save_IFS
4858
4859
fi
4860
fi
4861
OBJDUMP=$ac_cv_prog_OBJDUMP
4862
if test -n "$OBJDUMP"; then
4863
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4864
$as_echo "$OBJDUMP" >&6; }
4865
else
4866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867
$as_echo "no" >&6; }
4868
fi
4869
4870
4871
fi
4872
if test -z "$ac_cv_prog_OBJDUMP"; then
4873
  ac_ct_OBJDUMP=$OBJDUMP
4874
  # Extract the first word of "objdump", so it can be a program name with args.
4875
set dummy objdump; ac_word=$2
4876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877
$as_echo_n "checking for $ac_word... " >&6; }
4878
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4879
  $as_echo_n "(cached) " >&6
4880
else
4881
  if test -n "$ac_ct_OBJDUMP"; then
4882
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4883
else
4884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885
for as_dir in $PATH
4886
do
4887
  IFS=$as_save_IFS
4888
  test -z "$as_dir" && as_dir=.
4889
    for ac_exec_ext in '' $ac_executable_extensions; do
4890
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4892
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893
    break 2
4894
  fi
4895
done
4896
  done
4897
IFS=$as_save_IFS
4898
4899
fi
4900
fi
4901
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4902
if test -n "$ac_ct_OBJDUMP"; then
4903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4904
$as_echo "$ac_ct_OBJDUMP" >&6; }
4905
else
4906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907
$as_echo "no" >&6; }
4908
fi
4909
4910
  if test "x$ac_ct_OBJDUMP" = x; then
4911
    OBJDUMP="false"
4912
  else
4913
    case $cross_compiling:$ac_tool_warned in
4914
yes:)
4915
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4916
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4917
ac_tool_warned=yes ;;
4918
esac
4919
    OBJDUMP=$ac_ct_OBJDUMP
4920
  fi
4921
else
4922
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4923
fi
4924
4925
test -z "$OBJDUMP" && OBJDUMP=objdump
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4936
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4937
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4938
  $as_echo_n "(cached) " >&6
4939
else
4940
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4941
lt_cv_file_magic_test_file=
4942
lt_cv_deplibs_check_method='unknown'
4943
# Need to set the preceding variable on all platforms that support
4944
# interlibrary dependencies.
4945
# 'none' -- dependencies not supported.
4946
# `unknown' -- same as none, but documents that we really don't know.
4947
# 'pass_all' -- all dependencies passed with no checks.
4948
# 'test_compile' -- check by making test program.
4949
# 'file_magic [[regex]]' -- check by looking for files in library path
4950
# which responds to the $file_magic_cmd with a given extended regex.
4951
# If you have `file' or equivalent on your system and you're not sure
4952
# whether `pass_all' will *always* work, you probably want this one.
4953
4954
case $host_os in
4955
aix[4-9]*)
4956
  lt_cv_deplibs_check_method=pass_all
4957
  ;;
4958
4959
beos*)
4960
  lt_cv_deplibs_check_method=pass_all
4961
  ;;
4962
4963
bsdi[45]*)
4964
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4965
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4966
  lt_cv_file_magic_test_file=/shlib/libc.so
4967
  ;;
4968
4969
cygwin*)
4970
  # func_win32_libid is a shell function defined in ltmain.sh
4971
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4972
  lt_cv_file_magic_cmd='func_win32_libid'
4973
  ;;
4974
4975
mingw* | pw32*)
4976
  # Base MSYS/MinGW do not provide the 'file' command needed by
4977
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4978
  # unless we find 'file', for example because we are cross-compiling.
4979
  if ( file / ) >/dev/null 2>&1; then
4980
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4981
    lt_cv_file_magic_cmd='func_win32_libid'
4982
  else
4983
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4984
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4985
  fi
4986
  ;;
4987
4988
cegcc)
4989
  # use the weaker test based on 'objdump'. See mingw*.
4990
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4991
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4992
  ;;
4993
4994
darwin* | rhapsody*)
4995
  lt_cv_deplibs_check_method=pass_all
4996
  ;;
4997
4998
freebsd* | dragonfly*)
4999
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5000
    case $host_cpu in
5001
    i*86 )
5002
      # Not sure whether the presence of OpenBSD here was a mistake.
5003
      # Let's accept both of them until this is cleared up.
5004
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5005
      lt_cv_file_magic_cmd=/usr/bin/file
5006
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5007
      ;;
5008
    esac
5009
  else
5010
    lt_cv_deplibs_check_method=pass_all
5011
  fi
5012
  ;;
5013
5014
gnu*)
5015
  lt_cv_deplibs_check_method=pass_all
5016
  ;;
5017
5018
hpux10.20* | hpux11*)
5019
  lt_cv_file_magic_cmd=/usr/bin/file
5020
  case $host_cpu in
5021
  ia64*)
5022
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5023
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5024
    ;;
5025
  hppa*64*)
5026
    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]'
5027
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5028
    ;;
5029
  *)
5030
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5031
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5032
    ;;
5033
  esac
5034
  ;;
5035
5036
interix[3-9]*)
5037
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5038
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5039
  ;;
5040
5041
irix5* | irix6* | nonstopux*)
5042
  case $LD in
5043
  *-32|*"-32 ") libmagic=32-bit;;
5044
  *-n32|*"-n32 ") libmagic=N32;;
5045
  *-64|*"-64 ") libmagic=64-bit;;
5046
  *) libmagic=never-match;;
5047
  esac
5048
  lt_cv_deplibs_check_method=pass_all
5049
  ;;
5050
5051
# This must be Linux ELF.
5052
linux* | k*bsd*-gnu)
5053
  lt_cv_deplibs_check_method=pass_all
5054
  ;;
5055
5056
netbsd* | netbsdelf*-gnu)
5057
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5058
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5059
  else
5060
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5061
  fi
5062
  ;;
5063
5064
newos6*)
5065
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5066
  lt_cv_file_magic_cmd=/usr/bin/file
5067
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5068
  ;;
5069
5070
*nto* | *qnx*)
5071
  lt_cv_deplibs_check_method=pass_all
5072
  ;;
5073
5074
openbsd*)
5075
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5076
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5077
  else
5078
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5079
  fi
5080
  ;;
5081
5082
osf3* | osf4* | osf5*)
5083
  lt_cv_deplibs_check_method=pass_all
5084
  ;;
5085
5086
rdos*)
5087
  lt_cv_deplibs_check_method=pass_all
5088
  ;;
5089
5090
solaris*)
5091
  lt_cv_deplibs_check_method=pass_all
5092
  ;;
5093
5094
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5095
  lt_cv_deplibs_check_method=pass_all
5096
  ;;
5097
5098
sysv4 | sysv4.3*)
5099
  case $host_vendor in
5100
  motorola)
5101
    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]'
5102
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5103
    ;;
5104
  ncr)
5105
    lt_cv_deplibs_check_method=pass_all
5106
    ;;
5107
  sequent)
5108
    lt_cv_file_magic_cmd='/bin/file'
5109
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5110
    ;;
5111
  sni)
5112
    lt_cv_file_magic_cmd='/bin/file'
5113
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5114
    lt_cv_file_magic_test_file=/lib/libc.so
5115
    ;;
5116
  siemens)
5117
    lt_cv_deplibs_check_method=pass_all
5118
    ;;
5119
  pc)
5120
    lt_cv_deplibs_check_method=pass_all
5121
    ;;
5122
  esac
5123
  ;;
5124
5125
tpf*)
5126
  lt_cv_deplibs_check_method=pass_all
5127
  ;;
5128
esac
5129
5130
fi
5131
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5132
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5133
file_magic_cmd=$lt_cv_file_magic_cmd
5134
deplibs_check_method=$lt_cv_deplibs_check_method
5135
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
if test -n "$ac_tool_prefix"; then
5149
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5150
set dummy ${ac_tool_prefix}ar; ac_word=$2
5151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152
$as_echo_n "checking for $ac_word... " >&6; }
5153
if test "${ac_cv_prog_AR+set}" = set; then :
5154
  $as_echo_n "(cached) " >&6
5155
else
5156
  if test -n "$AR"; then
5157
  ac_cv_prog_AR="$AR" # Let the user override the test.
5158
else
5159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160
for as_dir in $PATH
5161
do
5162
  IFS=$as_save_IFS
5163
  test -z "$as_dir" && as_dir=.
5164
    for ac_exec_ext in '' $ac_executable_extensions; do
5165
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5167
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168
    break 2
5169
  fi
5170
done
5171
  done
5172
IFS=$as_save_IFS
5173
5174
fi
5175
fi
5176
AR=$ac_cv_prog_AR
5177
if test -n "$AR"; then
5178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5179
$as_echo "$AR" >&6; }
5180
else
5181
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182
$as_echo "no" >&6; }
5183
fi
5184
5185
5186
fi
5187
if test -z "$ac_cv_prog_AR"; then
5188
  ac_ct_AR=$AR
5189
  # Extract the first word of "ar", so it can be a program name with args.
5190
set dummy ar; ac_word=$2
5191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192
$as_echo_n "checking for $ac_word... " >&6; }
5193
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5194
  $as_echo_n "(cached) " >&6
5195
else
5196
  if test -n "$ac_ct_AR"; then
5197
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5198
else
5199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200
for as_dir in $PATH
5201
do
5202
  IFS=$as_save_IFS
5203
  test -z "$as_dir" && as_dir=.
5204
    for ac_exec_ext in '' $ac_executable_extensions; do
5205
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206
    ac_cv_prog_ac_ct_AR="ar"
5207
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208
    break 2
5209
  fi
5210
done
5211
  done
5212
IFS=$as_save_IFS
5213
5214
fi
5215
fi
5216
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5217
if test -n "$ac_ct_AR"; then
5218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5219
$as_echo "$ac_ct_AR" >&6; }
5220
else
5221
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222
$as_echo "no" >&6; }
5223
fi
5224
5225
  if test "x$ac_ct_AR" = x; then
5226
    AR="false"
5227
  else
5228
    case $cross_compiling:$ac_tool_warned in
5229
yes:)
5230
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5231
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5232
ac_tool_warned=yes ;;
5233
esac
5234
    AR=$ac_ct_AR
5235
  fi
5236
else
5237
  AR="$ac_cv_prog_AR"
5238
fi
5239
5240
test -z "$AR" && AR=ar
5241
test -z "$AR_FLAGS" && AR_FLAGS=cru
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
if test -n "$ac_tool_prefix"; then
5254
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5255
set dummy ${ac_tool_prefix}strip; ac_word=$2
5256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257
$as_echo_n "checking for $ac_word... " >&6; }
5258
if test "${ac_cv_prog_STRIP+set}" = set; then :
5259
  $as_echo_n "(cached) " >&6
5260
else
5261
  if test -n "$STRIP"; then
5262
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5263
else
5264
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265
for as_dir in $PATH
5266
do
5267
  IFS=$as_save_IFS
5268
  test -z "$as_dir" && as_dir=.
5269
    for ac_exec_ext in '' $ac_executable_extensions; do
5270
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5272
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273
    break 2
5274
  fi
5275
done
5276
  done
5277
IFS=$as_save_IFS
5278
5279
fi
5280
fi
5281
STRIP=$ac_cv_prog_STRIP
5282
if test -n "$STRIP"; then
5283
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5284
$as_echo "$STRIP" >&6; }
5285
else
5286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287
$as_echo "no" >&6; }
5288
fi
5289
5290
5291
fi
5292
if test -z "$ac_cv_prog_STRIP"; then
5293
  ac_ct_STRIP=$STRIP
5294
  # Extract the first word of "strip", so it can be a program name with args.
5295
set dummy strip; ac_word=$2
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297
$as_echo_n "checking for $ac_word... " >&6; }
5298
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5299
  $as_echo_n "(cached) " >&6
5300
else
5301
  if test -n "$ac_ct_STRIP"; then
5302
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5303
else
5304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305
for as_dir in $PATH
5306
do
5307
  IFS=$as_save_IFS
5308
  test -z "$as_dir" && as_dir=.
5309
    for ac_exec_ext in '' $ac_executable_extensions; do
5310
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311
    ac_cv_prog_ac_ct_STRIP="strip"
5312
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313
    break 2
5314
  fi
5315
done
5316
  done
5317
IFS=$as_save_IFS
5318
5319
fi
5320
fi
5321
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5322
if test -n "$ac_ct_STRIP"; then
5323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5324
$as_echo "$ac_ct_STRIP" >&6; }
5325
else
5326
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327
$as_echo "no" >&6; }
5328
fi
5329
5330
  if test "x$ac_ct_STRIP" = x; then
5331
    STRIP=":"
5332
  else
5333
    case $cross_compiling:$ac_tool_warned in
5334
yes:)
5335
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337
ac_tool_warned=yes ;;
5338
esac
5339
    STRIP=$ac_ct_STRIP
5340
  fi
5341
else
5342
  STRIP="$ac_cv_prog_STRIP"
5343
fi
5344
5345
test -z "$STRIP" && STRIP=:
5346
5347
5348
5349
5350
5351
5352
if test -n "$ac_tool_prefix"; then
5353
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5354
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356
$as_echo_n "checking for $ac_word... " >&6; }
5357
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5358
  $as_echo_n "(cached) " >&6
5359
else
5360
  if test -n "$RANLIB"; then
5361
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5362
else
5363
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364
for as_dir in $PATH
5365
do
5366
  IFS=$as_save_IFS
5367
  test -z "$as_dir" && as_dir=.
5368
    for ac_exec_ext in '' $ac_executable_extensions; do
5369
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5371
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372
    break 2
5373
  fi
5374
done
5375
  done
5376
IFS=$as_save_IFS
5377
5378
fi
5379
fi
5380
RANLIB=$ac_cv_prog_RANLIB
5381
if test -n "$RANLIB"; then
5382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5383
$as_echo "$RANLIB" >&6; }
5384
else
5385
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386
$as_echo "no" >&6; }
5387
fi
5388
5389
5390
fi
5391
if test -z "$ac_cv_prog_RANLIB"; then
5392
  ac_ct_RANLIB=$RANLIB
5393
  # Extract the first word of "ranlib", so it can be a program name with args.
5394
set dummy ranlib; ac_word=$2
5395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396
$as_echo_n "checking for $ac_word... " >&6; }
5397
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5398
  $as_echo_n "(cached) " >&6
5399
else
5400
  if test -n "$ac_ct_RANLIB"; then
5401
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5402
else
5403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404
for as_dir in $PATH
5405
do
5406
  IFS=$as_save_IFS
5407
  test -z "$as_dir" && as_dir=.
5408
    for ac_exec_ext in '' $ac_executable_extensions; do
5409
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5411
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412
    break 2
5413
  fi
5414
done
5415
  done
5416
IFS=$as_save_IFS
5417
5418
fi
5419
fi
5420
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5421
if test -n "$ac_ct_RANLIB"; then
5422
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5423
$as_echo "$ac_ct_RANLIB" >&6; }
5424
else
5425
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426
$as_echo "no" >&6; }
5427
fi
5428
5429
  if test "x$ac_ct_RANLIB" = x; then
5430
    RANLIB=":"
5431
  else
5432
    case $cross_compiling:$ac_tool_warned in
5433
yes:)
5434
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436
ac_tool_warned=yes ;;
5437
esac
5438
    RANLIB=$ac_ct_RANLIB
5439
  fi
5440
else
5441
  RANLIB="$ac_cv_prog_RANLIB"
5442
fi
5443
5444
test -z "$RANLIB" && RANLIB=:
5445
5446
5447
5448
5449
5450
5451
# Determine commands to create old-style static archives.
5452
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5453
old_postinstall_cmds='chmod 644 $oldlib'
5454
old_postuninstall_cmds=
5455
5456
if test -n "$RANLIB"; then
5457
  case $host_os in
5458
  openbsd*)
5459
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5460
    ;;
5461
  *)
5462
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5463
    ;;
5464
  esac
5465
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5466
fi
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
# If no C compiler was specified, use CC.
5502
LTCC=${LTCC-"$CC"}
5503
5504
# If no C compiler flags were specified, use CFLAGS.
5505
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5506
5507
# Allow CC to be a program name with arguments.
5508
compiler=$CC
5509
5510
5511
# Check for command to grab the raw symbol name followed by C symbol from nm.
5512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5513
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5514
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5515
  $as_echo_n "(cached) " >&6
5516
else
5517
5518
# These are sane defaults that work on at least a few old systems.
5519
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5520
5521
# Character class describing NM global symbol codes.
5522
symcode='[BCDEGRST]'
5523
5524
# Regexp to match symbols that can be accessed directly from C.
5525
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5526
5527
# Define system-specific variables.
5528
case $host_os in
5529
aix*)
5530
  symcode='[BCDT]'
5531
  ;;
5532
cygwin* | mingw* | pw32* | cegcc*)
5533
  symcode='[ABCDGISTW]'
5534
  ;;
5535
hpux*)
5536
  if test "$host_cpu" = ia64; then
5537
    symcode='[ABCDEGRST]'
5538
  fi
5539
  ;;
5540
irix* | nonstopux*)
5541
  symcode='[BCDEGRST]'
5542
  ;;
5543
osf*)
5544
  symcode='[BCDEGQRST]'
5545
  ;;
5546
solaris*)
5547
  symcode='[BDRT]'
5548
  ;;
5549
sco3.2v5*)
5550
  symcode='[DT]'
5551
  ;;
5552
sysv4.2uw2*)
5553
  symcode='[DT]'
5554
  ;;
5555
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5556
  symcode='[ABDT]'
5557
  ;;
5558
sysv4)
5559
  symcode='[DFNSTU]'
5560
  ;;
5561
esac
5562
5563
# If we're using GNU nm, then use its standard symbol codes.
5564
case `$NM -V 2>&1` in
5565
*GNU* | *'with BFD'*)
5566
  symcode='[ABCDGIRSTW]' ;;
5567
esac
5568
5569
# Transform an extracted symbol line into a proper C declaration.
5570
# Some systems (esp. on ia64) link data and code symbols differently,
5571
# so use this general approach.
5572
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5573
5574
# Transform an extracted symbol line into symbol name and symbol address
5575
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5576
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'"
5577
5578
# Handle CRLF in mingw tool chain
5579
opt_cr=
5580
case $build_os in
5581
mingw*)
5582
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5583
  ;;
5584
esac
5585
5586
# Try without a prefix underscore, then with it.
5587
for ac_symprfx in "" "_"; do
5588
5589
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5590
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5591
5592
  # Write the raw and C identifiers.
5593
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5594
    # Fake it for dumpbin and say T for any non-static function
5595
    # and D for any global variable.
5596
    # Also find C++ and __fastcall symbols from MSVC++,
5597
    # which start with @ or ?.
5598
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5599
"     {last_section=section; section=\$ 3};"\
5600
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5601
"     \$ 0!~/External *\|/{next};"\
5602
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5603
"     {if(hide[section]) next};"\
5604
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5605
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5606
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5607
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5608
"     ' prfx=^$ac_symprfx"
5609
  else
5610
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5611
  fi
5612
5613
  # Check to see that the pipe works correctly.
5614
  pipe_works=no
5615
5616
  rm -f conftest*
5617
  cat > conftest.$ac_ext <<_LT_EOF
5618
#ifdef __cplusplus
5619
extern "C" {
5620
#endif
5621
char nm_test_var;
5622
void nm_test_func(void);
5623
void nm_test_func(void){}
5624
#ifdef __cplusplus
5625
}
5626
#endif
5627
int main(){nm_test_var='a';nm_test_func();return(0);}
5628
_LT_EOF
5629
5630
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5631
  (eval $ac_compile) 2>&5
5632
  ac_status=$?
5633
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5634
  test $ac_status = 0; }; then
5635
    # Now try to grab the symbols.
5636
    nlist=conftest.nm
5637
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5638
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5639
  ac_status=$?
5640
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641
  test $ac_status = 0; } && test -s "$nlist"; then
5642
      # Try sorting and uniquifying the output.
5643
      if sort "$nlist" | uniq > "$nlist"T; then
5644
	mv -f "$nlist"T "$nlist"
5645
      else
5646
	rm -f "$nlist"T
5647
      fi
5648
5649
      # Make sure that we snagged all the symbols we need.
5650
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5651
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5652
	  cat <<_LT_EOF > conftest.$ac_ext
5653
#ifdef __cplusplus
5654
extern "C" {
5655
#endif
5656
5657
_LT_EOF
5658
	  # Now generate the symbol file.
5659
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5660
5661
	  cat <<_LT_EOF >> conftest.$ac_ext
5662
5663
/* The mapping between symbol names and symbols.  */
5664
const struct {
5665
  const char *name;
5666
  void       *address;
5667
}
5668
lt__PROGRAM__LTX_preloaded_symbols[] =
5669
{
5670
  { "@PROGRAM@", (void *) 0 },
5671
_LT_EOF
5672
	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5673
	  cat <<\_LT_EOF >> conftest.$ac_ext
5674
  {0, (void *) 0}
5675
};
5676
5677
/* This works around a problem in FreeBSD linker */
5678
#ifdef FREEBSD_WORKAROUND
5679
static const void *lt_preloaded_setup() {
5680
  return lt__PROGRAM__LTX_preloaded_symbols;
5681
}
5682
#endif
5683
5684
#ifdef __cplusplus
5685
}
5686
#endif
5687
_LT_EOF
5688
	  # Now try linking the two files.
5689
	  mv conftest.$ac_objext conftstm.$ac_objext
5690
	  lt_save_LIBS="$LIBS"
5691
	  lt_save_CFLAGS="$CFLAGS"
5692
	  LIBS="conftstm.$ac_objext"
5693
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5694
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5695
  (eval $ac_link) 2>&5
5696
  ac_status=$?
5697
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5699
	    pipe_works=yes
5700
	  fi
5701
	  LIBS="$lt_save_LIBS"
5702
	  CFLAGS="$lt_save_CFLAGS"
5703
	else
5704
	  echo "cannot find nm_test_func in $nlist" >&5
5705
	fi
5706
      else
5707
	echo "cannot find nm_test_var in $nlist" >&5
5708
      fi
5709
    else
5710
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5711
    fi
5712
  else
5713
    echo "$progname: failed program was:" >&5
5714
    cat conftest.$ac_ext >&5
5715
  fi
5716
  rm -rf conftest* conftst*
5717
5718
  # Do not use the global_symbol_pipe unless it works.
5719
  if test "$pipe_works" = yes; then
5720
    break
5721
  else
5722
    lt_cv_sys_global_symbol_pipe=
5723
  fi
5724
done
5725
5726
fi
5727
5728
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5729
  lt_cv_sys_global_symbol_to_cdecl=
5730
fi
5731
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5732
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5733
$as_echo "failed" >&6; }
5734
else
5735
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5736
$as_echo "ok" >&6; }
5737
fi
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
# Check whether --enable-libtool-lock was given.
5762
if test "${enable_libtool_lock+set}" = set; then :
5763
  enableval=$enable_libtool_lock;
5764
fi
5765
5766
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5767
5768
# Some flags need to be propagated to the compiler or linker for good
5769
# libtool support.
5770
case $host in
5771
ia64-*-hpux*)
5772
  # Find out which ABI we are using.
5773
  echo 'int i;' > conftest.$ac_ext
5774
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5775
  (eval $ac_compile) 2>&5
5776
  ac_status=$?
5777
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778
  test $ac_status = 0; }; then
5779
    case `/usr/bin/file conftest.$ac_objext` in
5780
      *ELF-32*)
5781
	HPUX_IA64_MODE="32"
5782
	;;
5783
      *ELF-64*)
5784
	HPUX_IA64_MODE="64"
5785
	;;
5786
    esac
5787
  fi
5788
  rm -rf conftest*
5789
  ;;
5790
*-*-irix6*)
5791
  # Find out which ABI we are using.
7 by edam
- removed "OK" from test-main when test is successful
5792
  echo '#line 5792 "configure"' > conftest.$ac_ext
5 by edam
- updated README
5793
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5794
  (eval $ac_compile) 2>&5
5795
  ac_status=$?
5796
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797
  test $ac_status = 0; }; then
5798
    if test "$lt_cv_prog_gnu_ld" = yes; then
5799
      case `/usr/bin/file conftest.$ac_objext` in
5800
	*32-bit*)
5801
	  LD="${LD-ld} -melf32bsmip"
5802
	  ;;
5803
	*N32*)
5804
	  LD="${LD-ld} -melf32bmipn32"
5805
	  ;;
5806
	*64-bit*)
5807
	  LD="${LD-ld} -melf64bmip"
5808
	;;
5809
      esac
5810
    else
5811
      case `/usr/bin/file conftest.$ac_objext` in
5812
	*32-bit*)
5813
	  LD="${LD-ld} -32"
5814
	  ;;
5815
	*N32*)
5816
	  LD="${LD-ld} -n32"
5817
	  ;;
5818
	*64-bit*)
5819
	  LD="${LD-ld} -64"
5820
	  ;;
5821
      esac
5822
    fi
5823
  fi
5824
  rm -rf conftest*
5825
  ;;
5826
5827
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5828
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5829
  # Find out which ABI we are using.
5830
  echo 'int i;' > conftest.$ac_ext
5831
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5832
  (eval $ac_compile) 2>&5
5833
  ac_status=$?
5834
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835
  test $ac_status = 0; }; then
5836
    case `/usr/bin/file conftest.o` in
5837
      *32-bit*)
5838
	case $host in
5839
	  x86_64-*kfreebsd*-gnu)
5840
	    LD="${LD-ld} -m elf_i386_fbsd"
5841
	    ;;
5842
	  x86_64-*linux*)
5843
	    LD="${LD-ld} -m elf_i386"
5844
	    ;;
5845
	  ppc64-*linux*|powerpc64-*linux*)
5846
	    LD="${LD-ld} -m elf32ppclinux"
5847
	    ;;
5848
	  s390x-*linux*)
5849
	    LD="${LD-ld} -m elf_s390"
5850
	    ;;
5851
	  sparc64-*linux*)
5852
	    LD="${LD-ld} -m elf32_sparc"
5853
	    ;;
5854
	esac
5855
	;;
5856
      *64-bit*)
5857
	case $host in
5858
	  x86_64-*kfreebsd*-gnu)
5859
	    LD="${LD-ld} -m elf_x86_64_fbsd"
5860
	    ;;
5861
	  x86_64-*linux*)
5862
	    LD="${LD-ld} -m elf_x86_64"
5863
	    ;;
5864
	  ppc*-*linux*|powerpc*-*linux*)
5865
	    LD="${LD-ld} -m elf64ppc"
5866
	    ;;
5867
	  s390*-*linux*|s390*-*tpf*)
5868
	    LD="${LD-ld} -m elf64_s390"
5869
	    ;;
5870
	  sparc*-*linux*)
5871
	    LD="${LD-ld} -m elf64_sparc"
5872
	    ;;
5873
	esac
5874
	;;
5875
    esac
5876
  fi
5877
  rm -rf conftest*
5878
  ;;
5879
5880
*-*-sco3.2v5*)
5881
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5882
  SAVE_CFLAGS="$CFLAGS"
5883
  CFLAGS="$CFLAGS -belf"
5884
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5885
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5886
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5887
  $as_echo_n "(cached) " >&6
5888
else
5889
  ac_ext=c
5890
ac_cpp='$CPP $CPPFLAGS'
5891
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5894
5895
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896
/* end confdefs.h.  */
5897
5898
int
5899
main ()
5900
{
5901
5902
  ;
5903
  return 0;
5904
}
5905
_ACEOF
5906
if ac_fn_c_try_link "$LINENO"; then :
5907
  lt_cv_cc_needs_belf=yes
5908
else
5909
  lt_cv_cc_needs_belf=no
5910
fi
5911
rm -f core conftest.err conftest.$ac_objext \
5912
    conftest$ac_exeext conftest.$ac_ext
5913
     ac_ext=c
5914
ac_cpp='$CPP $CPPFLAGS'
5915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918
5919
fi
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5921
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5922
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5923
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5924
    CFLAGS="$SAVE_CFLAGS"
5925
  fi
5926
  ;;
5927
sparc*-*solaris*)
5928
  # Find out which ABI we are using.
5929
  echo 'int i;' > conftest.$ac_ext
5930
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5931
  (eval $ac_compile) 2>&5
5932
  ac_status=$?
5933
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5934
  test $ac_status = 0; }; then
5935
    case `/usr/bin/file conftest.o` in
5936
    *64-bit*)
5937
      case $lt_cv_prog_gnu_ld in
5938
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5939
      *)
5940
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5941
	  LD="${LD-ld} -64"
5942
	fi
5943
	;;
5944
      esac
5945
      ;;
5946
    esac
5947
  fi
5948
  rm -rf conftest*
5949
  ;;
5950
esac
5951
5952
need_locks="$enable_libtool_lock"
5953
5954
5955
  case $host_os in
5956
    rhapsody* | darwin*)
5957
    if test -n "$ac_tool_prefix"; then
5958
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5959
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961
$as_echo_n "checking for $ac_word... " >&6; }
5962
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5963
  $as_echo_n "(cached) " >&6
5964
else
5965
  if test -n "$DSYMUTIL"; then
5966
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5967
else
5968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969
for as_dir in $PATH
5970
do
5971
  IFS=$as_save_IFS
5972
  test -z "$as_dir" && as_dir=.
5973
    for ac_exec_ext in '' $ac_executable_extensions; do
5974
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5976
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977
    break 2
5978
  fi
5979
done
5980
  done
5981
IFS=$as_save_IFS
5982
5983
fi
5984
fi
5985
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5986
if test -n "$DSYMUTIL"; then
5987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5988
$as_echo "$DSYMUTIL" >&6; }
5989
else
5990
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991
$as_echo "no" >&6; }
5992
fi
5993
5994
5995
fi
5996
if test -z "$ac_cv_prog_DSYMUTIL"; then
5997
  ac_ct_DSYMUTIL=$DSYMUTIL
5998
  # Extract the first word of "dsymutil", so it can be a program name with args.
5999
set dummy dsymutil; ac_word=$2
6000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001
$as_echo_n "checking for $ac_word... " >&6; }
6002
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6003
  $as_echo_n "(cached) " >&6
6004
else
6005
  if test -n "$ac_ct_DSYMUTIL"; then
6006
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6007
else
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009
for as_dir in $PATH
6010
do
6011
  IFS=$as_save_IFS
6012
  test -z "$as_dir" && as_dir=.
6013
    for ac_exec_ext in '' $ac_executable_extensions; do
6014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6016
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017
    break 2
6018
  fi
6019
done
6020
  done
6021
IFS=$as_save_IFS
6022
6023
fi
6024
fi
6025
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6026
if test -n "$ac_ct_DSYMUTIL"; then
6027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6028
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6029
else
6030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031
$as_echo "no" >&6; }
6032
fi
6033
6034
  if test "x$ac_ct_DSYMUTIL" = x; then
6035
    DSYMUTIL=":"
6036
  else
6037
    case $cross_compiling:$ac_tool_warned in
6038
yes:)
6039
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041
ac_tool_warned=yes ;;
6042
esac
6043
    DSYMUTIL=$ac_ct_DSYMUTIL
6044
  fi
6045
else
6046
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6047
fi
6048
6049
    if test -n "$ac_tool_prefix"; then
6050
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6051
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053
$as_echo_n "checking for $ac_word... " >&6; }
6054
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6055
  $as_echo_n "(cached) " >&6
6056
else
6057
  if test -n "$NMEDIT"; then
6058
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6059
else
6060
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061
for as_dir in $PATH
6062
do
6063
  IFS=$as_save_IFS
6064
  test -z "$as_dir" && as_dir=.
6065
    for ac_exec_ext in '' $ac_executable_extensions; do
6066
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6068
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069
    break 2
6070
  fi
6071
done
6072
  done
6073
IFS=$as_save_IFS
6074
6075
fi
6076
fi
6077
NMEDIT=$ac_cv_prog_NMEDIT
6078
if test -n "$NMEDIT"; then
6079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6080
$as_echo "$NMEDIT" >&6; }
6081
else
6082
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083
$as_echo "no" >&6; }
6084
fi
6085
6086
6087
fi
6088
if test -z "$ac_cv_prog_NMEDIT"; then
6089
  ac_ct_NMEDIT=$NMEDIT
6090
  # Extract the first word of "nmedit", so it can be a program name with args.
6091
set dummy nmedit; ac_word=$2
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093
$as_echo_n "checking for $ac_word... " >&6; }
6094
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6095
  $as_echo_n "(cached) " >&6
6096
else
6097
  if test -n "$ac_ct_NMEDIT"; then
6098
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6099
else
6100
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101
for as_dir in $PATH
6102
do
6103
  IFS=$as_save_IFS
6104
  test -z "$as_dir" && as_dir=.
6105
    for ac_exec_ext in '' $ac_executable_extensions; do
6106
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6108
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109
    break 2
6110
  fi
6111
done
6112
  done
6113
IFS=$as_save_IFS
6114
6115
fi
6116
fi
6117
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6118
if test -n "$ac_ct_NMEDIT"; then
6119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6120
$as_echo "$ac_ct_NMEDIT" >&6; }
6121
else
6122
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123
$as_echo "no" >&6; }
6124
fi
6125
6126
  if test "x$ac_ct_NMEDIT" = x; then
6127
    NMEDIT=":"
6128
  else
6129
    case $cross_compiling:$ac_tool_warned in
6130
yes:)
6131
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133
ac_tool_warned=yes ;;
6134
esac
6135
    NMEDIT=$ac_ct_NMEDIT
6136
  fi
6137
else
6138
  NMEDIT="$ac_cv_prog_NMEDIT"
6139
fi
6140
6141
    if test -n "$ac_tool_prefix"; then
6142
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6143
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145
$as_echo_n "checking for $ac_word... " >&6; }
6146
if test "${ac_cv_prog_LIPO+set}" = set; then :
6147
  $as_echo_n "(cached) " >&6
6148
else
6149
  if test -n "$LIPO"; then
6150
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6151
else
6152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153
for as_dir in $PATH
6154
do
6155
  IFS=$as_save_IFS
6156
  test -z "$as_dir" && as_dir=.
6157
    for ac_exec_ext in '' $ac_executable_extensions; do
6158
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6160
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6161
    break 2
6162
  fi
6163
done
6164
  done
6165
IFS=$as_save_IFS
6166
6167
fi
6168
fi
6169
LIPO=$ac_cv_prog_LIPO
6170
if test -n "$LIPO"; then
6171
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6172
$as_echo "$LIPO" >&6; }
6173
else
6174
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175
$as_echo "no" >&6; }
6176
fi
6177
6178
6179
fi
6180
if test -z "$ac_cv_prog_LIPO"; then
6181
  ac_ct_LIPO=$LIPO
6182
  # Extract the first word of "lipo", so it can be a program name with args.
6183
set dummy lipo; ac_word=$2
6184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185
$as_echo_n "checking for $ac_word... " >&6; }
6186
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6187
  $as_echo_n "(cached) " >&6
6188
else
6189
  if test -n "$ac_ct_LIPO"; then
6190
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6191
else
6192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193
for as_dir in $PATH
6194
do
6195
  IFS=$as_save_IFS
6196
  test -z "$as_dir" && as_dir=.
6197
    for ac_exec_ext in '' $ac_executable_extensions; do
6198
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199
    ac_cv_prog_ac_ct_LIPO="lipo"
6200
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6201
    break 2
6202
  fi
6203
done
6204
  done
6205
IFS=$as_save_IFS
6206
6207
fi
6208
fi
6209
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6210
if test -n "$ac_ct_LIPO"; then
6211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6212
$as_echo "$ac_ct_LIPO" >&6; }
6213
else
6214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215
$as_echo "no" >&6; }
6216
fi
6217
6218
  if test "x$ac_ct_LIPO" = x; then
6219
    LIPO=":"
6220
  else
6221
    case $cross_compiling:$ac_tool_warned in
6222
yes:)
6223
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225
ac_tool_warned=yes ;;
6226
esac
6227
    LIPO=$ac_ct_LIPO
6228
  fi
6229
else
6230
  LIPO="$ac_cv_prog_LIPO"
6231
fi
6232
6233
    if test -n "$ac_tool_prefix"; then
6234
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6235
set dummy ${ac_tool_prefix}otool; ac_word=$2
6236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237
$as_echo_n "checking for $ac_word... " >&6; }
6238
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6239
  $as_echo_n "(cached) " >&6
6240
else
6241
  if test -n "$OTOOL"; then
6242
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6243
else
6244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245
for as_dir in $PATH
6246
do
6247
  IFS=$as_save_IFS
6248
  test -z "$as_dir" && as_dir=.
6249
    for ac_exec_ext in '' $ac_executable_extensions; do
6250
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6252
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253
    break 2
6254
  fi
6255
done
6256
  done
6257
IFS=$as_save_IFS
6258
6259
fi
6260
fi
6261
OTOOL=$ac_cv_prog_OTOOL
6262
if test -n "$OTOOL"; then
6263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6264
$as_echo "$OTOOL" >&6; }
6265
else
6266
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267
$as_echo "no" >&6; }
6268
fi
6269
6270
6271
fi
6272
if test -z "$ac_cv_prog_OTOOL"; then
6273
  ac_ct_OTOOL=$OTOOL
6274
  # Extract the first word of "otool", so it can be a program name with args.
6275
set dummy otool; ac_word=$2
6276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277
$as_echo_n "checking for $ac_word... " >&6; }
6278
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6279
  $as_echo_n "(cached) " >&6
6280
else
6281
  if test -n "$ac_ct_OTOOL"; then
6282
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6283
else
6284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285
for as_dir in $PATH
6286
do
6287
  IFS=$as_save_IFS
6288
  test -z "$as_dir" && as_dir=.
6289
    for ac_exec_ext in '' $ac_executable_extensions; do
6290
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291
    ac_cv_prog_ac_ct_OTOOL="otool"
6292
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293
    break 2
6294
  fi
6295
done
6296
  done
6297
IFS=$as_save_IFS
6298
6299
fi
6300
fi
6301
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6302
if test -n "$ac_ct_OTOOL"; then
6303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6304
$as_echo "$ac_ct_OTOOL" >&6; }
6305
else
6306
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307
$as_echo "no" >&6; }
6308
fi
6309
6310
  if test "x$ac_ct_OTOOL" = x; then
6311
    OTOOL=":"
6312
  else
6313
    case $cross_compiling:$ac_tool_warned in
6314
yes:)
6315
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317
ac_tool_warned=yes ;;
6318
esac
6319
    OTOOL=$ac_ct_OTOOL
6320
  fi
6321
else
6322
  OTOOL="$ac_cv_prog_OTOOL"
6323
fi
6324
6325
    if test -n "$ac_tool_prefix"; then
6326
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6327
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329
$as_echo_n "checking for $ac_word... " >&6; }
6330
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6331
  $as_echo_n "(cached) " >&6
6332
else
6333
  if test -n "$OTOOL64"; then
6334
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6335
else
6336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337
for as_dir in $PATH
6338
do
6339
  IFS=$as_save_IFS
6340
  test -z "$as_dir" && as_dir=.
6341
    for ac_exec_ext in '' $ac_executable_extensions; do
6342
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6344
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345
    break 2
6346
  fi
6347
done
6348
  done
6349
IFS=$as_save_IFS
6350
6351
fi
6352
fi
6353
OTOOL64=$ac_cv_prog_OTOOL64
6354
if test -n "$OTOOL64"; then
6355
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6356
$as_echo "$OTOOL64" >&6; }
6357
else
6358
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359
$as_echo "no" >&6; }
6360
fi
6361
6362
6363
fi
6364
if test -z "$ac_cv_prog_OTOOL64"; then
6365
  ac_ct_OTOOL64=$OTOOL64
6366
  # Extract the first word of "otool64", so it can be a program name with args.
6367
set dummy otool64; ac_word=$2
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369
$as_echo_n "checking for $ac_word... " >&6; }
6370
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6371
  $as_echo_n "(cached) " >&6
6372
else
6373
  if test -n "$ac_ct_OTOOL64"; then
6374
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6375
else
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377
for as_dir in $PATH
6378
do
6379
  IFS=$as_save_IFS
6380
  test -z "$as_dir" && as_dir=.
6381
    for ac_exec_ext in '' $ac_executable_extensions; do
6382
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6384
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385
    break 2
6386
  fi
6387
done
6388
  done
6389
IFS=$as_save_IFS
6390
6391
fi
6392
fi
6393
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6394
if test -n "$ac_ct_OTOOL64"; then
6395
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6396
$as_echo "$ac_ct_OTOOL64" >&6; }
6397
else
6398
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399
$as_echo "no" >&6; }
6400
fi
6401
6402
  if test "x$ac_ct_OTOOL64" = x; then
6403
    OTOOL64=":"
6404
  else
6405
    case $cross_compiling:$ac_tool_warned in
6406
yes:)
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409
ac_tool_warned=yes ;;
6410
esac
6411
    OTOOL64=$ac_ct_OTOOL64
6412
  fi
6413
else
6414
  OTOOL64="$ac_cv_prog_OTOOL64"
6415
fi
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6444
$as_echo_n "checking for -single_module linker flag... " >&6; }
6445
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6446
  $as_echo_n "(cached) " >&6
6447
else
6448
  lt_cv_apple_cc_single_mod=no
6449
      if test -z "${LT_MULTI_MODULE}"; then
6450
	# By default we will add the -single_module flag. You can override
6451
	# by either setting the environment variable LT_MULTI_MODULE
6452
	# non-empty at configure time, or by adding -multi_module to the
6453
	# link flags.
6454
	rm -rf libconftest.dylib*
6455
	echo "int foo(void){return 1;}" > conftest.c
6456
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6457
-dynamiclib -Wl,-single_module conftest.c" >&5
6458
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6459
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6460
        _lt_result=$?
6461
	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6462
	  lt_cv_apple_cc_single_mod=yes
6463
	else
6464
	  cat conftest.err >&5
6465
	fi
6466
	rm -rf libconftest.dylib*
6467
	rm -f conftest.*
6468
      fi
6469
fi
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6471
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6472
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6473
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6474
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6475
  $as_echo_n "(cached) " >&6
6476
else
6477
  lt_cv_ld_exported_symbols_list=no
6478
      save_LDFLAGS=$LDFLAGS
6479
      echo "_main" > conftest.sym
6480
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6481
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482
/* end confdefs.h.  */
6483
6484
int
6485
main ()
6486
{
6487
6488
  ;
6489
  return 0;
6490
}
6491
_ACEOF
6492
if ac_fn_c_try_link "$LINENO"; then :
6493
  lt_cv_ld_exported_symbols_list=yes
6494
else
6495
  lt_cv_ld_exported_symbols_list=no
6496
fi
6497
rm -f core conftest.err conftest.$ac_objext \
6498
    conftest$ac_exeext conftest.$ac_ext
6499
	LDFLAGS="$save_LDFLAGS"
6500
6501
fi
6502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6503
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6504
    case $host_os in
6505
    rhapsody* | darwin1.[012])
6506
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6507
    darwin1.*)
6508
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6509
    darwin*) # darwin 5.x on
6510
      # if running on 10.5 or later, the deployment target defaults
6511
      # to the OS version, if on x86, and 10.4, the deployment
6512
      # target defaults to 10.4. Don't you love it?
6513
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6514
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6515
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6516
	10.[012]*)
6517
	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6518
	10.*)
6519
	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6520
      esac
6521
    ;;
6522
  esac
6523
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6524
      _lt_dar_single_mod='$single_module'
6525
    fi
6526
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6527
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6528
    else
6529
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6530
    fi
6531
    if test "$DSYMUTIL" != ":"; then
6532
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6533
    else
6534
      _lt_dsymutil=
6535
    fi
6536
    ;;
6537
  esac
6538
6539
ac_ext=c
6540
ac_cpp='$CPP $CPPFLAGS'
6541
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6545
$as_echo_n "checking how to run the C preprocessor... " >&6; }
6546
# On Suns, sometimes $CPP names a directory.
6547
if test -n "$CPP" && test -d "$CPP"; then
6548
  CPP=
6549
fi
6550
if test -z "$CPP"; then
6551
  if test "${ac_cv_prog_CPP+set}" = set; then :
6552
  $as_echo_n "(cached) " >&6
6553
else
6554
      # Double quotes because CPP needs to be expanded
6555
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6556
    do
6557
      ac_preproc_ok=false
6558
for ac_c_preproc_warn_flag in '' yes
6559
do
6560
  # Use a header file that comes with gcc, so configuring glibc
6561
  # with a fresh cross-compiler works.
6562
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6563
  # <limits.h> exists even on freestanding compilers.
6564
  # On the NeXT, cc -E runs the code through the compiler's parser,
6565
  # not just through cpp. "Syntax error" is here to catch this case.
6566
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567
/* end confdefs.h.  */
6568
#ifdef __STDC__
6569
# include <limits.h>
6570
#else
6571
# include <assert.h>
6572
#endif
6573
		     Syntax error
6574
_ACEOF
6575
if ac_fn_c_try_cpp "$LINENO"; then :
6576
6577
else
6578
  # Broken: fails on valid input.
6579
continue
6580
fi
6581
rm -f conftest.err conftest.$ac_ext
6582
6583
  # OK, works on sane cases.  Now check whether nonexistent headers
6584
  # can be detected and how.
6585
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586
/* end confdefs.h.  */
6587
#include <ac_nonexistent.h>
6588
_ACEOF
6589
if ac_fn_c_try_cpp "$LINENO"; then :
6590
  # Broken: success on invalid input.
6591
continue
6592
else
6593
  # Passes both tests.
6594
ac_preproc_ok=:
6595
break
6596
fi
6597
rm -f conftest.err conftest.$ac_ext
6598
6599
done
6600
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6601
rm -f conftest.err conftest.$ac_ext
6602
if $ac_preproc_ok; then :
6603
  break
6604
fi
6605
6606
    done
6607
    ac_cv_prog_CPP=$CPP
6608
6609
fi
6610
  CPP=$ac_cv_prog_CPP
6611
else
6612
  ac_cv_prog_CPP=$CPP
6613
fi
6614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6615
$as_echo "$CPP" >&6; }
6616
ac_preproc_ok=false
6617
for ac_c_preproc_warn_flag in '' yes
6618
do
6619
  # Use a header file that comes with gcc, so configuring glibc
6620
  # with a fresh cross-compiler works.
6621
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6622
  # <limits.h> exists even on freestanding compilers.
6623
  # On the NeXT, cc -E runs the code through the compiler's parser,
6624
  # not just through cpp. "Syntax error" is here to catch this case.
6625
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626
/* end confdefs.h.  */
6627
#ifdef __STDC__
6628
# include <limits.h>
6629
#else
6630
# include <assert.h>
6631
#endif
6632
		     Syntax error
6633
_ACEOF
6634
if ac_fn_c_try_cpp "$LINENO"; then :
6635
6636
else
6637
  # Broken: fails on valid input.
6638
continue
6639
fi
6640
rm -f conftest.err conftest.$ac_ext
6641
6642
  # OK, works on sane cases.  Now check whether nonexistent headers
6643
  # can be detected and how.
6644
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645
/* end confdefs.h.  */
6646
#include <ac_nonexistent.h>
6647
_ACEOF
6648
if ac_fn_c_try_cpp "$LINENO"; then :
6649
  # Broken: success on invalid input.
6650
continue
6651
else
6652
  # Passes both tests.
6653
ac_preproc_ok=:
6654
break
6655
fi
6656
rm -f conftest.err conftest.$ac_ext
6657
6658
done
6659
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6660
rm -f conftest.err conftest.$ac_ext
6661
if $ac_preproc_ok; then :
6662
6663
else
6664
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666
as_fn_error "C preprocessor \"$CPP\" fails sanity check
6667
See \`config.log' for more details." "$LINENO" 5; }
6668
fi
6669
6670
ac_ext=c
6671
ac_cpp='$CPP $CPPFLAGS'
6672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6675
6676
6677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6678
$as_echo_n "checking for ANSI C header files... " >&6; }
6679
if test "${ac_cv_header_stdc+set}" = set; then :
6680
  $as_echo_n "(cached) " >&6
6681
else
6682
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683
/* end confdefs.h.  */
6684
#include <stdlib.h>
6685
#include <stdarg.h>
6686
#include <string.h>
6687
#include <float.h>
6688
6689
int
6690
main ()
6691
{
6692
6693
  ;
6694
  return 0;
6695
}
6696
_ACEOF
6697
if ac_fn_c_try_compile "$LINENO"; then :
6698
  ac_cv_header_stdc=yes
6699
else
6700
  ac_cv_header_stdc=no
6701
fi
6702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703
6704
if test $ac_cv_header_stdc = yes; then
6705
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6706
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707
/* end confdefs.h.  */
6708
#include <string.h>
6709
6710
_ACEOF
6711
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6712
  $EGREP "memchr" >/dev/null 2>&1; then :
6713
6714
else
6715
  ac_cv_header_stdc=no
6716
fi
6717
rm -f conftest*
6718
6719
fi
6720
6721
if test $ac_cv_header_stdc = yes; then
6722
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6723
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724
/* end confdefs.h.  */
6725
#include <stdlib.h>
6726
6727
_ACEOF
6728
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6729
  $EGREP "free" >/dev/null 2>&1; then :
6730
6731
else
6732
  ac_cv_header_stdc=no
6733
fi
6734
rm -f conftest*
6735
6736
fi
6737
6738
if test $ac_cv_header_stdc = yes; then
6739
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6740
  if test "$cross_compiling" = yes; then :
6741
  :
6742
else
6743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744
/* end confdefs.h.  */
6745
#include <ctype.h>
6746
#include <stdlib.h>
6747
#if ((' ' & 0x0FF) == 0x020)
6748
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6749
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6750
#else
6751
# define ISLOWER(c) \
6752
		   (('a' <= (c) && (c) <= 'i') \
6753
		     || ('j' <= (c) && (c) <= 'r') \
6754
		     || ('s' <= (c) && (c) <= 'z'))
6755
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6756
#endif
6757
6758
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6759
int
6760
main ()
6761
{
6762
  int i;
6763
  for (i = 0; i < 256; i++)
6764
    if (XOR (islower (i), ISLOWER (i))
6765
	|| toupper (i) != TOUPPER (i))
6766
      return 2;
6767
  return 0;
6768
}
6769
_ACEOF
6770
if ac_fn_c_try_run "$LINENO"; then :
6771
6772
else
6773
  ac_cv_header_stdc=no
6774
fi
6775
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6776
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6777
fi
6778
6779
fi
6780
fi
6781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6782
$as_echo "$ac_cv_header_stdc" >&6; }
6783
if test $ac_cv_header_stdc = yes; then
6784
6785
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6786
6787
fi
6788
6789
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6790
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6791
		  inttypes.h stdint.h unistd.h
6792
do :
6793
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6795
"
6796
eval as_val=\$$as_ac_Header
6797
   if test "x$as_val" = x""yes; then :
6798
  cat >>confdefs.h <<_ACEOF
6799
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6800
_ACEOF
6801
6802
fi
6803
6804
done
6805
6806
6807
for ac_header in dlfcn.h
6808
do :
6809
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6810
"
6811
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6812
  cat >>confdefs.h <<_ACEOF
6813
#define HAVE_DLFCN_H 1
6814
_ACEOF
6815
6816
fi
6817
6818
done
6819
6820
6821
6822
# Set options
6823
6824
6825
6826
        enable_dlopen=no
6827
6828
6829
  enable_win32_dll=no
6830
6831
6832
            # Check whether --enable-shared was given.
6833
if test "${enable_shared+set}" = set; then :
6834
  enableval=$enable_shared; p=${PACKAGE-default}
6835
    case $enableval in
6836
    yes) enable_shared=yes ;;
6837
    no) enable_shared=no ;;
6838
    *)
6839
      enable_shared=no
6840
      # Look at the argument we got.  We use all the common list separators.
6841
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6842
      for pkg in $enableval; do
6843
	IFS="$lt_save_ifs"
6844
	if test "X$pkg" = "X$p"; then
6845
	  enable_shared=yes
6846
	fi
6847
      done
6848
      IFS="$lt_save_ifs"
6849
      ;;
6850
    esac
6851
else
6852
  enable_shared=yes
6853
fi
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
  # Check whether --enable-static was given.
6864
if test "${enable_static+set}" = set; then :
6865
  enableval=$enable_static; p=${PACKAGE-default}
6866
    case $enableval in
6867
    yes) enable_static=yes ;;
6868
    no) enable_static=no ;;
6869
    *)
6870
     enable_static=no
6871
      # Look at the argument we got.  We use all the common list separators.
6872
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6873
      for pkg in $enableval; do
6874
	IFS="$lt_save_ifs"
6875
	if test "X$pkg" = "X$p"; then
6876
	  enable_static=yes
6877
	fi
6878
      done
6879
      IFS="$lt_save_ifs"
6880
      ;;
6881
    esac
6882
else
6883
  enable_static=yes
6884
fi
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
# Check whether --with-pic was given.
6896
if test "${with_pic+set}" = set; then :
6897
  withval=$with_pic; pic_mode="$withval"
6898
else
6899
  pic_mode=default
6900
fi
6901
6902
6903
test -z "$pic_mode" && pic_mode=default
6904
6905
6906
6907
6908
6909
6910
6911
  # Check whether --enable-fast-install was given.
6912
if test "${enable_fast_install+set}" = set; then :
6913
  enableval=$enable_fast_install; p=${PACKAGE-default}
6914
    case $enableval in
6915
    yes) enable_fast_install=yes ;;
6916
    no) enable_fast_install=no ;;
6917
    *)
6918
      enable_fast_install=no
6919
      # Look at the argument we got.  We use all the common list separators.
6920
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6921
      for pkg in $enableval; do
6922
	IFS="$lt_save_ifs"
6923
	if test "X$pkg" = "X$p"; then
6924
	  enable_fast_install=yes
6925
	fi
6926
      done
6927
      IFS="$lt_save_ifs"
6928
      ;;
6929
    esac
6930
else
6931
  enable_fast_install=yes
6932
fi
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
# This can be used to rebuild libtool when needed
6945
LIBTOOL_DEPS="$ltmain"
6946
6947
# Always use our own libtool.
6948
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
test -z "$LN_S" && LN_S="ln -s"
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
if test -n "${ZSH_VERSION+set}" ; then
6990
   setopt NO_GLOB_SUBST
6991
fi
6992
6993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6994
$as_echo_n "checking for objdir... " >&6; }
6995
if test "${lt_cv_objdir+set}" = set; then :
6996
  $as_echo_n "(cached) " >&6
6997
else
6998
  rm -f .libs 2>/dev/null
6999
mkdir .libs 2>/dev/null
7000
if test -d .libs; then
7001
  lt_cv_objdir=.libs
7002
else
7003
  # MS-DOS does not allow filenames that begin with a dot.
7004
  lt_cv_objdir=_libs
7005
fi
7006
rmdir .libs 2>/dev/null
7007
fi
7008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7009
$as_echo "$lt_cv_objdir" >&6; }
7010
objdir=$lt_cv_objdir
7011
7012
7013
7014
7015
7016
cat >>confdefs.h <<_ACEOF
7017
#define LT_OBJDIR "$lt_cv_objdir/"
7018
_ACEOF
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
case $host_os in
7037
aix3*)
7038
  # AIX sometimes has problems with the GCC collect2 program.  For some
7039
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7040
  # vanish in a puff of smoke.
7041
  if test "X${COLLECT_NAMES+set}" != Xset; then
7042
    COLLECT_NAMES=
7043
    export COLLECT_NAMES
7044
  fi
7045
  ;;
7046
esac
7047
7048
# Sed substitution that helps us do robust quoting.  It backslashifies
7049
# metacharacters that are still active within double-quoted strings.
7050
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7051
7052
# Same as above, but do not quote variable references.
7053
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7054
7055
# Sed substitution to delay expansion of an escaped shell variable in a
7056
# double_quote_subst'ed string.
7057
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7058
7059
# Sed substitution to delay expansion of an escaped single quote.
7060
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7061
7062
# Sed substitution to avoid accidental globbing in evaled expressions
7063
no_glob_subst='s/\*/\\\*/g'
7064
7065
# Global variables:
7066
ofile=libtool
7067
can_build_shared=yes
7068
7069
# All known linkers require a `.a' archive for static linking (except MSVC,
7070
# which needs '.lib').
7071
libext=a
7072
7073
with_gnu_ld="$lt_cv_prog_gnu_ld"
7074
7075
old_CC="$CC"
7076
old_CFLAGS="$CFLAGS"
7077
7078
# Set sane defaults for various variables
7079
test -z "$CC" && CC=cc
7080
test -z "$LTCC" && LTCC=$CC
7081
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7082
test -z "$LD" && LD=ld
7083
test -z "$ac_objext" && ac_objext=o
7084
7085
for cc_temp in $compiler""; do
7086
  case $cc_temp in
7087
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7088
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7089
    \-*) ;;
7090
    *) break;;
7091
  esac
7092
done
7093
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7094
7095
7096
# Only perform the check for file, if the check method requires it
7097
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7098
case $deplibs_check_method in
7099
file_magic*)
7100
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7101
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7102
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7103
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7104
  $as_echo_n "(cached) " >&6
7105
else
7106
  case $MAGIC_CMD in
7107
[\\/*] |  ?:[\\/]*)
7108
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7109
  ;;
7110
*)
7111
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7112
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7113
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7114
  for ac_dir in $ac_dummy; do
7115
    IFS="$lt_save_ifs"
7116
    test -z "$ac_dir" && ac_dir=.
7117
    if test -f $ac_dir/${ac_tool_prefix}file; then
7118
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7119
      if test -n "$file_magic_test_file"; then
7120
	case $deplibs_check_method in
7121
	"file_magic "*)
7122
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7123
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7124
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7125
	    $EGREP "$file_magic_regex" > /dev/null; then
7126
	    :
7127
	  else
7128
	    cat <<_LT_EOF 1>&2
7129
7130
*** Warning: the command libtool uses to detect shared libraries,
7131
*** $file_magic_cmd, produces output that libtool cannot recognize.
7132
*** The result is that libtool may fail to recognize shared libraries
7133
*** as such.  This will affect the creation of libtool libraries that
7134
*** depend on shared libraries, but programs linked with such libtool
7135
*** libraries will work regardless of this problem.  Nevertheless, you
7136
*** may want to report the problem to your system manager and/or to
7137
*** bug-libtool@gnu.org
7138
7139
_LT_EOF
7140
	  fi ;;
7141
	esac
7142
      fi
7143
      break
7144
    fi
7145
  done
7146
  IFS="$lt_save_ifs"
7147
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7148
  ;;
7149
esac
7150
fi
7151
7152
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7153
if test -n "$MAGIC_CMD"; then
7154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7155
$as_echo "$MAGIC_CMD" >&6; }
7156
else
7157
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158
$as_echo "no" >&6; }
7159
fi
7160
7161
7162
7163
7164
7165
if test -z "$lt_cv_path_MAGIC_CMD"; then
7166
  if test -n "$ac_tool_prefix"; then
7167
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7168
$as_echo_n "checking for file... " >&6; }
7169
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7170
  $as_echo_n "(cached) " >&6
7171
else
7172
  case $MAGIC_CMD in
7173
[\\/*] |  ?:[\\/]*)
7174
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7175
  ;;
7176
*)
7177
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7178
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7179
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7180
  for ac_dir in $ac_dummy; do
7181
    IFS="$lt_save_ifs"
7182
    test -z "$ac_dir" && ac_dir=.
7183
    if test -f $ac_dir/file; then
7184
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7185
      if test -n "$file_magic_test_file"; then
7186
	case $deplibs_check_method in
7187
	"file_magic "*)
7188
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7189
	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7190
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7191
	    $EGREP "$file_magic_regex" > /dev/null; then
7192
	    :
7193
	  else
7194
	    cat <<_LT_EOF 1>&2
7195
7196
*** Warning: the command libtool uses to detect shared libraries,
7197
*** $file_magic_cmd, produces output that libtool cannot recognize.
7198
*** The result is that libtool may fail to recognize shared libraries
7199
*** as such.  This will affect the creation of libtool libraries that
7200
*** depend on shared libraries, but programs linked with such libtool
7201
*** libraries will work regardless of this problem.  Nevertheless, you
7202
*** may want to report the problem to your system manager and/or to
7203
*** bug-libtool@gnu.org
7204
7205
_LT_EOF
7206
	  fi ;;
7207
	esac
7208
      fi
7209
      break
7210
    fi
7211
  done
7212
  IFS="$lt_save_ifs"
7213
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7214
  ;;
7215
esac
7216
fi
7217
7218
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7219
if test -n "$MAGIC_CMD"; then
7220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7221
$as_echo "$MAGIC_CMD" >&6; }
7222
else
7223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224
$as_echo "no" >&6; }
7225
fi
7226
7227
7228
  else
7229
    MAGIC_CMD=:
7230
  fi
7231
fi
7232
7233
  fi
7234
  ;;
7235
esac
7236
7237
# Use C for the default configuration in the libtool script
7238
7239
lt_save_CC="$CC"
7240
ac_ext=c
7241
ac_cpp='$CPP $CPPFLAGS'
7242
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245
7246
7247
# Source file extension for C test sources.
7248
ac_ext=c
7249
7250
# Object file extension for compiled C test sources.
7251
objext=o
7252
objext=$objext
7253
7254
# Code to be used in simple compile tests
7255
lt_simple_compile_test_code="int some_variable = 0;"
7256
7257
# Code to be used in simple link tests
7258
lt_simple_link_test_code='int main(){return(0);}'
7259
7260
7261
7262
7263
7264
7265
7266
# If no C compiler was specified, use CC.
7267
LTCC=${LTCC-"$CC"}
7268
7269
# If no C compiler flags were specified, use CFLAGS.
7270
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7271
7272
# Allow CC to be a program name with arguments.
7273
compiler=$CC
7274
7275
# Save the default compiler, since it gets overwritten when the other
7276
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7277
compiler_DEFAULT=$CC
7278
7279
# save warnings/boilerplate of simple test code
7280
ac_outfile=conftest.$ac_objext
7281
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7282
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7283
_lt_compiler_boilerplate=`cat conftest.err`
7284
$RM conftest*
7285
7286
ac_outfile=conftest.$ac_objext
7287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7289
_lt_linker_boilerplate=`cat conftest.err`
7290
$RM -r conftest*
7291
7292
7293
## CAVEAT EMPTOR:
7294
## There is no encapsulation within the following macros, do not change
7295
## the running order or otherwise move them around unless you know exactly
7296
## what you are doing...
7297
if test -n "$compiler"; then
7298
7299
lt_prog_compiler_no_builtin_flag=
7300
7301
if test "$GCC" = yes; then
7302
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7303
7304
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7305
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7306
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7307
  $as_echo_n "(cached) " >&6
7308
else
7309
  lt_cv_prog_compiler_rtti_exceptions=no
7310
   ac_outfile=conftest.$ac_objext
7311
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7312
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7313
   # Insert the option either (1) after the last *FLAGS variable, or
7314
   # (2) before a word containing "conftest.", or (3) at the end.
7315
   # Note that $ac_compile itself does not contain backslashes and begins
7316
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7317
   # The option is referenced via a variable to avoid confusing sed.
7318
   lt_compile=`echo "$ac_compile" | $SED \
7319
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7320
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7321
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
7322
   (eval echo "\"\$as_me:7322: $lt_compile\"" >&5)
5 by edam
- updated README
7323
   (eval "$lt_compile" 2>conftest.err)
7324
   ac_status=$?
7325
   cat conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
7326
   echo "$as_me:7326: \$? = $ac_status" >&5
5 by edam
- updated README
7327
   if (exit $ac_status) && test -s "$ac_outfile"; then
7328
     # The compiler can only warn and ignore the option if not recognized
7329
     # So say no if there are warnings other than the usual output.
7330
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7331
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7332
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7333
       lt_cv_prog_compiler_rtti_exceptions=yes
7334
     fi
7335
   fi
7336
   $RM conftest*
7337
7338
fi
7339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7340
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7341
7342
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7343
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7344
else
7345
    :
7346
fi
7347
7348
fi
7349
7350
7351
7352
7353
7354
7355
  lt_prog_compiler_wl=
7356
lt_prog_compiler_pic=
7357
lt_prog_compiler_static=
7358
7359
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7360
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7361
7362
  if test "$GCC" = yes; then
7363
    lt_prog_compiler_wl='-Wl,'
7364
    lt_prog_compiler_static='-static'
7365
7366
    case $host_os in
7367
      aix*)
7368
      # All AIX code is PIC.
7369
      if test "$host_cpu" = ia64; then
7370
	# AIX 5 now supports IA64 processor
7371
	lt_prog_compiler_static='-Bstatic'
7372
      fi
7373
      ;;
7374
7375
    amigaos*)
7376
      case $host_cpu in
7377
      powerpc)
7378
            # see comment about AmigaOS4 .so support
7379
            lt_prog_compiler_pic='-fPIC'
7380
        ;;
7381
      m68k)
7382
            # FIXME: we need at least 68020 code to build shared libraries, but
7383
            # adding the `-m68020' flag to GCC prevents building anything better,
7384
            # like `-m68040'.
7385
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7386
        ;;
7387
      esac
7388
      ;;
7389
7390
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7391
      # PIC is the default for these OSes.
7392
      ;;
7393
7394
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7395
      # This hack is so that the source file can tell whether it is being
7396
      # built for inclusion in a dll (and should export symbols for example).
7397
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7398
      # (--disable-auto-import) libraries
7399
      lt_prog_compiler_pic='-DDLL_EXPORT'
7400
      ;;
7401
7402
    darwin* | rhapsody*)
7403
      # PIC is the default on this platform
7404
      # Common symbols not allowed in MH_DYLIB files
7405
      lt_prog_compiler_pic='-fno-common'
7406
      ;;
7407
7408
    hpux*)
7409
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7410
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7411
      # sets the default TLS model and affects inlining.
7412
      case $host_cpu in
7413
      hppa*64*)
7414
	# +Z the default
7415
	;;
7416
      *)
7417
	lt_prog_compiler_pic='-fPIC'
7418
	;;
7419
      esac
7420
      ;;
7421
7422
    interix[3-9]*)
7423
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7424
      # Instead, we relocate shared libraries at runtime.
7425
      ;;
7426
7427
    msdosdjgpp*)
7428
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7429
      # on systems that don't support them.
7430
      lt_prog_compiler_can_build_shared=no
7431
      enable_shared=no
7432
      ;;
7433
7434
    *nto* | *qnx*)
7435
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7436
      # it will coredump.
7437
      lt_prog_compiler_pic='-fPIC -shared'
7438
      ;;
7439
7440
    sysv4*MP*)
7441
      if test -d /usr/nec; then
7442
	lt_prog_compiler_pic=-Kconform_pic
7443
      fi
7444
      ;;
7445
7446
    *)
7447
      lt_prog_compiler_pic='-fPIC'
7448
      ;;
7449
    esac
7450
  else
7451
    # PORTME Check for flag to pass linker flags through the system compiler.
7452
    case $host_os in
7453
    aix*)
7454
      lt_prog_compiler_wl='-Wl,'
7455
      if test "$host_cpu" = ia64; then
7456
	# AIX 5 now supports IA64 processor
7457
	lt_prog_compiler_static='-Bstatic'
7458
      else
7459
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7460
      fi
7461
      ;;
7462
7463
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7464
      # This hack is so that the source file can tell whether it is being
7465
      # built for inclusion in a dll (and should export symbols for example).
7466
      lt_prog_compiler_pic='-DDLL_EXPORT'
7467
      ;;
7468
7469
    hpux9* | hpux10* | hpux11*)
7470
      lt_prog_compiler_wl='-Wl,'
7471
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7472
      # not for PA HP-UX.
7473
      case $host_cpu in
7474
      hppa*64*|ia64*)
7475
	# +Z the default
7476
	;;
7477
      *)
7478
	lt_prog_compiler_pic='+Z'
7479
	;;
7480
      esac
7481
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7482
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7483
      ;;
7484
7485
    irix5* | irix6* | nonstopux*)
7486
      lt_prog_compiler_wl='-Wl,'
7487
      # PIC (with -KPIC) is the default.
7488
      lt_prog_compiler_static='-non_shared'
7489
      ;;
7490
7491
    linux* | k*bsd*-gnu)
7492
      case $cc_basename in
7493
      # old Intel for x86_64 which still supported -KPIC.
7494
      ecc*)
7495
	lt_prog_compiler_wl='-Wl,'
7496
	lt_prog_compiler_pic='-KPIC'
7497
	lt_prog_compiler_static='-static'
7498
        ;;
7499
      # icc used to be incompatible with GCC.
7500
      # ICC 10 doesn't accept -KPIC any more.
7501
      icc* | ifort*)
7502
	lt_prog_compiler_wl='-Wl,'
7503
	lt_prog_compiler_pic='-fPIC'
7504
	lt_prog_compiler_static='-static'
7505
        ;;
7506
      # Lahey Fortran 8.1.
7507
      lf95*)
7508
	lt_prog_compiler_wl='-Wl,'
7509
	lt_prog_compiler_pic='--shared'
7510
	lt_prog_compiler_static='--static'
7511
	;;
7512
      pgcc* | pgf77* | pgf90* | pgf95*)
7513
        # Portland Group compilers (*not* the Pentium gcc compiler,
7514
	# which looks to be a dead project)
7515
	lt_prog_compiler_wl='-Wl,'
7516
	lt_prog_compiler_pic='-fpic'
7517
	lt_prog_compiler_static='-Bstatic'
7518
        ;;
7519
      ccc*)
7520
        lt_prog_compiler_wl='-Wl,'
7521
        # All Alpha code is PIC.
7522
        lt_prog_compiler_static='-non_shared'
7523
        ;;
7524
      xl*)
7525
	# IBM XL C 8.0/Fortran 10.1 on PPC
7526
	lt_prog_compiler_wl='-Wl,'
7527
	lt_prog_compiler_pic='-qpic'
7528
	lt_prog_compiler_static='-qstaticlink'
7529
	;;
7530
      *)
7531
	case `$CC -V 2>&1 | sed 5q` in
7532
	*Sun\ C*)
7533
	  # Sun C 5.9
7534
	  lt_prog_compiler_pic='-KPIC'
7535
	  lt_prog_compiler_static='-Bstatic'
7536
	  lt_prog_compiler_wl='-Wl,'
7537
	  ;;
7538
	*Sun\ F*)
7539
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7540
	  lt_prog_compiler_pic='-KPIC'
7541
	  lt_prog_compiler_static='-Bstatic'
7542
	  lt_prog_compiler_wl=''
7543
	  ;;
7544
	esac
7545
	;;
7546
      esac
7547
      ;;
7548
7549
    newsos6)
7550
      lt_prog_compiler_pic='-KPIC'
7551
      lt_prog_compiler_static='-Bstatic'
7552
      ;;
7553
7554
    *nto* | *qnx*)
7555
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7556
      # it will coredump.
7557
      lt_prog_compiler_pic='-fPIC -shared'
7558
      ;;
7559
7560
    osf3* | osf4* | osf5*)
7561
      lt_prog_compiler_wl='-Wl,'
7562
      # All OSF/1 code is PIC.
7563
      lt_prog_compiler_static='-non_shared'
7564
      ;;
7565
7566
    rdos*)
7567
      lt_prog_compiler_static='-non_shared'
7568
      ;;
7569
7570
    solaris*)
7571
      lt_prog_compiler_pic='-KPIC'
7572
      lt_prog_compiler_static='-Bstatic'
7573
      case $cc_basename in
7574
      f77* | f90* | f95*)
7575
	lt_prog_compiler_wl='-Qoption ld ';;
7576
      *)
7577
	lt_prog_compiler_wl='-Wl,';;
7578
      esac
7579
      ;;
7580
7581
    sunos4*)
7582
      lt_prog_compiler_wl='-Qoption ld '
7583
      lt_prog_compiler_pic='-PIC'
7584
      lt_prog_compiler_static='-Bstatic'
7585
      ;;
7586
7587
    sysv4 | sysv4.2uw2* | sysv4.3*)
7588
      lt_prog_compiler_wl='-Wl,'
7589
      lt_prog_compiler_pic='-KPIC'
7590
      lt_prog_compiler_static='-Bstatic'
7591
      ;;
7592
7593
    sysv4*MP*)
7594
      if test -d /usr/nec ;then
7595
	lt_prog_compiler_pic='-Kconform_pic'
7596
	lt_prog_compiler_static='-Bstatic'
7597
      fi
7598
      ;;
7599
7600
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7601
      lt_prog_compiler_wl='-Wl,'
7602
      lt_prog_compiler_pic='-KPIC'
7603
      lt_prog_compiler_static='-Bstatic'
7604
      ;;
7605
7606
    unicos*)
7607
      lt_prog_compiler_wl='-Wl,'
7608
      lt_prog_compiler_can_build_shared=no
7609
      ;;
7610
7611
    uts4*)
7612
      lt_prog_compiler_pic='-pic'
7613
      lt_prog_compiler_static='-Bstatic'
7614
      ;;
7615
7616
    *)
7617
      lt_prog_compiler_can_build_shared=no
7618
      ;;
7619
    esac
7620
  fi
7621
7622
case $host_os in
7623
  # For platforms which do not support PIC, -DPIC is meaningless:
7624
  *djgpp*)
7625
    lt_prog_compiler_pic=
7626
    ;;
7627
  *)
7628
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7629
    ;;
7630
esac
7631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7632
$as_echo "$lt_prog_compiler_pic" >&6; }
7633
7634
7635
7636
7637
7638
7639
#
7640
# Check to make sure the PIC flag actually works.
7641
#
7642
if test -n "$lt_prog_compiler_pic"; then
7643
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7644
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7645
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7646
  $as_echo_n "(cached) " >&6
7647
else
7648
  lt_cv_prog_compiler_pic_works=no
7649
   ac_outfile=conftest.$ac_objext
7650
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7651
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7652
   # Insert the option either (1) after the last *FLAGS variable, or
7653
   # (2) before a word containing "conftest.", or (3) at the end.
7654
   # Note that $ac_compile itself does not contain backslashes and begins
7655
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7656
   # The option is referenced via a variable to avoid confusing sed.
7657
   lt_compile=`echo "$ac_compile" | $SED \
7658
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
7661
   (eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
5 by edam
- updated README
7662
   (eval "$lt_compile" 2>conftest.err)
7663
   ac_status=$?
7664
   cat conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
7665
   echo "$as_me:7665: \$? = $ac_status" >&5
5 by edam
- updated README
7666
   if (exit $ac_status) && test -s "$ac_outfile"; then
7667
     # The compiler can only warn and ignore the option if not recognized
7668
     # So say no if there are warnings other than the usual output.
7669
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7670
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7671
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7672
       lt_cv_prog_compiler_pic_works=yes
7673
     fi
7674
   fi
7675
   $RM conftest*
7676
7677
fi
7678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7679
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7680
7681
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7682
    case $lt_prog_compiler_pic in
7683
     "" | " "*) ;;
7684
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7685
     esac
7686
else
7687
    lt_prog_compiler_pic=
7688
     lt_prog_compiler_can_build_shared=no
7689
fi
7690
7691
fi
7692
7693
7694
7695
7696
7697
7698
#
7699
# Check to make sure the static flag actually works.
7700
#
7701
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7703
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7704
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7705
  $as_echo_n "(cached) " >&6
7706
else
7707
  lt_cv_prog_compiler_static_works=no
7708
   save_LDFLAGS="$LDFLAGS"
7709
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7710
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7711
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7712
     # The linker can only warn and ignore the option if not recognized
7713
     # So say no if there are warnings
7714
     if test -s conftest.err; then
7715
       # Append any errors to the config.log.
7716
       cat conftest.err 1>&5
7717
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7718
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7719
       if diff conftest.exp conftest.er2 >/dev/null; then
7720
         lt_cv_prog_compiler_static_works=yes
7721
       fi
7722
     else
7723
       lt_cv_prog_compiler_static_works=yes
7724
     fi
7725
   fi
7726
   $RM -r conftest*
7727
   LDFLAGS="$save_LDFLAGS"
7728
7729
fi
7730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7731
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7732
7733
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7734
    :
7735
else
7736
    lt_prog_compiler_static=
7737
fi
7738
7739
7740
7741
7742
7743
7744
7745
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7746
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7747
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7748
  $as_echo_n "(cached) " >&6
7749
else
7750
  lt_cv_prog_compiler_c_o=no
7751
   $RM -r conftest 2>/dev/null
7752
   mkdir conftest
7753
   cd conftest
7754
   mkdir out
7755
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7756
7757
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7758
   # Insert the option either (1) after the last *FLAGS variable, or
7759
   # (2) before a word containing "conftest.", or (3) at the end.
7760
   # Note that $ac_compile itself does not contain backslashes and begins
7761
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7762
   lt_compile=`echo "$ac_compile" | $SED \
7763
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7764
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7765
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
7766
   (eval echo "\"\$as_me:7766: $lt_compile\"" >&5)
5 by edam
- updated README
7767
   (eval "$lt_compile" 2>out/conftest.err)
7768
   ac_status=$?
7769
   cat out/conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
7770
   echo "$as_me:7770: \$? = $ac_status" >&5
5 by edam
- updated README
7771
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7772
   then
7773
     # The compiler can only warn and ignore the option if not recognized
7774
     # So say no if there are warnings
7775
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7776
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7777
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7778
       lt_cv_prog_compiler_c_o=yes
7779
     fi
7780
   fi
7781
   chmod u+w . 2>&5
7782
   $RM conftest*
7783
   # SGI C++ compiler will create directory out/ii_files/ for
7784
   # template instantiation
7785
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7786
   $RM out/* && rmdir out
7787
   cd ..
7788
   $RM -r conftest
7789
   $RM conftest*
7790
7791
fi
7792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7793
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7794
7795
7796
7797
7798
7799
7800
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7801
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7802
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7803
  $as_echo_n "(cached) " >&6
7804
else
7805
  lt_cv_prog_compiler_c_o=no
7806
   $RM -r conftest 2>/dev/null
7807
   mkdir conftest
7808
   cd conftest
7809
   mkdir out
7810
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7811
7812
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7813
   # Insert the option either (1) after the last *FLAGS variable, or
7814
   # (2) before a word containing "conftest.", or (3) at the end.
7815
   # Note that $ac_compile itself does not contain backslashes and begins
7816
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7817
   lt_compile=`echo "$ac_compile" | $SED \
7818
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
7821
   (eval echo "\"\$as_me:7821: $lt_compile\"" >&5)
5 by edam
- updated README
7822
   (eval "$lt_compile" 2>out/conftest.err)
7823
   ac_status=$?
7824
   cat out/conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
7825
   echo "$as_me:7825: \$? = $ac_status" >&5
5 by edam
- updated README
7826
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7827
   then
7828
     # The compiler can only warn and ignore the option if not recognized
7829
     # So say no if there are warnings
7830
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7831
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7832
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7833
       lt_cv_prog_compiler_c_o=yes
7834
     fi
7835
   fi
7836
   chmod u+w . 2>&5
7837
   $RM conftest*
7838
   # SGI C++ compiler will create directory out/ii_files/ for
7839
   # template instantiation
7840
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7841
   $RM out/* && rmdir out
7842
   cd ..
7843
   $RM -r conftest
7844
   $RM conftest*
7845
7846
fi
7847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7848
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7849
7850
7851
7852
7853
hard_links="nottested"
7854
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7855
  # do not overwrite the value of need_locks provided by the user
7856
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7857
$as_echo_n "checking if we can lock with hard links... " >&6; }
7858
  hard_links=yes
7859
  $RM conftest*
7860
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7861
  touch conftest.a
7862
  ln conftest.a conftest.b 2>&5 || hard_links=no
7863
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7864
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7865
$as_echo "$hard_links" >&6; }
7866
  if test "$hard_links" = no; then
7867
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7868
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7869
    need_locks=warn
7870
  fi
7871
else
7872
  need_locks=no
7873
fi
7874
7875
7876
7877
7878
7879
7880
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7881
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7882
7883
  runpath_var=
7884
  allow_undefined_flag=
7885
  always_export_symbols=no
7886
  archive_cmds=
7887
  archive_expsym_cmds=
7888
  compiler_needs_object=no
7889
  enable_shared_with_static_runtimes=no
7890
  export_dynamic_flag_spec=
7891
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7892
  hardcode_automatic=no
7893
  hardcode_direct=no
7894
  hardcode_direct_absolute=no
7895
  hardcode_libdir_flag_spec=
7896
  hardcode_libdir_flag_spec_ld=
7897
  hardcode_libdir_separator=
7898
  hardcode_minus_L=no
7899
  hardcode_shlibpath_var=unsupported
7900
  inherit_rpath=no
7901
  link_all_deplibs=unknown
7902
  module_cmds=
7903
  module_expsym_cmds=
7904
  old_archive_from_new_cmds=
7905
  old_archive_from_expsyms_cmds=
7906
  thread_safe_flag_spec=
7907
  whole_archive_flag_spec=
7908
  # include_expsyms should be a list of space-separated symbols to be *always*
7909
  # included in the symbol list
7910
  include_expsyms=
7911
  # exclude_expsyms can be an extended regexp of symbols to exclude
7912
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7913
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7914
  # as well as any symbol that contains `d'.
7915
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7916
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7917
  # platforms (ab)use it in PIC code, but their linkers get confused if
7918
  # the symbol is explicitly referenced.  Since portable code cannot
7919
  # rely on this symbol name, it's probably fine to never include it in
7920
  # preloaded symbol tables.
7921
  # Exclude shared library initialization/finalization symbols.
7922
  extract_expsyms_cmds=
7923
7924
  case $host_os in
7925
  cygwin* | mingw* | pw32* | cegcc*)
7926
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7927
    # When not using gcc, we currently assume that we are using
7928
    # Microsoft Visual C++.
7929
    if test "$GCC" != yes; then
7930
      with_gnu_ld=no
7931
    fi
7932
    ;;
7933
  interix*)
7934
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7935
    with_gnu_ld=yes
7936
    ;;
7937
  openbsd*)
7938
    with_gnu_ld=no
7939
    ;;
7940
  linux* | k*bsd*-gnu)
7941
    link_all_deplibs=no
7942
    ;;
7943
  esac
7944
7945
  ld_shlibs=yes
7946
  if test "$with_gnu_ld" = yes; then
7947
    # If archive_cmds runs LD, not CC, wlarc should be empty
7948
    wlarc='${wl}'
7949
7950
    # Set some defaults for GNU ld with shared library support. These
7951
    # are reset later if shared libraries are not supported. Putting them
7952
    # here allows them to be overridden if necessary.
7953
    runpath_var=LD_RUN_PATH
7954
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7955
    export_dynamic_flag_spec='${wl}--export-dynamic'
7956
    # ancient GNU ld didn't support --whole-archive et. al.
7957
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7958
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7959
    else
7960
      whole_archive_flag_spec=
7961
    fi
7962
    supports_anon_versioning=no
7963
    case `$LD -v 2>&1` in
7964
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7965
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7966
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7967
      *\ 2.11.*) ;; # other 2.11 versions
7968
      *) supports_anon_versioning=yes ;;
7969
    esac
7970
7971
    # See if GNU ld supports shared libraries.
7972
    case $host_os in
7973
    aix[3-9]*)
7974
      # On AIX/PPC, the GNU linker is very broken
7975
      if test "$host_cpu" != ia64; then
7976
	ld_shlibs=no
7977
	cat <<_LT_EOF 1>&2
7978
7979
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7980
*** to be unable to reliably create shared libraries on AIX.
7981
*** Therefore, libtool is disabling shared libraries support.  If you
7982
*** really care for shared libraries, you may want to modify your PATH
7983
*** so that a non-GNU linker is found, and then restart.
7984
7985
_LT_EOF
7986
      fi
7987
      ;;
7988
7989
    amigaos*)
7990
      case $host_cpu in
7991
      powerpc)
7992
            # see comment about AmigaOS4 .so support
7993
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7994
            archive_expsym_cmds=''
7995
        ;;
7996
      m68k)
7997
            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)'
7998
            hardcode_libdir_flag_spec='-L$libdir'
7999
            hardcode_minus_L=yes
8000
        ;;
8001
      esac
8002
      ;;
8003
8004
    beos*)
8005
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8006
	allow_undefined_flag=unsupported
8007
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8008
	# support --undefined.  This deserves some investigation.  FIXME
8009
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010
      else
8011
	ld_shlibs=no
8012
      fi
8013
      ;;
8014
8015
    cygwin* | mingw* | pw32* | cegcc*)
8016
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8017
      # as there is no search path for DLLs.
8018
      hardcode_libdir_flag_spec='-L$libdir'
8019
      allow_undefined_flag=unsupported
8020
      always_export_symbols=no
8021
      enable_shared_with_static_runtimes=yes
8022
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8023
8024
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8025
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8026
	# If the export-symbols file already is a .def file (1st line
8027
	# is EXPORTS), use it as is; otherwise, prepend...
8028
	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8029
	  cp $export_symbols $output_objdir/$soname.def;
8030
	else
8031
	  echo EXPORTS > $output_objdir/$soname.def;
8032
	  cat $export_symbols >> $output_objdir/$soname.def;
8033
	fi~
8034
	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8035
      else
8036
	ld_shlibs=no
8037
      fi
8038
      ;;
8039
8040
    interix[3-9]*)
8041
      hardcode_direct=no
8042
      hardcode_shlibpath_var=no
8043
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8044
      export_dynamic_flag_spec='${wl}-E'
8045
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8046
      # Instead, shared libraries are loaded at an image base (0x10000000 by
8047
      # default) and relocated if they conflict, which is a slow very memory
8048
      # consuming and fragmenting process.  To avoid this, we pick a random,
8049
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8050
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8051
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8052
      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'
8053
      ;;
8054
8055
    gnu* | linux* | tpf* | k*bsd*-gnu)
8056
      tmp_diet=no
8057
      if test "$host_os" = linux-dietlibc; then
8058
	case $cc_basename in
8059
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8060
	esac
8061
      fi
8062
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8063
	 && test "$tmp_diet" = no
8064
      then
8065
	tmp_addflag=
8066
	tmp_sharedflag='-shared'
8067
	case $cc_basename,$host_cpu in
8068
        pgcc*)				# Portland Group C compiler
8069
	  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'
8070
	  tmp_addflag=' $pic_flag'
8071
	  ;;
8072
	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8073
	  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'
8074
	  tmp_addflag=' $pic_flag -Mnomain' ;;
8075
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8076
	  tmp_addflag=' -i_dynamic' ;;
8077
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8078
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8079
	ifc* | ifort*)			# Intel Fortran compiler
8080
	  tmp_addflag=' -nofor_main' ;;
8081
	lf95*)				# Lahey Fortran 8.1
8082
	  whole_archive_flag_spec=
8083
	  tmp_sharedflag='--shared' ;;
8084
	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8085
	  tmp_sharedflag='-qmkshrobj'
8086
	  tmp_addflag= ;;
8087
	esac
8088
	case `$CC -V 2>&1 | sed 5q` in
8089
	*Sun\ C*)			# Sun C 5.9
8090
	  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'
8091
	  compiler_needs_object=yes
8092
	  tmp_sharedflag='-G' ;;
8093
	*Sun\ F*)			# Sun Fortran 8.3
8094
	  tmp_sharedflag='-G' ;;
8095
	esac
8096
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8097
8098
        if test "x$supports_anon_versioning" = xyes; then
8099
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8100
	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8101
	    echo "local: *; };" >> $output_objdir/$libname.ver~
8102
	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8103
        fi
8104
8105
	case $cc_basename in
8106
	xlf*)
8107
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8108
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8109
	  hardcode_libdir_flag_spec=
8110
	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8111
	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8112
	  if test "x$supports_anon_versioning" = xyes; then
8113
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8114
	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8115
	      echo "local: *; };" >> $output_objdir/$libname.ver~
8116
	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8117
	  fi
8118
	  ;;
8119
	esac
8120
      else
8121
        ld_shlibs=no
8122
      fi
8123
      ;;
8124
8125
    netbsd* | netbsdelf*-gnu)
8126
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8127
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8128
	wlarc=
8129
      else
8130
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8131
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8132
      fi
8133
      ;;
8134
8135
    solaris*)
8136
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8137
	ld_shlibs=no
8138
	cat <<_LT_EOF 1>&2
8139
8140
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8141
*** create shared libraries on Solaris systems.  Therefore, libtool
8142
*** is disabling shared libraries support.  We urge you to upgrade GNU
8143
*** binutils to release 2.9.1 or newer.  Another option is to modify
8144
*** your PATH or compiler configuration so that the native linker is
8145
*** used, and then restart.
8146
8147
_LT_EOF
8148
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8149
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8151
      else
8152
	ld_shlibs=no
8153
      fi
8154
      ;;
8155
8156
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8157
      case `$LD -v 2>&1` in
8158
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8159
	ld_shlibs=no
8160
	cat <<_LT_EOF 1>&2
8161
8162
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8163
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8164
*** is disabling shared libraries support.  We urge you to upgrade GNU
8165
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8166
*** your PATH or compiler configuration so that the native linker is
8167
*** used, and then restart.
8168
8169
_LT_EOF
8170
	;;
8171
	*)
8172
	  # For security reasons, it is highly recommended that you always
8173
	  # use absolute paths for naming shared libraries, and exclude the
8174
	  # DT_RUNPATH tag from executables and libraries.  But doing so
8175
	  # requires that you compile everything twice, which is a pain.
8176
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8177
	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8178
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8179
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8180
	  else
8181
	    ld_shlibs=no
8182
	  fi
8183
	;;
8184
      esac
8185
      ;;
8186
8187
    sunos4*)
8188
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8189
      wlarc=
8190
      hardcode_direct=yes
8191
      hardcode_shlibpath_var=no
8192
      ;;
8193
8194
    *)
8195
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8196
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8197
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8198
      else
8199
	ld_shlibs=no
8200
      fi
8201
      ;;
8202
    esac
8203
8204
    if test "$ld_shlibs" = no; then
8205
      runpath_var=
8206
      hardcode_libdir_flag_spec=
8207
      export_dynamic_flag_spec=
8208
      whole_archive_flag_spec=
8209
    fi
8210
  else
8211
    # PORTME fill in a description of your system's linker (not GNU ld)
8212
    case $host_os in
8213
    aix3*)
8214
      allow_undefined_flag=unsupported
8215
      always_export_symbols=yes
8216
      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'
8217
      # Note: this linker hardcodes the directories in LIBPATH if there
8218
      # are no directories specified by -L.
8219
      hardcode_minus_L=yes
8220
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8221
	# Neither direct hardcoding nor static linking is supported with a
8222
	# broken collect2.
8223
	hardcode_direct=unsupported
8224
      fi
8225
      ;;
8226
8227
    aix[4-9]*)
8228
      if test "$host_cpu" = ia64; then
8229
	# On IA64, the linker does run time linking by default, so we don't
8230
	# have to do anything special.
8231
	aix_use_runtimelinking=no
8232
	exp_sym_flag='-Bexport'
8233
	no_entry_flag=""
8234
      else
8235
	# If we're using GNU nm, then we don't want the "-C" option.
8236
	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8237
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8238
	  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'
8239
	else
8240
	  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'
8241
	fi
8242
	aix_use_runtimelinking=no
8243
8244
	# Test if we are trying to use run time linking or normal
8245
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8246
	# need to do runtime linking.
8247
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8248
	  for ld_flag in $LDFLAGS; do
8249
	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8250
	    aix_use_runtimelinking=yes
8251
	    break
8252
	  fi
8253
	  done
8254
	  ;;
8255
	esac
8256
8257
	exp_sym_flag='-bexport'
8258
	no_entry_flag='-bnoentry'
8259
      fi
8260
8261
      # When large executables or shared objects are built, AIX ld can
8262
      # have problems creating the table of contents.  If linking a library
8263
      # or program results in "error TOC overflow" add -mminimal-toc to
8264
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8265
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8266
8267
      archive_cmds=''
8268
      hardcode_direct=yes
8269
      hardcode_direct_absolute=yes
8270
      hardcode_libdir_separator=':'
8271
      link_all_deplibs=yes
8272
      file_list_spec='${wl}-f,'
8273
8274
      if test "$GCC" = yes; then
8275
	case $host_os in aix4.[012]|aix4.[012].*)
8276
	# We only want to do this on AIX 4.2 and lower, the check
8277
	# below for broken collect2 doesn't work under 4.3+
8278
	  collect2name=`${CC} -print-prog-name=collect2`
8279
	  if test -f "$collect2name" &&
8280
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8281
	  then
8282
	  # We have reworked collect2
8283
	  :
8284
	  else
8285
	  # We have old collect2
8286
	  hardcode_direct=unsupported
8287
	  # It fails to find uninstalled libraries when the uninstalled
8288
	  # path is not listed in the libpath.  Setting hardcode_minus_L
8289
	  # to unsupported forces relinking
8290
	  hardcode_minus_L=yes
8291
	  hardcode_libdir_flag_spec='-L$libdir'
8292
	  hardcode_libdir_separator=
8293
	  fi
8294
	  ;;
8295
	esac
8296
	shared_flag='-shared'
8297
	if test "$aix_use_runtimelinking" = yes; then
8298
	  shared_flag="$shared_flag "'${wl}-G'
8299
	fi
8300
	link_all_deplibs=no
8301
      else
8302
	# not using gcc
8303
	if test "$host_cpu" = ia64; then
8304
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8305
	# chokes on -Wl,-G. The following line is correct:
8306
	  shared_flag='-G'
8307
	else
8308
	  if test "$aix_use_runtimelinking" = yes; then
8309
	    shared_flag='${wl}-G'
8310
	  else
8311
	    shared_flag='${wl}-bM:SRE'
8312
	  fi
8313
	fi
8314
      fi
8315
8316
      export_dynamic_flag_spec='${wl}-bexpall'
8317
      # It seems that -bexpall does not export symbols beginning with
8318
      # underscore (_), so it is better to generate a list of symbols to export.
8319
      always_export_symbols=yes
8320
      if test "$aix_use_runtimelinking" = yes; then
8321
	# Warning - without using the other runtime loading flags (-brtl),
8322
	# -berok will link without error, but may produce a broken library.
8323
	allow_undefined_flag='-berok'
8324
        # Determine the default libpath from the value encoded in an
8325
        # empty executable.
8326
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327
/* end confdefs.h.  */
8328
8329
int
8330
main ()
8331
{
8332
8333
  ;
8334
  return 0;
8335
}
8336
_ACEOF
8337
if ac_fn_c_try_link "$LINENO"; then :
8338
8339
lt_aix_libpath_sed='
8340
    /Import File Strings/,/^$/ {
8341
	/^0/ {
8342
	    s/^0  *\(.*\)$/\1/
8343
	    p
8344
	}
8345
    }'
8346
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8347
# Check for a 64-bit object if we didn't find anything.
8348
if test -z "$aix_libpath"; then
8349
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8350
fi
8351
fi
8352
rm -f core conftest.err conftest.$ac_objext \
8353
    conftest$ac_exeext conftest.$ac_ext
8354
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8355
8356
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8357
        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"
8358
      else
8359
	if test "$host_cpu" = ia64; then
8360
	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8361
	  allow_undefined_flag="-z nodefs"
8362
	  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"
8363
	else
8364
	 # Determine the default libpath from the value encoded in an
8365
	 # empty executable.
8366
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367
/* end confdefs.h.  */
8368
8369
int
8370
main ()
8371
{
8372
8373
  ;
8374
  return 0;
8375
}
8376
_ACEOF
8377
if ac_fn_c_try_link "$LINENO"; then :
8378
8379
lt_aix_libpath_sed='
8380
    /Import File Strings/,/^$/ {
8381
	/^0/ {
8382
	    s/^0  *\(.*\)$/\1/
8383
	    p
8384
	}
8385
    }'
8386
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8387
# Check for a 64-bit object if we didn't find anything.
8388
if test -z "$aix_libpath"; then
8389
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8390
fi
8391
fi
8392
rm -f core conftest.err conftest.$ac_objext \
8393
    conftest$ac_exeext conftest.$ac_ext
8394
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8395
8396
	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8397
	  # Warning - without using the other run time loading flags,
8398
	  # -berok will link without error, but may produce a broken library.
8399
	  no_undefined_flag=' ${wl}-bernotok'
8400
	  allow_undefined_flag=' ${wl}-berok'
8401
	  # Exported symbols can be pulled into shared objects from archives
8402
	  whole_archive_flag_spec='$convenience'
8403
	  archive_cmds_need_lc=yes
8404
	  # This is similar to how AIX traditionally builds its shared libraries.
8405
	  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'
8406
	fi
8407
      fi
8408
      ;;
8409
8410
    amigaos*)
8411
      case $host_cpu in
8412
      powerpc)
8413
            # see comment about AmigaOS4 .so support
8414
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8415
            archive_expsym_cmds=''
8416
        ;;
8417
      m68k)
8418
            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)'
8419
            hardcode_libdir_flag_spec='-L$libdir'
8420
            hardcode_minus_L=yes
8421
        ;;
8422
      esac
8423
      ;;
8424
8425
    bsdi[45]*)
8426
      export_dynamic_flag_spec=-rdynamic
8427
      ;;
8428
8429
    cygwin* | mingw* | pw32* | cegcc*)
8430
      # When not using gcc, we currently assume that we are using
8431
      # Microsoft Visual C++.
8432
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8433
      # no search path for DLLs.
8434
      hardcode_libdir_flag_spec=' '
8435
      allow_undefined_flag=unsupported
8436
      # Tell ltmain to make .lib files, not .a files.
8437
      libext=lib
8438
      # Tell ltmain to make .dll files, not .so files.
8439
      shrext_cmds=".dll"
8440
      # FIXME: Setting linknames here is a bad hack.
8441
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8442
      # The linker will automatically build a .lib file if we build a DLL.
8443
      old_archive_from_new_cmds='true'
8444
      # FIXME: Should let the user specify the lib program.
8445
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8446
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8447
      enable_shared_with_static_runtimes=yes
8448
      ;;
8449
8450
    darwin* | rhapsody*)
8451
8452
8453
  archive_cmds_need_lc=no
8454
  hardcode_direct=no
8455
  hardcode_automatic=yes
8456
  hardcode_shlibpath_var=unsupported
8457
  whole_archive_flag_spec=''
8458
  link_all_deplibs=yes
8459
  allow_undefined_flag="$_lt_dar_allow_undefined"
8460
  case $cc_basename in
8461
     ifort*) _lt_dar_can_shared=yes ;;
8462
     *) _lt_dar_can_shared=$GCC ;;
8463
  esac
8464
  if test "$_lt_dar_can_shared" = "yes"; then
8465
    output_verbose_link_cmd=echo
8466
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8467
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8468
    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}"
8469
    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}"
8470
8471
  else
8472
  ld_shlibs=no
8473
  fi
8474
8475
      ;;
8476
8477
    dgux*)
8478
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479
      hardcode_libdir_flag_spec='-L$libdir'
8480
      hardcode_shlibpath_var=no
8481
      ;;
8482
8483
    freebsd1*)
8484
      ld_shlibs=no
8485
      ;;
8486
8487
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8488
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8489
    # does not break anything, and helps significantly (at the cost of a little
8490
    # extra space).
8491
    freebsd2.2*)
8492
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8493
      hardcode_libdir_flag_spec='-R$libdir'
8494
      hardcode_direct=yes
8495
      hardcode_shlibpath_var=no
8496
      ;;
8497
8498
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8499
    freebsd2*)
8500
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8501
      hardcode_direct=yes
8502
      hardcode_minus_L=yes
8503
      hardcode_shlibpath_var=no
8504
      ;;
8505
8506
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8507
    freebsd* | dragonfly*)
8508
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8509
      hardcode_libdir_flag_spec='-R$libdir'
8510
      hardcode_direct=yes
8511
      hardcode_shlibpath_var=no
8512
      ;;
8513
8514
    hpux9*)
8515
      if test "$GCC" = yes; then
8516
	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'
8517
      else
8518
	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'
8519
      fi
8520
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8521
      hardcode_libdir_separator=:
8522
      hardcode_direct=yes
8523
8524
      # hardcode_minus_L: Not really in the search PATH,
8525
      # but as the default location of the library.
8526
      hardcode_minus_L=yes
8527
      export_dynamic_flag_spec='${wl}-E'
8528
      ;;
8529
8530
    hpux10*)
8531
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8532
	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8533
      else
8534
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8535
      fi
8536
      if test "$with_gnu_ld" = no; then
8537
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8538
	hardcode_libdir_flag_spec_ld='+b $libdir'
8539
	hardcode_libdir_separator=:
8540
	hardcode_direct=yes
8541
	hardcode_direct_absolute=yes
8542
	export_dynamic_flag_spec='${wl}-E'
8543
	# hardcode_minus_L: Not really in the search PATH,
8544
	# but as the default location of the library.
8545
	hardcode_minus_L=yes
8546
      fi
8547
      ;;
8548
8549
    hpux11*)
8550
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8551
	case $host_cpu in
8552
	hppa*64*)
8553
	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8554
	  ;;
8555
	ia64*)
8556
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8557
	  ;;
8558
	*)
8559
	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8560
	  ;;
8561
	esac
8562
      else
8563
	case $host_cpu in
8564
	hppa*64*)
8565
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8566
	  ;;
8567
	ia64*)
8568
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8569
	  ;;
8570
	*)
8571
	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572
	  ;;
8573
	esac
8574
      fi
8575
      if test "$with_gnu_ld" = no; then
8576
	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8577
	hardcode_libdir_separator=:
8578
8579
	case $host_cpu in
8580
	hppa*64*|ia64*)
8581
	  hardcode_direct=no
8582
	  hardcode_shlibpath_var=no
8583
	  ;;
8584
	*)
8585
	  hardcode_direct=yes
8586
	  hardcode_direct_absolute=yes
8587
	  export_dynamic_flag_spec='${wl}-E'
8588
8589
	  # hardcode_minus_L: Not really in the search PATH,
8590
	  # but as the default location of the library.
8591
	  hardcode_minus_L=yes
8592
	  ;;
8593
	esac
8594
      fi
8595
      ;;
8596
8597
    irix5* | irix6* | nonstopux*)
8598
      if test "$GCC" = yes; then
8599
	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'
8600
	# Try to use the -exported_symbol ld option, if it does not
8601
	# work, assume that -exports_file does not work either and
8602
	# implicitly export all symbols.
8603
        save_LDFLAGS="$LDFLAGS"
8604
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8605
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606
/* end confdefs.h.  */
8607
int foo(void) {}
8608
_ACEOF
8609
if ac_fn_c_try_link "$LINENO"; then :
8610
  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'
8611
8612
fi
8613
rm -f core conftest.err conftest.$ac_objext \
8614
    conftest$ac_exeext conftest.$ac_ext
8615
        LDFLAGS="$save_LDFLAGS"
8616
      else
8617
	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'
8618
	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'
8619
      fi
8620
      archive_cmds_need_lc='no'
8621
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8622
      hardcode_libdir_separator=:
8623
      inherit_rpath=yes
8624
      link_all_deplibs=yes
8625
      ;;
8626
8627
    netbsd* | netbsdelf*-gnu)
8628
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8630
      else
8631
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8632
      fi
8633
      hardcode_libdir_flag_spec='-R$libdir'
8634
      hardcode_direct=yes
8635
      hardcode_shlibpath_var=no
8636
      ;;
8637
8638
    newsos6)
8639
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8640
      hardcode_direct=yes
8641
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642
      hardcode_libdir_separator=:
8643
      hardcode_shlibpath_var=no
8644
      ;;
8645
8646
    *nto* | *qnx*)
8647
      ;;
8648
8649
    openbsd*)
8650
      if test -f /usr/libexec/ld.so; then
8651
	hardcode_direct=yes
8652
	hardcode_shlibpath_var=no
8653
	hardcode_direct_absolute=yes
8654
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8655
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8656
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8657
	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8658
	  export_dynamic_flag_spec='${wl}-E'
8659
	else
8660
	  case $host_os in
8661
	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8662
	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8663
	     hardcode_libdir_flag_spec='-R$libdir'
8664
	     ;;
8665
	   *)
8666
	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8667
	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8668
	     ;;
8669
	  esac
8670
	fi
8671
      else
8672
	ld_shlibs=no
8673
      fi
8674
      ;;
8675
8676
    os2*)
8677
      hardcode_libdir_flag_spec='-L$libdir'
8678
      hardcode_minus_L=yes
8679
      allow_undefined_flag=unsupported
8680
      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'
8681
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8682
      ;;
8683
8684
    osf3*)
8685
      if test "$GCC" = yes; then
8686
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8687
	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'
8688
      else
8689
	allow_undefined_flag=' -expect_unresolved \*'
8690
	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'
8691
      fi
8692
      archive_cmds_need_lc='no'
8693
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8694
      hardcode_libdir_separator=:
8695
      ;;
8696
8697
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8698
      if test "$GCC" = yes; then
8699
	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8700
	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'
8701
	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8702
      else
8703
	allow_undefined_flag=' -expect_unresolved \*'
8704
	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'
8705
	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~
8706
	$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'
8707
8708
	# Both c and cxx compiler support -rpath directly
8709
	hardcode_libdir_flag_spec='-rpath $libdir'
8710
      fi
8711
      archive_cmds_need_lc='no'
8712
      hardcode_libdir_separator=:
8713
      ;;
8714
8715
    solaris*)
8716
      no_undefined_flag=' -z defs'
8717
      if test "$GCC" = yes; then
8718
	wlarc='${wl}'
8719
	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8721
	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8722
      else
8723
	case `$CC -V 2>&1` in
8724
	*"Compilers 5.0"*)
8725
	  wlarc=''
8726
	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8727
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728
	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8729
	  ;;
8730
	*)
8731
	  wlarc='${wl}'
8732
	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8733
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8734
	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8735
	  ;;
8736
	esac
8737
      fi
8738
      hardcode_libdir_flag_spec='-R$libdir'
8739
      hardcode_shlibpath_var=no
8740
      case $host_os in
8741
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8742
      *)
8743
	# The compiler driver will combine and reorder linker options,
8744
	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8745
	# but is careful enough not to reorder.
8746
	# Supported since Solaris 2.6 (maybe 2.5.1?)
8747
	if test "$GCC" = yes; then
8748
	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8749
	else
8750
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8751
	fi
8752
	;;
8753
      esac
8754
      link_all_deplibs=yes
8755
      ;;
8756
8757
    sunos4*)
8758
      if test "x$host_vendor" = xsequent; then
8759
	# Use $CC to link under sequent, because it throws in some extra .o
8760
	# files that make .init and .fini sections work.
8761
	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8762
      else
8763
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8764
      fi
8765
      hardcode_libdir_flag_spec='-L$libdir'
8766
      hardcode_direct=yes
8767
      hardcode_minus_L=yes
8768
      hardcode_shlibpath_var=no
8769
      ;;
8770
8771
    sysv4)
8772
      case $host_vendor in
8773
	sni)
8774
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775
	  hardcode_direct=yes # is this really true???
8776
	;;
8777
	siemens)
8778
	  ## LD is ld it makes a PLAMLIB
8779
	  ## CC just makes a GrossModule.
8780
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8781
	  reload_cmds='$CC -r -o $output$reload_objs'
8782
	  hardcode_direct=no
8783
        ;;
8784
	motorola)
8785
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8787
	;;
8788
      esac
8789
      runpath_var='LD_RUN_PATH'
8790
      hardcode_shlibpath_var=no
8791
      ;;
8792
8793
    sysv4.3*)
8794
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795
      hardcode_shlibpath_var=no
8796
      export_dynamic_flag_spec='-Bexport'
8797
      ;;
8798
8799
    sysv4*MP*)
8800
      if test -d /usr/nec; then
8801
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802
	hardcode_shlibpath_var=no
8803
	runpath_var=LD_RUN_PATH
8804
	hardcode_runpath_var=yes
8805
	ld_shlibs=yes
8806
      fi
8807
      ;;
8808
8809
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8810
      no_undefined_flag='${wl}-z,text'
8811
      archive_cmds_need_lc=no
8812
      hardcode_shlibpath_var=no
8813
      runpath_var='LD_RUN_PATH'
8814
8815
      if test "$GCC" = yes; then
8816
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818
      else
8819
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8820
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8821
      fi
8822
      ;;
8823
8824
    sysv5* | sco3.2v5* | sco5v6*)
8825
      # Note: We can NOT use -z defs as we might desire, because we do not
8826
      # link with -lc, and that would cause any symbols used from libc to
8827
      # always be unresolved, which means just about no library would
8828
      # ever link correctly.  If we're not using GNU ld we use -z text
8829
      # though, which does catch some bad symbols but isn't as heavy-handed
8830
      # as -z defs.
8831
      no_undefined_flag='${wl}-z,text'
8832
      allow_undefined_flag='${wl}-z,nodefs'
8833
      archive_cmds_need_lc=no
8834
      hardcode_shlibpath_var=no
8835
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8836
      hardcode_libdir_separator=':'
8837
      link_all_deplibs=yes
8838
      export_dynamic_flag_spec='${wl}-Bexport'
8839
      runpath_var='LD_RUN_PATH'
8840
8841
      if test "$GCC" = yes; then
8842
	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843
	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8844
      else
8845
	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8846
	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847
      fi
8848
      ;;
8849
8850
    uts4*)
8851
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852
      hardcode_libdir_flag_spec='-L$libdir'
8853
      hardcode_shlibpath_var=no
8854
      ;;
8855
8856
    *)
8857
      ld_shlibs=no
8858
      ;;
8859
    esac
8860
8861
    if test x$host_vendor = xsni; then
8862
      case $host in
8863
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8864
	export_dynamic_flag_spec='${wl}-Blargedynsym'
8865
	;;
8866
      esac
8867
    fi
8868
  fi
8869
8870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8871
$as_echo "$ld_shlibs" >&6; }
8872
test "$ld_shlibs" = no && can_build_shared=no
8873
8874
with_gnu_ld=$with_gnu_ld
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
#
8891
# Do we need to explicitly link libc?
8892
#
8893
case "x$archive_cmds_need_lc" in
8894
x|xyes)
8895
  # Assume -lc should be added
8896
  archive_cmds_need_lc=yes
8897
8898
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8899
    case $archive_cmds in
8900
    *'~'*)
8901
      # FIXME: we may have to deal with multi-command sequences.
8902
      ;;
8903
    '$CC '*)
8904
      # Test whether the compiler implicitly links with -lc since on some
8905
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8906
      # to ld, don't add -lc before -lgcc.
8907
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8908
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8909
      $RM conftest*
8910
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8911
8912
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8913
  (eval $ac_compile) 2>&5
8914
  ac_status=$?
8915
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8916
  test $ac_status = 0; } 2>conftest.err; then
8917
        soname=conftest
8918
        lib=conftest
8919
        libobjs=conftest.$ac_objext
8920
        deplibs=
8921
        wl=$lt_prog_compiler_wl
8922
	pic_flag=$lt_prog_compiler_pic
8923
        compiler_flags=-v
8924
        linker_flags=-v
8925
        verstring=
8926
        output_objdir=.
8927
        libname=conftest
8928
        lt_save_allow_undefined_flag=$allow_undefined_flag
8929
        allow_undefined_flag=
8930
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8931
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8932
  ac_status=$?
8933
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8934
  test $ac_status = 0; }
8935
        then
8936
	  archive_cmds_need_lc=no
8937
        else
8938
	  archive_cmds_need_lc=yes
8939
        fi
8940
        allow_undefined_flag=$lt_save_allow_undefined_flag
8941
      else
8942
        cat conftest.err 1>&5
8943
      fi
8944
      $RM conftest*
8945
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8946
$as_echo "$archive_cmds_need_lc" >&6; }
8947
      ;;
8948
    esac
8949
  fi
8950
  ;;
8951
esac
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9110
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9111
9112
if test "$GCC" = yes; then
9113
  case $host_os in
9114
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9115
    *) lt_awk_arg="/^libraries:/" ;;
9116
  esac
9117
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9118
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9119
    # if the path contains ";" then we assume it to be the separator
9120
    # otherwise default to the standard path separator (i.e. ":") - it is
9121
    # assumed that no part of a normal pathname contains ";" but that should
9122
    # okay in the real world where ";" in dirpaths is itself problematic.
9123
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9124
  else
9125
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9126
  fi
9127
  # Ok, now we have the path, separated by spaces, we can step through it
9128
  # and add multilib dir if necessary.
9129
  lt_tmp_lt_search_path_spec=
9130
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9131
  for lt_sys_path in $lt_search_path_spec; do
9132
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9133
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9134
    else
9135
      test -d "$lt_sys_path" && \
9136
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9137
    fi
9138
  done
9139
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9140
BEGIN {RS=" "; FS="/|\n";} {
9141
  lt_foo="";
9142
  lt_count=0;
9143
  for (lt_i = NF; lt_i > 0; lt_i--) {
9144
    if ($lt_i != "" && $lt_i != ".") {
9145
      if ($lt_i == "..") {
9146
        lt_count++;
9147
      } else {
9148
        if (lt_count == 0) {
9149
          lt_foo="/" $lt_i lt_foo;
9150
        } else {
9151
          lt_count--;
9152
        }
9153
      }
9154
    }
9155
  }
9156
  if (lt_foo != "") { lt_freq[lt_foo]++; }
9157
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9158
}'`
9159
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9160
else
9161
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9162
fi
9163
library_names_spec=
9164
libname_spec='lib$name'
9165
soname_spec=
9166
shrext_cmds=".so"
9167
postinstall_cmds=
9168
postuninstall_cmds=
9169
finish_cmds=
9170
finish_eval=
9171
shlibpath_var=
9172
shlibpath_overrides_runpath=unknown
9173
version_type=none
9174
dynamic_linker="$host_os ld.so"
9175
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9176
need_lib_prefix=unknown
9177
hardcode_into_libs=no
9178
9179
# when you set need_version to no, make sure it does not cause -set_version
9180
# flags to be left without arguments
9181
need_version=unknown
9182
9183
case $host_os in
9184
aix3*)
9185
  version_type=linux
9186
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9187
  shlibpath_var=LIBPATH
9188
9189
  # AIX 3 has no versioning support, so we append a major version to the name.
9190
  soname_spec='${libname}${release}${shared_ext}$major'
9191
  ;;
9192
9193
aix[4-9]*)
9194
  version_type=linux
9195
  need_lib_prefix=no
9196
  need_version=no
9197
  hardcode_into_libs=yes
9198
  if test "$host_cpu" = ia64; then
9199
    # AIX 5 supports IA64
9200
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9201
    shlibpath_var=LD_LIBRARY_PATH
9202
  else
9203
    # With GCC up to 2.95.x, collect2 would create an import file
9204
    # for dependence libraries.  The import file would start with
9205
    # the line `#! .'.  This would cause the generated library to
9206
    # depend on `.', always an invalid library.  This was fixed in
9207
    # development snapshots of GCC prior to 3.0.
9208
    case $host_os in
9209
      aix4 | aix4.[01] | aix4.[01].*)
9210
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9211
	   echo ' yes '
9212
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9213
	:
9214
      else
9215
	can_build_shared=no
9216
      fi
9217
      ;;
9218
    esac
9219
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9220
    # soname into executable. Probably we can add versioning support to
9221
    # collect2, so additional links can be useful in future.
9222
    if test "$aix_use_runtimelinking" = yes; then
9223
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9224
      # instead of lib<name>.a to let people know that these are not
9225
      # typical AIX shared libraries.
9226
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227
    else
9228
      # We preserve .a as extension for shared libraries through AIX4.2
9229
      # and later when we are not doing run time linking.
9230
      library_names_spec='${libname}${release}.a $libname.a'
9231
      soname_spec='${libname}${release}${shared_ext}$major'
9232
    fi
9233
    shlibpath_var=LIBPATH
9234
  fi
9235
  ;;
9236
9237
amigaos*)
9238
  case $host_cpu in
9239
  powerpc)
9240
    # Since July 2007 AmigaOS4 officially supports .so libraries.
9241
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9242
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243
    ;;
9244
  m68k)
9245
    library_names_spec='$libname.ixlibrary $libname.a'
9246
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9247
    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'
9248
    ;;
9249
  esac
9250
  ;;
9251
9252
beos*)
9253
  library_names_spec='${libname}${shared_ext}'
9254
  dynamic_linker="$host_os ld.so"
9255
  shlibpath_var=LIBRARY_PATH
9256
  ;;
9257
9258
bsdi[45]*)
9259
  version_type=linux
9260
  need_version=no
9261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262
  soname_spec='${libname}${release}${shared_ext}$major'
9263
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9264
  shlibpath_var=LD_LIBRARY_PATH
9265
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9266
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9267
  # the default ld.so.conf also contains /usr/contrib/lib and
9268
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9269
  # libtool to hard-code these into programs
9270
  ;;
9271
9272
cygwin* | mingw* | pw32* | cegcc*)
9273
  version_type=windows
9274
  shrext_cmds=".dll"
9275
  need_version=no
9276
  need_lib_prefix=no
9277
9278
  case $GCC,$host_os in
9279
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9280
    library_names_spec='$libname.dll.a'
9281
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9282
    postinstall_cmds='base_file=`basename \${file}`~
9283
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9284
      dldir=$destdir/`dirname \$dlpath`~
9285
      test -d \$dldir || mkdir -p \$dldir~
9286
      $install_prog $dir/$dlname \$dldir/$dlname~
9287
      chmod a+x \$dldir/$dlname~
9288
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9289
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9290
      fi'
9291
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9292
      dlpath=$dir/\$dldll~
9293
       $RM \$dlpath'
9294
    shlibpath_overrides_runpath=yes
9295
9296
    case $host_os in
9297
    cygwin*)
9298
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9299
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9300
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9301
      ;;
9302
    mingw* | cegcc*)
9303
      # MinGW DLLs use traditional 'lib' prefix
9304
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9305
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9306
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9307
        # It is most probably a Windows format PATH printed by
9308
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9309
        # path with ; separators, and with drive letters. We can handle the
9310
        # drive letters (cygwin fileutils understands them), so leave them,
9311
        # especially as we might pass files found there to a mingw objdump,
9312
        # which wouldn't understand a cygwinified path. Ahh.
9313
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9314
      else
9315
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9316
      fi
9317
      ;;
9318
    pw32*)
9319
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9320
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9321
      ;;
9322
    esac
9323
    ;;
9324
9325
  *)
9326
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9327
    ;;
9328
  esac
9329
  dynamic_linker='Win32 ld.exe'
9330
  # FIXME: first we should search . and the directory the executable is in
9331
  shlibpath_var=PATH
9332
  ;;
9333
9334
darwin* | rhapsody*)
9335
  dynamic_linker="$host_os dyld"
9336
  version_type=darwin
9337
  need_lib_prefix=no
9338
  need_version=no
9339
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9340
  soname_spec='${libname}${release}${major}$shared_ext'
9341
  shlibpath_overrides_runpath=yes
9342
  shlibpath_var=DYLD_LIBRARY_PATH
9343
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9344
9345
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9346
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9347
  ;;
9348
9349
dgux*)
9350
  version_type=linux
9351
  need_lib_prefix=no
9352
  need_version=no
9353
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9354
  soname_spec='${libname}${release}${shared_ext}$major'
9355
  shlibpath_var=LD_LIBRARY_PATH
9356
  ;;
9357
9358
freebsd1*)
9359
  dynamic_linker=no
9360
  ;;
9361
9362
freebsd* | dragonfly*)
9363
  # DragonFly does not have aout.  When/if they implement a new
9364
  # versioning mechanism, adjust this.
9365
  if test -x /usr/bin/objformat; then
9366
    objformat=`/usr/bin/objformat`
9367
  else
9368
    case $host_os in
9369
    freebsd[123]*) objformat=aout ;;
9370
    *) objformat=elf ;;
9371
    esac
9372
  fi
9373
  version_type=freebsd-$objformat
9374
  case $version_type in
9375
    freebsd-elf*)
9376
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9377
      need_version=no
9378
      need_lib_prefix=no
9379
      ;;
9380
    freebsd-*)
9381
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9382
      need_version=yes
9383
      ;;
9384
  esac
9385
  shlibpath_var=LD_LIBRARY_PATH
9386
  case $host_os in
9387
  freebsd2*)
9388
    shlibpath_overrides_runpath=yes
9389
    ;;
9390
  freebsd3.[01]* | freebsdelf3.[01]*)
9391
    shlibpath_overrides_runpath=yes
9392
    hardcode_into_libs=yes
9393
    ;;
9394
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9395
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9396
    shlibpath_overrides_runpath=no
9397
    hardcode_into_libs=yes
9398
    ;;
9399
  *) # from 4.6 on, and DragonFly
9400
    shlibpath_overrides_runpath=yes
9401
    hardcode_into_libs=yes
9402
    ;;
9403
  esac
9404
  ;;
9405
9406
gnu*)
9407
  version_type=linux
9408
  need_lib_prefix=no
9409
  need_version=no
9410
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9411
  soname_spec='${libname}${release}${shared_ext}$major'
9412
  shlibpath_var=LD_LIBRARY_PATH
9413
  hardcode_into_libs=yes
9414
  ;;
9415
9416
hpux9* | hpux10* | hpux11*)
9417
  # Give a soname corresponding to the major version so that dld.sl refuses to
9418
  # link against other versions.
9419
  version_type=sunos
9420
  need_lib_prefix=no
9421
  need_version=no
9422
  case $host_cpu in
9423
  ia64*)
9424
    shrext_cmds='.so'
9425
    hardcode_into_libs=yes
9426
    dynamic_linker="$host_os dld.so"
9427
    shlibpath_var=LD_LIBRARY_PATH
9428
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9429
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9430
    soname_spec='${libname}${release}${shared_ext}$major'
9431
    if test "X$HPUX_IA64_MODE" = X32; then
9432
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9433
    else
9434
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9435
    fi
9436
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9437
    ;;
9438
  hppa*64*)
9439
    shrext_cmds='.sl'
9440
    hardcode_into_libs=yes
9441
    dynamic_linker="$host_os dld.sl"
9442
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9443
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9444
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445
    soname_spec='${libname}${release}${shared_ext}$major'
9446
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9447
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9448
    ;;
9449
  *)
9450
    shrext_cmds='.sl'
9451
    dynamic_linker="$host_os dld.sl"
9452
    shlibpath_var=SHLIB_PATH
9453
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9454
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455
    soname_spec='${libname}${release}${shared_ext}$major'
9456
    ;;
9457
  esac
9458
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9459
  postinstall_cmds='chmod 555 $lib'
9460
  ;;
9461
9462
interix[3-9]*)
9463
  version_type=linux
9464
  need_lib_prefix=no
9465
  need_version=no
9466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467
  soname_spec='${libname}${release}${shared_ext}$major'
9468
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9469
  shlibpath_var=LD_LIBRARY_PATH
9470
  shlibpath_overrides_runpath=no
9471
  hardcode_into_libs=yes
9472
  ;;
9473
9474
irix5* | irix6* | nonstopux*)
9475
  case $host_os in
9476
    nonstopux*) version_type=nonstopux ;;
9477
    *)
9478
	if test "$lt_cv_prog_gnu_ld" = yes; then
9479
		version_type=linux
9480
	else
9481
		version_type=irix
9482
	fi ;;
9483
  esac
9484
  need_lib_prefix=no
9485
  need_version=no
9486
  soname_spec='${libname}${release}${shared_ext}$major'
9487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9488
  case $host_os in
9489
  irix5* | nonstopux*)
9490
    libsuff= shlibsuff=
9491
    ;;
9492
  *)
9493
    case $LD in # libtool.m4 will add one of these switches to LD
9494
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9495
      libsuff= shlibsuff= libmagic=32-bit;;
9496
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9497
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9498
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9499
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9500
    *) libsuff= shlibsuff= libmagic=never-match;;
9501
    esac
9502
    ;;
9503
  esac
9504
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9505
  shlibpath_overrides_runpath=no
9506
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9507
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9508
  hardcode_into_libs=yes
9509
  ;;
9510
9511
# No shared lib support for Linux oldld, aout, or coff.
9512
linux*oldld* | linux*aout* | linux*coff*)
9513
  dynamic_linker=no
9514
  ;;
9515
9516
# This must be Linux ELF.
9517
linux* | k*bsd*-gnu)
9518
  version_type=linux
9519
  need_lib_prefix=no
9520
  need_version=no
9521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522
  soname_spec='${libname}${release}${shared_ext}$major'
9523
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9524
  shlibpath_var=LD_LIBRARY_PATH
9525
  shlibpath_overrides_runpath=no
9526
  # Some binutils ld are patched to set DT_RUNPATH
9527
  save_LDFLAGS=$LDFLAGS
9528
  save_libdir=$libdir
9529
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9530
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9531
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532
/* end confdefs.h.  */
9533
9534
int
9535
main ()
9536
{
9537
9538
  ;
9539
  return 0;
9540
}
9541
_ACEOF
9542
if ac_fn_c_try_link "$LINENO"; then :
9543
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9544
  shlibpath_overrides_runpath=yes
9545
fi
9546
fi
9547
rm -f core conftest.err conftest.$ac_objext \
9548
    conftest$ac_exeext conftest.$ac_ext
9549
  LDFLAGS=$save_LDFLAGS
9550
  libdir=$save_libdir
9551
9552
  # This implies no fast_install, which is unacceptable.
9553
  # Some rework will be needed to allow for fast_install
9554
  # before this can be enabled.
9555
  hardcode_into_libs=yes
9556
9557
  # Append ld.so.conf contents to the search path
9558
  if test -f /etc/ld.so.conf; then
9559
    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' ' '`
9560
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9561
  fi
9562
9563
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9564
  # powerpc, because MkLinux only supported shared libraries with the
9565
  # GNU dynamic linker.  Since this was broken with cross compilers,
9566
  # most powerpc-linux boxes support dynamic linking these days and
9567
  # people can always --disable-shared, the test was removed, and we
9568
  # assume the GNU/Linux dynamic linker is in use.
9569
  dynamic_linker='GNU/Linux ld.so'
9570
  ;;
9571
9572
netbsdelf*-gnu)
9573
  version_type=linux
9574
  need_lib_prefix=no
9575
  need_version=no
9576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9577
  soname_spec='${libname}${release}${shared_ext}$major'
9578
  shlibpath_var=LD_LIBRARY_PATH
9579
  shlibpath_overrides_runpath=no
9580
  hardcode_into_libs=yes
9581
  dynamic_linker='NetBSD ld.elf_so'
9582
  ;;
9583
9584
netbsd*)
9585
  version_type=sunos
9586
  need_lib_prefix=no
9587
  need_version=no
9588
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9589
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9590
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9591
    dynamic_linker='NetBSD (a.out) ld.so'
9592
  else
9593
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9594
    soname_spec='${libname}${release}${shared_ext}$major'
9595
    dynamic_linker='NetBSD ld.elf_so'
9596
  fi
9597
  shlibpath_var=LD_LIBRARY_PATH
9598
  shlibpath_overrides_runpath=yes
9599
  hardcode_into_libs=yes
9600
  ;;
9601
9602
newsos6)
9603
  version_type=linux
9604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605
  shlibpath_var=LD_LIBRARY_PATH
9606
  shlibpath_overrides_runpath=yes
9607
  ;;
9608
9609
*nto* | *qnx*)
9610
  version_type=qnx
9611
  need_lib_prefix=no
9612
  need_version=no
9613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614
  soname_spec='${libname}${release}${shared_ext}$major'
9615
  shlibpath_var=LD_LIBRARY_PATH
9616
  shlibpath_overrides_runpath=no
9617
  hardcode_into_libs=yes
9618
  dynamic_linker='ldqnx.so'
9619
  ;;
9620
9621
openbsd*)
9622
  version_type=sunos
9623
  sys_lib_dlsearch_path_spec="/usr/lib"
9624
  need_lib_prefix=no
9625
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9626
  case $host_os in
9627
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9628
    *)				need_version=no  ;;
9629
  esac
9630
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632
  shlibpath_var=LD_LIBRARY_PATH
9633
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634
    case $host_os in
9635
      openbsd2.[89] | openbsd2.[89].*)
9636
	shlibpath_overrides_runpath=no
9637
	;;
9638
      *)
9639
	shlibpath_overrides_runpath=yes
9640
	;;
9641
      esac
9642
  else
9643
    shlibpath_overrides_runpath=yes
9644
  fi
9645
  ;;
9646
9647
os2*)
9648
  libname_spec='$name'
9649
  shrext_cmds=".dll"
9650
  need_lib_prefix=no
9651
  library_names_spec='$libname${shared_ext} $libname.a'
9652
  dynamic_linker='OS/2 ld.exe'
9653
  shlibpath_var=LIBPATH
9654
  ;;
9655
9656
osf3* | osf4* | osf5*)
9657
  version_type=osf
9658
  need_lib_prefix=no
9659
  need_version=no
9660
  soname_spec='${libname}${release}${shared_ext}$major'
9661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662
  shlibpath_var=LD_LIBRARY_PATH
9663
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9665
  ;;
9666
9667
rdos*)
9668
  dynamic_linker=no
9669
  ;;
9670
9671
solaris*)
9672
  version_type=linux
9673
  need_lib_prefix=no
9674
  need_version=no
9675
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676
  soname_spec='${libname}${release}${shared_ext}$major'
9677
  shlibpath_var=LD_LIBRARY_PATH
9678
  shlibpath_overrides_runpath=yes
9679
  hardcode_into_libs=yes
9680
  # ldd complains unless libraries are executable
9681
  postinstall_cmds='chmod +x $lib'
9682
  ;;
9683
9684
sunos4*)
9685
  version_type=sunos
9686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9688
  shlibpath_var=LD_LIBRARY_PATH
9689
  shlibpath_overrides_runpath=yes
9690
  if test "$with_gnu_ld" = yes; then
9691
    need_lib_prefix=no
9692
  fi
9693
  need_version=yes
9694
  ;;
9695
9696
sysv4 | sysv4.3*)
9697
  version_type=linux
9698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699
  soname_spec='${libname}${release}${shared_ext}$major'
9700
  shlibpath_var=LD_LIBRARY_PATH
9701
  case $host_vendor in
9702
    sni)
9703
      shlibpath_overrides_runpath=no
9704
      need_lib_prefix=no
9705
      runpath_var=LD_RUN_PATH
9706
      ;;
9707
    siemens)
9708
      need_lib_prefix=no
9709
      ;;
9710
    motorola)
9711
      need_lib_prefix=no
9712
      need_version=no
9713
      shlibpath_overrides_runpath=no
9714
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9715
      ;;
9716
  esac
9717
  ;;
9718
9719
sysv4*MP*)
9720
  if test -d /usr/nec ;then
9721
    version_type=linux
9722
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9723
    soname_spec='$libname${shared_ext}.$major'
9724
    shlibpath_var=LD_LIBRARY_PATH
9725
  fi
9726
  ;;
9727
9728
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9729
  version_type=freebsd-elf
9730
  need_lib_prefix=no
9731
  need_version=no
9732
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9733
  soname_spec='${libname}${release}${shared_ext}$major'
9734
  shlibpath_var=LD_LIBRARY_PATH
9735
  shlibpath_overrides_runpath=yes
9736
  hardcode_into_libs=yes
9737
  if test "$with_gnu_ld" = yes; then
9738
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9739
  else
9740
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9741
    case $host_os in
9742
      sco3.2v5*)
9743
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9744
	;;
9745
    esac
9746
  fi
9747
  sys_lib_dlsearch_path_spec='/usr/lib'
9748
  ;;
9749
9750
tpf*)
9751
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9752
  version_type=linux
9753
  need_lib_prefix=no
9754
  need_version=no
9755
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756
  shlibpath_var=LD_LIBRARY_PATH
9757
  shlibpath_overrides_runpath=no
9758
  hardcode_into_libs=yes
9759
  ;;
9760
9761
uts4*)
9762
  version_type=linux
9763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764
  soname_spec='${libname}${release}${shared_ext}$major'
9765
  shlibpath_var=LD_LIBRARY_PATH
9766
  ;;
9767
9768
*)
9769
  dynamic_linker=no
9770
  ;;
9771
esac
9772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9773
$as_echo "$dynamic_linker" >&6; }
9774
test "$dynamic_linker" = no && can_build_shared=no
9775
9776
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9777
if test "$GCC" = yes; then
9778
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9779
fi
9780
9781
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9782
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9783
fi
9784
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9785
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9786
fi
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9875
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9876
hardcode_action=
9877
if test -n "$hardcode_libdir_flag_spec" ||
9878
   test -n "$runpath_var" ||
9879
   test "X$hardcode_automatic" = "Xyes" ; then
9880
9881
  # We can hardcode non-existent directories.
9882
  if test "$hardcode_direct" != no &&
9883
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9884
     # have to relink, otherwise we might link with an installed library
9885
     # when we should be linking with a yet-to-be-installed one
9886
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9887
     test "$hardcode_minus_L" != no; then
9888
    # Linking always hardcodes the temporary library directory.
9889
    hardcode_action=relink
9890
  else
9891
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9892
    hardcode_action=immediate
9893
  fi
9894
else
9895
  # We cannot hardcode anything, or else we can only hardcode existing
9896
  # directories.
9897
  hardcode_action=unsupported
9898
fi
9899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9900
$as_echo "$hardcode_action" >&6; }
9901
9902
if test "$hardcode_action" = relink ||
9903
   test "$inherit_rpath" = yes; then
9904
  # Fast installation is not supported
9905
  enable_fast_install=no
9906
elif test "$shlibpath_overrides_runpath" = yes ||
9907
     test "$enable_shared" = no; then
9908
  # Fast installation is not necessary
9909
  enable_fast_install=needless
9910
fi
9911
9912
9913
9914
9915
9916
9917
  if test "x$enable_dlopen" != xyes; then
9918
  enable_dlopen=unknown
9919
  enable_dlopen_self=unknown
9920
  enable_dlopen_self_static=unknown
9921
else
9922
  lt_cv_dlopen=no
9923
  lt_cv_dlopen_libs=
9924
9925
  case $host_os in
9926
  beos*)
9927
    lt_cv_dlopen="load_add_on"
9928
    lt_cv_dlopen_libs=
9929
    lt_cv_dlopen_self=yes
9930
    ;;
9931
9932
  mingw* | pw32* | cegcc*)
9933
    lt_cv_dlopen="LoadLibrary"
9934
    lt_cv_dlopen_libs=
9935
    ;;
9936
9937
  cygwin*)
9938
    lt_cv_dlopen="dlopen"
9939
    lt_cv_dlopen_libs=
9940
    ;;
9941
9942
  darwin*)
9943
  # if libdl is installed we need to link against it
9944
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9945
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9946
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9947
  $as_echo_n "(cached) " >&6
9948
else
9949
  ac_check_lib_save_LIBS=$LIBS
9950
LIBS="-ldl  $LIBS"
9951
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952
/* end confdefs.h.  */
9953
9954
/* Override any GCC internal prototype to avoid an error.
9955
   Use char because int might match the return type of a GCC
9956
   builtin and then its argument prototype would still apply.  */
9957
#ifdef __cplusplus
9958
extern "C"
9959
#endif
9960
char dlopen ();
9961
int
9962
main ()
9963
{
9964
return dlopen ();
9965
  ;
9966
  return 0;
9967
}
9968
_ACEOF
9969
if ac_fn_c_try_link "$LINENO"; then :
9970
  ac_cv_lib_dl_dlopen=yes
9971
else
9972
  ac_cv_lib_dl_dlopen=no
9973
fi
9974
rm -f core conftest.err conftest.$ac_objext \
9975
    conftest$ac_exeext conftest.$ac_ext
9976
LIBS=$ac_check_lib_save_LIBS
9977
fi
9978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9979
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9980
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9981
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9982
else
9983
9984
    lt_cv_dlopen="dyld"
9985
    lt_cv_dlopen_libs=
9986
    lt_cv_dlopen_self=yes
9987
9988
fi
9989
9990
    ;;
9991
9992
  *)
9993
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9994
if test "x$ac_cv_func_shl_load" = x""yes; then :
9995
  lt_cv_dlopen="shl_load"
9996
else
9997
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9998
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9999
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10000
  $as_echo_n "(cached) " >&6
10001
else
10002
  ac_check_lib_save_LIBS=$LIBS
10003
LIBS="-ldld  $LIBS"
10004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005
/* end confdefs.h.  */
10006
10007
/* Override any GCC internal prototype to avoid an error.
10008
   Use char because int might match the return type of a GCC
10009
   builtin and then its argument prototype would still apply.  */
10010
#ifdef __cplusplus
10011
extern "C"
10012
#endif
10013
char shl_load ();
10014
int
10015
main ()
10016
{
10017
return shl_load ();
10018
  ;
10019
  return 0;
10020
}
10021
_ACEOF
10022
if ac_fn_c_try_link "$LINENO"; then :
10023
  ac_cv_lib_dld_shl_load=yes
10024
else
10025
  ac_cv_lib_dld_shl_load=no
10026
fi
10027
rm -f core conftest.err conftest.$ac_objext \
10028
    conftest$ac_exeext conftest.$ac_ext
10029
LIBS=$ac_check_lib_save_LIBS
10030
fi
10031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10032
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10033
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10034
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10035
else
10036
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10037
if test "x$ac_cv_func_dlopen" = x""yes; then :
10038
  lt_cv_dlopen="dlopen"
10039
else
10040
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10041
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10042
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10043
  $as_echo_n "(cached) " >&6
10044
else
10045
  ac_check_lib_save_LIBS=$LIBS
10046
LIBS="-ldl  $LIBS"
10047
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048
/* end confdefs.h.  */
10049
10050
/* Override any GCC internal prototype to avoid an error.
10051
   Use char because int might match the return type of a GCC
10052
   builtin and then its argument prototype would still apply.  */
10053
#ifdef __cplusplus
10054
extern "C"
10055
#endif
10056
char dlopen ();
10057
int
10058
main ()
10059
{
10060
return dlopen ();
10061
  ;
10062
  return 0;
10063
}
10064
_ACEOF
10065
if ac_fn_c_try_link "$LINENO"; then :
10066
  ac_cv_lib_dl_dlopen=yes
10067
else
10068
  ac_cv_lib_dl_dlopen=no
10069
fi
10070
rm -f core conftest.err conftest.$ac_objext \
10071
    conftest$ac_exeext conftest.$ac_ext
10072
LIBS=$ac_check_lib_save_LIBS
10073
fi
10074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10075
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10076
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10077
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10078
else
10079
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10080
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10081
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10082
  $as_echo_n "(cached) " >&6
10083
else
10084
  ac_check_lib_save_LIBS=$LIBS
10085
LIBS="-lsvld  $LIBS"
10086
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087
/* end confdefs.h.  */
10088
10089
/* Override any GCC internal prototype to avoid an error.
10090
   Use char because int might match the return type of a GCC
10091
   builtin and then its argument prototype would still apply.  */
10092
#ifdef __cplusplus
10093
extern "C"
10094
#endif
10095
char dlopen ();
10096
int
10097
main ()
10098
{
10099
return dlopen ();
10100
  ;
10101
  return 0;
10102
}
10103
_ACEOF
10104
if ac_fn_c_try_link "$LINENO"; then :
10105
  ac_cv_lib_svld_dlopen=yes
10106
else
10107
  ac_cv_lib_svld_dlopen=no
10108
fi
10109
rm -f core conftest.err conftest.$ac_objext \
10110
    conftest$ac_exeext conftest.$ac_ext
10111
LIBS=$ac_check_lib_save_LIBS
10112
fi
10113
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10114
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10115
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10116
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10117
else
10118
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10119
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10120
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10121
  $as_echo_n "(cached) " >&6
10122
else
10123
  ac_check_lib_save_LIBS=$LIBS
10124
LIBS="-ldld  $LIBS"
10125
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126
/* end confdefs.h.  */
10127
10128
/* Override any GCC internal prototype to avoid an error.
10129
   Use char because int might match the return type of a GCC
10130
   builtin and then its argument prototype would still apply.  */
10131
#ifdef __cplusplus
10132
extern "C"
10133
#endif
10134
char dld_link ();
10135
int
10136
main ()
10137
{
10138
return dld_link ();
10139
  ;
10140
  return 0;
10141
}
10142
_ACEOF
10143
if ac_fn_c_try_link "$LINENO"; then :
10144
  ac_cv_lib_dld_dld_link=yes
10145
else
10146
  ac_cv_lib_dld_dld_link=no
10147
fi
10148
rm -f core conftest.err conftest.$ac_objext \
10149
    conftest$ac_exeext conftest.$ac_ext
10150
LIBS=$ac_check_lib_save_LIBS
10151
fi
10152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10153
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10154
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10155
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10156
fi
10157
10158
10159
fi
10160
10161
10162
fi
10163
10164
10165
fi
10166
10167
10168
fi
10169
10170
10171
fi
10172
10173
    ;;
10174
  esac
10175
10176
  if test "x$lt_cv_dlopen" != xno; then
10177
    enable_dlopen=yes
10178
  else
10179
    enable_dlopen=no
10180
  fi
10181
10182
  case $lt_cv_dlopen in
10183
  dlopen)
10184
    save_CPPFLAGS="$CPPFLAGS"
10185
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10186
10187
    save_LDFLAGS="$LDFLAGS"
10188
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10189
10190
    save_LIBS="$LIBS"
10191
    LIBS="$lt_cv_dlopen_libs $LIBS"
10192
10193
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10194
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10195
if test "${lt_cv_dlopen_self+set}" = set; then :
10196
  $as_echo_n "(cached) " >&6
10197
else
10198
  	  if test "$cross_compiling" = yes; then :
10199
  lt_cv_dlopen_self=cross
10200
else
10201
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10202
  lt_status=$lt_dlunknown
10203
  cat > conftest.$ac_ext <<_LT_EOF
7 by edam
- removed "OK" from test-main when test is successful
10204
#line 10204 "configure"
5 by edam
- updated README
10205
#include "confdefs.h"
10206
10207
#if HAVE_DLFCN_H
10208
#include <dlfcn.h>
10209
#endif
10210
10211
#include <stdio.h>
10212
10213
#ifdef RTLD_GLOBAL
10214
#  define LT_DLGLOBAL		RTLD_GLOBAL
10215
#else
10216
#  ifdef DL_GLOBAL
10217
#    define LT_DLGLOBAL		DL_GLOBAL
10218
#  else
10219
#    define LT_DLGLOBAL		0
10220
#  endif
10221
#endif
10222
10223
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10224
   find out it does not work in some platform. */
10225
#ifndef LT_DLLAZY_OR_NOW
10226
#  ifdef RTLD_LAZY
10227
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10228
#  else
10229
#    ifdef DL_LAZY
10230
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10231
#    else
10232
#      ifdef RTLD_NOW
10233
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10234
#      else
10235
#        ifdef DL_NOW
10236
#          define LT_DLLAZY_OR_NOW	DL_NOW
10237
#        else
10238
#          define LT_DLLAZY_OR_NOW	0
10239
#        endif
10240
#      endif
10241
#    endif
10242
#  endif
10243
#endif
10244
10245
void fnord() { int i=42;}
10246
int main ()
10247
{
10248
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10249
  int status = $lt_dlunknown;
10250
10251
  if (self)
10252
    {
10253
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10254
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10255
      /* dlclose (self); */
10256
    }
10257
  else
10258
    puts (dlerror ());
10259
10260
  return status;
10261
}
10262
_LT_EOF
10263
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10264
  (eval $ac_link) 2>&5
10265
  ac_status=$?
10266
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10268
    (./conftest; exit; ) >&5 2>/dev/null
10269
    lt_status=$?
10270
    case x$lt_status in
10271
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10272
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10273
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10274
    esac
10275
  else :
10276
    # compilation failed
10277
    lt_cv_dlopen_self=no
10278
  fi
10279
fi
10280
rm -fr conftest*
10281
10282
10283
fi
10284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10285
$as_echo "$lt_cv_dlopen_self" >&6; }
10286
10287
    if test "x$lt_cv_dlopen_self" = xyes; then
10288
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10289
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10290
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10291
if test "${lt_cv_dlopen_self_static+set}" = set; then :
10292
  $as_echo_n "(cached) " >&6
10293
else
10294
  	  if test "$cross_compiling" = yes; then :
10295
  lt_cv_dlopen_self_static=cross
10296
else
10297
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298
  lt_status=$lt_dlunknown
10299
  cat > conftest.$ac_ext <<_LT_EOF
7 by edam
- removed "OK" from test-main when test is successful
10300
#line 10300 "configure"
5 by edam
- updated README
10301
#include "confdefs.h"
10302
10303
#if HAVE_DLFCN_H
10304
#include <dlfcn.h>
10305
#endif
10306
10307
#include <stdio.h>
10308
10309
#ifdef RTLD_GLOBAL
10310
#  define LT_DLGLOBAL		RTLD_GLOBAL
10311
#else
10312
#  ifdef DL_GLOBAL
10313
#    define LT_DLGLOBAL		DL_GLOBAL
10314
#  else
10315
#    define LT_DLGLOBAL		0
10316
#  endif
10317
#endif
10318
10319
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320
   find out it does not work in some platform. */
10321
#ifndef LT_DLLAZY_OR_NOW
10322
#  ifdef RTLD_LAZY
10323
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10324
#  else
10325
#    ifdef DL_LAZY
10326
#      define LT_DLLAZY_OR_NOW		DL_LAZY
10327
#    else
10328
#      ifdef RTLD_NOW
10329
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10330
#      else
10331
#        ifdef DL_NOW
10332
#          define LT_DLLAZY_OR_NOW	DL_NOW
10333
#        else
10334
#          define LT_DLLAZY_OR_NOW	0
10335
#        endif
10336
#      endif
10337
#    endif
10338
#  endif
10339
#endif
10340
10341
void fnord() { int i=42;}
10342
int main ()
10343
{
10344
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10345
  int status = $lt_dlunknown;
10346
10347
  if (self)
10348
    {
10349
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10350
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10351
      /* dlclose (self); */
10352
    }
10353
  else
10354
    puts (dlerror ());
10355
10356
  return status;
10357
}
10358
_LT_EOF
10359
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10360
  (eval $ac_link) 2>&5
10361
  ac_status=$?
10362
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10364
    (./conftest; exit; ) >&5 2>/dev/null
10365
    lt_status=$?
10366
    case x$lt_status in
10367
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10368
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10369
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10370
    esac
10371
  else :
10372
    # compilation failed
10373
    lt_cv_dlopen_self_static=no
10374
  fi
10375
fi
10376
rm -fr conftest*
10377
10378
10379
fi
10380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10381
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10382
    fi
10383
10384
    CPPFLAGS="$save_CPPFLAGS"
10385
    LDFLAGS="$save_LDFLAGS"
10386
    LIBS="$save_LIBS"
10387
    ;;
10388
  esac
10389
10390
  case $lt_cv_dlopen_self in
10391
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10392
  *) enable_dlopen_self=unknown ;;
10393
  esac
10394
10395
  case $lt_cv_dlopen_self_static in
10396
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10397
  *) enable_dlopen_self_static=unknown ;;
10398
  esac
10399
fi
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
striplib=
10418
old_striplib=
10419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10420
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10421
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10422
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10423
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10425
$as_echo "yes" >&6; }
10426
else
10427
# FIXME - insert some real tests, host_os isn't really good enough
10428
  case $host_os in
10429
  darwin*)
10430
    if test -n "$STRIP" ; then
10431
      striplib="$STRIP -x"
10432
      old_striplib="$STRIP -S"
10433
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10434
$as_echo "yes" >&6; }
10435
    else
10436
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437
$as_echo "no" >&6; }
10438
    fi
10439
    ;;
10440
  *)
10441
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442
$as_echo "no" >&6; }
10443
    ;;
10444
  esac
10445
fi
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
  # Report which library types will actually be built
10459
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10460
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10461
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10462
$as_echo "$can_build_shared" >&6; }
10463
10464
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10465
$as_echo_n "checking whether to build shared libraries... " >&6; }
10466
  test "$can_build_shared" = "no" && enable_shared=no
10467
10468
  # On AIX, shared libraries and static libraries use the same namespace, and
10469
  # are all built from PIC.
10470
  case $host_os in
10471
  aix3*)
10472
    test "$enable_shared" = yes && enable_static=no
10473
    if test -n "$RANLIB"; then
10474
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10475
      postinstall_cmds='$RANLIB $lib'
10476
    fi
10477
    ;;
10478
10479
  aix[4-9]*)
10480
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10481
      test "$enable_shared" = yes && enable_static=no
10482
    fi
10483
    ;;
10484
  esac
10485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10486
$as_echo "$enable_shared" >&6; }
10487
10488
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10489
$as_echo_n "checking whether to build static libraries... " >&6; }
10490
  # Make sure either enable_shared or enable_static is yes.
10491
  test "$enable_shared" = yes || enable_static=yes
10492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10493
$as_echo "$enable_static" >&6; }
10494
10495
10496
10497
10498
fi
10499
ac_ext=c
10500
ac_cpp='$CPP $CPPFLAGS'
10501
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10504
10505
CC="$lt_save_CC"
10506
10507
6 by edam
- fixed .am files so the library gets built!
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
        ac_config_commands="$ac_config_commands libtool"
10520
10521
10522
10523
10524
# Only expand once:
10525
10526
10527
10528
# checks for programs.
10529
ac_ext=cpp
10530
ac_cpp='$CXXCPP $CPPFLAGS'
10531
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10532
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10533
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10534
if test -z "$CXX"; then
10535
  if test -n "$CCC"; then
10536
    CXX=$CCC
10537
  else
10538
    if test -n "$ac_tool_prefix"; then
10539
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10540
  do
10541
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10542
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544
$as_echo_n "checking for $ac_word... " >&6; }
10545
if test "${ac_cv_prog_CXX+set}" = set; then :
10546
  $as_echo_n "(cached) " >&6
10547
else
10548
  if test -n "$CXX"; then
10549
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10550
else
10551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552
for as_dir in $PATH
10553
do
10554
  IFS=$as_save_IFS
10555
  test -z "$as_dir" && as_dir=.
10556
    for ac_exec_ext in '' $ac_executable_extensions; do
10557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560
    break 2
10561
  fi
10562
done
10563
  done
10564
IFS=$as_save_IFS
10565
10566
fi
10567
fi
10568
CXX=$ac_cv_prog_CXX
10569
if test -n "$CXX"; then
10570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10571
$as_echo "$CXX" >&6; }
10572
else
10573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574
$as_echo "no" >&6; }
10575
fi
10576
10577
10578
    test -n "$CXX" && break
10579
  done
10580
fi
10581
if test -z "$CXX"; then
10582
  ac_ct_CXX=$CXX
10583
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10584
do
10585
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10586
set dummy $ac_prog; ac_word=$2
10587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588
$as_echo_n "checking for $ac_word... " >&6; }
10589
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10590
  $as_echo_n "(cached) " >&6
10591
else
10592
  if test -n "$ac_ct_CXX"; then
10593
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10594
else
10595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596
for as_dir in $PATH
10597
do
10598
  IFS=$as_save_IFS
10599
  test -z "$as_dir" && as_dir=.
10600
    for ac_exec_ext in '' $ac_executable_extensions; do
10601
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10602
    ac_cv_prog_ac_ct_CXX="$ac_prog"
10603
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10604
    break 2
10605
  fi
10606
done
10607
  done
10608
IFS=$as_save_IFS
10609
10610
fi
10611
fi
10612
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10613
if test -n "$ac_ct_CXX"; then
10614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10615
$as_echo "$ac_ct_CXX" >&6; }
10616
else
10617
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618
$as_echo "no" >&6; }
10619
fi
10620
10621
10622
  test -n "$ac_ct_CXX" && break
10623
done
10624
10625
  if test "x$ac_ct_CXX" = x; then
10626
    CXX="g++"
10627
  else
10628
    case $cross_compiling:$ac_tool_warned in
10629
yes:)
10630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10632
ac_tool_warned=yes ;;
10633
esac
10634
    CXX=$ac_ct_CXX
10635
  fi
10636
fi
10637
10638
  fi
10639
fi
10640
# Provide some information about the compiler.
10641
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10642
set X $ac_compile
10643
ac_compiler=$2
10644
for ac_option in --version -v -V -qversion; do
10645
  { { ac_try="$ac_compiler $ac_option >&5"
10646
case "(($ac_try" in
10647
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648
  *) ac_try_echo=$ac_try;;
10649
esac
10650
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10651
$as_echo "$ac_try_echo"; } >&5
10652
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10653
  ac_status=$?
10654
  if test -s conftest.err; then
10655
    sed '10a\
10656
... rest of stderr output deleted ...
10657
         10q' conftest.err >conftest.er1
10658
    cat conftest.er1 >&5
10659
    rm -f conftest.er1 conftest.err
10660
  fi
10661
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10662
  test $ac_status = 0; }
10663
done
10664
10665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10666
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10667
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10668
  $as_echo_n "(cached) " >&6
10669
else
10670
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671
/* end confdefs.h.  */
10672
10673
int
10674
main ()
10675
{
10676
#ifndef __GNUC__
10677
       choke me
10678
#endif
10679
10680
  ;
10681
  return 0;
10682
}
10683
_ACEOF
10684
if ac_fn_cxx_try_compile "$LINENO"; then :
10685
  ac_compiler_gnu=yes
10686
else
10687
  ac_compiler_gnu=no
10688
fi
10689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10690
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10691
10692
fi
10693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10694
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10695
if test $ac_compiler_gnu = yes; then
10696
  GXX=yes
10697
else
10698
  GXX=
10699
fi
10700
ac_test_CXXFLAGS=${CXXFLAGS+set}
10701
ac_save_CXXFLAGS=$CXXFLAGS
10702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10703
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10704
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10705
  $as_echo_n "(cached) " >&6
10706
else
10707
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10708
   ac_cxx_werror_flag=yes
10709
   ac_cv_prog_cxx_g=no
10710
   CXXFLAGS="-g"
10711
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712
/* end confdefs.h.  */
10713
10714
int
10715
main ()
10716
{
10717
10718
  ;
10719
  return 0;
10720
}
10721
_ACEOF
10722
if ac_fn_cxx_try_compile "$LINENO"; then :
10723
  ac_cv_prog_cxx_g=yes
10724
else
10725
  CXXFLAGS=""
10726
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10727
/* end confdefs.h.  */
10728
10729
int
10730
main ()
10731
{
10732
10733
  ;
10734
  return 0;
10735
}
10736
_ACEOF
10737
if ac_fn_cxx_try_compile "$LINENO"; then :
10738
10739
else
10740
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10741
	 CXXFLAGS="-g"
10742
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743
/* end confdefs.h.  */
10744
10745
int
10746
main ()
10747
{
10748
10749
  ;
10750
  return 0;
10751
}
10752
_ACEOF
10753
if ac_fn_cxx_try_compile "$LINENO"; then :
10754
  ac_cv_prog_cxx_g=yes
10755
fi
10756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757
fi
10758
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759
fi
10760
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10762
fi
10763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10764
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10765
if test "$ac_test_CXXFLAGS" = set; then
10766
  CXXFLAGS=$ac_save_CXXFLAGS
10767
elif test $ac_cv_prog_cxx_g = yes; then
10768
  if test "$GXX" = yes; then
10769
    CXXFLAGS="-g -O2"
10770
  else
10771
    CXXFLAGS="-g"
10772
  fi
10773
else
10774
  if test "$GXX" = yes; then
10775
    CXXFLAGS="-O2"
10776
  else
10777
    CXXFLAGS=
10778
  fi
10779
fi
10780
ac_ext=c
10781
ac_cpp='$CPP $CPPFLAGS'
10782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10785
10786
depcc="$CXX"  am_compiler_list=
10787
10788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10789
$as_echo_n "checking dependency style of $depcc... " >&6; }
10790
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10791
  $as_echo_n "(cached) " >&6
10792
else
10793
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10794
  # We make a subdir and do the tests there.  Otherwise we can end up
10795
  # making bogus files that we don't know about and never remove.  For
10796
  # instance it was reported that on HP-UX the gcc test will end up
10797
  # making a dummy file named `D' -- because `-MD' means `put the output
10798
  # in D'.
10799
  mkdir conftest.dir
10800
  # Copy depcomp to subdir because otherwise we won't find it if we're
10801
  # using a relative directory.
10802
  cp "$am_depcomp" conftest.dir
10803
  cd conftest.dir
10804
  # We will build objects and dependencies in a subdirectory because
10805
  # it helps to detect inapplicable dependency modes.  For instance
10806
  # both Tru64's cc and ICC support -MD to output dependencies as a
10807
  # side effect of compilation, but ICC will put the dependencies in
10808
  # the current directory while Tru64 will put them in the object
10809
  # directory.
10810
  mkdir sub
10811
10812
  am_cv_CXX_dependencies_compiler_type=none
10813
  if test "$am_compiler_list" = ""; then
10814
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10815
  fi
10816
  am__universal=false
10817
  case " $depcc " in #(
10818
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10819
     esac
10820
10821
  for depmode in $am_compiler_list; do
10822
    # Setup a source with many dependencies, because some compilers
10823
    # like to wrap large dependency lists on column 80 (with \), and
10824
    # we should not choose a depcomp mode which is confused by this.
10825
    #
10826
    # We need to recreate these files for each test, as the compiler may
10827
    # overwrite some of them when testing with obscure command lines.
10828
    # This happens at least with the AIX C compiler.
10829
    : > sub/conftest.c
10830
    for i in 1 2 3 4 5 6; do
10831
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10832
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10833
      # Solaris 8's {/usr,}/bin/sh.
10834
      touch sub/conftst$i.h
10835
    done
10836
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10837
10838
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10839
    # mode.  It turns out that the SunPro C++ compiler does not properly
10840
    # handle `-M -o', and we need to detect this.  Also, some Intel
10841
    # versions had trouble with output in subdirs
10842
    am__obj=sub/conftest.${OBJEXT-o}
10843
    am__minus_obj="-o $am__obj"
10844
    case $depmode in
10845
    gcc)
10846
      # This depmode causes a compiler race in universal mode.
10847
      test "$am__universal" = false || continue
10848
      ;;
10849
    nosideeffect)
10850
      # after this tag, mechanisms are not by side-effect, so they'll
10851
      # only be used when explicitly requested
10852
      if test "x$enable_dependency_tracking" = xyes; then
10853
	continue
10854
      else
10855
	break
10856
      fi
10857
      ;;
10858
    msvisualcpp | msvcmsys)
10859
      # This compiler won't grok `-c -o', but also, the minuso test has
10860
      # not run yet.  These depmodes are late enough in the game, and
10861
      # so weak that their functioning should not be impacted.
10862
      am__obj=conftest.${OBJEXT-o}
10863
      am__minus_obj=
10864
      ;;
10865
    none) break ;;
10866
    esac
10867
    if depmode=$depmode \
10868
       source=sub/conftest.c object=$am__obj \
10869
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10870
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10871
         >/dev/null 2>conftest.err &&
10872
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10873
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10874
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10875
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10876
      # icc doesn't choke on unknown options, it will just issue warnings
10877
      # or remarks (even with -Werror).  So we grep stderr for any message
10878
      # that says an option was ignored or not supported.
10879
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10880
      #   icc: Command line warning: ignoring option '-M'; no argument required
10881
      # The diagnosis changed in icc 8.0:
10882
      #   icc: Command line remark: option '-MP' not supported
10883
      if (grep 'ignoring option' conftest.err ||
10884
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10885
        am_cv_CXX_dependencies_compiler_type=$depmode
10886
        break
10887
      fi
10888
    fi
10889
  done
10890
10891
  cd ..
10892
  rm -rf conftest.dir
10893
else
10894
  am_cv_CXX_dependencies_compiler_type=none
10895
fi
10896
10897
fi
10898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10899
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10900
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10901
10902
 if
10903
  test "x$enable_dependency_tracking" != xno \
10904
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10905
  am__fastdepCXX_TRUE=
10906
  am__fastdepCXX_FALSE='#'
10907
else
10908
  am__fastdepCXX_TRUE='#'
10909
  am__fastdepCXX_FALSE=
10910
fi
10911
10912
10913
10914
ac_ext=cpp
10915
ac_cpp='$CXXCPP $CPPFLAGS'
10916
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10917
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10918
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10919
if test -z "$CXX"; then
10920
  if test -n "$CCC"; then
10921
    CXX=$CCC
10922
  else
10923
    if test -n "$ac_tool_prefix"; then
10924
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10925
  do
10926
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10927
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10929
$as_echo_n "checking for $ac_word... " >&6; }
10930
if test "${ac_cv_prog_CXX+set}" = set; then :
10931
  $as_echo_n "(cached) " >&6
10932
else
10933
  if test -n "$CXX"; then
10934
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
10935
else
10936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937
for as_dir in $PATH
10938
do
10939
  IFS=$as_save_IFS
10940
  test -z "$as_dir" && as_dir=.
10941
    for ac_exec_ext in '' $ac_executable_extensions; do
10942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10943
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10944
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10945
    break 2
10946
  fi
10947
done
10948
  done
10949
IFS=$as_save_IFS
10950
10951
fi
10952
fi
10953
CXX=$ac_cv_prog_CXX
10954
if test -n "$CXX"; then
10955
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10956
$as_echo "$CXX" >&6; }
10957
else
10958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959
$as_echo "no" >&6; }
10960
fi
10961
10962
10963
    test -n "$CXX" && break
10964
  done
10965
fi
10966
if test -z "$CXX"; then
10967
  ac_ct_CXX=$CXX
10968
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10969
do
10970
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10971
set dummy $ac_prog; ac_word=$2
10972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973
$as_echo_n "checking for $ac_word... " >&6; }
10974
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10975
  $as_echo_n "(cached) " >&6
10976
else
10977
  if test -n "$ac_ct_CXX"; then
10978
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10979
else
10980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981
for as_dir in $PATH
10982
do
10983
  IFS=$as_save_IFS
10984
  test -z "$as_dir" && as_dir=.
10985
    for ac_exec_ext in '' $ac_executable_extensions; do
10986
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987
    ac_cv_prog_ac_ct_CXX="$ac_prog"
10988
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989
    break 2
10990
  fi
10991
done
10992
  done
10993
IFS=$as_save_IFS
10994
10995
fi
10996
fi
10997
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10998
if test -n "$ac_ct_CXX"; then
10999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11000
$as_echo "$ac_ct_CXX" >&6; }
11001
else
11002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003
$as_echo "no" >&6; }
11004
fi
11005
11006
11007
  test -n "$ac_ct_CXX" && break
11008
done
11009
11010
  if test "x$ac_ct_CXX" = x; then
11011
    CXX="g++"
11012
  else
11013
    case $cross_compiling:$ac_tool_warned in
11014
yes:)
11015
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11016
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11017
ac_tool_warned=yes ;;
11018
esac
11019
    CXX=$ac_ct_CXX
11020
  fi
11021
fi
11022
11023
  fi
11024
fi
11025
# Provide some information about the compiler.
11026
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11027
set X $ac_compile
11028
ac_compiler=$2
11029
for ac_option in --version -v -V -qversion; do
11030
  { { ac_try="$ac_compiler $ac_option >&5"
11031
case "(($ac_try" in
11032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033
  *) ac_try_echo=$ac_try;;
11034
esac
11035
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11036
$as_echo "$ac_try_echo"; } >&5
11037
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11038
  ac_status=$?
11039
  if test -s conftest.err; then
11040
    sed '10a\
11041
... rest of stderr output deleted ...
11042
         10q' conftest.err >conftest.er1
11043
    cat conftest.er1 >&5
11044
    rm -f conftest.er1 conftest.err
11045
  fi
11046
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11047
  test $ac_status = 0; }
11048
done
11049
11050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11051
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11052
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11053
  $as_echo_n "(cached) " >&6
11054
else
11055
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056
/* end confdefs.h.  */
11057
11058
int
11059
main ()
11060
{
11061
#ifndef __GNUC__
11062
       choke me
11063
#endif
11064
11065
  ;
11066
  return 0;
11067
}
11068
_ACEOF
11069
if ac_fn_cxx_try_compile "$LINENO"; then :
11070
  ac_compiler_gnu=yes
11071
else
11072
  ac_compiler_gnu=no
11073
fi
11074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11076
11077
fi
11078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11079
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11080
if test $ac_compiler_gnu = yes; then
11081
  GXX=yes
11082
else
11083
  GXX=
11084
fi
11085
ac_test_CXXFLAGS=${CXXFLAGS+set}
11086
ac_save_CXXFLAGS=$CXXFLAGS
11087
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11088
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11089
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11090
  $as_echo_n "(cached) " >&6
11091
else
11092
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11093
   ac_cxx_werror_flag=yes
11094
   ac_cv_prog_cxx_g=no
11095
   CXXFLAGS="-g"
11096
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097
/* end confdefs.h.  */
11098
11099
int
11100
main ()
11101
{
11102
11103
  ;
11104
  return 0;
11105
}
11106
_ACEOF
11107
if ac_fn_cxx_try_compile "$LINENO"; then :
11108
  ac_cv_prog_cxx_g=yes
11109
else
11110
  CXXFLAGS=""
11111
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112
/* end confdefs.h.  */
11113
11114
int
11115
main ()
11116
{
11117
11118
  ;
11119
  return 0;
11120
}
11121
_ACEOF
11122
if ac_fn_cxx_try_compile "$LINENO"; then :
11123
11124
else
11125
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11126
	 CXXFLAGS="-g"
11127
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128
/* end confdefs.h.  */
11129
11130
int
11131
main ()
11132
{
11133
11134
  ;
11135
  return 0;
11136
}
11137
_ACEOF
11138
if ac_fn_cxx_try_compile "$LINENO"; then :
11139
  ac_cv_prog_cxx_g=yes
11140
fi
11141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142
fi
11143
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144
fi
11145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11146
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11147
fi
11148
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11149
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11150
if test "$ac_test_CXXFLAGS" = set; then
11151
  CXXFLAGS=$ac_save_CXXFLAGS
11152
elif test $ac_cv_prog_cxx_g = yes; then
11153
  if test "$GXX" = yes; then
11154
    CXXFLAGS="-g -O2"
11155
  else
11156
    CXXFLAGS="-g"
11157
  fi
11158
else
11159
  if test "$GXX" = yes; then
11160
    CXXFLAGS="-O2"
11161
  else
11162
    CXXFLAGS=
11163
  fi
11164
fi
11165
ac_ext=c
11166
ac_cpp='$CPP $CPPFLAGS'
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11170
11171
depcc="$CXX"  am_compiler_list=
11172
11173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11174
$as_echo_n "checking dependency style of $depcc... " >&6; }
11175
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11176
  $as_echo_n "(cached) " >&6
11177
else
11178
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11179
  # We make a subdir and do the tests there.  Otherwise we can end up
11180
  # making bogus files that we don't know about and never remove.  For
11181
  # instance it was reported that on HP-UX the gcc test will end up
11182
  # making a dummy file named `D' -- because `-MD' means `put the output
11183
  # in D'.
11184
  mkdir conftest.dir
11185
  # Copy depcomp to subdir because otherwise we won't find it if we're
11186
  # using a relative directory.
11187
  cp "$am_depcomp" conftest.dir
11188
  cd conftest.dir
11189
  # We will build objects and dependencies in a subdirectory because
11190
  # it helps to detect inapplicable dependency modes.  For instance
11191
  # both Tru64's cc and ICC support -MD to output dependencies as a
11192
  # side effect of compilation, but ICC will put the dependencies in
11193
  # the current directory while Tru64 will put them in the object
11194
  # directory.
11195
  mkdir sub
11196
11197
  am_cv_CXX_dependencies_compiler_type=none
11198
  if test "$am_compiler_list" = ""; then
11199
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11200
  fi
11201
  am__universal=false
11202
  case " $depcc " in #(
11203
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11204
     esac
11205
11206
  for depmode in $am_compiler_list; do
11207
    # Setup a source with many dependencies, because some compilers
11208
    # like to wrap large dependency lists on column 80 (with \), and
11209
    # we should not choose a depcomp mode which is confused by this.
11210
    #
11211
    # We need to recreate these files for each test, as the compiler may
11212
    # overwrite some of them when testing with obscure command lines.
11213
    # This happens at least with the AIX C compiler.
11214
    : > sub/conftest.c
11215
    for i in 1 2 3 4 5 6; do
11216
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11217
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11218
      # Solaris 8's {/usr,}/bin/sh.
11219
      touch sub/conftst$i.h
11220
    done
11221
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11222
11223
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11224
    # mode.  It turns out that the SunPro C++ compiler does not properly
11225
    # handle `-M -o', and we need to detect this.  Also, some Intel
11226
    # versions had trouble with output in subdirs
11227
    am__obj=sub/conftest.${OBJEXT-o}
11228
    am__minus_obj="-o $am__obj"
11229
    case $depmode in
11230
    gcc)
11231
      # This depmode causes a compiler race in universal mode.
11232
      test "$am__universal" = false || continue
11233
      ;;
11234
    nosideeffect)
11235
      # after this tag, mechanisms are not by side-effect, so they'll
11236
      # only be used when explicitly requested
11237
      if test "x$enable_dependency_tracking" = xyes; then
11238
	continue
11239
      else
11240
	break
11241
      fi
11242
      ;;
11243
    msvisualcpp | msvcmsys)
11244
      # This compiler won't grok `-c -o', but also, the minuso test has
11245
      # not run yet.  These depmodes are late enough in the game, and
11246
      # so weak that their functioning should not be impacted.
11247
      am__obj=conftest.${OBJEXT-o}
11248
      am__minus_obj=
11249
      ;;
11250
    none) break ;;
11251
    esac
11252
    if depmode=$depmode \
11253
       source=sub/conftest.c object=$am__obj \
11254
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11255
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11256
         >/dev/null 2>conftest.err &&
11257
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11258
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11259
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11260
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11261
      # icc doesn't choke on unknown options, it will just issue warnings
11262
      # or remarks (even with -Werror).  So we grep stderr for any message
11263
      # that says an option was ignored or not supported.
11264
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11265
      #   icc: Command line warning: ignoring option '-M'; no argument required
11266
      # The diagnosis changed in icc 8.0:
11267
      #   icc: Command line remark: option '-MP' not supported
11268
      if (grep 'ignoring option' conftest.err ||
11269
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11270
        am_cv_CXX_dependencies_compiler_type=$depmode
11271
        break
11272
      fi
11273
    fi
11274
  done
11275
11276
  cd ..
11277
  rm -rf conftest.dir
11278
else
11279
  am_cv_CXX_dependencies_compiler_type=none
11280
fi
11281
11282
fi
11283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11284
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11285
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11286
11287
 if
11288
  test "x$enable_dependency_tracking" != xno \
11289
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11290
  am__fastdepCXX_TRUE=
11291
  am__fastdepCXX_FALSE='#'
11292
else
11293
  am__fastdepCXX_TRUE='#'
11294
  am__fastdepCXX_FALSE=
11295
fi
11296
11297
11298
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11299
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11300
    (test "X$CXX" != "Xg++"))) ; then
11301
  ac_ext=cpp
11302
ac_cpp='$CXXCPP $CPPFLAGS'
11303
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11304
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11305
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11307
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11308
if test -z "$CXXCPP"; then
11309
  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11310
  $as_echo_n "(cached) " >&6
11311
else
11312
      # Double quotes because CXXCPP needs to be expanded
11313
    for CXXCPP in "$CXX -E" "/lib/cpp"
11314
    do
11315
      ac_preproc_ok=false
11316
for ac_cxx_preproc_warn_flag in '' yes
11317
do
11318
  # Use a header file that comes with gcc, so configuring glibc
11319
  # with a fresh cross-compiler works.
11320
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321
  # <limits.h> exists even on freestanding compilers.
11322
  # On the NeXT, cc -E runs the code through the compiler's parser,
11323
  # not just through cpp. "Syntax error" is here to catch this case.
11324
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325
/* end confdefs.h.  */
11326
#ifdef __STDC__
11327
# include <limits.h>
11328
#else
11329
# include <assert.h>
11330
#endif
11331
		     Syntax error
11332
_ACEOF
11333
if ac_fn_cxx_try_cpp "$LINENO"; then :
11334
11335
else
11336
  # Broken: fails on valid input.
11337
continue
11338
fi
11339
rm -f conftest.err conftest.$ac_ext
11340
11341
  # OK, works on sane cases.  Now check whether nonexistent headers
11342
  # can be detected and how.
11343
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344
/* end confdefs.h.  */
11345
#include <ac_nonexistent.h>
11346
_ACEOF
11347
if ac_fn_cxx_try_cpp "$LINENO"; then :
11348
  # Broken: success on invalid input.
11349
continue
11350
else
11351
  # Passes both tests.
11352
ac_preproc_ok=:
11353
break
11354
fi
11355
rm -f conftest.err conftest.$ac_ext
11356
11357
done
11358
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11359
rm -f conftest.err conftest.$ac_ext
11360
if $ac_preproc_ok; then :
11361
  break
11362
fi
11363
11364
    done
11365
    ac_cv_prog_CXXCPP=$CXXCPP
11366
11367
fi
11368
  CXXCPP=$ac_cv_prog_CXXCPP
11369
else
11370
  ac_cv_prog_CXXCPP=$CXXCPP
11371
fi
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11373
$as_echo "$CXXCPP" >&6; }
11374
ac_preproc_ok=false
11375
for ac_cxx_preproc_warn_flag in '' yes
11376
do
11377
  # Use a header file that comes with gcc, so configuring glibc
11378
  # with a fresh cross-compiler works.
11379
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380
  # <limits.h> exists even on freestanding compilers.
11381
  # On the NeXT, cc -E runs the code through the compiler's parser,
11382
  # not just through cpp. "Syntax error" is here to catch this case.
11383
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384
/* end confdefs.h.  */
11385
#ifdef __STDC__
11386
# include <limits.h>
11387
#else
11388
# include <assert.h>
11389
#endif
11390
		     Syntax error
11391
_ACEOF
11392
if ac_fn_cxx_try_cpp "$LINENO"; then :
11393
11394
else
11395
  # Broken: fails on valid input.
11396
continue
11397
fi
11398
rm -f conftest.err conftest.$ac_ext
11399
11400
  # OK, works on sane cases.  Now check whether nonexistent headers
11401
  # can be detected and how.
11402
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403
/* end confdefs.h.  */
11404
#include <ac_nonexistent.h>
11405
_ACEOF
11406
if ac_fn_cxx_try_cpp "$LINENO"; then :
11407
  # Broken: success on invalid input.
11408
continue
11409
else
11410
  # Passes both tests.
11411
ac_preproc_ok=:
11412
break
11413
fi
11414
rm -f conftest.err conftest.$ac_ext
11415
11416
done
11417
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11418
rm -f conftest.err conftest.$ac_ext
11419
if $ac_preproc_ok; then :
11420
11421
else
11422
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11423
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11424
_lt_caught_CXX_error=yes; }
11425
fi
11426
11427
ac_ext=c
11428
ac_cpp='$CPP $CPPFLAGS'
11429
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11432
11433
else
11434
  _lt_caught_CXX_error=yes
11435
fi
11436
11437
11438
11439
5 by edam
- updated README
11440
ac_ext=cpp
11441
ac_cpp='$CXXCPP $CPPFLAGS'
11442
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11443
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11444
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11445
11446
archive_cmds_need_lc_CXX=no
11447
allow_undefined_flag_CXX=
11448
always_export_symbols_CXX=no
11449
archive_expsym_cmds_CXX=
11450
compiler_needs_object_CXX=no
11451
export_dynamic_flag_spec_CXX=
11452
hardcode_direct_CXX=no
11453
hardcode_direct_absolute_CXX=no
11454
hardcode_libdir_flag_spec_CXX=
11455
hardcode_libdir_flag_spec_ld_CXX=
11456
hardcode_libdir_separator_CXX=
11457
hardcode_minus_L_CXX=no
11458
hardcode_shlibpath_var_CXX=unsupported
11459
hardcode_automatic_CXX=no
11460
inherit_rpath_CXX=no
11461
module_cmds_CXX=
11462
module_expsym_cmds_CXX=
11463
link_all_deplibs_CXX=unknown
11464
old_archive_cmds_CXX=$old_archive_cmds
11465
no_undefined_flag_CXX=
11466
whole_archive_flag_spec_CXX=
11467
enable_shared_with_static_runtimes_CXX=no
11468
11469
# Source file extension for C++ test sources.
11470
ac_ext=cpp
11471
11472
# Object file extension for compiled C++ test sources.
11473
objext=o
11474
objext_CXX=$objext
11475
11476
# No sense in running all these tests if we already determined that
11477
# the CXX compiler isn't working.  Some variables (like enable_shared)
11478
# are currently assumed to apply to all compilers on this platform,
11479
# and will be corrupted by setting them based on a non-working compiler.
11480
if test "$_lt_caught_CXX_error" != yes; then
11481
  # Code to be used in simple compile tests
11482
  lt_simple_compile_test_code="int some_variable = 0;"
11483
11484
  # Code to be used in simple link tests
11485
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11486
11487
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11488
11489
11490
11491
11492
11493
11494
# If no C compiler was specified, use CC.
11495
LTCC=${LTCC-"$CC"}
11496
11497
# If no C compiler flags were specified, use CFLAGS.
11498
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11499
11500
# Allow CC to be a program name with arguments.
11501
compiler=$CC
11502
11503
11504
  # save warnings/boilerplate of simple test code
11505
  ac_outfile=conftest.$ac_objext
11506
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11507
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11508
_lt_compiler_boilerplate=`cat conftest.err`
11509
$RM conftest*
11510
11511
  ac_outfile=conftest.$ac_objext
11512
echo "$lt_simple_link_test_code" >conftest.$ac_ext
11513
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11514
_lt_linker_boilerplate=`cat conftest.err`
11515
$RM -r conftest*
11516
11517
11518
  # Allow CC to be a program name with arguments.
11519
  lt_save_CC=$CC
11520
  lt_save_LD=$LD
11521
  lt_save_GCC=$GCC
11522
  GCC=$GXX
11523
  lt_save_with_gnu_ld=$with_gnu_ld
11524
  lt_save_path_LD=$lt_cv_path_LD
11525
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11526
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11527
  else
11528
    $as_unset lt_cv_prog_gnu_ld
11529
  fi
11530
  if test -n "${lt_cv_path_LDCXX+set}"; then
11531
    lt_cv_path_LD=$lt_cv_path_LDCXX
11532
  else
11533
    $as_unset lt_cv_path_LD
11534
  fi
11535
  test -z "${LDCXX+set}" || LD=$LDCXX
11536
  CC=${CXX-"c++"}
11537
  compiler=$CC
11538
  compiler_CXX=$CC
11539
  for cc_temp in $compiler""; do
11540
  case $cc_temp in
11541
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11542
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11543
    \-*) ;;
11544
    *) break;;
11545
  esac
11546
done
11547
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11548
11549
11550
  if test -n "$compiler"; then
11551
    # We don't want -fno-exception when compiling C++ code, so set the
11552
    # no_builtin_flag separately
11553
    if test "$GXX" = yes; then
11554
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11555
    else
11556
      lt_prog_compiler_no_builtin_flag_CXX=
11557
    fi
11558
11559
    if test "$GXX" = yes; then
11560
      # Set up default GNU C++ configuration
11561
11562
11563
11564
# Check whether --with-gnu-ld was given.
11565
if test "${with_gnu_ld+set}" = set; then :
11566
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11567
else
11568
  with_gnu_ld=no
11569
fi
11570
11571
ac_prog=ld
11572
if test "$GCC" = yes; then
11573
  # Check if gcc -print-prog-name=ld gives a path.
11574
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11575
$as_echo_n "checking for ld used by $CC... " >&6; }
11576
  case $host in
11577
  *-*-mingw*)
11578
    # gcc leaves a trailing carriage return which upsets mingw
11579
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11580
  *)
11581
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11582
  esac
11583
  case $ac_prog in
11584
    # Accept absolute paths.
11585
    [\\/]* | ?:[\\/]*)
11586
      re_direlt='/[^/][^/]*/\.\./'
11587
      # Canonicalize the pathname of ld
11588
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11589
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11590
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11591
      done
11592
      test -z "$LD" && LD="$ac_prog"
11593
      ;;
11594
  "")
11595
    # If it fails, then pretend we aren't using GCC.
11596
    ac_prog=ld
11597
    ;;
11598
  *)
11599
    # If it is relative, then search for the first ld in PATH.
11600
    with_gnu_ld=unknown
11601
    ;;
11602
  esac
11603
elif test "$with_gnu_ld" = yes; then
11604
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11605
$as_echo_n "checking for GNU ld... " >&6; }
11606
else
11607
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11608
$as_echo_n "checking for non-GNU ld... " >&6; }
11609
fi
11610
if test "${lt_cv_path_LD+set}" = set; then :
11611
  $as_echo_n "(cached) " >&6
11612
else
11613
  if test -z "$LD"; then
11614
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11615
  for ac_dir in $PATH; do
11616
    IFS="$lt_save_ifs"
11617
    test -z "$ac_dir" && ac_dir=.
11618
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11619
      lt_cv_path_LD="$ac_dir/$ac_prog"
11620
      # Check to see if the program is GNU ld.  I'd rather use --version,
11621
      # but apparently some variants of GNU ld only accept -v.
11622
      # Break only if it was the GNU/non-GNU ld that we prefer.
11623
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11624
      *GNU* | *'with BFD'*)
11625
	test "$with_gnu_ld" != no && break
11626
	;;
11627
      *)
11628
	test "$with_gnu_ld" != yes && break
11629
	;;
11630
      esac
11631
    fi
11632
  done
11633
  IFS="$lt_save_ifs"
11634
else
11635
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11636
fi
11637
fi
11638
11639
LD="$lt_cv_path_LD"
11640
if test -n "$LD"; then
11641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11642
$as_echo "$LD" >&6; }
11643
else
11644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645
$as_echo "no" >&6; }
11646
fi
11647
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11649
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11650
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11651
  $as_echo_n "(cached) " >&6
11652
else
11653
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11654
case `$LD -v 2>&1 </dev/null` in
11655
*GNU* | *'with BFD'*)
11656
  lt_cv_prog_gnu_ld=yes
11657
  ;;
11658
*)
11659
  lt_cv_prog_gnu_ld=no
11660
  ;;
11661
esac
11662
fi
11663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11664
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11665
with_gnu_ld=$lt_cv_prog_gnu_ld
11666
11667
11668
11669
11670
11671
11672
11673
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11674
      # archiving commands below assume that GNU ld is being used.
11675
      if test "$with_gnu_ld" = yes; then
11676
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11677
        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'
11678
11679
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11680
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11681
11682
        # If archive_cmds runs LD, not CC, wlarc should be empty
11683
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11684
        #     investigate it a little bit more. (MM)
11685
        wlarc='${wl}'
11686
11687
        # ancient GNU ld didn't support --whole-archive et. al.
11688
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11689
	  $GREP 'no-whole-archive' > /dev/null; then
11690
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11691
        else
11692
          whole_archive_flag_spec_CXX=
11693
        fi
11694
      else
11695
        with_gnu_ld=no
11696
        wlarc=
11697
11698
        # A generic and very simple default shared library creation
11699
        # command for GNU C++ for the case where it uses the native
11700
        # linker, instead of GNU ld.  If possible, this setting should
11701
        # overridden to take advantage of the native linker features on
11702
        # the platform it is being used on.
11703
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11704
      fi
11705
11706
      # Commands to make compiler produce verbose output that lists
11707
      # what "hidden" libraries, object files and flags are used when
11708
      # linking a shared library.
11709
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11710
11711
    else
11712
      GXX=no
11713
      with_gnu_ld=no
11714
      wlarc=
11715
    fi
11716
11717
    # PORTME: fill in a description of your system's C++ link characteristics
11718
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11719
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11720
    ld_shlibs_CXX=yes
11721
    case $host_os in
11722
      aix3*)
11723
        # FIXME: insert proper C++ library support
11724
        ld_shlibs_CXX=no
11725
        ;;
11726
      aix[4-9]*)
11727
        if test "$host_cpu" = ia64; then
11728
          # On IA64, the linker does run time linking by default, so we don't
11729
          # have to do anything special.
11730
          aix_use_runtimelinking=no
11731
          exp_sym_flag='-Bexport'
11732
          no_entry_flag=""
11733
        else
11734
          aix_use_runtimelinking=no
11735
11736
          # Test if we are trying to use run time linking or normal
11737
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11738
          # need to do runtime linking.
11739
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11740
	    for ld_flag in $LDFLAGS; do
11741
	      case $ld_flag in
11742
	      *-brtl*)
11743
	        aix_use_runtimelinking=yes
11744
	        break
11745
	        ;;
11746
	      esac
11747
	    done
11748
	    ;;
11749
          esac
11750
11751
          exp_sym_flag='-bexport'
11752
          no_entry_flag='-bnoentry'
11753
        fi
11754
11755
        # When large executables or shared objects are built, AIX ld can
11756
        # have problems creating the table of contents.  If linking a library
11757
        # or program results in "error TOC overflow" add -mminimal-toc to
11758
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11759
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11760
11761
        archive_cmds_CXX=''
11762
        hardcode_direct_CXX=yes
11763
        hardcode_direct_absolute_CXX=yes
11764
        hardcode_libdir_separator_CXX=':'
11765
        link_all_deplibs_CXX=yes
11766
        file_list_spec_CXX='${wl}-f,'
11767
11768
        if test "$GXX" = yes; then
11769
          case $host_os in aix4.[012]|aix4.[012].*)
11770
          # We only want to do this on AIX 4.2 and lower, the check
11771
          # below for broken collect2 doesn't work under 4.3+
11772
	  collect2name=`${CC} -print-prog-name=collect2`
11773
	  if test -f "$collect2name" &&
11774
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11775
	  then
11776
	    # We have reworked collect2
11777
	    :
11778
	  else
11779
	    # We have old collect2
11780
	    hardcode_direct_CXX=unsupported
11781
	    # It fails to find uninstalled libraries when the uninstalled
11782
	    # path is not listed in the libpath.  Setting hardcode_minus_L
11783
	    # to unsupported forces relinking
11784
	    hardcode_minus_L_CXX=yes
11785
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11786
	    hardcode_libdir_separator_CXX=
11787
	  fi
11788
          esac
11789
          shared_flag='-shared'
11790
	  if test "$aix_use_runtimelinking" = yes; then
11791
	    shared_flag="$shared_flag "'${wl}-G'
11792
	  fi
11793
        else
11794
          # not using gcc
11795
          if test "$host_cpu" = ia64; then
11796
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11797
	  # chokes on -Wl,-G. The following line is correct:
11798
	  shared_flag='-G'
11799
          else
11800
	    if test "$aix_use_runtimelinking" = yes; then
11801
	      shared_flag='${wl}-G'
11802
	    else
11803
	      shared_flag='${wl}-bM:SRE'
11804
	    fi
11805
          fi
11806
        fi
11807
11808
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11809
        # It seems that -bexpall does not export symbols beginning with
11810
        # underscore (_), so it is better to generate a list of symbols to
11811
	# export.
11812
        always_export_symbols_CXX=yes
11813
        if test "$aix_use_runtimelinking" = yes; then
11814
          # Warning - without using the other runtime loading flags (-brtl),
11815
          # -berok will link without error, but may produce a broken library.
11816
          allow_undefined_flag_CXX='-berok'
11817
          # Determine the default libpath from the value encoded in an empty
11818
          # executable.
11819
          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820
/* end confdefs.h.  */
11821
11822
int
11823
main ()
11824
{
11825
11826
  ;
11827
  return 0;
11828
}
11829
_ACEOF
11830
if ac_fn_cxx_try_link "$LINENO"; then :
11831
11832
lt_aix_libpath_sed='
11833
    /Import File Strings/,/^$/ {
11834
	/^0/ {
11835
	    s/^0  *\(.*\)$/\1/
11836
	    p
11837
	}
11838
    }'
11839
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11840
# Check for a 64-bit object if we didn't find anything.
11841
if test -z "$aix_libpath"; then
11842
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11843
fi
11844
fi
11845
rm -f core conftest.err conftest.$ac_objext \
11846
    conftest$ac_exeext conftest.$ac_ext
11847
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11848
11849
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11850
11851
          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"
11852
        else
11853
          if test "$host_cpu" = ia64; then
11854
	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11855
	    allow_undefined_flag_CXX="-z nodefs"
11856
	    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"
11857
          else
11858
	    # Determine the default libpath from the value encoded in an
11859
	    # empty executable.
11860
	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861
/* end confdefs.h.  */
11862
11863
int
11864
main ()
11865
{
11866
11867
  ;
11868
  return 0;
11869
}
11870
_ACEOF
11871
if ac_fn_cxx_try_link "$LINENO"; then :
11872
11873
lt_aix_libpath_sed='
11874
    /Import File Strings/,/^$/ {
11875
	/^0/ {
11876
	    s/^0  *\(.*\)$/\1/
11877
	    p
11878
	}
11879
    }'
11880
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11881
# Check for a 64-bit object if we didn't find anything.
11882
if test -z "$aix_libpath"; then
11883
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11884
fi
11885
fi
11886
rm -f core conftest.err conftest.$ac_objext \
11887
    conftest$ac_exeext conftest.$ac_ext
11888
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11889
11890
	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11891
	    # Warning - without using the other run time loading flags,
11892
	    # -berok will link without error, but may produce a broken library.
11893
	    no_undefined_flag_CXX=' ${wl}-bernotok'
11894
	    allow_undefined_flag_CXX=' ${wl}-berok'
11895
	    # Exported symbols can be pulled into shared objects from archives
11896
	    whole_archive_flag_spec_CXX='$convenience'
11897
	    archive_cmds_need_lc_CXX=yes
11898
	    # This is similar to how AIX traditionally builds its shared
11899
	    # libraries.
11900
	    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'
11901
          fi
11902
        fi
11903
        ;;
11904
11905
      beos*)
11906
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907
	  allow_undefined_flag_CXX=unsupported
11908
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11909
	  # support --undefined.  This deserves some investigation.  FIXME
11910
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911
	else
11912
	  ld_shlibs_CXX=no
11913
	fi
11914
	;;
11915
11916
      chorus*)
11917
        case $cc_basename in
11918
          *)
11919
	  # FIXME: insert proper C++ library support
11920
	  ld_shlibs_CXX=no
11921
	  ;;
11922
        esac
11923
        ;;
11924
11925
      cygwin* | mingw* | pw32* | cegcc*)
11926
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11927
        # as there is no search path for DLLs.
11928
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11929
        allow_undefined_flag_CXX=unsupported
11930
        always_export_symbols_CXX=no
11931
        enable_shared_with_static_runtimes_CXX=yes
11932
11933
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11934
          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'
11935
          # If the export-symbols file already is a .def file (1st line
11936
          # is EXPORTS), use it as is; otherwise, prepend...
11937
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11938
	    cp $export_symbols $output_objdir/$soname.def;
11939
          else
11940
	    echo EXPORTS > $output_objdir/$soname.def;
11941
	    cat $export_symbols >> $output_objdir/$soname.def;
11942
          fi~
11943
          $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'
11944
        else
11945
          ld_shlibs_CXX=no
11946
        fi
11947
        ;;
11948
      darwin* | rhapsody*)
11949
11950
11951
  archive_cmds_need_lc_CXX=no
11952
  hardcode_direct_CXX=no
11953
  hardcode_automatic_CXX=yes
11954
  hardcode_shlibpath_var_CXX=unsupported
11955
  whole_archive_flag_spec_CXX=''
11956
  link_all_deplibs_CXX=yes
11957
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11958
  case $cc_basename in
11959
     ifort*) _lt_dar_can_shared=yes ;;
11960
     *) _lt_dar_can_shared=$GCC ;;
11961
  esac
11962
  if test "$_lt_dar_can_shared" = "yes"; then
11963
    output_verbose_link_cmd=echo
11964
    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}"
11965
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11966
    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}"
11967
    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}"
11968
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11969
      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}"
11970
      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}"
11971
    fi
11972
11973
  else
11974
  ld_shlibs_CXX=no
11975
  fi
11976
11977
	;;
11978
11979
      dgux*)
11980
        case $cc_basename in
11981
          ec++*)
11982
	    # FIXME: insert proper C++ library support
11983
	    ld_shlibs_CXX=no
11984
	    ;;
11985
          ghcx*)
11986
	    # Green Hills C++ Compiler
11987
	    # FIXME: insert proper C++ library support
11988
	    ld_shlibs_CXX=no
11989
	    ;;
11990
          *)
11991
	    # FIXME: insert proper C++ library support
11992
	    ld_shlibs_CXX=no
11993
	    ;;
11994
        esac
11995
        ;;
11996
11997
      freebsd[12]*)
11998
        # C++ shared libraries reported to be fairly broken before
11999
	# switch to ELF
12000
        ld_shlibs_CXX=no
12001
        ;;
12002
12003
      freebsd-elf*)
12004
        archive_cmds_need_lc_CXX=no
12005
        ;;
12006
12007
      freebsd* | dragonfly*)
12008
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12009
        # conventions
12010
        ld_shlibs_CXX=yes
12011
        ;;
12012
12013
      gnu*)
12014
        ;;
12015
12016
      hpux9*)
12017
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12018
        hardcode_libdir_separator_CXX=:
12019
        export_dynamic_flag_spec_CXX='${wl}-E'
12020
        hardcode_direct_CXX=yes
12021
        hardcode_minus_L_CXX=yes # Not in the search PATH,
12022
				             # but as the default
12023
				             # location of the library.
12024
12025
        case $cc_basename in
12026
          CC*)
12027
            # FIXME: insert proper C++ library support
12028
            ld_shlibs_CXX=no
12029
            ;;
12030
          aCC*)
12031
            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'
12032
            # Commands to make compiler produce verbose output that lists
12033
            # what "hidden" libraries, object files and flags are used when
12034
            # linking a shared library.
12035
            #
12036
            # There doesn't appear to be a way to prevent this compiler from
12037
            # explicitly linking system object files so we need to strip them
12038
            # from the output so that they don't get included in the library
12039
            # dependencies.
12040
            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'
12041
            ;;
12042
          *)
12043
            if test "$GXX" = yes; then
12044
              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'
12045
            else
12046
              # FIXME: insert proper C++ library support
12047
              ld_shlibs_CXX=no
12048
            fi
12049
            ;;
12050
        esac
12051
        ;;
12052
12053
      hpux10*|hpux11*)
12054
        if test $with_gnu_ld = no; then
12055
	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12056
	  hardcode_libdir_separator_CXX=:
12057
12058
          case $host_cpu in
12059
            hppa*64*|ia64*)
12060
              ;;
12061
            *)
12062
	      export_dynamic_flag_spec_CXX='${wl}-E'
12063
              ;;
12064
          esac
12065
        fi
12066
        case $host_cpu in
12067
          hppa*64*|ia64*)
12068
            hardcode_direct_CXX=no
12069
            hardcode_shlibpath_var_CXX=no
12070
            ;;
12071
          *)
12072
            hardcode_direct_CXX=yes
12073
            hardcode_direct_absolute_CXX=yes
12074
            hardcode_minus_L_CXX=yes # Not in the search PATH,
12075
					         # but as the default
12076
					         # location of the library.
12077
            ;;
12078
        esac
12079
12080
        case $cc_basename in
12081
          CC*)
12082
	    # FIXME: insert proper C++ library support
12083
	    ld_shlibs_CXX=no
12084
	    ;;
12085
          aCC*)
12086
	    case $host_cpu in
12087
	      hppa*64*)
12088
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12089
	        ;;
12090
	      ia64*)
12091
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12092
	        ;;
12093
	      *)
12094
	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12095
	        ;;
12096
	    esac
12097
	    # Commands to make compiler produce verbose output that lists
12098
	    # what "hidden" libraries, object files and flags are used when
12099
	    # linking a shared library.
12100
	    #
12101
	    # There doesn't appear to be a way to prevent this compiler from
12102
	    # explicitly linking system object files so we need to strip them
12103
	    # from the output so that they don't get included in the library
12104
	    # dependencies.
12105
	    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'
12106
	    ;;
12107
          *)
12108
	    if test "$GXX" = yes; then
12109
	      if test $with_gnu_ld = no; then
12110
	        case $host_cpu in
12111
	          hppa*64*)
12112
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12113
	            ;;
12114
	          ia64*)
12115
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12116
	            ;;
12117
	          *)
12118
	            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'
12119
	            ;;
12120
	        esac
12121
	      fi
12122
	    else
12123
	      # FIXME: insert proper C++ library support
12124
	      ld_shlibs_CXX=no
12125
	    fi
12126
	    ;;
12127
        esac
12128
        ;;
12129
12130
      interix[3-9]*)
12131
	hardcode_direct_CXX=no
12132
	hardcode_shlibpath_var_CXX=no
12133
	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12134
	export_dynamic_flag_spec_CXX='${wl}-E'
12135
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12136
	# Instead, shared libraries are loaded at an image base (0x10000000 by
12137
	# default) and relocated if they conflict, which is a slow very memory
12138
	# consuming and fragmenting process.  To avoid this, we pick a random,
12139
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12140
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12141
	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'
12142
	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'
12143
	;;
12144
      irix5* | irix6*)
12145
        case $cc_basename in
12146
          CC*)
12147
	    # SGI C++
12148
	    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'
12149
12150
	    # Archives containing C++ object files must be created using
12151
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12152
	    # necessary to make sure instantiated templates are included
12153
	    # in the archive.
12154
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12155
	    ;;
12156
          *)
12157
	    if test "$GXX" = yes; then
12158
	      if test "$with_gnu_ld" = no; then
12159
	        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'
12160
	      else
12161
	        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'
12162
	      fi
12163
	    fi
12164
	    link_all_deplibs_CXX=yes
12165
	    ;;
12166
        esac
12167
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12168
        hardcode_libdir_separator_CXX=:
12169
        inherit_rpath_CXX=yes
12170
        ;;
12171
12172
      linux* | k*bsd*-gnu)
12173
        case $cc_basename in
12174
          KCC*)
12175
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12176
12177
	    # KCC will only create a shared library if the output file
12178
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12179
	    # to its proper name (with version) after linking.
12180
	    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'
12181
	    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'
12182
	    # Commands to make compiler produce verbose output that lists
12183
	    # what "hidden" libraries, object files and flags are used when
12184
	    # linking a shared library.
12185
	    #
12186
	    # There doesn't appear to be a way to prevent this compiler from
12187
	    # explicitly linking system object files so we need to strip them
12188
	    # from the output so that they don't get included in the library
12189
	    # dependencies.
12190
	    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'
12191
12192
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12193
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12194
12195
	    # Archives containing C++ object files must be created using
12196
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12197
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12198
	    ;;
12199
	  icpc* | ecpc* )
12200
	    # Intel C++
12201
	    with_gnu_ld=yes
12202
	    # version 8.0 and above of icpc choke on multiply defined symbols
12203
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12204
	    # earlier do not add the objects themselves.
12205
	    case `$CC -V 2>&1` in
12206
	      *"Version 7."*)
12207
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12208
		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'
12209
		;;
12210
	      *)  # Version 8.0 or newer
12211
	        tmp_idyn=
12212
	        case $host_cpu in
12213
		  ia64*) tmp_idyn=' -i_dynamic';;
12214
		esac
12215
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12216
		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'
12217
		;;
12218
	    esac
12219
	    archive_cmds_need_lc_CXX=no
12220
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12221
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12222
	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12223
	    ;;
12224
          pgCC* | pgcpp*)
12225
            # Portland Group C++ compiler
12226
	    case `$CC -V` in
12227
	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12228
	      prelink_cmds_CXX='tpldir=Template.dir~
12229
		rm -rf $tpldir~
12230
		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12231
		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12232
	      old_archive_cmds_CXX='tpldir=Template.dir~
12233
		rm -rf $tpldir~
12234
		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12235
		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12236
		$RANLIB $oldlib'
12237
	      archive_cmds_CXX='tpldir=Template.dir~
12238
		rm -rf $tpldir~
12239
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12240
		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12241
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12242
		rm -rf $tpldir~
12243
		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12244
		$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'
12245
	      ;;
12246
	    *) # Version 6 will use weak symbols
12247
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12248
	      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'
12249
	      ;;
12250
	    esac
12251
12252
	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12253
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12254
	    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'
12255
            ;;
12256
	  cxx*)
12257
	    # Compaq C++
12258
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259
	    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'
12260
12261
	    runpath_var=LD_RUN_PATH
12262
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12263
	    hardcode_libdir_separator_CXX=:
12264
12265
	    # Commands to make compiler produce verbose output that lists
12266
	    # what "hidden" libraries, object files and flags are used when
12267
	    # linking a shared library.
12268
	    #
12269
	    # There doesn't appear to be a way to prevent this compiler from
12270
	    # explicitly linking system object files so we need to strip them
12271
	    # from the output so that they don't get included in the library
12272
	    # dependencies.
12273
	    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'
12274
	    ;;
12275
	  xl*)
12276
	    # IBM XL 8.0 on PPC, with GNU ld
12277
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12278
	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12279
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280
	    if test "x$supports_anon_versioning" = xyes; then
12281
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12282
		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12283
		echo "local: *; };" >> $output_objdir/$libname.ver~
12284
		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12285
	    fi
12286
	    ;;
12287
	  *)
12288
	    case `$CC -V 2>&1 | sed 5q` in
12289
	    *Sun\ C*)
12290
	      # Sun C++ 5.9
12291
	      no_undefined_flag_CXX=' -zdefs'
12292
	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12293
	      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'
12294
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12295
	      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'
12296
	      compiler_needs_object_CXX=yes
12297
12298
	      # Not sure whether something based on
12299
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12300
	      # would be better.
12301
	      output_verbose_link_cmd='echo'
12302
12303
	      # Archives containing C++ object files must be created using
12304
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12305
	      # necessary to make sure instantiated templates are included
12306
	      # in the archive.
12307
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12308
	      ;;
12309
	    esac
12310
	    ;;
12311
	esac
12312
	;;
12313
12314
      lynxos*)
12315
        # FIXME: insert proper C++ library support
12316
	ld_shlibs_CXX=no
12317
	;;
12318
12319
      m88k*)
12320
        # FIXME: insert proper C++ library support
12321
        ld_shlibs_CXX=no
12322
	;;
12323
12324
      mvs*)
12325
        case $cc_basename in
12326
          cxx*)
12327
	    # FIXME: insert proper C++ library support
12328
	    ld_shlibs_CXX=no
12329
	    ;;
12330
	  *)
12331
	    # FIXME: insert proper C++ library support
12332
	    ld_shlibs_CXX=no
12333
	    ;;
12334
	esac
12335
	;;
12336
12337
      netbsd*)
12338
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12339
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12340
	  wlarc=
12341
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12342
	  hardcode_direct_CXX=yes
12343
	  hardcode_shlibpath_var_CXX=no
12344
	fi
12345
	# Workaround some broken pre-1.5 toolchains
12346
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12347
	;;
12348
12349
      *nto* | *qnx*)
12350
        ld_shlibs_CXX=yes
12351
	;;
12352
12353
      openbsd2*)
12354
        # C++ shared libraries are fairly broken
12355
	ld_shlibs_CXX=no
12356
	;;
12357
12358
      openbsd*)
12359
	if test -f /usr/libexec/ld.so; then
12360
	  hardcode_direct_CXX=yes
12361
	  hardcode_shlibpath_var_CXX=no
12362
	  hardcode_direct_absolute_CXX=yes
12363
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12364
	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12365
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12366
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12367
	    export_dynamic_flag_spec_CXX='${wl}-E'
12368
	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12369
	  fi
12370
	  output_verbose_link_cmd=echo
12371
	else
12372
	  ld_shlibs_CXX=no
12373
	fi
12374
	;;
12375
12376
      osf3* | osf4* | osf5*)
12377
        case $cc_basename in
12378
          KCC*)
12379
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12380
12381
	    # KCC will only create a shared library if the output file
12382
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12383
	    # to its proper name (with version) after linking.
12384
	    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'
12385
12386
	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12387
	    hardcode_libdir_separator_CXX=:
12388
12389
	    # Archives containing C++ object files must be created using
12390
	    # the KAI C++ compiler.
12391
	    case $host in
12392
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12393
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12394
	    esac
12395
	    ;;
12396
          RCC*)
12397
	    # Rational C++ 2.4.1
12398
	    # FIXME: insert proper C++ library support
12399
	    ld_shlibs_CXX=no
12400
	    ;;
12401
          cxx*)
12402
	    case $host in
12403
	      osf3*)
12404
	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12405
	        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'
12406
	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12407
		;;
12408
	      *)
12409
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12410
	        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'
12411
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12412
	          echo "-hidden">> $lib.exp~
12413
	          $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~
12414
	          $RM $lib.exp'
12415
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12416
		;;
12417
	    esac
12418
12419
	    hardcode_libdir_separator_CXX=:
12420
12421
	    # Commands to make compiler produce verbose output that lists
12422
	    # what "hidden" libraries, object files and flags are used when
12423
	    # linking a shared library.
12424
	    #
12425
	    # There doesn't appear to be a way to prevent this compiler from
12426
	    # explicitly linking system object files so we need to strip them
12427
	    # from the output so that they don't get included in the library
12428
	    # dependencies.
12429
	    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'
12430
	    ;;
12431
	  *)
12432
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12433
	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12434
	      case $host in
12435
	        osf3*)
12436
	          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'
12437
		  ;;
12438
	        *)
12439
	          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'
12440
		  ;;
12441
	      esac
12442
12443
	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12444
	      hardcode_libdir_separator_CXX=:
12445
12446
	      # Commands to make compiler produce verbose output that lists
12447
	      # what "hidden" libraries, object files and flags are used when
12448
	      # linking a shared library.
12449
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12450
12451
	    else
12452
	      # FIXME: insert proper C++ library support
12453
	      ld_shlibs_CXX=no
12454
	    fi
12455
	    ;;
12456
        esac
12457
        ;;
12458
12459
      psos*)
12460
        # FIXME: insert proper C++ library support
12461
        ld_shlibs_CXX=no
12462
        ;;
12463
12464
      sunos4*)
12465
        case $cc_basename in
12466
          CC*)
12467
	    # Sun C++ 4.x
12468
	    # FIXME: insert proper C++ library support
12469
	    ld_shlibs_CXX=no
12470
	    ;;
12471
          lcc*)
12472
	    # Lucid
12473
	    # FIXME: insert proper C++ library support
12474
	    ld_shlibs_CXX=no
12475
	    ;;
12476
          *)
12477
	    # FIXME: insert proper C++ library support
12478
	    ld_shlibs_CXX=no
12479
	    ;;
12480
        esac
12481
        ;;
12482
12483
      solaris*)
12484
        case $cc_basename in
12485
          CC*)
12486
	    # Sun C++ 4.2, 5.x and Centerline C++
12487
            archive_cmds_need_lc_CXX=yes
12488
	    no_undefined_flag_CXX=' -zdefs'
12489
	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12490
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12491
	      $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'
12492
12493
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12494
	    hardcode_shlibpath_var_CXX=no
12495
	    case $host_os in
12496
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12497
	      *)
12498
		# The compiler driver will combine and reorder linker options,
12499
		# but understands `-z linker_flag'.
12500
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12501
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12502
	        ;;
12503
	    esac
12504
	    link_all_deplibs_CXX=yes
12505
12506
	    output_verbose_link_cmd='echo'
12507
12508
	    # Archives containing C++ object files must be created using
12509
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12510
	    # necessary to make sure instantiated templates are included
12511
	    # in the archive.
12512
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12513
	    ;;
12514
          gcx*)
12515
	    # Green Hills C++ Compiler
12516
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12517
12518
	    # The C++ compiler must be used to create the archive.
12519
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12520
	    ;;
12521
          *)
12522
	    # GNU C++ compiler with Solaris linker
12523
	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12524
	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12525
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12526
	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12527
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12528
		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12529
12530
	        # Commands to make compiler produce verbose output that lists
12531
	        # what "hidden" libraries, object files and flags are used when
12532
	        # linking a shared library.
12533
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12534
	      else
12535
	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12536
	        # platform.
12537
	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12538
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12539
		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12540
12541
	        # Commands to make compiler produce verbose output that lists
12542
	        # what "hidden" libraries, object files and flags are used when
12543
	        # linking a shared library.
12544
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12545
	      fi
12546
12547
	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12548
	      case $host_os in
12549
		solaris2.[0-5] | solaris2.[0-5].*) ;;
12550
		*)
12551
		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12552
		  ;;
12553
	      esac
12554
	    fi
12555
	    ;;
12556
        esac
12557
        ;;
12558
12559
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12560
      no_undefined_flag_CXX='${wl}-z,text'
12561
      archive_cmds_need_lc_CXX=no
12562
      hardcode_shlibpath_var_CXX=no
12563
      runpath_var='LD_RUN_PATH'
12564
12565
      case $cc_basename in
12566
        CC*)
12567
	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568
	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569
	  ;;
12570
	*)
12571
	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12572
	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573
	  ;;
12574
      esac
12575
      ;;
12576
12577
      sysv5* | sco3.2v5* | sco5v6*)
12578
	# Note: We can NOT use -z defs as we might desire, because we do not
12579
	# link with -lc, and that would cause any symbols used from libc to
12580
	# always be unresolved, which means just about no library would
12581
	# ever link correctly.  If we're not using GNU ld we use -z text
12582
	# though, which does catch some bad symbols but isn't as heavy-handed
12583
	# as -z defs.
12584
	no_undefined_flag_CXX='${wl}-z,text'
12585
	allow_undefined_flag_CXX='${wl}-z,nodefs'
12586
	archive_cmds_need_lc_CXX=no
12587
	hardcode_shlibpath_var_CXX=no
12588
	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12589
	hardcode_libdir_separator_CXX=':'
12590
	link_all_deplibs_CXX=yes
12591
	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12592
	runpath_var='LD_RUN_PATH'
12593
12594
	case $cc_basename in
12595
          CC*)
12596
	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12597
	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12598
	    ;;
12599
	  *)
12600
	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12601
	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12602
	    ;;
12603
	esac
12604
      ;;
12605
12606
      tandem*)
12607
        case $cc_basename in
12608
          NCC*)
12609
	    # NonStop-UX NCC 3.20
12610
	    # FIXME: insert proper C++ library support
12611
	    ld_shlibs_CXX=no
12612
	    ;;
12613
          *)
12614
	    # FIXME: insert proper C++ library support
12615
	    ld_shlibs_CXX=no
12616
	    ;;
12617
        esac
12618
        ;;
12619
12620
      vxworks*)
12621
        # FIXME: insert proper C++ library support
12622
        ld_shlibs_CXX=no
12623
        ;;
12624
12625
      *)
12626
        # FIXME: insert proper C++ library support
12627
        ld_shlibs_CXX=no
12628
        ;;
12629
    esac
12630
12631
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12632
$as_echo "$ld_shlibs_CXX" >&6; }
12633
    test "$ld_shlibs_CXX" = no && can_build_shared=no
12634
12635
    GCC_CXX="$GXX"
12636
    LD_CXX="$LD"
12637
12638
    ## CAVEAT EMPTOR:
12639
    ## There is no encapsulation within the following macros, do not change
12640
    ## the running order or otherwise move them around unless you know exactly
12641
    ## what you are doing...
12642
    # Dependencies to place before and after the object being linked:
12643
predep_objects_CXX=
12644
postdep_objects_CXX=
12645
predeps_CXX=
12646
postdeps_CXX=
12647
compiler_lib_search_path_CXX=
12648
12649
cat > conftest.$ac_ext <<_LT_EOF
12650
class Foo
12651
{
12652
public:
12653
  Foo (void) { a = 0; }
12654
private:
12655
  int a;
12656
};
12657
_LT_EOF
12658
12659
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12660
  (eval $ac_compile) 2>&5
12661
  ac_status=$?
12662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12663
  test $ac_status = 0; }; then
12664
  # Parse the compiler output and extract the necessary
12665
  # objects, libraries and library flags.
12666
12667
  # Sentinel used to keep track of whether or not we are before
12668
  # the conftest object file.
12669
  pre_test_object_deps_done=no
12670
12671
  for p in `eval "$output_verbose_link_cmd"`; do
12672
    case $p in
12673
12674
    -L* | -R* | -l*)
12675
       # Some compilers place space between "-{L,R}" and the path.
12676
       # Remove the space.
12677
       if test $p = "-L" ||
12678
          test $p = "-R"; then
12679
	 prev=$p
12680
	 continue
12681
       else
12682
	 prev=
12683
       fi
12684
12685
       if test "$pre_test_object_deps_done" = no; then
12686
	 case $p in
12687
	 -L* | -R*)
12688
	   # Internal compiler library paths should come after those
12689
	   # provided the user.  The postdeps already come after the
12690
	   # user supplied libs so there is no need to process them.
12691
	   if test -z "$compiler_lib_search_path_CXX"; then
12692
	     compiler_lib_search_path_CXX="${prev}${p}"
12693
	   else
12694
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12695
	   fi
12696
	   ;;
12697
	 # The "-l" case would never come before the object being
12698
	 # linked, so don't bother handling this case.
12699
	 esac
12700
       else
12701
	 if test -z "$postdeps_CXX"; then
12702
	   postdeps_CXX="${prev}${p}"
12703
	 else
12704
	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12705
	 fi
12706
       fi
12707
       ;;
12708
12709
    *.$objext)
12710
       # This assumes that the test object file only shows up
12711
       # once in the compiler output.
12712
       if test "$p" = "conftest.$objext"; then
12713
	 pre_test_object_deps_done=yes
12714
	 continue
12715
       fi
12716
12717
       if test "$pre_test_object_deps_done" = no; then
12718
	 if test -z "$predep_objects_CXX"; then
12719
	   predep_objects_CXX="$p"
12720
	 else
12721
	   predep_objects_CXX="$predep_objects_CXX $p"
12722
	 fi
12723
       else
12724
	 if test -z "$postdep_objects_CXX"; then
12725
	   postdep_objects_CXX="$p"
12726
	 else
12727
	   postdep_objects_CXX="$postdep_objects_CXX $p"
12728
	 fi
12729
       fi
12730
       ;;
12731
12732
    *) ;; # Ignore the rest.
12733
12734
    esac
12735
  done
12736
12737
  # Clean up.
12738
  rm -f a.out a.exe
12739
else
12740
  echo "libtool.m4: error: problem compiling CXX test program"
12741
fi
12742
12743
$RM -f confest.$objext
12744
12745
# PORTME: override above test on systems where it is broken
12746
case $host_os in
12747
interix[3-9]*)
12748
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12749
  # hack all around it, let's just trust "g++" to DTRT.
12750
  predep_objects_CXX=
12751
  postdep_objects_CXX=
12752
  postdeps_CXX=
12753
  ;;
12754
12755
linux*)
12756
  case `$CC -V 2>&1 | sed 5q` in
12757
  *Sun\ C*)
12758
    # Sun C++ 5.9
12759
12760
    # The more standards-conforming stlport4 library is
12761
    # incompatible with the Cstd library. Avoid specifying
12762
    # it if it's in CXXFLAGS. Ignore libCrun as
12763
    # -library=stlport4 depends on it.
12764
    case " $CXX $CXXFLAGS " in
12765
    *" -library=stlport4 "*)
12766
      solaris_use_stlport4=yes
12767
      ;;
12768
    esac
12769
12770
    if test "$solaris_use_stlport4" != yes; then
12771
      postdeps_CXX='-library=Cstd -library=Crun'
12772
    fi
12773
    ;;
12774
  esac
12775
  ;;
12776
12777
solaris*)
12778
  case $cc_basename in
12779
  CC*)
12780
    # The more standards-conforming stlport4 library is
12781
    # incompatible with the Cstd library. Avoid specifying
12782
    # it if it's in CXXFLAGS. Ignore libCrun as
12783
    # -library=stlport4 depends on it.
12784
    case " $CXX $CXXFLAGS " in
12785
    *" -library=stlport4 "*)
12786
      solaris_use_stlport4=yes
12787
      ;;
12788
    esac
12789
12790
    # Adding this requires a known-good setup of shared libraries for
12791
    # Sun compiler versions before 5.6, else PIC objects from an old
12792
    # archive will be linked into the output, leading to subtle bugs.
12793
    if test "$solaris_use_stlport4" != yes; then
12794
      postdeps_CXX='-library=Cstd -library=Crun'
12795
    fi
12796
    ;;
12797
  esac
12798
  ;;
12799
esac
12800
12801
12802
case " $postdeps_CXX " in
12803
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12804
esac
12805
 compiler_lib_search_dirs_CXX=
12806
if test -n "${compiler_lib_search_path_CXX}"; then
12807
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12808
fi
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
    lt_prog_compiler_wl_CXX=
12841
lt_prog_compiler_pic_CXX=
12842
lt_prog_compiler_static_CXX=
12843
12844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12845
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12846
12847
  # C++ specific cases for pic, static, wl, etc.
12848
  if test "$GXX" = yes; then
12849
    lt_prog_compiler_wl_CXX='-Wl,'
12850
    lt_prog_compiler_static_CXX='-static'
12851
12852
    case $host_os in
12853
    aix*)
12854
      # All AIX code is PIC.
12855
      if test "$host_cpu" = ia64; then
12856
	# AIX 5 now supports IA64 processor
12857
	lt_prog_compiler_static_CXX='-Bstatic'
12858
      fi
12859
      ;;
12860
12861
    amigaos*)
12862
      case $host_cpu in
12863
      powerpc)
12864
            # see comment about AmigaOS4 .so support
12865
            lt_prog_compiler_pic_CXX='-fPIC'
12866
        ;;
12867
      m68k)
12868
            # FIXME: we need at least 68020 code to build shared libraries, but
12869
            # adding the `-m68020' flag to GCC prevents building anything better,
12870
            # like `-m68040'.
12871
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12872
        ;;
12873
      esac
12874
      ;;
12875
12876
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12877
      # PIC is the default for these OSes.
12878
      ;;
12879
    mingw* | cygwin* | os2* | pw32* | cegcc*)
12880
      # This hack is so that the source file can tell whether it is being
12881
      # built for inclusion in a dll (and should export symbols for example).
12882
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12883
      # (--disable-auto-import) libraries
12884
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12885
      ;;
12886
    darwin* | rhapsody*)
12887
      # PIC is the default on this platform
12888
      # Common symbols not allowed in MH_DYLIB files
12889
      lt_prog_compiler_pic_CXX='-fno-common'
12890
      ;;
12891
    *djgpp*)
12892
      # DJGPP does not support shared libraries at all
12893
      lt_prog_compiler_pic_CXX=
12894
      ;;
12895
    interix[3-9]*)
12896
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12897
      # Instead, we relocate shared libraries at runtime.
12898
      ;;
12899
    sysv4*MP*)
12900
      if test -d /usr/nec; then
12901
	lt_prog_compiler_pic_CXX=-Kconform_pic
12902
      fi
12903
      ;;
12904
    hpux*)
12905
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12906
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12907
      # sets the default TLS model and affects inlining.
12908
      case $host_cpu in
12909
      hppa*64*)
12910
	;;
12911
      *)
12912
	lt_prog_compiler_pic_CXX='-fPIC'
12913
	;;
12914
      esac
12915
      ;;
12916
    *qnx* | *nto*)
12917
      # QNX uses GNU C++, but need to define -shared option too, otherwise
12918
      # it will coredump.
12919
      lt_prog_compiler_pic_CXX='-fPIC -shared'
12920
      ;;
12921
    *)
12922
      lt_prog_compiler_pic_CXX='-fPIC'
12923
      ;;
12924
    esac
12925
  else
12926
    case $host_os in
12927
      aix[4-9]*)
12928
	# All AIX code is PIC.
12929
	if test "$host_cpu" = ia64; then
12930
	  # AIX 5 now supports IA64 processor
12931
	  lt_prog_compiler_static_CXX='-Bstatic'
12932
	else
12933
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12934
	fi
12935
	;;
12936
      chorus*)
12937
	case $cc_basename in
12938
	cxch68*)
12939
	  # Green Hills C++ Compiler
12940
	  # _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"
12941
	  ;;
12942
	esac
12943
	;;
12944
      dgux*)
12945
	case $cc_basename in
12946
	  ec++*)
12947
	    lt_prog_compiler_pic_CXX='-KPIC'
12948
	    ;;
12949
	  ghcx*)
12950
	    # Green Hills C++ Compiler
12951
	    lt_prog_compiler_pic_CXX='-pic'
12952
	    ;;
12953
	  *)
12954
	    ;;
12955
	esac
12956
	;;
12957
      freebsd* | dragonfly*)
12958
	# FreeBSD uses GNU C++
12959
	;;
12960
      hpux9* | hpux10* | hpux11*)
12961
	case $cc_basename in
12962
	  CC*)
12963
	    lt_prog_compiler_wl_CXX='-Wl,'
12964
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12965
	    if test "$host_cpu" != ia64; then
12966
	      lt_prog_compiler_pic_CXX='+Z'
12967
	    fi
12968
	    ;;
12969
	  aCC*)
12970
	    lt_prog_compiler_wl_CXX='-Wl,'
12971
	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12972
	    case $host_cpu in
12973
	    hppa*64*|ia64*)
12974
	      # +Z the default
12975
	      ;;
12976
	    *)
12977
	      lt_prog_compiler_pic_CXX='+Z'
12978
	      ;;
12979
	    esac
12980
	    ;;
12981
	  *)
12982
	    ;;
12983
	esac
12984
	;;
12985
      interix*)
12986
	# This is c89, which is MS Visual C++ (no shared libs)
12987
	# Anyone wants to do a port?
12988
	;;
12989
      irix5* | irix6* | nonstopux*)
12990
	case $cc_basename in
12991
	  CC*)
12992
	    lt_prog_compiler_wl_CXX='-Wl,'
12993
	    lt_prog_compiler_static_CXX='-non_shared'
12994
	    # CC pic flag -KPIC is the default.
12995
	    ;;
12996
	  *)
12997
	    ;;
12998
	esac
12999
	;;
13000
      linux* | k*bsd*-gnu)
13001
	case $cc_basename in
13002
	  KCC*)
13003
	    # KAI C++ Compiler
13004
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13005
	    lt_prog_compiler_pic_CXX='-fPIC'
13006
	    ;;
13007
	  ecpc* )
13008
	    # old Intel C++ for x86_64 which still supported -KPIC.
13009
	    lt_prog_compiler_wl_CXX='-Wl,'
13010
	    lt_prog_compiler_pic_CXX='-KPIC'
13011
	    lt_prog_compiler_static_CXX='-static'
13012
	    ;;
13013
	  icpc* )
13014
	    # Intel C++, used to be incompatible with GCC.
13015
	    # ICC 10 doesn't accept -KPIC any more.
13016
	    lt_prog_compiler_wl_CXX='-Wl,'
13017
	    lt_prog_compiler_pic_CXX='-fPIC'
13018
	    lt_prog_compiler_static_CXX='-static'
13019
	    ;;
13020
	  pgCC* | pgcpp*)
13021
	    # Portland Group C++ compiler
13022
	    lt_prog_compiler_wl_CXX='-Wl,'
13023
	    lt_prog_compiler_pic_CXX='-fpic'
13024
	    lt_prog_compiler_static_CXX='-Bstatic'
13025
	    ;;
13026
	  cxx*)
13027
	    # Compaq C++
13028
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13029
	    # Linux and Compaq Tru64 Unix objects are PIC.
13030
	    lt_prog_compiler_pic_CXX=
13031
	    lt_prog_compiler_static_CXX='-non_shared'
13032
	    ;;
13033
	  xlc* | xlC*)
13034
	    # IBM XL 8.0 on PPC
13035
	    lt_prog_compiler_wl_CXX='-Wl,'
13036
	    lt_prog_compiler_pic_CXX='-qpic'
13037
	    lt_prog_compiler_static_CXX='-qstaticlink'
13038
	    ;;
13039
	  *)
13040
	    case `$CC -V 2>&1 | sed 5q` in
13041
	    *Sun\ C*)
13042
	      # Sun C++ 5.9
13043
	      lt_prog_compiler_pic_CXX='-KPIC'
13044
	      lt_prog_compiler_static_CXX='-Bstatic'
13045
	      lt_prog_compiler_wl_CXX='-Qoption ld '
13046
	      ;;
13047
	    esac
13048
	    ;;
13049
	esac
13050
	;;
13051
      lynxos*)
13052
	;;
13053
      m88k*)
13054
	;;
13055
      mvs*)
13056
	case $cc_basename in
13057
	  cxx*)
13058
	    lt_prog_compiler_pic_CXX='-W c,exportall'
13059
	    ;;
13060
	  *)
13061
	    ;;
13062
	esac
13063
	;;
13064
      netbsd* | netbsdelf*-gnu)
13065
	;;
13066
      *qnx* | *nto*)
13067
        # QNX uses GNU C++, but need to define -shared option too, otherwise
13068
        # it will coredump.
13069
        lt_prog_compiler_pic_CXX='-fPIC -shared'
13070
        ;;
13071
      osf3* | osf4* | osf5*)
13072
	case $cc_basename in
13073
	  KCC*)
13074
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13075
	    ;;
13076
	  RCC*)
13077
	    # Rational C++ 2.4.1
13078
	    lt_prog_compiler_pic_CXX='-pic'
13079
	    ;;
13080
	  cxx*)
13081
	    # Digital/Compaq C++
13082
	    lt_prog_compiler_wl_CXX='-Wl,'
13083
	    # Make sure the PIC flag is empty.  It appears that all Alpha
13084
	    # Linux and Compaq Tru64 Unix objects are PIC.
13085
	    lt_prog_compiler_pic_CXX=
13086
	    lt_prog_compiler_static_CXX='-non_shared'
13087
	    ;;
13088
	  *)
13089
	    ;;
13090
	esac
13091
	;;
13092
      psos*)
13093
	;;
13094
      solaris*)
13095
	case $cc_basename in
13096
	  CC*)
13097
	    # Sun C++ 4.2, 5.x and Centerline C++
13098
	    lt_prog_compiler_pic_CXX='-KPIC'
13099
	    lt_prog_compiler_static_CXX='-Bstatic'
13100
	    lt_prog_compiler_wl_CXX='-Qoption ld '
13101
	    ;;
13102
	  gcx*)
13103
	    # Green Hills C++ Compiler
13104
	    lt_prog_compiler_pic_CXX='-PIC'
13105
	    ;;
13106
	  *)
13107
	    ;;
13108
	esac
13109
	;;
13110
      sunos4*)
13111
	case $cc_basename in
13112
	  CC*)
13113
	    # Sun C++ 4.x
13114
	    lt_prog_compiler_pic_CXX='-pic'
13115
	    lt_prog_compiler_static_CXX='-Bstatic'
13116
	    ;;
13117
	  lcc*)
13118
	    # Lucid
13119
	    lt_prog_compiler_pic_CXX='-pic'
13120
	    ;;
13121
	  *)
13122
	    ;;
13123
	esac
13124
	;;
13125
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13126
	case $cc_basename in
13127
	  CC*)
13128
	    lt_prog_compiler_wl_CXX='-Wl,'
13129
	    lt_prog_compiler_pic_CXX='-KPIC'
13130
	    lt_prog_compiler_static_CXX='-Bstatic'
13131
	    ;;
13132
	esac
13133
	;;
13134
      tandem*)
13135
	case $cc_basename in
13136
	  NCC*)
13137
	    # NonStop-UX NCC 3.20
13138
	    lt_prog_compiler_pic_CXX='-KPIC'
13139
	    ;;
13140
	  *)
13141
	    ;;
13142
	esac
13143
	;;
13144
      vxworks*)
13145
	;;
13146
      *)
13147
	lt_prog_compiler_can_build_shared_CXX=no
13148
	;;
13149
    esac
13150
  fi
13151
13152
case $host_os in
13153
  # For platforms which do not support PIC, -DPIC is meaningless:
13154
  *djgpp*)
13155
    lt_prog_compiler_pic_CXX=
13156
    ;;
13157
  *)
13158
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13159
    ;;
13160
esac
13161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13162
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13163
13164
13165
13166
#
13167
# Check to make sure the PIC flag actually works.
13168
#
13169
if test -n "$lt_prog_compiler_pic_CXX"; then
13170
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13171
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13172
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13173
  $as_echo_n "(cached) " >&6
13174
else
13175
  lt_cv_prog_compiler_pic_works_CXX=no
13176
   ac_outfile=conftest.$ac_objext
13177
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13178
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13179
   # Insert the option either (1) after the last *FLAGS variable, or
13180
   # (2) before a word containing "conftest.", or (3) at the end.
13181
   # Note that $ac_compile itself does not contain backslashes and begins
13182
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13183
   # The option is referenced via a variable to avoid confusing sed.
13184
   lt_compile=`echo "$ac_compile" | $SED \
13185
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13186
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13187
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
13188
   (eval echo "\"\$as_me:13188: $lt_compile\"" >&5)
5 by edam
- updated README
13189
   (eval "$lt_compile" 2>conftest.err)
13190
   ac_status=$?
13191
   cat conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
13192
   echo "$as_me:13192: \$? = $ac_status" >&5
5 by edam
- updated README
13193
   if (exit $ac_status) && test -s "$ac_outfile"; then
13194
     # The compiler can only warn and ignore the option if not recognized
13195
     # So say no if there are warnings other than the usual output.
13196
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13197
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13198
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13199
       lt_cv_prog_compiler_pic_works_CXX=yes
13200
     fi
13201
   fi
13202
   $RM conftest*
13203
13204
fi
13205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13206
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13207
13208
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13209
    case $lt_prog_compiler_pic_CXX in
13210
     "" | " "*) ;;
13211
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13212
     esac
13213
else
13214
    lt_prog_compiler_pic_CXX=
13215
     lt_prog_compiler_can_build_shared_CXX=no
13216
fi
13217
13218
fi
13219
13220
13221
13222
#
13223
# Check to make sure the static flag actually works.
13224
#
13225
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13227
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13228
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13229
  $as_echo_n "(cached) " >&6
13230
else
13231
  lt_cv_prog_compiler_static_works_CXX=no
13232
   save_LDFLAGS="$LDFLAGS"
13233
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13234
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13235
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13236
     # The linker can only warn and ignore the option if not recognized
13237
     # So say no if there are warnings
13238
     if test -s conftest.err; then
13239
       # Append any errors to the config.log.
13240
       cat conftest.err 1>&5
13241
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13242
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13243
       if diff conftest.exp conftest.er2 >/dev/null; then
13244
         lt_cv_prog_compiler_static_works_CXX=yes
13245
       fi
13246
     else
13247
       lt_cv_prog_compiler_static_works_CXX=yes
13248
     fi
13249
   fi
13250
   $RM -r conftest*
13251
   LDFLAGS="$save_LDFLAGS"
13252
13253
fi
13254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13255
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13256
13257
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13258
    :
13259
else
13260
    lt_prog_compiler_static_CXX=
13261
fi
13262
13263
13264
13265
13266
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13267
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13268
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13269
  $as_echo_n "(cached) " >&6
13270
else
13271
  lt_cv_prog_compiler_c_o_CXX=no
13272
   $RM -r conftest 2>/dev/null
13273
   mkdir conftest
13274
   cd conftest
13275
   mkdir out
13276
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13277
13278
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13279
   # Insert the option either (1) after the last *FLAGS variable, or
13280
   # (2) before a word containing "conftest.", or (3) at the end.
13281
   # Note that $ac_compile itself does not contain backslashes and begins
13282
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13283
   lt_compile=`echo "$ac_compile" | $SED \
13284
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13285
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13286
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
13287
   (eval echo "\"\$as_me:13287: $lt_compile\"" >&5)
5 by edam
- updated README
13288
   (eval "$lt_compile" 2>out/conftest.err)
13289
   ac_status=$?
13290
   cat out/conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
13291
   echo "$as_me:13291: \$? = $ac_status" >&5
5 by edam
- updated README
13292
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13293
   then
13294
     # The compiler can only warn and ignore the option if not recognized
13295
     # So say no if there are warnings
13296
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13297
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13298
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13299
       lt_cv_prog_compiler_c_o_CXX=yes
13300
     fi
13301
   fi
13302
   chmod u+w . 2>&5
13303
   $RM conftest*
13304
   # SGI C++ compiler will create directory out/ii_files/ for
13305
   # template instantiation
13306
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13307
   $RM out/* && rmdir out
13308
   cd ..
13309
   $RM -r conftest
13310
   $RM conftest*
13311
13312
fi
13313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13314
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13315
13316
13317
13318
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13319
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13320
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13321
  $as_echo_n "(cached) " >&6
13322
else
13323
  lt_cv_prog_compiler_c_o_CXX=no
13324
   $RM -r conftest 2>/dev/null
13325
   mkdir conftest
13326
   cd conftest
13327
   mkdir out
13328
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13329
13330
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13331
   # Insert the option either (1) after the last *FLAGS variable, or
13332
   # (2) before a word containing "conftest.", or (3) at the end.
13333
   # Note that $ac_compile itself does not contain backslashes and begins
13334
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13335
   lt_compile=`echo "$ac_compile" | $SED \
13336
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13337
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13338
   -e 's:$: $lt_compiler_flag:'`
7 by edam
- removed "OK" from test-main when test is successful
13339
   (eval echo "\"\$as_me:13339: $lt_compile\"" >&5)
5 by edam
- updated README
13340
   (eval "$lt_compile" 2>out/conftest.err)
13341
   ac_status=$?
13342
   cat out/conftest.err >&5
7 by edam
- removed "OK" from test-main when test is successful
13343
   echo "$as_me:13343: \$? = $ac_status" >&5
5 by edam
- updated README
13344
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13345
   then
13346
     # The compiler can only warn and ignore the option if not recognized
13347
     # So say no if there are warnings
13348
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13349
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13350
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13351
       lt_cv_prog_compiler_c_o_CXX=yes
13352
     fi
13353
   fi
13354
   chmod u+w . 2>&5
13355
   $RM conftest*
13356
   # SGI C++ compiler will create directory out/ii_files/ for
13357
   # template instantiation
13358
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13359
   $RM out/* && rmdir out
13360
   cd ..
13361
   $RM -r conftest
13362
   $RM conftest*
13363
13364
fi
13365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13366
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13367
13368
13369
13370
13371
hard_links="nottested"
13372
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13373
  # do not overwrite the value of need_locks provided by the user
13374
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13375
$as_echo_n "checking if we can lock with hard links... " >&6; }
13376
  hard_links=yes
13377
  $RM conftest*
13378
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13379
  touch conftest.a
13380
  ln conftest.a conftest.b 2>&5 || hard_links=no
13381
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13383
$as_echo "$hard_links" >&6; }
13384
  if test "$hard_links" = no; then
13385
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13386
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13387
    need_locks=warn
13388
  fi
13389
else
13390
  need_locks=no
13391
fi
13392
13393
13394
13395
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13396
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13397
13398
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13399
  case $host_os in
13400
  aix[4-9]*)
13401
    # If we're using GNU nm, then we don't want the "-C" option.
13402
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13403
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13404
      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'
13405
    else
13406
      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'
13407
    fi
13408
    ;;
13409
  pw32*)
13410
    export_symbols_cmds_CXX="$ltdll_cmds"
13411
  ;;
13412
  cygwin* | mingw* | cegcc*)
13413
    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'
13414
  ;;
13415
  linux* | k*bsd*-gnu)
13416
    link_all_deplibs_CXX=no
13417
  ;;
13418
  *)
13419
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13420
  ;;
13421
  esac
13422
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13423
13424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13425
$as_echo "$ld_shlibs_CXX" >&6; }
13426
test "$ld_shlibs_CXX" = no && can_build_shared=no
13427
13428
with_gnu_ld_CXX=$with_gnu_ld
13429
13430
13431
13432
13433
13434
13435
#
13436
# Do we need to explicitly link libc?
13437
#
13438
case "x$archive_cmds_need_lc_CXX" in
13439
x|xyes)
13440
  # Assume -lc should be added
13441
  archive_cmds_need_lc_CXX=yes
13442
13443
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13444
    case $archive_cmds_CXX in
13445
    *'~'*)
13446
      # FIXME: we may have to deal with multi-command sequences.
13447
      ;;
13448
    '$CC '*)
13449
      # Test whether the compiler implicitly links with -lc since on some
13450
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13451
      # to ld, don't add -lc before -lgcc.
13452
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13453
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13454
      $RM conftest*
13455
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13456
13457
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13458
  (eval $ac_compile) 2>&5
13459
  ac_status=$?
13460
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461
  test $ac_status = 0; } 2>conftest.err; then
13462
        soname=conftest
13463
        lib=conftest
13464
        libobjs=conftest.$ac_objext
13465
        deplibs=
13466
        wl=$lt_prog_compiler_wl_CXX
13467
	pic_flag=$lt_prog_compiler_pic_CXX
13468
        compiler_flags=-v
13469
        linker_flags=-v
13470
        verstring=
13471
        output_objdir=.
13472
        libname=conftest
13473
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13474
        allow_undefined_flag_CXX=
13475
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13476
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13477
  ac_status=$?
13478
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479
  test $ac_status = 0; }
13480
        then
13481
	  archive_cmds_need_lc_CXX=no
13482
        else
13483
	  archive_cmds_need_lc_CXX=yes
13484
        fi
13485
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13486
      else
13487
        cat conftest.err 1>&5
13488
      fi
13489
      $RM conftest*
13490
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13491
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13492
      ;;
13493
    esac
13494
  fi
13495
  ;;
13496
esac
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13562
$as_echo_n "checking dynamic linker characteristics... " >&6; }
13563
13564
library_names_spec=
13565
libname_spec='lib$name'
13566
soname_spec=
13567
shrext_cmds=".so"
13568
postinstall_cmds=
13569
postuninstall_cmds=
13570
finish_cmds=
13571
finish_eval=
13572
shlibpath_var=
13573
shlibpath_overrides_runpath=unknown
13574
version_type=none
13575
dynamic_linker="$host_os ld.so"
13576
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13577
need_lib_prefix=unknown
13578
hardcode_into_libs=no
13579
13580
# when you set need_version to no, make sure it does not cause -set_version
13581
# flags to be left without arguments
13582
need_version=unknown
13583
13584
case $host_os in
13585
aix3*)
13586
  version_type=linux
13587
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13588
  shlibpath_var=LIBPATH
13589
13590
  # AIX 3 has no versioning support, so we append a major version to the name.
13591
  soname_spec='${libname}${release}${shared_ext}$major'
13592
  ;;
13593
13594
aix[4-9]*)
13595
  version_type=linux
13596
  need_lib_prefix=no
13597
  need_version=no
13598
  hardcode_into_libs=yes
13599
  if test "$host_cpu" = ia64; then
13600
    # AIX 5 supports IA64
13601
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13602
    shlibpath_var=LD_LIBRARY_PATH
13603
  else
13604
    # With GCC up to 2.95.x, collect2 would create an import file
13605
    # for dependence libraries.  The import file would start with
13606
    # the line `#! .'.  This would cause the generated library to
13607
    # depend on `.', always an invalid library.  This was fixed in
13608
    # development snapshots of GCC prior to 3.0.
13609
    case $host_os in
13610
      aix4 | aix4.[01] | aix4.[01].*)
13611
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13612
	   echo ' yes '
13613
	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13614
	:
13615
      else
13616
	can_build_shared=no
13617
      fi
13618
      ;;
13619
    esac
13620
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13621
    # soname into executable. Probably we can add versioning support to
13622
    # collect2, so additional links can be useful in future.
13623
    if test "$aix_use_runtimelinking" = yes; then
13624
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13625
      # instead of lib<name>.a to let people know that these are not
13626
      # typical AIX shared libraries.
13627
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13628
    else
13629
      # We preserve .a as extension for shared libraries through AIX4.2
13630
      # and later when we are not doing run time linking.
13631
      library_names_spec='${libname}${release}.a $libname.a'
13632
      soname_spec='${libname}${release}${shared_ext}$major'
13633
    fi
13634
    shlibpath_var=LIBPATH
13635
  fi
13636
  ;;
13637
13638
amigaos*)
13639
  case $host_cpu in
13640
  powerpc)
13641
    # Since July 2007 AmigaOS4 officially supports .so libraries.
13642
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13643
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644
    ;;
13645
  m68k)
13646
    library_names_spec='$libname.ixlibrary $libname.a'
13647
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13648
    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'
13649
    ;;
13650
  esac
13651
  ;;
13652
13653
beos*)
13654
  library_names_spec='${libname}${shared_ext}'
13655
  dynamic_linker="$host_os ld.so"
13656
  shlibpath_var=LIBRARY_PATH
13657
  ;;
13658
13659
bsdi[45]*)
13660
  version_type=linux
13661
  need_version=no
13662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663
  soname_spec='${libname}${release}${shared_ext}$major'
13664
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13665
  shlibpath_var=LD_LIBRARY_PATH
13666
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13667
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13668
  # the default ld.so.conf also contains /usr/contrib/lib and
13669
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13670
  # libtool to hard-code these into programs
13671
  ;;
13672
13673
cygwin* | mingw* | pw32* | cegcc*)
13674
  version_type=windows
13675
  shrext_cmds=".dll"
13676
  need_version=no
13677
  need_lib_prefix=no
13678
13679
  case $GCC,$host_os in
13680
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13681
    library_names_spec='$libname.dll.a'
13682
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13683
    postinstall_cmds='base_file=`basename \${file}`~
13684
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13685
      dldir=$destdir/`dirname \$dlpath`~
13686
      test -d \$dldir || mkdir -p \$dldir~
13687
      $install_prog $dir/$dlname \$dldir/$dlname~
13688
      chmod a+x \$dldir/$dlname~
13689
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13690
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13691
      fi'
13692
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13693
      dlpath=$dir/\$dldll~
13694
       $RM \$dlpath'
13695
    shlibpath_overrides_runpath=yes
13696
13697
    case $host_os in
13698
    cygwin*)
13699
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13700
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13701
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13702
      ;;
13703
    mingw* | cegcc*)
13704
      # MinGW DLLs use traditional 'lib' prefix
13705
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13706
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13707
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13708
        # It is most probably a Windows format PATH printed by
13709
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13710
        # path with ; separators, and with drive letters. We can handle the
13711
        # drive letters (cygwin fileutils understands them), so leave them,
13712
        # especially as we might pass files found there to a mingw objdump,
13713
        # which wouldn't understand a cygwinified path. Ahh.
13714
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13715
      else
13716
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13717
      fi
13718
      ;;
13719
    pw32*)
13720
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13721
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13722
      ;;
13723
    esac
13724
    ;;
13725
13726
  *)
13727
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13728
    ;;
13729
  esac
13730
  dynamic_linker='Win32 ld.exe'
13731
  # FIXME: first we should search . and the directory the executable is in
13732
  shlibpath_var=PATH
13733
  ;;
13734
13735
darwin* | rhapsody*)
13736
  dynamic_linker="$host_os dyld"
13737
  version_type=darwin
13738
  need_lib_prefix=no
13739
  need_version=no
13740
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13741
  soname_spec='${libname}${release}${major}$shared_ext'
13742
  shlibpath_overrides_runpath=yes
13743
  shlibpath_var=DYLD_LIBRARY_PATH
13744
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13745
13746
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13747
  ;;
13748
13749
dgux*)
13750
  version_type=linux
13751
  need_lib_prefix=no
13752
  need_version=no
13753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13754
  soname_spec='${libname}${release}${shared_ext}$major'
13755
  shlibpath_var=LD_LIBRARY_PATH
13756
  ;;
13757
13758
freebsd1*)
13759
  dynamic_linker=no
13760
  ;;
13761
13762
freebsd* | dragonfly*)
13763
  # DragonFly does not have aout.  When/if they implement a new
13764
  # versioning mechanism, adjust this.
13765
  if test -x /usr/bin/objformat; then
13766
    objformat=`/usr/bin/objformat`
13767
  else
13768
    case $host_os in
13769
    freebsd[123]*) objformat=aout ;;
13770
    *) objformat=elf ;;
13771
    esac
13772
  fi
13773
  version_type=freebsd-$objformat
13774
  case $version_type in
13775
    freebsd-elf*)
13776
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13777
      need_version=no
13778
      need_lib_prefix=no
13779
      ;;
13780
    freebsd-*)
13781
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13782
      need_version=yes
13783
      ;;
13784
  esac
13785
  shlibpath_var=LD_LIBRARY_PATH
13786
  case $host_os in
13787
  freebsd2*)
13788
    shlibpath_overrides_runpath=yes
13789
    ;;
13790
  freebsd3.[01]* | freebsdelf3.[01]*)
13791
    shlibpath_overrides_runpath=yes
13792
    hardcode_into_libs=yes
13793
    ;;
13794
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13795
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13796
    shlibpath_overrides_runpath=no
13797
    hardcode_into_libs=yes
13798
    ;;
13799
  *) # from 4.6 on, and DragonFly
13800
    shlibpath_overrides_runpath=yes
13801
    hardcode_into_libs=yes
13802
    ;;
13803
  esac
13804
  ;;
13805
13806
gnu*)
13807
  version_type=linux
13808
  need_lib_prefix=no
13809
  need_version=no
13810
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13811
  soname_spec='${libname}${release}${shared_ext}$major'
13812
  shlibpath_var=LD_LIBRARY_PATH
13813
  hardcode_into_libs=yes
13814
  ;;
13815
13816
hpux9* | hpux10* | hpux11*)
13817
  # Give a soname corresponding to the major version so that dld.sl refuses to
13818
  # link against other versions.
13819
  version_type=sunos
13820
  need_lib_prefix=no
13821
  need_version=no
13822
  case $host_cpu in
13823
  ia64*)
13824
    shrext_cmds='.so'
13825
    hardcode_into_libs=yes
13826
    dynamic_linker="$host_os dld.so"
13827
    shlibpath_var=LD_LIBRARY_PATH
13828
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13829
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830
    soname_spec='${libname}${release}${shared_ext}$major'
13831
    if test "X$HPUX_IA64_MODE" = X32; then
13832
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13833
    else
13834
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13835
    fi
13836
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13837
    ;;
13838
  hppa*64*)
13839
    shrext_cmds='.sl'
13840
    hardcode_into_libs=yes
13841
    dynamic_linker="$host_os dld.sl"
13842
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13843
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13844
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845
    soname_spec='${libname}${release}${shared_ext}$major'
13846
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13847
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13848
    ;;
13849
  *)
13850
    shrext_cmds='.sl'
13851
    dynamic_linker="$host_os dld.sl"
13852
    shlibpath_var=SHLIB_PATH
13853
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13854
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855
    soname_spec='${libname}${release}${shared_ext}$major'
13856
    ;;
13857
  esac
13858
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13859
  postinstall_cmds='chmod 555 $lib'
13860
  ;;
13861
13862
interix[3-9]*)
13863
  version_type=linux
13864
  need_lib_prefix=no
13865
  need_version=no
13866
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13867
  soname_spec='${libname}${release}${shared_ext}$major'
13868
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13869
  shlibpath_var=LD_LIBRARY_PATH
13870
  shlibpath_overrides_runpath=no
13871
  hardcode_into_libs=yes
13872
  ;;
13873
13874
irix5* | irix6* | nonstopux*)
13875
  case $host_os in
13876
    nonstopux*) version_type=nonstopux ;;
13877
    *)
13878
	if test "$lt_cv_prog_gnu_ld" = yes; then
13879
		version_type=linux
13880
	else
13881
		version_type=irix
13882
	fi ;;
13883
  esac
13884
  need_lib_prefix=no
13885
  need_version=no
13886
  soname_spec='${libname}${release}${shared_ext}$major'
13887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13888
  case $host_os in
13889
  irix5* | nonstopux*)
13890
    libsuff= shlibsuff=
13891
    ;;
13892
  *)
13893
    case $LD in # libtool.m4 will add one of these switches to LD
13894
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13895
      libsuff= shlibsuff= libmagic=32-bit;;
13896
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13897
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13898
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13899
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13900
    *) libsuff= shlibsuff= libmagic=never-match;;
13901
    esac
13902
    ;;
13903
  esac
13904
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13905
  shlibpath_overrides_runpath=no
13906
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13907
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13908
  hardcode_into_libs=yes
13909
  ;;
13910
13911
# No shared lib support for Linux oldld, aout, or coff.
13912
linux*oldld* | linux*aout* | linux*coff*)
13913
  dynamic_linker=no
13914
  ;;
13915
13916
# This must be Linux ELF.
13917
linux* | k*bsd*-gnu)
13918
  version_type=linux
13919
  need_lib_prefix=no
13920
  need_version=no
13921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922
  soname_spec='${libname}${release}${shared_ext}$major'
13923
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13924
  shlibpath_var=LD_LIBRARY_PATH
13925
  shlibpath_overrides_runpath=no
13926
  # Some binutils ld are patched to set DT_RUNPATH
13927
  save_LDFLAGS=$LDFLAGS
13928
  save_libdir=$libdir
13929
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13930
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13931
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932
/* end confdefs.h.  */
13933
13934
int
13935
main ()
13936
{
13937
13938
  ;
13939
  return 0;
13940
}
13941
_ACEOF
13942
if ac_fn_cxx_try_link "$LINENO"; then :
13943
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13944
  shlibpath_overrides_runpath=yes
13945
fi
13946
fi
13947
rm -f core conftest.err conftest.$ac_objext \
13948
    conftest$ac_exeext conftest.$ac_ext
13949
  LDFLAGS=$save_LDFLAGS
13950
  libdir=$save_libdir
13951
13952
  # This implies no fast_install, which is unacceptable.
13953
  # Some rework will be needed to allow for fast_install
13954
  # before this can be enabled.
13955
  hardcode_into_libs=yes
13956
13957
  # Append ld.so.conf contents to the search path
13958
  if test -f /etc/ld.so.conf; then
13959
    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' ' '`
13960
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13961
  fi
13962
13963
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13964
  # powerpc, because MkLinux only supported shared libraries with the
13965
  # GNU dynamic linker.  Since this was broken with cross compilers,
13966
  # most powerpc-linux boxes support dynamic linking these days and
13967
  # people can always --disable-shared, the test was removed, and we
13968
  # assume the GNU/Linux dynamic linker is in use.
13969
  dynamic_linker='GNU/Linux ld.so'
13970
  ;;
13971
13972
netbsdelf*-gnu)
13973
  version_type=linux
13974
  need_lib_prefix=no
13975
  need_version=no
13976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13977
  soname_spec='${libname}${release}${shared_ext}$major'
13978
  shlibpath_var=LD_LIBRARY_PATH
13979
  shlibpath_overrides_runpath=no
13980
  hardcode_into_libs=yes
13981
  dynamic_linker='NetBSD ld.elf_so'
13982
  ;;
13983
13984
netbsd*)
13985
  version_type=sunos
13986
  need_lib_prefix=no
13987
  need_version=no
13988
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13989
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13990
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13991
    dynamic_linker='NetBSD (a.out) ld.so'
13992
  else
13993
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13994
    soname_spec='${libname}${release}${shared_ext}$major'
13995
    dynamic_linker='NetBSD ld.elf_so'
13996
  fi
13997
  shlibpath_var=LD_LIBRARY_PATH
13998
  shlibpath_overrides_runpath=yes
13999
  hardcode_into_libs=yes
14000
  ;;
14001
14002
newsos6)
14003
  version_type=linux
14004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14005
  shlibpath_var=LD_LIBRARY_PATH
14006
  shlibpath_overrides_runpath=yes
14007
  ;;
14008
14009
*nto* | *qnx*)
14010
  version_type=qnx
14011
  need_lib_prefix=no
14012
  need_version=no
14013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014
  soname_spec='${libname}${release}${shared_ext}$major'
14015
  shlibpath_var=LD_LIBRARY_PATH
14016
  shlibpath_overrides_runpath=no
14017
  hardcode_into_libs=yes
14018
  dynamic_linker='ldqnx.so'
14019
  ;;
14020
14021
openbsd*)
14022
  version_type=sunos
14023
  sys_lib_dlsearch_path_spec="/usr/lib"
14024
  need_lib_prefix=no
14025
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14026
  case $host_os in
14027
    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14028
    *)				need_version=no  ;;
14029
  esac
14030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14031
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14032
  shlibpath_var=LD_LIBRARY_PATH
14033
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14034
    case $host_os in
14035
      openbsd2.[89] | openbsd2.[89].*)
14036
	shlibpath_overrides_runpath=no
14037
	;;
14038
      *)
14039
	shlibpath_overrides_runpath=yes
14040
	;;
14041
      esac
14042
  else
14043
    shlibpath_overrides_runpath=yes
14044
  fi
14045
  ;;
14046
14047
os2*)
14048
  libname_spec='$name'
14049
  shrext_cmds=".dll"
14050
  need_lib_prefix=no
14051
  library_names_spec='$libname${shared_ext} $libname.a'
14052
  dynamic_linker='OS/2 ld.exe'
14053
  shlibpath_var=LIBPATH
14054
  ;;
14055
14056
osf3* | osf4* | osf5*)
14057
  version_type=osf
14058
  need_lib_prefix=no
14059
  need_version=no
14060
  soname_spec='${libname}${release}${shared_ext}$major'
14061
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062
  shlibpath_var=LD_LIBRARY_PATH
14063
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14064
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14065
  ;;
14066
14067
rdos*)
14068
  dynamic_linker=no
14069
  ;;
14070
14071
solaris*)
14072
  version_type=linux
14073
  need_lib_prefix=no
14074
  need_version=no
14075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076
  soname_spec='${libname}${release}${shared_ext}$major'
14077
  shlibpath_var=LD_LIBRARY_PATH
14078
  shlibpath_overrides_runpath=yes
14079
  hardcode_into_libs=yes
14080
  # ldd complains unless libraries are executable
14081
  postinstall_cmds='chmod +x $lib'
14082
  ;;
14083
14084
sunos4*)
14085
  version_type=sunos
14086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14087
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14088
  shlibpath_var=LD_LIBRARY_PATH
14089
  shlibpath_overrides_runpath=yes
14090
  if test "$with_gnu_ld" = yes; then
14091
    need_lib_prefix=no
14092
  fi
14093
  need_version=yes
14094
  ;;
14095
14096
sysv4 | sysv4.3*)
14097
  version_type=linux
14098
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14099
  soname_spec='${libname}${release}${shared_ext}$major'
14100
  shlibpath_var=LD_LIBRARY_PATH
14101
  case $host_vendor in
14102
    sni)
14103
      shlibpath_overrides_runpath=no
14104
      need_lib_prefix=no
14105
      runpath_var=LD_RUN_PATH
14106
      ;;
14107
    siemens)
14108
      need_lib_prefix=no
14109
      ;;
14110
    motorola)
14111
      need_lib_prefix=no
14112
      need_version=no
14113
      shlibpath_overrides_runpath=no
14114
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14115
      ;;
14116
  esac
14117
  ;;
14118
14119
sysv4*MP*)
14120
  if test -d /usr/nec ;then
14121
    version_type=linux
14122
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14123
    soname_spec='$libname${shared_ext}.$major'
14124
    shlibpath_var=LD_LIBRARY_PATH
14125
  fi
14126
  ;;
14127
14128
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14129
  version_type=freebsd-elf
14130
  need_lib_prefix=no
14131
  need_version=no
14132
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14133
  soname_spec='${libname}${release}${shared_ext}$major'
14134
  shlibpath_var=LD_LIBRARY_PATH
14135
  shlibpath_overrides_runpath=yes
14136
  hardcode_into_libs=yes
14137
  if test "$with_gnu_ld" = yes; then
14138
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14139
  else
14140
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14141
    case $host_os in
14142
      sco3.2v5*)
14143
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14144
	;;
14145
    esac
14146
  fi
14147
  sys_lib_dlsearch_path_spec='/usr/lib'
14148
  ;;
14149
14150
tpf*)
14151
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14152
  version_type=linux
14153
  need_lib_prefix=no
14154
  need_version=no
14155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14156
  shlibpath_var=LD_LIBRARY_PATH
14157
  shlibpath_overrides_runpath=no
14158
  hardcode_into_libs=yes
14159
  ;;
14160
14161
uts4*)
14162
  version_type=linux
14163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14164
  soname_spec='${libname}${release}${shared_ext}$major'
14165
  shlibpath_var=LD_LIBRARY_PATH
14166
  ;;
14167
14168
*)
14169
  dynamic_linker=no
14170
  ;;
14171
esac
14172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14173
$as_echo "$dynamic_linker" >&6; }
14174
test "$dynamic_linker" = no && can_build_shared=no
14175
14176
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14177
if test "$GCC" = yes; then
14178
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14179
fi
14180
14181
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14182
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14183
fi
14184
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14185
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14186
fi
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14224
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14225
hardcode_action_CXX=
14226
if test -n "$hardcode_libdir_flag_spec_CXX" ||
14227
   test -n "$runpath_var_CXX" ||
14228
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14229
14230
  # We can hardcode non-existent directories.
14231
  if test "$hardcode_direct_CXX" != no &&
14232
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14233
     # have to relink, otherwise we might link with an installed library
14234
     # when we should be linking with a yet-to-be-installed one
14235
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14236
     test "$hardcode_minus_L_CXX" != no; then
14237
    # Linking always hardcodes the temporary library directory.
14238
    hardcode_action_CXX=relink
14239
  else
14240
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14241
    hardcode_action_CXX=immediate
14242
  fi
14243
else
14244
  # We cannot hardcode anything, or else we can only hardcode existing
14245
  # directories.
14246
  hardcode_action_CXX=unsupported
14247
fi
14248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14249
$as_echo "$hardcode_action_CXX" >&6; }
14250
14251
if test "$hardcode_action_CXX" = relink ||
14252
   test "$inherit_rpath_CXX" = yes; then
14253
  # Fast installation is not supported
14254
  enable_fast_install=no
14255
elif test "$shlibpath_overrides_runpath" = yes ||
14256
     test "$enable_shared" = no; then
14257
  # Fast installation is not necessary
14258
  enable_fast_install=needless
14259
fi
14260
14261
14262
14263
14264
14265
14266
14267
  fi # test -n "$compiler"
14268
14269
  CC=$lt_save_CC
14270
  LDCXX=$LD
14271
  LD=$lt_save_LD
14272
  GCC=$lt_save_GCC
14273
  with_gnu_ld=$lt_save_with_gnu_ld
14274
  lt_cv_path_LDCXX=$lt_cv_path_LD
14275
  lt_cv_path_LD=$lt_save_path_LD
14276
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14277
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14278
fi # test "$_lt_caught_CXX_error" != yes
14279
14280
ac_ext=c
14281
ac_cpp='$CPP $CPPFLAGS'
14282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
14286
14287
14288
14289
# checks for libraries.
14290
14291
# checks for header files.
14292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14293
$as_echo_n "checking for ANSI C header files... " >&6; }
14294
if test "${ac_cv_header_stdc+set}" = set; then :
14295
  $as_echo_n "(cached) " >&6
14296
else
14297
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298
/* end confdefs.h.  */
14299
#include <stdlib.h>
14300
#include <stdarg.h>
14301
#include <string.h>
14302
#include <float.h>
14303
14304
int
14305
main ()
14306
{
14307
14308
  ;
14309
  return 0;
14310
}
14311
_ACEOF
14312
if ac_fn_c_try_compile "$LINENO"; then :
14313
  ac_cv_header_stdc=yes
14314
else
14315
  ac_cv_header_stdc=no
14316
fi
14317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318
14319
if test $ac_cv_header_stdc = yes; then
14320
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322
/* end confdefs.h.  */
14323
#include <string.h>
14324
14325
_ACEOF
14326
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14327
  $EGREP "memchr" >/dev/null 2>&1; then :
14328
14329
else
14330
  ac_cv_header_stdc=no
14331
fi
14332
rm -f conftest*
14333
14334
fi
14335
14336
if test $ac_cv_header_stdc = yes; then
14337
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14338
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339
/* end confdefs.h.  */
14340
#include <stdlib.h>
14341
14342
_ACEOF
14343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344
  $EGREP "free" >/dev/null 2>&1; then :
14345
14346
else
14347
  ac_cv_header_stdc=no
14348
fi
14349
rm -f conftest*
14350
14351
fi
14352
14353
if test $ac_cv_header_stdc = yes; then
14354
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14355
  if test "$cross_compiling" = yes; then :
14356
  :
14357
else
14358
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359
/* end confdefs.h.  */
14360
#include <ctype.h>
14361
#include <stdlib.h>
14362
#if ((' ' & 0x0FF) == 0x020)
14363
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14364
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14365
#else
14366
# define ISLOWER(c) \
14367
		   (('a' <= (c) && (c) <= 'i') \
14368
		     || ('j' <= (c) && (c) <= 'r') \
14369
		     || ('s' <= (c) && (c) <= 'z'))
14370
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14371
#endif
14372
14373
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14374
int
14375
main ()
14376
{
14377
  int i;
14378
  for (i = 0; i < 256; i++)
14379
    if (XOR (islower (i), ISLOWER (i))
14380
	|| toupper (i) != TOUPPER (i))
14381
      return 2;
14382
  return 0;
14383
}
14384
_ACEOF
14385
if ac_fn_c_try_run "$LINENO"; then :
14386
14387
else
14388
  ac_cv_header_stdc=no
14389
fi
14390
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14391
  conftest.$ac_objext conftest.beam conftest.$ac_ext
14392
fi
14393
14394
fi
14395
fi
14396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14397
$as_echo "$ac_cv_header_stdc" >&6; }
14398
if test $ac_cv_header_stdc = yes; then
14399
14400
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14401
14402
fi
14403
14404
for ac_header in string.h
14405
do :
14406
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14407
if test "x$ac_cv_header_string_h" = x""yes; then :
14408
  cat >>confdefs.h <<_ACEOF
14409
#define HAVE_STRING_H 1
14410
_ACEOF
14411
14412
fi
14413
14414
done
14415
14416
14417
# checks for typedefs, structures, and compiler characteristics.
14418
14419
# checks for library functions.
14420
7 by edam
- removed "OK" from test-main when test is successful
14421
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
5 by edam
- updated README
14422
14423
cat >confcache <<\_ACEOF
14424
# This file is a shell script that caches the results of configure
14425
# tests run on this system so they can be shared between configure
14426
# scripts and configure runs, see configure's option --config-cache.
14427
# It is not useful on other systems.  If it contains results you don't
14428
# want to keep, you may remove or edit it.
14429
#
14430
# config.status only pays attention to the cache file if you give it
14431
# the --recheck option to rerun configure.
14432
#
14433
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14434
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14435
# following values.
14436
14437
_ACEOF
14438
14439
# The following way of writing the cache mishandles newlines in values,
14440
# but we know of no workaround that is simple, portable, and efficient.
14441
# So, we kill variables containing newlines.
14442
# Ultrix sh set writes to stderr and can't be redirected directly,
14443
# and sets the high bit in the cache file unless we assign to the vars.
14444
(
14445
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14446
    eval ac_val=\$$ac_var
14447
    case $ac_val in #(
14448
    *${as_nl}*)
14449
      case $ac_var in #(
14450
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14451
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14452
      esac
14453
      case $ac_var in #(
14454
      _ | IFS | as_nl) ;; #(
14455
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14456
      *) { eval $ac_var=; unset $ac_var;} ;;
14457
      esac ;;
14458
    esac
14459
  done
14460
14461
  (set) 2>&1 |
14462
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14463
    *${as_nl}ac_space=\ *)
14464
      # `set' does not quote correctly, so add quotes: double-quote
14465
      # substitution turns \\\\ into \\, and sed turns \\ into \.
14466
      sed -n \
14467
	"s/'/'\\\\''/g;
14468
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14469
      ;; #(
14470
    *)
14471
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14472
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14473
      ;;
14474
    esac |
14475
    sort
14476
) |
14477
  sed '
14478
     /^ac_cv_env_/b end
14479
     t clear
14480
     :clear
14481
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14482
     t end
14483
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14484
     :end' >>confcache
14485
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14486
  if test -w "$cache_file"; then
14487
    test "x$cache_file" != "x/dev/null" &&
14488
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14489
$as_echo "$as_me: updating cache $cache_file" >&6;}
14490
    cat confcache >$cache_file
14491
  else
14492
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14493
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14494
  fi
14495
fi
14496
rm -f confcache
14497
14498
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14499
# Let make expand exec_prefix.
14500
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14501
14502
DEFS=-DHAVE_CONFIG_H
14503
14504
ac_libobjs=
14505
ac_ltlibobjs=
14506
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14507
  # 1. Remove the extension, and $U if already installed.
14508
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14509
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14510
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14511
  #    will be set to the directory where LIBOBJS objects are built.
14512
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14513
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14514
done
14515
LIBOBJS=$ac_libobjs
14516
14517
LTLIBOBJS=$ac_ltlibobjs
14518
14519
14520
 if test -n "$EXEEXT"; then
14521
  am__EXEEXT_TRUE=
14522
  am__EXEEXT_FALSE='#'
14523
else
14524
  am__EXEEXT_TRUE='#'
14525
  am__EXEEXT_FALSE=
14526
fi
14527
14528
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14529
  as_fn_error "conditional \"AMDEP\" was never defined.
14530
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14531
fi
14532
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14533
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14534
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14535
fi
14536
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14537
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14538
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14539
fi
6 by edam
- fixed .am files so the library gets built!
14540
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14541
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14542
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14543
fi
5 by edam
- updated README
14544
14545
: ${CONFIG_STATUS=./config.status}
14546
ac_write_fail=0
14547
ac_clean_files_save=$ac_clean_files
14548
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14549
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14550
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14551
as_write_fail=0
14552
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14553
#! $SHELL
14554
# Generated by $as_me.
14555
# Run this file to recreate the current configuration.
14556
# Compiler output produced by configure, useful for debugging
14557
# configure, is in config.log if it exists.
14558
14559
debug=false
14560
ac_cs_recheck=false
14561
ac_cs_silent=false
14562
14563
SHELL=\${CONFIG_SHELL-$SHELL}
14564
export SHELL
14565
_ASEOF
14566
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14567
## -------------------- ##
14568
## M4sh Initialization. ##
14569
## -------------------- ##
14570
14571
# Be more Bourne compatible
14572
DUALCASE=1; export DUALCASE # for MKS sh
14573
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14574
  emulate sh
14575
  NULLCMD=:
14576
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14577
  # is contrary to our usage.  Disable this feature.
14578
  alias -g '${1+"$@"}'='"$@"'
14579
  setopt NO_GLOB_SUBST
14580
else
14581
  case `(set -o) 2>/dev/null` in #(
14582
  *posix*) :
14583
    set -o posix ;; #(
14584
  *) :
14585
     ;;
14586
esac
14587
fi
14588
14589
14590
as_nl='
14591
'
14592
export as_nl
14593
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14594
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14595
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14596
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14597
# Prefer a ksh shell builtin over an external printf program on Solaris,
14598
# but without wasting forks for bash or zsh.
14599
if test -z "$BASH_VERSION$ZSH_VERSION" \
14600
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14601
  as_echo='print -r --'
14602
  as_echo_n='print -rn --'
14603
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14604
  as_echo='printf %s\n'
14605
  as_echo_n='printf %s'
14606
else
14607
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14608
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14609
    as_echo_n='/usr/ucb/echo -n'
14610
  else
14611
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14612
    as_echo_n_body='eval
14613
      arg=$1;
14614
      case $arg in #(
14615
      *"$as_nl"*)
14616
	expr "X$arg" : "X\\(.*\\)$as_nl";
14617
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14618
      esac;
14619
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14620
    '
14621
    export as_echo_n_body
14622
    as_echo_n='sh -c $as_echo_n_body as_echo'
14623
  fi
14624
  export as_echo_body
14625
  as_echo='sh -c $as_echo_body as_echo'
14626
fi
14627
14628
# The user is always right.
14629
if test "${PATH_SEPARATOR+set}" != set; then
14630
  PATH_SEPARATOR=:
14631
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14632
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14633
      PATH_SEPARATOR=';'
14634
  }
14635
fi
14636
14637
14638
# IFS
14639
# We need space, tab and new line, in precisely that order.  Quoting is
14640
# there to prevent editors from complaining about space-tab.
14641
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14642
# splitting by setting IFS to empty value.)
14643
IFS=" ""	$as_nl"
14644
14645
# Find who we are.  Look in the path if we contain no directory separator.
14646
case $0 in #((
14647
  *[\\/]* ) as_myself=$0 ;;
14648
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14649
for as_dir in $PATH
14650
do
14651
  IFS=$as_save_IFS
14652
  test -z "$as_dir" && as_dir=.
14653
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14654
  done
14655
IFS=$as_save_IFS
14656
14657
     ;;
14658
esac
14659
# We did not find ourselves, most probably we were run as `sh COMMAND'
14660
# in which case we are not to be found in the path.
14661
if test "x$as_myself" = x; then
14662
  as_myself=$0
14663
fi
14664
if test ! -f "$as_myself"; then
14665
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14666
  exit 1
14667
fi
14668
14669
# Unset variables that we do not need and which cause bugs (e.g. in
14670
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14671
# suppresses any "Segmentation fault" message there.  '((' could
14672
# trigger a bug in pdksh 5.2.14.
14673
for as_var in BASH_ENV ENV MAIL MAILPATH
14674
do eval test x\${$as_var+set} = xset \
14675
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14676
done
14677
PS1='$ '
14678
PS2='> '
14679
PS4='+ '
14680
14681
# NLS nuisances.
14682
LC_ALL=C
14683
export LC_ALL
14684
LANGUAGE=C
14685
export LANGUAGE
14686
14687
# CDPATH.
14688
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14689
14690
14691
# as_fn_error ERROR [LINENO LOG_FD]
14692
# ---------------------------------
14693
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14694
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14695
# script with status $?, using 1 if that was 0.
14696
as_fn_error ()
14697
{
14698
  as_status=$?; test $as_status -eq 0 && as_status=1
14699
  if test "$3"; then
14700
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14701
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14702
  fi
14703
  $as_echo "$as_me: error: $1" >&2
14704
  as_fn_exit $as_status
14705
} # as_fn_error
14706
14707
14708
# as_fn_set_status STATUS
14709
# -----------------------
14710
# Set $? to STATUS, without forking.
14711
as_fn_set_status ()
14712
{
14713
  return $1
14714
} # as_fn_set_status
14715
14716
# as_fn_exit STATUS
14717
# -----------------
14718
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14719
as_fn_exit ()
14720
{
14721
  set +e
14722
  as_fn_set_status $1
14723
  exit $1
14724
} # as_fn_exit
14725
14726
# as_fn_unset VAR
14727
# ---------------
14728
# Portably unset VAR.
14729
as_fn_unset ()
14730
{
14731
  { eval $1=; unset $1;}
14732
}
14733
as_unset=as_fn_unset
14734
# as_fn_append VAR VALUE
14735
# ----------------------
14736
# Append the text in VALUE to the end of the definition contained in VAR. Take
14737
# advantage of any shell optimizations that allow amortized linear growth over
14738
# repeated appends, instead of the typical quadratic growth present in naive
14739
# implementations.
14740
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14741
  eval 'as_fn_append ()
14742
  {
14743
    eval $1+=\$2
14744
  }'
14745
else
14746
  as_fn_append ()
14747
  {
14748
    eval $1=\$$1\$2
14749
  }
14750
fi # as_fn_append
14751
14752
# as_fn_arith ARG...
14753
# ------------------
14754
# Perform arithmetic evaluation on the ARGs, and store the result in the
14755
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14756
# must be portable across $(()) and expr.
14757
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14758
  eval 'as_fn_arith ()
14759
  {
14760
    as_val=$(( $* ))
14761
  }'
14762
else
14763
  as_fn_arith ()
14764
  {
14765
    as_val=`expr "$@" || test $? -eq 1`
14766
  }
14767
fi # as_fn_arith
14768
14769
14770
if expr a : '\(a\)' >/dev/null 2>&1 &&
14771
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14772
  as_expr=expr
14773
else
14774
  as_expr=false
14775
fi
14776
14777
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14778
  as_basename=basename
14779
else
14780
  as_basename=false
14781
fi
14782
14783
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14784
  as_dirname=dirname
14785
else
14786
  as_dirname=false
14787
fi
14788
14789
as_me=`$as_basename -- "$0" ||
14790
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14791
	 X"$0" : 'X\(//\)$' \| \
14792
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14793
$as_echo X/"$0" |
14794
    sed '/^.*\/\([^/][^/]*\)\/*$/{
14795
	    s//\1/
14796
	    q
14797
	  }
14798
	  /^X\/\(\/\/\)$/{
14799
	    s//\1/
14800
	    q
14801
	  }
14802
	  /^X\/\(\/\).*/{
14803
	    s//\1/
14804
	    q
14805
	  }
14806
	  s/.*/./; q'`
14807
14808
# Avoid depending upon Character Ranges.
14809
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14810
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14811
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14812
as_cr_digits='0123456789'
14813
as_cr_alnum=$as_cr_Letters$as_cr_digits
14814
14815
ECHO_C= ECHO_N= ECHO_T=
14816
case `echo -n x` in #(((((
14817
-n*)
14818
  case `echo 'xy\c'` in
14819
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14820
  xy)  ECHO_C='\c';;
14821
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14822
       ECHO_T='	';;
14823
  esac;;
14824
*)
14825
  ECHO_N='-n';;
14826
esac
14827
14828
rm -f conf$$ conf$$.exe conf$$.file
14829
if test -d conf$$.dir; then
14830
  rm -f conf$$.dir/conf$$.file
14831
else
14832
  rm -f conf$$.dir
14833
  mkdir conf$$.dir 2>/dev/null
14834
fi
14835
if (echo >conf$$.file) 2>/dev/null; then
14836
  if ln -s conf$$.file conf$$ 2>/dev/null; then
14837
    as_ln_s='ln -s'
14838
    # ... but there are two gotchas:
14839
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14840
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14841
    # In both cases, we have to default to `cp -p'.
14842
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14843
      as_ln_s='cp -p'
14844
  elif ln conf$$.file conf$$ 2>/dev/null; then
14845
    as_ln_s=ln
14846
  else
14847
    as_ln_s='cp -p'
14848
  fi
14849
else
14850
  as_ln_s='cp -p'
14851
fi
14852
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14853
rmdir conf$$.dir 2>/dev/null
14854
14855
14856
# as_fn_mkdir_p
14857
# -------------
14858
# Create "$as_dir" as a directory, including parents if necessary.
14859
as_fn_mkdir_p ()
14860
{
14861
14862
  case $as_dir in #(
14863
  -*) as_dir=./$as_dir;;
14864
  esac
14865
  test -d "$as_dir" || eval $as_mkdir_p || {
14866
    as_dirs=
14867
    while :; do
14868
      case $as_dir in #(
14869
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14870
      *) as_qdir=$as_dir;;
14871
      esac
14872
      as_dirs="'$as_qdir' $as_dirs"
14873
      as_dir=`$as_dirname -- "$as_dir" ||
14874
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14875
	 X"$as_dir" : 'X\(//\)[^/]' \| \
14876
	 X"$as_dir" : 'X\(//\)$' \| \
14877
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14878
$as_echo X"$as_dir" |
14879
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14880
	    s//\1/
14881
	    q
14882
	  }
14883
	  /^X\(\/\/\)[^/].*/{
14884
	    s//\1/
14885
	    q
14886
	  }
14887
	  /^X\(\/\/\)$/{
14888
	    s//\1/
14889
	    q
14890
	  }
14891
	  /^X\(\/\).*/{
14892
	    s//\1/
14893
	    q
14894
	  }
14895
	  s/.*/./; q'`
14896
      test -d "$as_dir" && break
14897
    done
14898
    test -z "$as_dirs" || eval "mkdir $as_dirs"
14899
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14900
14901
14902
} # as_fn_mkdir_p
14903
if mkdir -p . 2>/dev/null; then
14904
  as_mkdir_p='mkdir -p "$as_dir"'
14905
else
14906
  test -d ./-p && rmdir ./-p
14907
  as_mkdir_p=false
14908
fi
14909
14910
if test -x / >/dev/null 2>&1; then
14911
  as_test_x='test -x'
14912
else
14913
  if ls -dL / >/dev/null 2>&1; then
14914
    as_ls_L_option=L
14915
  else
14916
    as_ls_L_option=
14917
  fi
14918
  as_test_x='
14919
    eval sh -c '\''
14920
      if test -d "$1"; then
14921
	test -d "$1/.";
14922
      else
14923
	case $1 in #(
14924
	-*)set "./$1";;
14925
	esac;
14926
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14927
	???[sx]*):;;*)false;;esac;fi
14928
    '\'' sh
14929
  '
14930
fi
14931
as_executable_p=$as_test_x
14932
14933
# Sed expression to map a string onto a valid CPP name.
14934
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14935
14936
# Sed expression to map a string onto a valid variable name.
14937
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14938
14939
14940
exec 6>&1
14941
## ----------------------------------- ##
14942
## Main body of $CONFIG_STATUS script. ##
14943
## ----------------------------------- ##
14944
_ASEOF
14945
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14946
14947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14948
# Save the log message, to keep $0 and so on meaningful, and to
14949
# report actual input values of CONFIG_FILES etc. instead of their
14950
# values after options handling.
14951
ac_log="
14952
This file was extended by sqlite3cc $as_me 0.1.0, which was
14953
generated by GNU Autoconf 2.64.  Invocation command line was
14954
14955
  CONFIG_FILES    = $CONFIG_FILES
14956
  CONFIG_HEADERS  = $CONFIG_HEADERS
14957
  CONFIG_LINKS    = $CONFIG_LINKS
14958
  CONFIG_COMMANDS = $CONFIG_COMMANDS
14959
  $ $0 $@
14960
14961
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14962
"
14963
14964
_ACEOF
14965
14966
case $ac_config_files in *"
14967
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14968
esac
14969
14970
case $ac_config_headers in *"
14971
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14972
esac
14973
14974
14975
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14976
# Files that config.status was made for.
14977
config_files="$ac_config_files"
14978
config_headers="$ac_config_headers"
14979
config_commands="$ac_config_commands"
14980
14981
_ACEOF
14982
14983
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984
ac_cs_usage="\
14985
\`$as_me' instantiates files and other configuration actions
14986
from templates according to the current configuration.  Unless the files
14987
and actions are specified as TAGs, all are instantiated by default.
14988
14989
Usage: $0 [OPTION]... [TAG]...
14990
14991
  -h, --help       print this help, then exit
14992
  -V, --version    print version number and configuration settings, then exit
14993
  -q, --quiet, --silent
14994
                   do not print progress messages
14995
  -d, --debug      don't remove temporary files
14996
      --recheck    update $as_me by reconfiguring in the same conditions
14997
      --file=FILE[:TEMPLATE]
14998
                   instantiate the configuration file FILE
14999
      --header=FILE[:TEMPLATE]
15000
                   instantiate the configuration header FILE
15001
15002
Configuration files:
15003
$config_files
15004
15005
Configuration headers:
15006
$config_headers
15007
15008
Configuration commands:
15009
$config_commands
15010
7 by edam
- removed "OK" from test-main when test is successful
15011
Report bugs to <edam@waxworlds.org>.
15012
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>."
5 by edam
- updated README
15013
15014
_ACEOF
15015
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15016
ac_cs_version="\\
15017
sqlite3cc config.status 0.1.0
15018
configured by $0, generated by GNU Autoconf 2.64,
15019
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15020
15021
Copyright (C) 2009 Free Software Foundation, Inc.
15022
This config.status script is free software; the Free Software Foundation
15023
gives unlimited permission to copy, distribute and modify it."
15024
15025
ac_pwd='$ac_pwd'
15026
srcdir='$srcdir'
15027
INSTALL='$INSTALL'
15028
MKDIR_P='$MKDIR_P'
15029
AWK='$AWK'
15030
test -n "\$AWK" || AWK=awk
15031
_ACEOF
15032
15033
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15034
# The default lists apply if the user does not specify any file.
15035
ac_need_defaults=:
15036
while test $# != 0
15037
do
15038
  case $1 in
15039
  --*=*)
15040
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15041
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15042
    ac_shift=:
15043
    ;;
15044
  *)
15045
    ac_option=$1
15046
    ac_optarg=$2
15047
    ac_shift=shift
15048
    ;;
15049
  esac
15050
15051
  case $ac_option in
15052
  # Handling of the options.
15053
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15054
    ac_cs_recheck=: ;;
15055
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15056
    $as_echo "$ac_cs_version"; exit ;;
15057
  --debug | --debu | --deb | --de | --d | -d )
15058
    debug=: ;;
15059
  --file | --fil | --fi | --f )
15060
    $ac_shift
15061
    case $ac_optarg in
15062
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15063
    esac
15064
    as_fn_append CONFIG_FILES " '$ac_optarg'"
15065
    ac_need_defaults=false;;
15066
  --header | --heade | --head | --hea )
15067
    $ac_shift
15068
    case $ac_optarg in
15069
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15070
    esac
15071
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15072
    ac_need_defaults=false;;
15073
  --he | --h)
15074
    # Conflict between --help and --header
15075
    as_fn_error "ambiguous option: \`$1'
15076
Try \`$0 --help' for more information.";;
15077
  --help | --hel | -h )
15078
    $as_echo "$ac_cs_usage"; exit ;;
15079
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15080
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15081
    ac_cs_silent=: ;;
15082
15083
  # This is an error.
15084
  -*) as_fn_error "unrecognized option: \`$1'
15085
Try \`$0 --help' for more information." ;;
15086
15087
  *) as_fn_append ac_config_targets " $1"
15088
     ac_need_defaults=false ;;
15089
15090
  esac
15091
  shift
15092
done
15093
15094
ac_configure_extra_args=
15095
15096
if $ac_cs_silent; then
15097
  exec 6>/dev/null
15098
  ac_configure_extra_args="$ac_configure_extra_args --silent"
15099
fi
15100
15101
_ACEOF
15102
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15103
if \$ac_cs_recheck; then
15104
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15105
  shift
15106
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15107
  CONFIG_SHELL='$SHELL'
15108
  export CONFIG_SHELL
15109
  exec "\$@"
15110
fi
15111
15112
_ACEOF
15113
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15114
exec 5>>config.log
15115
{
15116
  echo
15117
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15118
## Running $as_me. ##
15119
_ASBOX
15120
  $as_echo "$ac_log"
15121
} >&5
15122
15123
_ACEOF
15124
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15125
#
15126
# INIT-COMMANDS
15127
#
15128
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15129
15130
15131
# The HP-UX ksh and POSIX shell print the target directory to stdout
15132
# if CDPATH is set.
15133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15134
15135
sed_quote_subst='$sed_quote_subst'
15136
double_quote_subst='$double_quote_subst'
15137
delay_variable_subst='$delay_variable_subst'
15138
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15139
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15140
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15141
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15142
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15143
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15144
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15145
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15146
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15147
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15148
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15149
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15150
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15151
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15152
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15153
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15154
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15155
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15156
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15157
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15158
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15159
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15160
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15161
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15162
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15163
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15164
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15165
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15166
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15167
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15168
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15169
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15170
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15171
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15172
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15173
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15174
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15175
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15176
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15177
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15178
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15179
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15180
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15181
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15182
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"`'
15183
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"`'
15184
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15185
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15186
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15187
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15188
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15189
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15190
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15191
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15192
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15193
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15194
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15195
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15196
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15197
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15198
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15199
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15200
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15201
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15202
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15203
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15204
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15205
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15206
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15207
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15209
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15210
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15211
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15212
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15213
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15214
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15215
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15216
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15217
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15218
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15219
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15220
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15221
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15222
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15223
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15224
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15225
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15226
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15227
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15228
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15229
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15230
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15231
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15232
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15233
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15234
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15235
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15236
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15237
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15238
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15239
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15240
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15241
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15242
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15243
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15244
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15245
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15246
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15247
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15248
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15249
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15250
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15251
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15252
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15253
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15254
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15255
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15256
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15257
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15258
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15259
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15260
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15261
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15262
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15263
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15264
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15265
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15266
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15267
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15268
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15269
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15270
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15271
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15272
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15273
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15274
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15275
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15276
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15277
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15278
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15279
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15280
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15281
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15282
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15283
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15284
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15285
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15286
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15287
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15288
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15289
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15290
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15291
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15292
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15293
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15294
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15295
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15296
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15297
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15298
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15299
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15300
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15301
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15302
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15303
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15304
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15305
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15306
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15307
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15308
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15309
15310
LTCC='$LTCC'
15311
LTCFLAGS='$LTCFLAGS'
15312
compiler='$compiler_DEFAULT'
15313
15314
# Quote evaled strings.
15315
for var in SED \
15316
GREP \
15317
EGREP \
15318
FGREP \
15319
LD \
15320
NM \
15321
LN_S \
15322
lt_SP2NL \
15323
lt_NL2SP \
15324
reload_flag \
15325
OBJDUMP \
15326
deplibs_check_method \
15327
file_magic_cmd \
15328
AR \
15329
AR_FLAGS \
15330
STRIP \
15331
RANLIB \
15332
CC \
15333
CFLAGS \
15334
compiler \
15335
lt_cv_sys_global_symbol_pipe \
15336
lt_cv_sys_global_symbol_to_cdecl \
15337
lt_cv_sys_global_symbol_to_c_name_address \
15338
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15339
SHELL \
15340
ECHO \
15341
lt_prog_compiler_no_builtin_flag \
15342
lt_prog_compiler_wl \
15343
lt_prog_compiler_pic \
15344
lt_prog_compiler_static \
15345
lt_cv_prog_compiler_c_o \
15346
need_locks \
15347
DSYMUTIL \
15348
NMEDIT \
15349
LIPO \
15350
OTOOL \
15351
OTOOL64 \
15352
shrext_cmds \
15353
export_dynamic_flag_spec \
15354
whole_archive_flag_spec \
15355
compiler_needs_object \
15356
with_gnu_ld \
15357
allow_undefined_flag \
15358
no_undefined_flag \
15359
hardcode_libdir_flag_spec \
15360
hardcode_libdir_flag_spec_ld \
15361
hardcode_libdir_separator \
15362
fix_srcfile_path \
15363
exclude_expsyms \
15364
include_expsyms \
15365
file_list_spec \
15366
variables_saved_for_relink \
15367
libname_spec \
15368
library_names_spec \
15369
soname_spec \
15370
finish_eval \
15371
old_striplib \
15372
striplib \
15373
compiler_lib_search_dirs \
15374
predep_objects \
15375
postdep_objects \
15376
predeps \
15377
postdeps \
15378
compiler_lib_search_path \
15379
LD_CXX \
15380
compiler_CXX \
15381
lt_prog_compiler_no_builtin_flag_CXX \
15382
lt_prog_compiler_wl_CXX \
15383
lt_prog_compiler_pic_CXX \
15384
lt_prog_compiler_static_CXX \
15385
lt_cv_prog_compiler_c_o_CXX \
15386
export_dynamic_flag_spec_CXX \
15387
whole_archive_flag_spec_CXX \
15388
compiler_needs_object_CXX \
15389
with_gnu_ld_CXX \
15390
allow_undefined_flag_CXX \
15391
no_undefined_flag_CXX \
15392
hardcode_libdir_flag_spec_CXX \
15393
hardcode_libdir_flag_spec_ld_CXX \
15394
hardcode_libdir_separator_CXX \
15395
fix_srcfile_path_CXX \
15396
exclude_expsyms_CXX \
15397
include_expsyms_CXX \
15398
file_list_spec_CXX \
15399
compiler_lib_search_dirs_CXX \
15400
predep_objects_CXX \
15401
postdep_objects_CXX \
15402
predeps_CXX \
15403
postdeps_CXX \
15404
compiler_lib_search_path_CXX; do
15405
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15406
    *[\\\\\\\`\\"\\\$]*)
15407
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15408
      ;;
15409
    *)
15410
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15411
      ;;
15412
    esac
15413
done
15414
15415
# Double-quote double-evaled strings.
15416
for var in reload_cmds \
15417
old_postinstall_cmds \
15418
old_postuninstall_cmds \
15419
old_archive_cmds \
15420
extract_expsyms_cmds \
15421
old_archive_from_new_cmds \
15422
old_archive_from_expsyms_cmds \
15423
archive_cmds \
15424
archive_expsym_cmds \
15425
module_cmds \
15426
module_expsym_cmds \
15427
export_symbols_cmds \
15428
prelink_cmds \
15429
postinstall_cmds \
15430
postuninstall_cmds \
15431
finish_cmds \
15432
sys_lib_search_path_spec \
15433
sys_lib_dlsearch_path_spec \
15434
old_archive_cmds_CXX \
15435
old_archive_from_new_cmds_CXX \
15436
old_archive_from_expsyms_cmds_CXX \
15437
archive_cmds_CXX \
15438
archive_expsym_cmds_CXX \
15439
module_cmds_CXX \
15440
module_expsym_cmds_CXX \
15441
export_symbols_cmds_CXX \
15442
prelink_cmds_CXX; do
15443
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15444
    *[\\\\\\\`\\"\\\$]*)
15445
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15446
      ;;
15447
    *)
15448
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15449
      ;;
15450
    esac
15451
done
15452
15453
# Fix-up fallback echo if it was mangled by the above quoting rules.
15454
case \$lt_ECHO in
15455
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15456
  ;;
15457
esac
15458
15459
ac_aux_dir='$ac_aux_dir'
15460
xsi_shell='$xsi_shell'
15461
lt_shell_append='$lt_shell_append'
15462
15463
# See if we are running on zsh, and set the options which allow our
15464
# commands through without removal of \ escapes INIT.
15465
if test -n "\${ZSH_VERSION+set}" ; then
15466
   setopt NO_GLOB_SUBST
15467
fi
15468
15469
15470
    PACKAGE='$PACKAGE'
15471
    VERSION='$VERSION'
15472
    TIMESTAMP='$TIMESTAMP'
15473
    RM='$RM'
15474
    ofile='$ofile'
15475
15476
15477
15478
15479
15480
15481
_ACEOF
15482
15483
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15484
15485
# Handling of arguments.
15486
for ac_config_target in $ac_config_targets
15487
do
15488
  case $ac_config_target in
15489
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15490
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15491
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15492
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15493
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7 by edam
- removed "OK" from test-main when test is successful
15494
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5 by edam
- updated README
15495
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
15496
15497
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15498
  esac
15499
done
15500
15501
15502
# If the user did not use the arguments to specify the items to instantiate,
15503
# then the envvar interface is used.  Set only those that are not.
15504
# We use the long form for the default assignment because of an extremely
15505
# bizarre bug on SunOS 4.1.3.
15506
if $ac_need_defaults; then
15507
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15508
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15509
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15510
fi
15511
15512
# Have a temporary directory for convenience.  Make it in the build tree
15513
# simply because there is no reason against having it here, and in addition,
15514
# creating and moving files from /tmp can sometimes cause problems.
15515
# Hook for its removal unless debugging.
15516
# Note that there is a small window in which the directory will not be cleaned:
15517
# after its creation but before its name has been assigned to `$tmp'.
15518
$debug ||
15519
{
15520
  tmp=
15521
  trap 'exit_status=$?
15522
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15523
' 0
15524
  trap 'as_fn_exit 1' 1 2 13 15
15525
}
15526
# Create a (secure) tmp directory for tmp files.
15527
15528
{
15529
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15530
  test -n "$tmp" && test -d "$tmp"
15531
}  ||
15532
{
15533
  tmp=./conf$$-$RANDOM
15534
  (umask 077 && mkdir "$tmp")
15535
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15536
15537
# Set up the scripts for CONFIG_FILES section.
15538
# No need to generate them if there are no CONFIG_FILES.
15539
# This happens for instance with `./config.status config.h'.
15540
if test -n "$CONFIG_FILES"; then
15541
15542
15543
ac_cr=`echo X | tr X '\015'`
15544
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15545
# But we know of no other shell where ac_cr would be empty at this
15546
# point, so we can use a bashism as a fallback.
15547
if test "x$ac_cr" = x; then
15548
  eval ac_cr=\$\'\\r\'
15549
fi
15550
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15551
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15552
  ac_cs_awk_cr='\r'
15553
else
15554
  ac_cs_awk_cr=$ac_cr
15555
fi
15556
15557
echo 'BEGIN {' >"$tmp/subs1.awk" &&
15558
_ACEOF
15559
15560
15561
{
15562
  echo "cat >conf$$subs.awk <<_ACEOF" &&
15563
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15564
  echo "_ACEOF"
15565
} >conf$$subs.sh ||
15566
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15567
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15568
ac_delim='%!_!# '
15569
for ac_last_try in false false false false false :; do
15570
  . ./conf$$subs.sh ||
15571
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15572
15573
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15574
  if test $ac_delim_n = $ac_delim_num; then
15575
    break
15576
  elif $ac_last_try; then
15577
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15578
  else
15579
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15580
  fi
15581
done
15582
rm -f conf$$subs.sh
15583
15584
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15585
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15586
_ACEOF
15587
sed -n '
15588
h
15589
s/^/S["/; s/!.*/"]=/
15590
p
15591
g
15592
s/^[^!]*!//
15593
:repl
15594
t repl
15595
s/'"$ac_delim"'$//
15596
t delim
15597
:nl
15598
h
15599
s/\(.\{148\}\).*/\1/
15600
t more1
15601
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15602
p
15603
n
15604
b repl
15605
:more1
15606
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15607
p
15608
g
15609
s/.\{148\}//
15610
t nl
15611
:delim
15612
h
15613
s/\(.\{148\}\).*/\1/
15614
t more2
15615
s/["\\]/\\&/g; s/^/"/; s/$/"/
15616
p
15617
b
15618
:more2
15619
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15620
p
15621
g
15622
s/.\{148\}//
15623
t delim
15624
' <conf$$subs.awk | sed '
15625
/^[^""]/{
15626
  N
15627
  s/\n//
15628
}
15629
' >>$CONFIG_STATUS || ac_write_fail=1
15630
rm -f conf$$subs.awk
15631
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15632
_ACAWK
15633
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15634
  for (key in S) S_is_set[key] = 1
15635
  FS = ""
15636
15637
}
15638
{
15639
  line = $ 0
15640
  nfields = split(line, field, "@")
15641
  substed = 0
15642
  len = length(field[1])
15643
  for (i = 2; i < nfields; i++) {
15644
    key = field[i]
15645
    keylen = length(key)
15646
    if (S_is_set[key]) {
15647
      value = S[key]
15648
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15649
      len += length(value) + length(field[++i])
15650
      substed = 1
15651
    } else
15652
      len += 1 + keylen
15653
  }
15654
15655
  print line
15656
}
15657
15658
_ACAWK
15659
_ACEOF
15660
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15661
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15662
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15663
else
15664
  cat
15665
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15666
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15667
_ACEOF
15668
15669
# VPATH may cause trouble with some makes, so we remove $(srcdir),
15670
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15671
# trailing colons and then remove the whole line if VPATH becomes empty
15672
# (actually we leave an empty line to preserve line numbers).
15673
if test "x$srcdir" = x.; then
15674
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15675
s/:*\$(srcdir):*/:/
15676
s/:*\${srcdir}:*/:/
15677
s/:*@srcdir@:*/:/
15678
s/^\([^=]*=[	 ]*\):*/\1/
15679
s/:*$//
15680
s/^[^=]*=[	 ]*$//
15681
}'
15682
fi
15683
15684
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15685
fi # test -n "$CONFIG_FILES"
15686
15687
# Set up the scripts for CONFIG_HEADERS section.
15688
# No need to generate them if there are no CONFIG_HEADERS.
15689
# This happens for instance with `./config.status Makefile'.
15690
if test -n "$CONFIG_HEADERS"; then
15691
cat >"$tmp/defines.awk" <<\_ACAWK ||
15692
BEGIN {
15693
_ACEOF
15694
15695
# Transform confdefs.h into an awk script `defines.awk', embedded as
15696
# here-document in config.status, that substitutes the proper values into
15697
# config.h.in to produce config.h.
15698
15699
# Create a delimiter string that does not exist in confdefs.h, to ease
15700
# handling of long lines.
15701
ac_delim='%!_!# '
15702
for ac_last_try in false false :; do
15703
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15704
  if test -z "$ac_t"; then
15705
    break
15706
  elif $ac_last_try; then
15707
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15708
  else
15709
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15710
  fi
15711
done
15712
15713
# For the awk script, D is an array of macro values keyed by name,
15714
# likewise P contains macro parameters if any.  Preserve backslash
15715
# newline sequences.
15716
15717
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15718
sed -n '
15719
s/.\{148\}/&'"$ac_delim"'/g
15720
t rset
15721
:rset
15722
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15723
t def
15724
d
15725
:def
15726
s/\\$//
15727
t bsnl
15728
s/["\\]/\\&/g
15729
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15730
D["\1"]=" \3"/p
15731
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15732
d
15733
:bsnl
15734
s/["\\]/\\&/g
15735
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15736
D["\1"]=" \3\\\\\\n"\\/p
15737
t cont
15738
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15739
t cont
15740
d
15741
:cont
15742
n
15743
s/.\{148\}/&'"$ac_delim"'/g
15744
t clear
15745
:clear
15746
s/\\$//
15747
t bsnlc
15748
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15749
d
15750
:bsnlc
15751
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15752
b cont
15753
' <confdefs.h | sed '
15754
s/'"$ac_delim"'/"\\\
15755
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15756
15757
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15758
  for (key in D) D_is_set[key] = 1
15759
  FS = ""
15760
}
15761
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15762
  line = \$ 0
15763
  split(line, arg, " ")
15764
  if (arg[1] == "#") {
15765
    defundef = arg[2]
15766
    mac1 = arg[3]
15767
  } else {
15768
    defundef = substr(arg[1], 2)
15769
    mac1 = arg[2]
15770
  }
15771
  split(mac1, mac2, "(") #)
15772
  macro = mac2[1]
15773
  prefix = substr(line, 1, index(line, defundef) - 1)
15774
  if (D_is_set[macro]) {
15775
    # Preserve the white space surrounding the "#".
15776
    print prefix "define", macro P[macro] D[macro]
15777
    next
15778
  } else {
15779
    # Replace #undef with comments.  This is necessary, for example,
15780
    # in the case of _POSIX_SOURCE, which is predefined and required
15781
    # on some systems where configure will not decide to define it.
15782
    if (defundef == "undef") {
15783
      print "/*", prefix defundef, macro, "*/"
15784
      next
15785
    }
15786
  }
15787
}
15788
{ print }
15789
_ACAWK
15790
_ACEOF
15791
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15792
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15793
fi # test -n "$CONFIG_HEADERS"
15794
15795
15796
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15797
shift
15798
for ac_tag
15799
do
15800
  case $ac_tag in
15801
  :[FHLC]) ac_mode=$ac_tag; continue;;
15802
  esac
15803
  case $ac_mode$ac_tag in
15804
  :[FHL]*:*);;
15805
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15806
  :[FH]-) ac_tag=-:-;;
15807
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15808
  esac
15809
  ac_save_IFS=$IFS
15810
  IFS=:
15811
  set x $ac_tag
15812
  IFS=$ac_save_IFS
15813
  shift
15814
  ac_file=$1
15815
  shift
15816
15817
  case $ac_mode in
15818
  :L) ac_source=$1;;
15819
  :[FH])
15820
    ac_file_inputs=
15821
    for ac_f
15822
    do
15823
      case $ac_f in
15824
      -) ac_f="$tmp/stdin";;
15825
      *) # Look for the file first in the build tree, then in the source tree
15826
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15827
	 # because $ac_f cannot contain `:'.
15828
	 test -f "$ac_f" ||
15829
	   case $ac_f in
15830
	   [\\/$]*) false;;
15831
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15832
	   esac ||
15833
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15834
      esac
15835
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15836
      as_fn_append ac_file_inputs " '$ac_f'"
15837
    done
15838
15839
    # Let's still pretend it is `configure' which instantiates (i.e., don't
15840
    # use $as_me), people would be surprised to read:
15841
    #    /* config.h.  Generated by config.status.  */
15842
    configure_input='Generated from '`
15843
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15844
	`' by configure.'
15845
    if test x"$ac_file" != x-; then
15846
      configure_input="$ac_file.  $configure_input"
15847
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15848
$as_echo "$as_me: creating $ac_file" >&6;}
15849
    fi
15850
    # Neutralize special characters interpreted by sed in replacement strings.
15851
    case $configure_input in #(
15852
    *\&* | *\|* | *\\* )
15853
       ac_sed_conf_input=`$as_echo "$configure_input" |
15854
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15855
    *) ac_sed_conf_input=$configure_input;;
15856
    esac
15857
15858
    case $ac_tag in
15859
    *:-:* | *:-) cat >"$tmp/stdin" \
15860
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15861
    esac
15862
    ;;
15863
  esac
15864
15865
  ac_dir=`$as_dirname -- "$ac_file" ||
15866
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15867
	 X"$ac_file" : 'X\(//\)[^/]' \| \
15868
	 X"$ac_file" : 'X\(//\)$' \| \
15869
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15870
$as_echo X"$ac_file" |
15871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15872
	    s//\1/
15873
	    q
15874
	  }
15875
	  /^X\(\/\/\)[^/].*/{
15876
	    s//\1/
15877
	    q
15878
	  }
15879
	  /^X\(\/\/\)$/{
15880
	    s//\1/
15881
	    q
15882
	  }
15883
	  /^X\(\/\).*/{
15884
	    s//\1/
15885
	    q
15886
	  }
15887
	  s/.*/./; q'`
15888
  as_dir="$ac_dir"; as_fn_mkdir_p
15889
  ac_builddir=.
15890
15891
case "$ac_dir" in
15892
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15893
*)
15894
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15895
  # A ".." for each directory in $ac_dir_suffix.
15896
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15897
  case $ac_top_builddir_sub in
15898
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15899
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15900
  esac ;;
15901
esac
15902
ac_abs_top_builddir=$ac_pwd
15903
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15904
# for backward compatibility:
15905
ac_top_builddir=$ac_top_build_prefix
15906
15907
case $srcdir in
15908
  .)  # We are building in place.
15909
    ac_srcdir=.
15910
    ac_top_srcdir=$ac_top_builddir_sub
15911
    ac_abs_top_srcdir=$ac_pwd ;;
15912
  [\\/]* | ?:[\\/]* )  # Absolute name.
15913
    ac_srcdir=$srcdir$ac_dir_suffix;
15914
    ac_top_srcdir=$srcdir
15915
    ac_abs_top_srcdir=$srcdir ;;
15916
  *) # Relative name.
15917
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15918
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15919
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15920
esac
15921
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15922
15923
15924
  case $ac_mode in
15925
  :F)
15926
  #
15927
  # CONFIG_FILE
15928
  #
15929
15930
  case $INSTALL in
15931
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15932
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15933
  esac
15934
  ac_MKDIR_P=$MKDIR_P
15935
  case $MKDIR_P in
15936
  [\\/$]* | ?:[\\/]* ) ;;
15937
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15938
  esac
15939
_ACEOF
15940
15941
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942
# If the template does not know about datarootdir, expand it.
15943
# FIXME: This hack should be removed a few years after 2.60.
15944
ac_datarootdir_hack=; ac_datarootdir_seen=
15945
ac_sed_dataroot='
15946
/datarootdir/ {
15947
  p
15948
  q
15949
}
15950
/@datadir@/p
15951
/@docdir@/p
15952
/@infodir@/p
15953
/@localedir@/p
15954
/@mandir@/p'
15955
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15956
*datarootdir*) ac_datarootdir_seen=yes;;
15957
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15958
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15959
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15960
_ACEOF
15961
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962
  ac_datarootdir_hack='
15963
  s&@datadir@&$datadir&g
15964
  s&@docdir@&$docdir&g
15965
  s&@infodir@&$infodir&g
15966
  s&@localedir@&$localedir&g
15967
  s&@mandir@&$mandir&g
15968
  s&\\\${datarootdir}&$datarootdir&g' ;;
15969
esac
15970
_ACEOF
15971
15972
# Neutralize VPATH when `$srcdir' = `.'.
15973
# Shell code in configure.ac might set extrasub.
15974
# FIXME: do we really want to maintain this feature?
15975
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976
ac_sed_extra="$ac_vpsub
15977
$extrasub
15978
_ACEOF
15979
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980
:t
15981
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15982
s|@configure_input@|$ac_sed_conf_input|;t t
15983
s&@top_builddir@&$ac_top_builddir_sub&;t t
15984
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15985
s&@srcdir@&$ac_srcdir&;t t
15986
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15987
s&@top_srcdir@&$ac_top_srcdir&;t t
15988
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15989
s&@builddir@&$ac_builddir&;t t
15990
s&@abs_builddir@&$ac_abs_builddir&;t t
15991
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15992
s&@INSTALL@&$ac_INSTALL&;t t
15993
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15994
$ac_datarootdir_hack
15995
"
15996
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15997
  || as_fn_error "could not create $ac_file" "$LINENO" 5
15998
15999
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16000
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16001
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16002
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16003
which seems to be undefined.  Please make sure it is defined." >&5
16004
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16005
which seems to be undefined.  Please make sure it is defined." >&2;}
16006
16007
  rm -f "$tmp/stdin"
16008
  case $ac_file in
16009
  -) cat "$tmp/out" && rm -f "$tmp/out";;
16010
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16011
  esac \
16012
  || as_fn_error "could not create $ac_file" "$LINENO" 5
16013
 ;;
16014
  :H)
16015
  #
16016
  # CONFIG_HEADER
16017
  #
16018
  if test x"$ac_file" != x-; then
16019
    {
16020
      $as_echo "/* $configure_input  */" \
16021
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16022
    } >"$tmp/config.h" \
16023
      || as_fn_error "could not create $ac_file" "$LINENO" 5
16024
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16025
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16026
$as_echo "$as_me: $ac_file is unchanged" >&6;}
16027
    else
16028
      rm -f "$ac_file"
16029
      mv "$tmp/config.h" "$ac_file" \
16030
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16031
    fi
16032
  else
16033
    $as_echo "/* $configure_input  */" \
16034
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16035
      || as_fn_error "could not create -" "$LINENO" 5
16036
  fi
16037
# Compute "$ac_file"'s index in $config_headers.
16038
_am_arg="$ac_file"
16039
_am_stamp_count=1
16040
for _am_header in $config_headers :; do
16041
  case $_am_header in
16042
    $_am_arg | $_am_arg:* )
16043
      break ;;
16044
    * )
16045
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16046
  esac
16047
done
16048
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16049
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16050
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16051
	 X"$_am_arg" : 'X\(//\)$' \| \
16052
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16053
$as_echo X"$_am_arg" |
16054
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16055
	    s//\1/
16056
	    q
16057
	  }
16058
	  /^X\(\/\/\)[^/].*/{
16059
	    s//\1/
16060
	    q
16061
	  }
16062
	  /^X\(\/\/\)$/{
16063
	    s//\1/
16064
	    q
16065
	  }
16066
	  /^X\(\/\).*/{
16067
	    s//\1/
16068
	    q
16069
	  }
16070
	  s/.*/./; q'`/stamp-h$_am_stamp_count
16071
 ;;
16072
16073
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16074
$as_echo "$as_me: executing $ac_file commands" >&6;}
16075
 ;;
16076
  esac
16077
16078
16079
  case $ac_file$ac_mode in
16080
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16081
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16082
  # are listed without --file.  Let's play safe and only enable the eval
16083
  # if we detect the quoting.
16084
  case $CONFIG_FILES in
16085
  *\'*) eval set x "$CONFIG_FILES" ;;
16086
  *)   set x $CONFIG_FILES ;;
16087
  esac
16088
  shift
16089
  for mf
16090
  do
16091
    # Strip MF so we end up with the name of the file.
16092
    mf=`echo "$mf" | sed -e 's/:.*$//'`
16093
    # Check whether this is an Automake generated Makefile or not.
16094
    # We used to match only the files named `Makefile.in', but
16095
    # some people rename them; so instead we look at the file content.
16096
    # Grep'ing the first line is not enough: some people post-process
16097
    # each Makefile.in and add a new line on top of each file to say so.
16098
    # Grep'ing the whole file is not good either: AIX grep has a line
16099
    # limit of 2048, but all sed's we know have understand at least 4000.
16100
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16101
      dirpart=`$as_dirname -- "$mf" ||
16102
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16103
	 X"$mf" : 'X\(//\)[^/]' \| \
16104
	 X"$mf" : 'X\(//\)$' \| \
16105
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16106
$as_echo X"$mf" |
16107
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16108
	    s//\1/
16109
	    q
16110
	  }
16111
	  /^X\(\/\/\)[^/].*/{
16112
	    s//\1/
16113
	    q
16114
	  }
16115
	  /^X\(\/\/\)$/{
16116
	    s//\1/
16117
	    q
16118
	  }
16119
	  /^X\(\/\).*/{
16120
	    s//\1/
16121
	    q
16122
	  }
16123
	  s/.*/./; q'`
16124
    else
16125
      continue
16126
    fi
16127
    # Extract the definition of DEPDIR, am__include, and am__quote
16128
    # from the Makefile without running `make'.
16129
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16130
    test -z "$DEPDIR" && continue
16131
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16132
    test -z "am__include" && continue
16133
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16134
    # When using ansi2knr, U may be empty or an underscore; expand it
16135
    U=`sed -n 's/^U = //p' < "$mf"`
16136
    # Find all dependency output files, they are included files with
16137
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16138
    # simplest approach to changing $(DEPDIR) to its actual value in the
16139
    # expansion.
16140
    for file in `sed -n "
16141
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16142
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16143
      # Make sure the directory exists.
16144
      test -f "$dirpart/$file" && continue
16145
      fdir=`$as_dirname -- "$file" ||
16146
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16147
	 X"$file" : 'X\(//\)[^/]' \| \
16148
	 X"$file" : 'X\(//\)$' \| \
16149
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16150
$as_echo X"$file" |
16151
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16152
	    s//\1/
16153
	    q
16154
	  }
16155
	  /^X\(\/\/\)[^/].*/{
16156
	    s//\1/
16157
	    q
16158
	  }
16159
	  /^X\(\/\/\)$/{
16160
	    s//\1/
16161
	    q
16162
	  }
16163
	  /^X\(\/\).*/{
16164
	    s//\1/
16165
	    q
16166
	  }
16167
	  s/.*/./; q'`
16168
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16169
      # echo "creating $dirpart/$file"
16170
      echo '# dummy' > "$dirpart/$file"
16171
    done
16172
  done
16173
}
16174
 ;;
16175
    "libtool":C)
16176
16177
    # See if we are running on zsh, and set the options which allow our
16178
    # commands through without removal of \ escapes.
16179
    if test -n "${ZSH_VERSION+set}" ; then
16180
      setopt NO_GLOB_SUBST
16181
    fi
16182
16183
    cfgfile="${ofile}T"
16184
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16185
    $RM "$cfgfile"
16186
16187
    cat <<_LT_EOF >> "$cfgfile"
16188
#! $SHELL
16189
16190
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16191
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16192
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16193
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16194
#
16195
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16196
#                 2006, 2007, 2008 Free Software Foundation, Inc.
16197
#   Written by Gordon Matzigkeit, 1996
16198
#
16199
#   This file is part of GNU Libtool.
16200
#
16201
# GNU Libtool is free software; you can redistribute it and/or
16202
# modify it under the terms of the GNU General Public License as
16203
# published by the Free Software Foundation; either version 2 of
16204
# the License, or (at your option) any later version.
16205
#
16206
# As a special exception to the GNU General Public License,
16207
# if you distribute this file as part of a program or library that
16208
# is built using GNU Libtool, you may include this file under the
16209
# same distribution terms that you use for the rest of that program.
16210
#
16211
# GNU Libtool is distributed in the hope that it will be useful,
16212
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16213
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16214
# GNU General Public License for more details.
16215
#
16216
# You should have received a copy of the GNU General Public License
16217
# along with GNU Libtool; see the file COPYING.  If not, a copy
16218
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16219
# obtained by writing to the Free Software Foundation, Inc.,
16220
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16221
16222
16223
# The names of the tagged configurations supported by this script.
16224
available_tags="CXX "
16225
16226
# ### BEGIN LIBTOOL CONFIG
16227
16228
# Which release of libtool.m4 was used?
16229
macro_version=$macro_version
16230
macro_revision=$macro_revision
16231
16232
# Whether or not to build shared libraries.
16233
build_libtool_libs=$enable_shared
16234
16235
# Whether or not to build static libraries.
16236
build_old_libs=$enable_static
16237
16238
# What type of objects to build.
16239
pic_mode=$pic_mode
16240
16241
# Whether or not to optimize for fast installation.
16242
fast_install=$enable_fast_install
16243
16244
# The host system.
16245
host_alias=$host_alias
16246
host=$host
16247
host_os=$host_os
16248
16249
# The build system.
16250
build_alias=$build_alias
16251
build=$build
16252
build_os=$build_os
16253
16254
# A sed program that does not truncate output.
16255
SED=$lt_SED
16256
16257
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16258
Xsed="\$SED -e 1s/^X//"
16259
16260
# A grep program that handles long lines.
16261
GREP=$lt_GREP
16262
16263
# An ERE matcher.
16264
EGREP=$lt_EGREP
16265
16266
# A literal string matcher.
16267
FGREP=$lt_FGREP
16268
16269
# A BSD- or MS-compatible name lister.
16270
NM=$lt_NM
16271
16272
# Whether we need soft or hard links.
16273
LN_S=$lt_LN_S
16274
16275
# What is the maximum length of a command?
16276
max_cmd_len=$max_cmd_len
16277
16278
# Object file suffix (normally "o").
16279
objext=$ac_objext
16280
16281
# Executable file suffix (normally "").
16282
exeext=$exeext
16283
16284
# whether the shell understands "unset".
16285
lt_unset=$lt_unset
16286
16287
# turn spaces into newlines.
16288
SP2NL=$lt_lt_SP2NL
16289
16290
# turn newlines into spaces.
16291
NL2SP=$lt_lt_NL2SP
16292
16293
# How to create reloadable object files.
16294
reload_flag=$lt_reload_flag
16295
reload_cmds=$lt_reload_cmds
16296
16297
# An object symbol dumper.
16298
OBJDUMP=$lt_OBJDUMP
16299
16300
# Method to check whether dependent libraries are shared objects.
16301
deplibs_check_method=$lt_deplibs_check_method
16302
16303
# Command to use when deplibs_check_method == "file_magic".
16304
file_magic_cmd=$lt_file_magic_cmd
16305
16306
# The archiver.
16307
AR=$lt_AR
16308
AR_FLAGS=$lt_AR_FLAGS
16309
16310
# A symbol stripping program.
16311
STRIP=$lt_STRIP
16312
16313
# Commands used to install an old-style archive.
16314
RANLIB=$lt_RANLIB
16315
old_postinstall_cmds=$lt_old_postinstall_cmds
16316
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16317
16318
# A C compiler.
16319
LTCC=$lt_CC
16320
16321
# LTCC compiler flags.
16322
LTCFLAGS=$lt_CFLAGS
16323
16324
# Take the output of nm and produce a listing of raw symbols and C names.
16325
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16326
16327
# Transform the output of nm in a proper C declaration.
16328
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16329
16330
# Transform the output of nm in a C name address pair.
16331
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16332
16333
# Transform the output of nm in a C name address pair when lib prefix is needed.
16334
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16335
16336
# The name of the directory that contains temporary libtool files.
16337
objdir=$objdir
16338
16339
# Shell to use when invoking shell scripts.
16340
SHELL=$lt_SHELL
16341
16342
# An echo program that does not interpret backslashes.
16343
ECHO=$lt_ECHO
16344
16345
# Used to examine libraries when file_magic_cmd begins with "file".
16346
MAGIC_CMD=$MAGIC_CMD
16347
16348
# Must we lock files when doing compilation?
16349
need_locks=$lt_need_locks
16350
16351
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16352
DSYMUTIL=$lt_DSYMUTIL
16353
16354
# Tool to change global to local symbols on Mac OS X.
16355
NMEDIT=$lt_NMEDIT
16356
16357
# Tool to manipulate fat objects and archives on Mac OS X.
16358
LIPO=$lt_LIPO
16359
16360
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16361
OTOOL=$lt_OTOOL
16362
16363
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16364
OTOOL64=$lt_OTOOL64
16365
16366
# Old archive suffix (normally "a").
16367
libext=$libext
16368
16369
# Shared library suffix (normally ".so").
16370
shrext_cmds=$lt_shrext_cmds
16371
16372
# The commands to extract the exported symbol list from a shared archive.
16373
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16374
16375
# Variables whose values should be saved in libtool wrapper scripts and
16376
# restored at link time.
16377
variables_saved_for_relink=$lt_variables_saved_for_relink
16378
16379
# Do we need the "lib" prefix for modules?
16380
need_lib_prefix=$need_lib_prefix
16381
16382
# Do we need a version for libraries?
16383
need_version=$need_version
16384
16385
# Library versioning type.
16386
version_type=$version_type
16387
16388
# Shared library runtime path variable.
16389
runpath_var=$runpath_var
16390
16391
# Shared library path variable.
16392
shlibpath_var=$shlibpath_var
16393
16394
# Is shlibpath searched before the hard-coded library search path?
16395
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16396
16397
# Format of library name prefix.
16398
libname_spec=$lt_libname_spec
16399
16400
# List of archive names.  First name is the real one, the rest are links.
16401
# The last name is the one that the linker finds with -lNAME
16402
library_names_spec=$lt_library_names_spec
16403
16404
# The coded name of the library, if different from the real name.
16405
soname_spec=$lt_soname_spec
16406
16407
# Command to use after installation of a shared archive.
16408
postinstall_cmds=$lt_postinstall_cmds
16409
16410
# Command to use after uninstallation of a shared archive.
16411
postuninstall_cmds=$lt_postuninstall_cmds
16412
16413
# Commands used to finish a libtool library installation in a directory.
16414
finish_cmds=$lt_finish_cmds
16415
16416
# As "finish_cmds", except a single script fragment to be evaled but
16417
# not shown.
16418
finish_eval=$lt_finish_eval
16419
16420
# Whether we should hardcode library paths into libraries.
16421
hardcode_into_libs=$hardcode_into_libs
16422
16423
# Compile-time system search path for libraries.
16424
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16425
16426
# Run-time system search path for libraries.
16427
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16428
16429
# Whether dlopen is supported.
16430
dlopen_support=$enable_dlopen
16431
16432
# Whether dlopen of programs is supported.
16433
dlopen_self=$enable_dlopen_self
16434
16435
# Whether dlopen of statically linked programs is supported.
16436
dlopen_self_static=$enable_dlopen_self_static
16437
16438
# Commands to strip libraries.
16439
old_striplib=$lt_old_striplib
16440
striplib=$lt_striplib
16441
16442
16443
# The linker used to build libraries.
16444
LD=$lt_LD
16445
16446
# Commands used to build an old-style archive.
16447
old_archive_cmds=$lt_old_archive_cmds
16448
16449
# A language specific compiler.
16450
CC=$lt_compiler
16451
16452
# Is the compiler the GNU compiler?
16453
with_gcc=$GCC
16454
16455
# Compiler flag to turn off builtin functions.
16456
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16457
16458
# How to pass a linker flag through the compiler.
16459
wl=$lt_lt_prog_compiler_wl
16460
16461
# Additional compiler flags for building library objects.
16462
pic_flag=$lt_lt_prog_compiler_pic
16463
16464
# Compiler flag to prevent dynamic linking.
16465
link_static_flag=$lt_lt_prog_compiler_static
16466
16467
# Does compiler simultaneously support -c and -o options?
16468
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16469
16470
# Whether or not to add -lc for building shared libraries.
16471
build_libtool_need_lc=$archive_cmds_need_lc
16472
16473
# Whether or not to disallow shared libs when runtime libs are static.
16474
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16475
16476
# Compiler flag to allow reflexive dlopens.
16477
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16478
16479
# Compiler flag to generate shared objects directly from archives.
16480
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16481
16482
# Whether the compiler copes with passing no objects directly.
16483
compiler_needs_object=$lt_compiler_needs_object
16484
16485
# Create an old-style archive from a shared archive.
16486
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16487
16488
# Create a temporary old-style archive to link instead of a shared archive.
16489
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16490
16491
# Commands used to build a shared archive.
16492
archive_cmds=$lt_archive_cmds
16493
archive_expsym_cmds=$lt_archive_expsym_cmds
16494
16495
# Commands used to build a loadable module if different from building
16496
# a shared archive.
16497
module_cmds=$lt_module_cmds
16498
module_expsym_cmds=$lt_module_expsym_cmds
16499
16500
# Whether we are building with GNU ld or not.
16501
with_gnu_ld=$lt_with_gnu_ld
16502
16503
# Flag that allows shared libraries with undefined symbols to be built.
16504
allow_undefined_flag=$lt_allow_undefined_flag
16505
16506
# Flag that enforces no undefined symbols.
16507
no_undefined_flag=$lt_no_undefined_flag
16508
16509
# Flag to hardcode \$libdir into a binary during linking.
16510
# This must work even if \$libdir does not exist
16511
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16512
16513
# If ld is used when linking, flag to hardcode \$libdir into a binary
16514
# during linking.  This must work even if \$libdir does not exist.
16515
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16516
16517
# Whether we need a single "-rpath" flag with a separated argument.
16518
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16519
16520
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16521
# DIR into the resulting binary.
16522
hardcode_direct=$hardcode_direct
16523
16524
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16525
# DIR into the resulting binary and the resulting library dependency is
16526
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16527
# library is relocated.
16528
hardcode_direct_absolute=$hardcode_direct_absolute
16529
16530
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16531
# into the resulting binary.
16532
hardcode_minus_L=$hardcode_minus_L
16533
16534
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16535
# into the resulting binary.
16536
hardcode_shlibpath_var=$hardcode_shlibpath_var
16537
16538
# Set to "yes" if building a shared library automatically hardcodes DIR
16539
# into the library and all subsequent libraries and executables linked
16540
# against it.
16541
hardcode_automatic=$hardcode_automatic
16542
16543
# Set to yes if linker adds runtime paths of dependent libraries
16544
# to runtime path list.
16545
inherit_rpath=$inherit_rpath
16546
16547
# Whether libtool must link a program against all its dependency libraries.
16548
link_all_deplibs=$link_all_deplibs
16549
16550
# Fix the shell variable \$srcfile for the compiler.
16551
fix_srcfile_path=$lt_fix_srcfile_path
16552
16553
# Set to "yes" if exported symbols are required.
16554
always_export_symbols=$always_export_symbols
16555
16556
# The commands to list exported symbols.
16557
export_symbols_cmds=$lt_export_symbols_cmds
16558
16559
# Symbols that should not be listed in the preloaded symbols.
16560
exclude_expsyms=$lt_exclude_expsyms
16561
16562
# Symbols that must always be exported.
16563
include_expsyms=$lt_include_expsyms
16564
16565
# Commands necessary for linking programs (against libraries) with templates.
16566
prelink_cmds=$lt_prelink_cmds
16567
16568
# Specify filename containing input files.
16569
file_list_spec=$lt_file_list_spec
16570
16571
# How to hardcode a shared library path into an executable.
16572
hardcode_action=$hardcode_action
16573
16574
# The directories searched by this compiler when creating a shared library.
16575
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16576
16577
# Dependencies to place before and after the objects being linked to
16578
# create a shared library.
16579
predep_objects=$lt_predep_objects
16580
postdep_objects=$lt_postdep_objects
16581
predeps=$lt_predeps
16582
postdeps=$lt_postdeps
16583
16584
# The library search path used internally by the compiler when linking
16585
# a shared library.
16586
compiler_lib_search_path=$lt_compiler_lib_search_path
16587
16588
# ### END LIBTOOL CONFIG
16589
16590
_LT_EOF
16591
16592
  case $host_os in
16593
  aix3*)
16594
    cat <<\_LT_EOF >> "$cfgfile"
16595
# AIX sometimes has problems with the GCC collect2 program.  For some
16596
# reason, if we set the COLLECT_NAMES environment variable, the problems
16597
# vanish in a puff of smoke.
16598
if test "X${COLLECT_NAMES+set}" != Xset; then
16599
  COLLECT_NAMES=
16600
  export COLLECT_NAMES
16601
fi
16602
_LT_EOF
16603
    ;;
16604
  esac
16605
16606
16607
ltmain="$ac_aux_dir/ltmain.sh"
16608
16609
16610
  # We use sed instead of cat because bash on DJGPP gets confused if
16611
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16612
  # text mode, it properly converts lines to CR/LF.  This bash problem
16613
  # is reportedly fixed, but why not run on old versions too?
16614
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16615
    || (rm -f "$cfgfile"; exit 1)
16616
16617
  case $xsi_shell in
16618
  yes)
16619
    cat << \_LT_EOF >> "$cfgfile"
16620
16621
# func_dirname file append nondir_replacement
16622
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16623
# otherwise set result to NONDIR_REPLACEMENT.
16624
func_dirname ()
16625
{
16626
  case ${1} in
16627
    */*) func_dirname_result="${1%/*}${2}" ;;
16628
    *  ) func_dirname_result="${3}" ;;
16629
  esac
16630
}
16631
16632
# func_basename file
16633
func_basename ()
16634
{
16635
  func_basename_result="${1##*/}"
16636
}
16637
16638
# func_dirname_and_basename file append nondir_replacement
16639
# perform func_basename and func_dirname in a single function
16640
# call:
16641
#   dirname:  Compute the dirname of FILE.  If nonempty,
16642
#             add APPEND to the result, otherwise set result
16643
#             to NONDIR_REPLACEMENT.
16644
#             value returned in "$func_dirname_result"
16645
#   basename: Compute filename of FILE.
16646
#             value retuned in "$func_basename_result"
16647
# Implementation must be kept synchronized with func_dirname
16648
# and func_basename. For efficiency, we do not delegate to
16649
# those functions but instead duplicate the functionality here.
16650
func_dirname_and_basename ()
16651
{
16652
  case ${1} in
16653
    */*) func_dirname_result="${1%/*}${2}" ;;
16654
    *  ) func_dirname_result="${3}" ;;
16655
  esac
16656
  func_basename_result="${1##*/}"
16657
}
16658
16659
# func_stripname prefix suffix name
16660
# strip PREFIX and SUFFIX off of NAME.
16661
# PREFIX and SUFFIX must not contain globbing or regex special
16662
# characters, hashes, percent signs, but SUFFIX may contain a leading
16663
# dot (in which case that matches only a dot).
16664
func_stripname ()
16665
{
16666
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16667
  # positional parameters, so assign one to ordinary parameter first.
16668
  func_stripname_result=${3}
16669
  func_stripname_result=${func_stripname_result#"${1}"}
16670
  func_stripname_result=${func_stripname_result%"${2}"}
16671
}
16672
16673
# func_opt_split
16674
func_opt_split ()
16675
{
16676
  func_opt_split_opt=${1%%=*}
16677
  func_opt_split_arg=${1#*=}
16678
}
16679
16680
# func_lo2o object
16681
func_lo2o ()
16682
{
16683
  case ${1} in
16684
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16685
    *)    func_lo2o_result=${1} ;;
16686
  esac
16687
}
16688
16689
# func_xform libobj-or-source
16690
func_xform ()
16691
{
16692
  func_xform_result=${1%.*}.lo
16693
}
16694
16695
# func_arith arithmetic-term...
16696
func_arith ()
16697
{
16698
  func_arith_result=$(( $* ))
16699
}
16700
16701
# func_len string
16702
# STRING may not start with a hyphen.
16703
func_len ()
16704
{
16705
  func_len_result=${#1}
16706
}
16707
16708
_LT_EOF
16709
    ;;
16710
  *) # Bourne compatible functions.
16711
    cat << \_LT_EOF >> "$cfgfile"
16712
16713
# func_dirname file append nondir_replacement
16714
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16715
# otherwise set result to NONDIR_REPLACEMENT.
16716
func_dirname ()
16717
{
16718
  # Extract subdirectory from the argument.
16719
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16720
  if test "X$func_dirname_result" = "X${1}"; then
16721
    func_dirname_result="${3}"
16722
  else
16723
    func_dirname_result="$func_dirname_result${2}"
16724
  fi
16725
}
16726
16727
# func_basename file
16728
func_basename ()
16729
{
16730
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16731
}
16732
16733
16734
# func_stripname prefix suffix name
16735
# strip PREFIX and SUFFIX off of NAME.
16736
# PREFIX and SUFFIX must not contain globbing or regex special
16737
# characters, hashes, percent signs, but SUFFIX may contain a leading
16738
# dot (in which case that matches only a dot).
16739
# func_strip_suffix prefix name
16740
func_stripname ()
16741
{
16742
  case ${2} in
16743
    .*) func_stripname_result=`$ECHO "X${3}" \
16744
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16745
    *)  func_stripname_result=`$ECHO "X${3}" \
16746
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16747
  esac
16748
}
16749
16750
# sed scripts:
16751
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16752
my_sed_long_arg='1s/^-[^=]*=//'
16753
16754
# func_opt_split
16755
func_opt_split ()
16756
{
16757
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16758
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16759
}
16760
16761
# func_lo2o object
16762
func_lo2o ()
16763
{
16764
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16765
}
16766
16767
# func_xform libobj-or-source
16768
func_xform ()
16769
{
16770
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16771
}
16772
16773
# func_arith arithmetic-term...
16774
func_arith ()
16775
{
16776
  func_arith_result=`expr "$@"`
16777
}
16778
16779
# func_len string
16780
# STRING may not start with a hyphen.
16781
func_len ()
16782
{
16783
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16784
}
16785
16786
_LT_EOF
16787
esac
16788
16789
case $lt_shell_append in
16790
  yes)
16791
    cat << \_LT_EOF >> "$cfgfile"
16792
16793
# func_append var value
16794
# Append VALUE to the end of shell variable VAR.
16795
func_append ()
16796
{
16797
  eval "$1+=\$2"
16798
}
16799
_LT_EOF
16800
    ;;
16801
  *)
16802
    cat << \_LT_EOF >> "$cfgfile"
16803
16804
# func_append var value
16805
# Append VALUE to the end of shell variable VAR.
16806
func_append ()
16807
{
16808
  eval "$1=\$$1\$2"
16809
}
16810
16811
_LT_EOF
16812
    ;;
16813
  esac
16814
16815
16816
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16817
    || (rm -f "$cfgfile"; exit 1)
16818
16819
  mv -f "$cfgfile" "$ofile" ||
16820
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16821
  chmod +x "$ofile"
16822
16823
16824
    cat <<_LT_EOF >> "$ofile"
16825
16826
# ### BEGIN LIBTOOL TAG CONFIG: CXX
16827
16828
# The linker used to build libraries.
16829
LD=$lt_LD_CXX
16830
16831
# Commands used to build an old-style archive.
16832
old_archive_cmds=$lt_old_archive_cmds_CXX
16833
16834
# A language specific compiler.
16835
CC=$lt_compiler_CXX
16836
16837
# Is the compiler the GNU compiler?
16838
with_gcc=$GCC_CXX
16839
16840
# Compiler flag to turn off builtin functions.
16841
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16842
16843
# How to pass a linker flag through the compiler.
16844
wl=$lt_lt_prog_compiler_wl_CXX
16845
16846
# Additional compiler flags for building library objects.
16847
pic_flag=$lt_lt_prog_compiler_pic_CXX
16848
16849
# Compiler flag to prevent dynamic linking.
16850
link_static_flag=$lt_lt_prog_compiler_static_CXX
16851
16852
# Does compiler simultaneously support -c and -o options?
16853
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16854
16855
# Whether or not to add -lc for building shared libraries.
16856
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16857
16858
# Whether or not to disallow shared libs when runtime libs are static.
16859
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16860
16861
# Compiler flag to allow reflexive dlopens.
16862
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16863
16864
# Compiler flag to generate shared objects directly from archives.
16865
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16866
16867
# Whether the compiler copes with passing no objects directly.
16868
compiler_needs_object=$lt_compiler_needs_object_CXX
16869
16870
# Create an old-style archive from a shared archive.
16871
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16872
16873
# Create a temporary old-style archive to link instead of a shared archive.
16874
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16875
16876
# Commands used to build a shared archive.
16877
archive_cmds=$lt_archive_cmds_CXX
16878
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16879
16880
# Commands used to build a loadable module if different from building
16881
# a shared archive.
16882
module_cmds=$lt_module_cmds_CXX
16883
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16884
16885
# Whether we are building with GNU ld or not.
16886
with_gnu_ld=$lt_with_gnu_ld_CXX
16887
16888
# Flag that allows shared libraries with undefined symbols to be built.
16889
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16890
16891
# Flag that enforces no undefined symbols.
16892
no_undefined_flag=$lt_no_undefined_flag_CXX
16893
16894
# Flag to hardcode \$libdir into a binary during linking.
16895
# This must work even if \$libdir does not exist
16896
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16897
16898
# If ld is used when linking, flag to hardcode \$libdir into a binary
16899
# during linking.  This must work even if \$libdir does not exist.
16900
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16901
16902
# Whether we need a single "-rpath" flag with a separated argument.
16903
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16904
16905
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16906
# DIR into the resulting binary.
16907
hardcode_direct=$hardcode_direct_CXX
16908
16909
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16910
# DIR into the resulting binary and the resulting library dependency is
16911
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16912
# library is relocated.
16913
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16914
16915
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16916
# into the resulting binary.
16917
hardcode_minus_L=$hardcode_minus_L_CXX
16918
16919
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16920
# into the resulting binary.
16921
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16922
16923
# Set to "yes" if building a shared library automatically hardcodes DIR
16924
# into the library and all subsequent libraries and executables linked
16925
# against it.
16926
hardcode_automatic=$hardcode_automatic_CXX
16927
16928
# Set to yes if linker adds runtime paths of dependent libraries
16929
# to runtime path list.
16930
inherit_rpath=$inherit_rpath_CXX
16931
16932
# Whether libtool must link a program against all its dependency libraries.
16933
link_all_deplibs=$link_all_deplibs_CXX
16934
16935
# Fix the shell variable \$srcfile for the compiler.
16936
fix_srcfile_path=$lt_fix_srcfile_path_CXX
16937
16938
# Set to "yes" if exported symbols are required.
16939
always_export_symbols=$always_export_symbols_CXX
16940
16941
# The commands to list exported symbols.
16942
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16943
16944
# Symbols that should not be listed in the preloaded symbols.
16945
exclude_expsyms=$lt_exclude_expsyms_CXX
16946
16947
# Symbols that must always be exported.
16948
include_expsyms=$lt_include_expsyms_CXX
16949
16950
# Commands necessary for linking programs (against libraries) with templates.
16951
prelink_cmds=$lt_prelink_cmds_CXX
16952
16953
# Specify filename containing input files.
16954
file_list_spec=$lt_file_list_spec_CXX
16955
16956
# How to hardcode a shared library path into an executable.
16957
hardcode_action=$hardcode_action_CXX
16958
16959
# The directories searched by this compiler when creating a shared library.
16960
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16961
16962
# Dependencies to place before and after the objects being linked to
16963
# create a shared library.
16964
predep_objects=$lt_predep_objects_CXX
16965
postdep_objects=$lt_postdep_objects_CXX
16966
predeps=$lt_predeps_CXX
16967
postdeps=$lt_postdeps_CXX
16968
16969
# The library search path used internally by the compiler when linking
16970
# a shared library.
16971
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16972
16973
# ### END LIBTOOL TAG CONFIG: CXX
16974
_LT_EOF
16975
16976
 ;;
16977
16978
  esac
16979
done # for ac_tag
16980
16981
16982
as_fn_exit 0
16983
_ACEOF
16984
ac_clean_files=$ac_clean_files_save
16985
16986
test $ac_write_fail = 0 ||
16987
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16988
16989
16990
# configure is writing to config.log, and then calls config.status.
16991
# config.status does its own redirection, appending to config.log.
16992
# Unfortunately, on DOS this fails, as config.log is still kept open
16993
# by configure, so config.status won't be able to write to it; its
16994
# output is simply discarded.  So we exec the FD to /dev/null,
16995
# effectively closing config.log, so it can be properly (re)opened and
16996
# appended to by config.status.  When coming back to configure, we
16997
# need to make the FD available again.
16998
if test "$no_create" != yes; then
16999
  ac_cs_success=:
17000
  ac_config_status_args=
17001
  test "$silent" = yes &&
17002
    ac_config_status_args="$ac_config_status_args --quiet"
17003
  exec 5>/dev/null
17004
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17005
  exec 5>>config.log
17006
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17007
  # would make configure fail if this is the last instruction.
17008
  $ac_cs_success || as_fn_exit $?
17009
fi
17010
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17011
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17012
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17013
fi
17014