Subversion Repositories Vertical

Rev

Rev 7 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for metal 1.2.
4
#
5
# Report bugs to <mike@hamble.online>.
6
#
7
#
8
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
#
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
as_myself=
93
case $0 in #((
94
  *[\\/]* ) as_myself=$0 ;;
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96
for as_dir in $PATH
97
do
98
  IFS=$as_save_IFS
99
  test -z "$as_dir" && as_dir=.
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101
  done
102
IFS=$as_save_IFS
103
 
104
     ;;
105
esac
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
109
  as_myself=$0
110
fi
111
if test ! -f "$as_myself"; then
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113
  exit 1
114
fi
115
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there.  '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123
done
124
PS1='$ '
125
PS2='> '
126
PS4='+ '
127
 
128
# NLS nuisances.
129
LC_ALL=C
130
export LC_ALL
131
LANGUAGE=C
132
export LANGUAGE
133
 
134
# CDPATH.
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
 
137
# Use a proper internal environment variable to ensure we don't fall
138
  # into an infinite loop, continuously re-executing ourselves.
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
    _as_can_reexec=no; export _as_can_reexec;
141
    # We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
145
BASH_ENV=/dev/null
146
ENV=/dev/null
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
case $- in # ((((
149
  *v*x* | *x*v* ) as_opts=-vx ;;
150
  *v* ) as_opts=-v ;;
151
  *x* ) as_opts=-x ;;
152
  * ) as_opts= ;;
153
esac
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
as_fn_exit 255
159
  fi
160
  # We don't want this to propagate to other subprocesses.
161
          { _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
  emulate sh
165
  NULLCMD=:
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
  # is contrary to our usage.  Disable this feature.
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
  setopt NO_GLOB_SUBST
170
else
171
  case \`(set -o) 2>/dev/null\` in #(
172
  *posix*) :
173
    set -o posix ;; #(
174
  *) :
175
     ;;
176
esac
177
fi
178
"
179
  as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
184
 
185
exitcode=0
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
 
192
else
193
  exitcode=1; echo positional parameters were not saved.
194
fi
195
test x\$exitcode = x0 || exit 1
196
test -x / || exit 1"
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
    PATH=/empty FPATH=/empty; export PATH FPATH
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
  if (eval "$as_required") 2>/dev/null; then :
211
  as_have_required=yes
212
else
213
  as_have_required=no
214
fi
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
 
217
else
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219
as_found=false
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
do
222
  IFS=$as_save_IFS
223
  test -z "$as_dir" && as_dir=.
224
  as_found=:
225
  case $as_dir in #(
226
	 /*)
227
	   for as_base in sh bash ksh sh5; do
228
	     # Try only shells that exist, to save several forks.
229
	     as_shell=$as_dir/$as_base
230
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
  CONFIG_SHELL=$as_shell as_have_required=yes
233
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234
  break 2
235
fi
236
fi
237
	   done;;
238
       esac
239
  as_found=false
240
done
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
  CONFIG_SHELL=$SHELL as_have_required=yes
244
fi; }
245
IFS=$as_save_IFS
246
 
247
 
248
      if test "x$CONFIG_SHELL" != x; then :
249
  export CONFIG_SHELL
250
             # We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
254
BASH_ENV=/dev/null
255
ENV=/dev/null
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257
case $- in # ((((
258
  *v*x* | *x*v* ) as_opts=-vx ;;
259
  *v* ) as_opts=-v ;;
260
  *x* ) as_opts=-x ;;
261
  * ) as_opts= ;;
262
esac
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267
exit 255
268
fi
269
 
270
    if test x$as_have_required = xno; then :
271
  $as_echo "$0: This script requires a shell more modern than all"
272
  $as_echo "$0: the shells that I found on your system."
273
  if test x${ZSH_VERSION+set} = xset ; then
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276
  else
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and mike@hamble.online
278
$0: about your system, including any error possibly output
279
$0: before this message. Then install a modern shell, or
280
$0: manually run the script under such a shell if you do
281
$0: have one."
282
  fi
283
  exit 1
284
fi
285
fi
286
fi
287
SHELL=${CONFIG_SHELL-/bin/sh}
288
export SHELL
289
# Unset more variables known to interfere with behavior of common tools.
290
CLICOLOR_FORCE= GREP_OPTIONS=
291
unset CLICOLOR_FORCE GREP_OPTIONS
292
 
293
## --------------------- ##
294
## M4sh Shell Functions. ##
295
## --------------------- ##
296
# as_fn_unset VAR
297
# ---------------
298
# Portably unset VAR.
299
as_fn_unset ()
300
{
301
  { eval $1=; unset $1;}
302
}
303
as_unset=as_fn_unset
304
 
305
# as_fn_set_status STATUS
306
# -----------------------
307
# Set $? to STATUS, without forking.
308
as_fn_set_status ()
309
{
310
  return $1
311
} # as_fn_set_status
312
 
313
# as_fn_exit STATUS
314
# -----------------
315
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316
as_fn_exit ()
317
{
318
  set +e
319
  as_fn_set_status $1
320
  exit $1
321
} # as_fn_exit
322
 
323
# as_fn_mkdir_p
324
# -------------
325
# Create "$as_dir" as a directory, including parents if necessary.
326
as_fn_mkdir_p ()
327
{
328
 
329
  case $as_dir in #(
330
  -*) as_dir=./$as_dir;;
331
  esac
332
  test -d "$as_dir" || eval $as_mkdir_p || {
333
    as_dirs=
334
    while :; do
335
      case $as_dir in #(
336
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337
      *) as_qdir=$as_dir;;
338
      esac
339
      as_dirs="'$as_qdir' $as_dirs"
340
      as_dir=`$as_dirname -- "$as_dir" ||
341
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342
	 X"$as_dir" : 'X\(//\)[^/]' \| \
343
	 X"$as_dir" : 'X\(//\)$' \| \
344
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345
$as_echo X"$as_dir" |
346
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347
	    s//\1/
348
	    q
349
	  }
350
	  /^X\(\/\/\)[^/].*/{
351
	    s//\1/
352
	    q
353
	  }
354
	  /^X\(\/\/\)$/{
355
	    s//\1/
356
	    q
357
	  }
358
	  /^X\(\/\).*/{
359
	    s//\1/
360
	    q
361
	  }
362
	  s/.*/./; q'`
363
      test -d "$as_dir" && break
364
    done
365
    test -z "$as_dirs" || eval "mkdir $as_dirs"
366
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
 
368
 
369
} # as_fn_mkdir_p
370
 
371
# as_fn_executable_p FILE
372
# -----------------------
373
# Test if FILE is an executable regular file.
374
as_fn_executable_p ()
375
{
376
  test -f "$1" && test -x "$1"
377
} # as_fn_executable_p
378
# as_fn_append VAR VALUE
379
# ----------------------
380
# Append the text in VALUE to the end of the definition contained in VAR. Take
381
# advantage of any shell optimizations that allow amortized linear growth over
382
# repeated appends, instead of the typical quadratic growth present in naive
383
# implementations.
384
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385
  eval 'as_fn_append ()
386
  {
387
    eval $1+=\$2
388
  }'
389
else
390
  as_fn_append ()
391
  {
392
    eval $1=\$$1\$2
393
  }
394
fi # as_fn_append
395
 
396
# as_fn_arith ARG...
397
# ------------------
398
# Perform arithmetic evaluation on the ARGs, and store the result in the
399
# global $as_val. Take advantage of shells that can avoid forks. The arguments
400
# must be portable across $(()) and expr.
401
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402
  eval 'as_fn_arith ()
403
  {
404
    as_val=$(( $* ))
405
  }'
406
else
407
  as_fn_arith ()
408
  {
409
    as_val=`expr "$@" || test $? -eq 1`
410
  }
411
fi # as_fn_arith
412
 
413
 
414
# as_fn_error STATUS ERROR [LINENO LOG_FD]
415
# ----------------------------------------
416
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418
# script with STATUS, using 1 if that was 0.
419
as_fn_error ()
420
{
421
  as_status=$1; test $as_status -eq 0 && as_status=1
422
  if test "$4"; then
423
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425
  fi
426
  $as_echo "$as_me: error: $2" >&2
427
  as_fn_exit $as_status
428
} # as_fn_error
429
 
430
if expr a : '\(a\)' >/dev/null 2>&1 &&
431
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432
  as_expr=expr
433
else
434
  as_expr=false
435
fi
436
 
437
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438
  as_basename=basename
439
else
440
  as_basename=false
441
fi
442
 
443
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444
  as_dirname=dirname
445
else
446
  as_dirname=false
447
fi
448
 
449
as_me=`$as_basename -- "$0" ||
450
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451
	 X"$0" : 'X\(//\)$' \| \
452
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453
$as_echo X/"$0" |
454
    sed '/^.*\/\([^/][^/]*\)\/*$/{
455
	    s//\1/
456
	    q
457
	  }
458
	  /^X\/\(\/\/\)$/{
459
	    s//\1/
460
	    q
461
	  }
462
	  /^X\/\(\/\).*/{
463
	    s//\1/
464
	    q
465
	  }
466
	  s/.*/./; q'`
467
 
468
# Avoid depending upon Character Ranges.
469
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472
as_cr_digits='0123456789'
473
as_cr_alnum=$as_cr_Letters$as_cr_digits
474
 
475
 
476
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481
  sed -n '
482
    p
483
    /[$]LINENO/=
484
  ' <$as_myself |
485
    sed '
486
      s/[$]LINENO.*/&-/
487
      t lineno
488
      b
489
      :lineno
490
      N
491
      :loop
492
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
      t loop
494
      s/-\n.*//
495
    ' >$as_me.lineno &&
496
  chmod +x "$as_me.lineno" ||
497
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
 
499
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
  # already done that, so ensure we don't try to do so again and fall
501
  # in an infinite loop.  This has already happened in practice.
502
  _as_can_reexec=no; export _as_can_reexec
503
  # Don't try to exec as it changes $[0], causing all sort of problems
504
  # (the dirname of $[0] is not the place where we might find the
505
  # original and so on.  Autoconf is especially sensitive to this).
506
  . "./$as_me.lineno"
507
  # Exit status is that of the last command.
508
  exit
509
}
510
 
511
ECHO_C= ECHO_N= ECHO_T=
512
case `echo -n x` in #(((((
513
-n*)
514
  case `echo 'xy\c'` in
515
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516
  xy)  ECHO_C='\c';;
517
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518
       ECHO_T='	';;
519
  esac;;
520
*)
521
  ECHO_N='-n';;
522
esac
523
 
524
rm -f conf$$ conf$$.exe conf$$.file
525
if test -d conf$$.dir; then
526
  rm -f conf$$.dir/conf$$.file
527
else
528
  rm -f conf$$.dir
529
  mkdir conf$$.dir 2>/dev/null
530
fi
531
if (echo >conf$$.file) 2>/dev/null; then
532
  if ln -s conf$$.file conf$$ 2>/dev/null; then
533
    as_ln_s='ln -s'
534
    # ... but there are two gotchas:
535
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537
    # In both cases, we have to default to `cp -pR'.
538
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539
      as_ln_s='cp -pR'
540
  elif ln conf$$.file conf$$ 2>/dev/null; then
541
    as_ln_s=ln
542
  else
543
    as_ln_s='cp -pR'
544
  fi
545
else
546
  as_ln_s='cp -pR'
547
fi
548
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
rmdir conf$$.dir 2>/dev/null
550
 
551
if mkdir -p . 2>/dev/null; then
552
  as_mkdir_p='mkdir -p "$as_dir"'
553
else
554
  test -d ./-p && rmdir ./-p
555
  as_mkdir_p=false
556
fi
557
 
558
as_test_x='test -x'
559
as_executable_p=as_fn_executable_p
560
 
561
# Sed expression to map a string onto a valid CPP name.
562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
 
564
# Sed expression to map a string onto a valid variable name.
565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
 
567
SHELL=${CONFIG_SHELL-/bin/sh}
568
 
569
 
570
test -n "$DJDIR" || exec 7<&0 </dev/null
571
exec 6>&1
572
 
573
# Name of the host.
574
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575
# so uname gets run too.
576
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
 
578
#
579
# Initializations.
580
#
581
ac_default_prefix=/usr/local
582
ac_clean_files=
583
ac_config_libobj_dir=.
584
LIBOBJS=
585
cross_compiling=no
586
subdirs=
587
MFLAGS=
588
MAKEFLAGS=
589
 
590
# Identity of this package.
591
PACKAGE_NAME='metal'
592
PACKAGE_TARNAME='metal'
593
PACKAGE_VERSION='1.2'
594
PACKAGE_STRING='metal 1.2'
595
PACKAGE_BUGREPORT='mike@hamble.online'
596
PACKAGE_URL=''
597
 
598
ac_unique_file="."
599
# Factoring default headers for most tests.
600
ac_includes_default="\
601
#include <stdio.h>
602
#ifdef HAVE_SYS_TYPES_H
603
# include <sys/types.h>
604
#endif
605
#ifdef HAVE_SYS_STAT_H
606
# include <sys/stat.h>
607
#endif
608
#ifdef STDC_HEADERS
609
# include <stdlib.h>
610
# include <stddef.h>
611
#else
612
# ifdef HAVE_STDLIB_H
613
#  include <stdlib.h>
614
# endif
615
#endif
616
#ifdef HAVE_STRING_H
617
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618
#  include <memory.h>
619
# endif
620
# include <string.h>
621
#endif
622
#ifdef HAVE_STRINGS_H
623
# include <strings.h>
624
#endif
625
#ifdef HAVE_INTTYPES_H
626
# include <inttypes.h>
627
#endif
628
#ifdef HAVE_STDINT_H
629
# include <stdint.h>
630
#endif
631
#ifdef HAVE_UNISTD_H
632
# include <unistd.h>
633
#endif"
634
 
635
ac_subst_vars='am__EXEEXT_FALSE
636
am__EXEEXT_TRUE
637
LTLIBOBJS
638
LIBOBJS
639
CXXCPP
640
am__fastdepCXX_FALSE
641
am__fastdepCXX_TRUE
642
CXXDEPMODE
643
ac_ct_CXX
644
CXXFLAGS
645
CXX
646
MAINT
647
MAINTAINER_MODE_FALSE
648
MAINTAINER_MODE_TRUE
649
YFLAGS
650
YACC
651
LEXLIB
652
LEX_OUTPUT_ROOT
653
LEX
654
CPP
655
LT_SYS_LIBRARY_PATH
656
OTOOL64
657
OTOOL
658
LIPO
659
NMEDIT
660
DSYMUTIL
661
MANIFEST_TOOL
662
RANLIB
663
ac_ct_AR
664
AR
665
DLLTOOL
666
OBJDUMP
667
LN_S
668
NM
669
ac_ct_DUMPBIN
670
DUMPBIN
671
LD
672
FGREP
673
EGREP
674
GREP
675
SED
676
am__fastdepCC_FALSE
677
am__fastdepCC_TRUE
678
CCDEPMODE
679
am__nodep
680
AMDEPBACKSLASH
681
AMDEP_FALSE
682
AMDEP_TRUE
683
am__quote
684
am__include
685
DEPDIR
686
OBJEXT
687
EXEEXT
688
ac_ct_CC
689
CPPFLAGS
690
LDFLAGS
691
CFLAGS
692
CC
693
LIBTOOL
694
AM_BACKSLASH
695
AM_DEFAULT_VERBOSITY
696
AM_DEFAULT_V
697
AM_V
698
am__untar
699
am__tar
700
AMTAR
701
am__leading_dot
702
SET_MAKE
703
AWK
704
mkdir_p
705
MKDIR_P
706
INSTALL_STRIP_PROGRAM
707
STRIP
708
install_sh
709
MAKEINFO
710
AUTOHEADER
711
AUTOMAKE
712
AUTOCONF
713
ACLOCAL
714
VERSION
715
PACKAGE
716
CYGPATH_W
717
am__isrc
718
INSTALL_DATA
719
INSTALL_SCRIPT
720
INSTALL_PROGRAM
721
host_os
722
host_vendor
723
host_cpu
724
host
725
build_os
726
build_vendor
727
build_cpu
728
build
729
target_alias
730
host_alias
731
build_alias
732
LIBS
733
ECHO_T
734
ECHO_N
735
ECHO_C
736
DEFS
737
mandir
738
localedir
739
libdir
740
psdir
741
pdfdir
742
dvidir
743
htmldir
744
infodir
745
docdir
746
oldincludedir
747
includedir
748
runstatedir
749
localstatedir
750
sharedstatedir
751
sysconfdir
752
datadir
753
datarootdir
754
libexecdir
755
sbindir
756
bindir
757
program_transform_name
758
prefix
759
exec_prefix
760
PACKAGE_URL
761
PACKAGE_BUGREPORT
762
PACKAGE_STRING
763
PACKAGE_VERSION
764
PACKAGE_TARNAME
765
PACKAGE_NAME
766
PATH_SEPARATOR
767
SHELL'
768
ac_subst_files=''
769
ac_user_opts='
770
enable_option_checking
771
enable_silent_rules
772
enable_shared
773
enable_static
774
with_pic
775
enable_fast_install
776
with_aix_soname
777
enable_dependency_tracking
778
with_gnu_ld
779
with_sysroot
780
enable_libtool_lock
781
enable_maintainer_mode
782
'
783
      ac_precious_vars='build_alias
784
host_alias
785
target_alias
786
CC
787
CFLAGS
788
LDFLAGS
789
LIBS
790
CPPFLAGS
791
LT_SYS_LIBRARY_PATH
792
CPP
793
YACC
794
YFLAGS
795
CXX
796
CXXFLAGS
797
CCC
798
CXXCPP'
799
 
800
 
801
# Initialize some variables set by options.
802
ac_init_help=
803
ac_init_version=false
804
ac_unrecognized_opts=
805
ac_unrecognized_sep=
806
# The variables have the same names as the options, with
807
# dashes changed to underlines.
808
cache_file=/dev/null
809
exec_prefix=NONE
810
no_create=
811
no_recursion=
812
prefix=NONE
813
program_prefix=NONE
814
program_suffix=NONE
815
program_transform_name=s,x,x,
816
silent=
817
site=
818
srcdir=
819
verbose=
820
x_includes=NONE
821
x_libraries=NONE
822
 
823
# Installation directory options.
824
# These are left unexpanded so users can "make install exec_prefix=/foo"
825
# and all the variables that are supposed to be based on exec_prefix
826
# by default will actually change.
827
# Use braces instead of parens because sh, perl, etc. also accept them.
828
# (The list follows the same order as the GNU Coding Standards.)
829
bindir='${exec_prefix}/bin'
830
sbindir='${exec_prefix}/sbin'
831
libexecdir='${exec_prefix}/libexec'
832
datarootdir='${prefix}/share'
833
datadir='${datarootdir}'
834
sysconfdir='${prefix}/etc'
835
sharedstatedir='${prefix}/com'
836
localstatedir='${prefix}/var'
837
runstatedir='${localstatedir}/run'
838
includedir='${prefix}/include'
839
oldincludedir='/usr/include'
840
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841
infodir='${datarootdir}/info'
842
htmldir='${docdir}'
843
dvidir='${docdir}'
844
pdfdir='${docdir}'
845
psdir='${docdir}'
846
libdir='${exec_prefix}/lib'
847
localedir='${datarootdir}/locale'
848
mandir='${datarootdir}/man'
849
 
850
ac_prev=
851
ac_dashdash=
852
for ac_option
853
do
854
  # If the previous option needs an argument, assign it.
855
  if test -n "$ac_prev"; then
856
    eval $ac_prev=\$ac_option
857
    ac_prev=
858
    continue
859
  fi
860
 
861
  case $ac_option in
862
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863
  *=)   ac_optarg= ;;
864
  *)    ac_optarg=yes ;;
865
  esac
866
 
867
  # Accept the important Cygnus configure options, so we can diagnose typos.
868
 
869
  case $ac_dashdash$ac_option in
870
  --)
871
    ac_dashdash=yes ;;
872
 
873
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
874
    ac_prev=bindir ;;
875
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876
    bindir=$ac_optarg ;;
877
 
878
  -build | --build | --buil | --bui | --bu)
879
    ac_prev=build_alias ;;
880
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881
    build_alias=$ac_optarg ;;
882
 
883
  -cache-file | --cache-file | --cache-fil | --cache-fi \
884
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885
    ac_prev=cache_file ;;
886
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888
    cache_file=$ac_optarg ;;
889
 
890
  --config-cache | -C)
891
    cache_file=config.cache ;;
892
 
893
  -datadir | --datadir | --datadi | --datad)
894
    ac_prev=datadir ;;
895
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
896
    datadir=$ac_optarg ;;
897
 
898
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899
  | --dataroo | --dataro | --datar)
900
    ac_prev=datarootdir ;;
901
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903
    datarootdir=$ac_optarg ;;
904
 
905
  -disable-* | --disable-*)
906
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907
    # Reject names that are not valid shell variable names.
908
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909
      as_fn_error $? "invalid feature name: $ac_useropt"
910
    ac_useropt_orig=$ac_useropt
911
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912
    case $ac_user_opts in
913
      *"
914
"enable_$ac_useropt"
915
"*) ;;
916
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917
	 ac_unrecognized_sep=', ';;
918
    esac
919
    eval enable_$ac_useropt=no ;;
920
 
921
  -docdir | --docdir | --docdi | --doc | --do)
922
    ac_prev=docdir ;;
923
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924
    docdir=$ac_optarg ;;
925
 
926
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927
    ac_prev=dvidir ;;
928
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929
    dvidir=$ac_optarg ;;
930
 
931
  -enable-* | --enable-*)
932
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933
    # Reject names that are not valid shell variable names.
934
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935
      as_fn_error $? "invalid feature name: $ac_useropt"
936
    ac_useropt_orig=$ac_useropt
937
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938
    case $ac_user_opts in
939
      *"
940
"enable_$ac_useropt"
941
"*) ;;
942
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943
	 ac_unrecognized_sep=', ';;
944
    esac
945
    eval enable_$ac_useropt=\$ac_optarg ;;
946
 
947
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949
  | --exec | --exe | --ex)
950
    ac_prev=exec_prefix ;;
951
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953
  | --exec=* | --exe=* | --ex=*)
954
    exec_prefix=$ac_optarg ;;
955
 
956
  -gas | --gas | --ga | --g)
957
    # Obsolete; use --with-gas.
958
    with_gas=yes ;;
959
 
960
  -help | --help | --hel | --he | -h)
961
    ac_init_help=long ;;
962
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963
    ac_init_help=recursive ;;
964
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965
    ac_init_help=short ;;
966
 
967
  -host | --host | --hos | --ho)
968
    ac_prev=host_alias ;;
969
  -host=* | --host=* | --hos=* | --ho=*)
970
    host_alias=$ac_optarg ;;
971
 
972
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973
    ac_prev=htmldir ;;
974
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975
  | --ht=*)
976
    htmldir=$ac_optarg ;;
977
 
978
  -includedir | --includedir | --includedi | --included | --include \
979
  | --includ | --inclu | --incl | --inc)
980
    ac_prev=includedir ;;
981
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982
  | --includ=* | --inclu=* | --incl=* | --inc=*)
983
    includedir=$ac_optarg ;;
984
 
985
  -infodir | --infodir | --infodi | --infod | --info | --inf)
986
    ac_prev=infodir ;;
987
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988
    infodir=$ac_optarg ;;
989
 
990
  -libdir | --libdir | --libdi | --libd)
991
    ac_prev=libdir ;;
992
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
993
    libdir=$ac_optarg ;;
994
 
995
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996
  | --libexe | --libex | --libe)
997
    ac_prev=libexecdir ;;
998
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999
  | --libexe=* | --libex=* | --libe=*)
1000
    libexecdir=$ac_optarg ;;
1001
 
1002
  -localedir | --localedir | --localedi | --localed | --locale)
1003
    ac_prev=localedir ;;
1004
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005
    localedir=$ac_optarg ;;
1006
 
1007
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1008
  | --localstate | --localstat | --localsta | --localst | --locals)
1009
    ac_prev=localstatedir ;;
1010
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012
    localstatedir=$ac_optarg ;;
1013
 
1014
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015
    ac_prev=mandir ;;
1016
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017
    mandir=$ac_optarg ;;
1018
 
1019
  -nfp | --nfp | --nf)
1020
    # Obsolete; use --without-fp.
1021
    with_fp=no ;;
1022
 
1023
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024
  | --no-cr | --no-c | -n)
1025
    no_create=yes ;;
1026
 
1027
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029
    no_recursion=yes ;;
1030
 
1031
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033
  | --oldin | --oldi | --old | --ol | --o)
1034
    ac_prev=oldincludedir ;;
1035
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038
    oldincludedir=$ac_optarg ;;
1039
 
1040
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041
    ac_prev=prefix ;;
1042
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043
    prefix=$ac_optarg ;;
1044
 
1045
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046
  | --program-pre | --program-pr | --program-p)
1047
    ac_prev=program_prefix ;;
1048
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050
    program_prefix=$ac_optarg ;;
1051
 
1052
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053
  | --program-suf | --program-su | --program-s)
1054
    ac_prev=program_suffix ;;
1055
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057
    program_suffix=$ac_optarg ;;
1058
 
1059
  -program-transform-name | --program-transform-name \
1060
  | --program-transform-nam | --program-transform-na \
1061
  | --program-transform-n | --program-transform- \
1062
  | --program-transform | --program-transfor \
1063
  | --program-transfo | --program-transf \
1064
  | --program-trans | --program-tran \
1065
  | --progr-tra | --program-tr | --program-t)
1066
    ac_prev=program_transform_name ;;
1067
  -program-transform-name=* | --program-transform-name=* \
1068
  | --program-transform-nam=* | --program-transform-na=* \
1069
  | --program-transform-n=* | --program-transform-=* \
1070
  | --program-transform=* | --program-transfor=* \
1071
  | --program-transfo=* | --program-transf=* \
1072
  | --program-trans=* | --program-tran=* \
1073
  | --progr-tra=* | --program-tr=* | --program-t=*)
1074
    program_transform_name=$ac_optarg ;;
1075
 
1076
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077
    ac_prev=pdfdir ;;
1078
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079
    pdfdir=$ac_optarg ;;
1080
 
1081
  -psdir | --psdir | --psdi | --psd | --ps)
1082
    ac_prev=psdir ;;
1083
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084
    psdir=$ac_optarg ;;
1085
 
1086
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087
  | -silent | --silent | --silen | --sile | --sil)
1088
    silent=yes ;;
1089
 
1090
  -runstatedir | --runstatedir | --runstatedi | --runstated \
1091
  | --runstate | --runstat | --runsta | --runst | --runs \
1092
  | --run | --ru | --r)
1093
    ac_prev=runstatedir ;;
1094
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1095
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1096
  | --run=* | --ru=* | --r=*)
1097
    runstatedir=$ac_optarg ;;
1098
 
1099
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100
    ac_prev=sbindir ;;
1101
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102
  | --sbi=* | --sb=*)
1103
    sbindir=$ac_optarg ;;
1104
 
1105
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107
  | --sharedst | --shareds | --shared | --share | --shar \
1108
  | --sha | --sh)
1109
    ac_prev=sharedstatedir ;;
1110
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113
  | --sha=* | --sh=*)
1114
    sharedstatedir=$ac_optarg ;;
1115
 
1116
  -site | --site | --sit)
1117
    ac_prev=site ;;
1118
  -site=* | --site=* | --sit=*)
1119
    site=$ac_optarg ;;
1120
 
1121
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122
    ac_prev=srcdir ;;
1123
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124
    srcdir=$ac_optarg ;;
1125
 
1126
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127
  | --syscon | --sysco | --sysc | --sys | --sy)
1128
    ac_prev=sysconfdir ;;
1129
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131
    sysconfdir=$ac_optarg ;;
1132
 
1133
  -target | --target | --targe | --targ | --tar | --ta | --t)
1134
    ac_prev=target_alias ;;
1135
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136
    target_alias=$ac_optarg ;;
1137
 
1138
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139
    verbose=yes ;;
1140
 
1141
  -version | --version | --versio | --versi | --vers | -V)
1142
    ac_init_version=: ;;
1143
 
1144
  -with-* | --with-*)
1145
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146
    # Reject names that are not valid shell variable names.
1147
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148
      as_fn_error $? "invalid package name: $ac_useropt"
1149
    ac_useropt_orig=$ac_useropt
1150
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151
    case $ac_user_opts in
1152
      *"
1153
"with_$ac_useropt"
1154
"*) ;;
1155
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156
	 ac_unrecognized_sep=', ';;
1157
    esac
1158
    eval with_$ac_useropt=\$ac_optarg ;;
1159
 
1160
  -without-* | --without-*)
1161
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162
    # Reject names that are not valid shell variable names.
1163
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164
      as_fn_error $? "invalid package name: $ac_useropt"
1165
    ac_useropt_orig=$ac_useropt
1166
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167
    case $ac_user_opts in
1168
      *"
1169
"with_$ac_useropt"
1170
"*) ;;
1171
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172
	 ac_unrecognized_sep=', ';;
1173
    esac
1174
    eval with_$ac_useropt=no ;;
1175
 
1176
  --x)
1177
    # Obsolete; use --with-x.
1178
    with_x=yes ;;
1179
 
1180
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181
  | --x-incl | --x-inc | --x-in | --x-i)
1182
    ac_prev=x_includes ;;
1183
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185
    x_includes=$ac_optarg ;;
1186
 
1187
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189
    ac_prev=x_libraries ;;
1190
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192
    x_libraries=$ac_optarg ;;
1193
 
1194
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1195
Try \`$0 --help' for more information"
1196
    ;;
1197
 
1198
  *=*)
1199
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200
    # Reject names that are not valid shell variable names.
1201
    case $ac_envvar in #(
1202
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1203
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1204
    esac
1205
    eval $ac_envvar=\$ac_optarg
1206
    export $ac_envvar ;;
1207
 
1208
  *)
1209
    # FIXME: should be removed in autoconf 3.0.
1210
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214
    ;;
1215
 
1216
  esac
1217
done
1218
 
1219
if test -n "$ac_prev"; then
1220
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221
  as_fn_error $? "missing argument to $ac_option"
1222
fi
1223
 
1224
if test -n "$ac_unrecognized_opts"; then
1225
  case $enable_option_checking in
1226
    no) ;;
1227
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1228
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229
  esac
1230
fi
1231
 
1232
# Check all directory arguments for consistency.
1233
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234
		datadir sysconfdir sharedstatedir localstatedir includedir \
1235
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236
		libdir localedir mandir runstatedir
1237
do
1238
  eval ac_val=\$$ac_var
1239
  # Remove trailing slashes.
1240
  case $ac_val in
1241
    */ )
1242
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243
      eval $ac_var=\$ac_val;;
1244
  esac
1245
  # Be sure to have absolute directory names.
1246
  case $ac_val in
1247
    [\\/$]* | ?:[\\/]* )  continue;;
1248
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249
  esac
1250
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1251
done
1252
 
1253
# There might be people who depend on the old broken behavior: `$host'
1254
# used to hold the argument of --host etc.
1255
# FIXME: To remove some day.
1256
build=$build_alias
1257
host=$host_alias
1258
target=$target_alias
1259
 
1260
# FIXME: To remove some day.
1261
if test "x$host_alias" != x; then
1262
  if test "x$build_alias" = x; then
1263
    cross_compiling=maybe
1264
  elif test "x$build_alias" != "x$host_alias"; then
1265
    cross_compiling=yes
1266
  fi
1267
fi
1268
 
1269
ac_tool_prefix=
1270
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
 
1272
test "$silent" = yes && exec 6>/dev/null
1273
 
1274
 
1275
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276
ac_ls_di=`ls -di .` &&
1277
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278
  as_fn_error $? "working directory cannot be determined"
1279
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280
  as_fn_error $? "pwd does not report name of working directory"
1281
 
1282
 
1283
# Find the source files, if location was not specified.
1284
if test -z "$srcdir"; then
1285
  ac_srcdir_defaulted=yes
1286
  # Try the directory containing this script, then the parent directory.
1287
  ac_confdir=`$as_dirname -- "$as_myself" ||
1288
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290
	 X"$as_myself" : 'X\(//\)$' \| \
1291
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292
$as_echo X"$as_myself" |
1293
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294
	    s//\1/
1295
	    q
1296
	  }
1297
	  /^X\(\/\/\)[^/].*/{
1298
	    s//\1/
1299
	    q
1300
	  }
1301
	  /^X\(\/\/\)$/{
1302
	    s//\1/
1303
	    q
1304
	  }
1305
	  /^X\(\/\).*/{
1306
	    s//\1/
1307
	    q
1308
	  }
1309
	  s/.*/./; q'`
1310
  srcdir=$ac_confdir
1311
  if test ! -r "$srcdir/$ac_unique_file"; then
1312
    srcdir=..
1313
  fi
1314
else
1315
  ac_srcdir_defaulted=no
1316
fi
1317
if test ! -r "$srcdir/$ac_unique_file"; then
1318
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320
fi
1321
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322
ac_abs_confdir=`(
1323
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324
	pwd)`
1325
# When building in place, set srcdir=.
1326
if test "$ac_abs_confdir" = "$ac_pwd"; then
1327
  srcdir=.
1328
fi
1329
# Remove unnecessary trailing slashes from srcdir.
1330
# Double slashes in file names in object file debugging info
1331
# mess up M-x gdb in Emacs.
1332
case $srcdir in
1333
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334
esac
1335
for ac_var in $ac_precious_vars; do
1336
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337
  eval ac_env_${ac_var}_value=\$${ac_var}
1338
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340
done
1341
 
1342
#
1343
# Report the --help message.
1344
#
1345
if test "$ac_init_help" = "long"; then
1346
  # Omit some internal or obsolete options to make the list less imposing.
1347
  # This message is too long to be a string in the A/UX 3.1 sh.
1348
  cat <<_ACEOF
1349
\`configure' configures metal 1.2 to adapt to many kinds of systems.
1350
 
1351
Usage: $0 [OPTION]... [VAR=VALUE]...
1352
 
1353
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354
VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
 
1356
Defaults for the options are specified in brackets.
1357
 
1358
Configuration:
1359
  -h, --help              display this help and exit
1360
      --help=short        display options specific to this package
1361
      --help=recursive    display the short help of all the included packages
1362
  -V, --version           display version information and exit
1363
  -q, --quiet, --silent   do not print \`checking ...' messages
1364
      --cache-file=FILE   cache test results in FILE [disabled]
1365
  -C, --config-cache      alias for \`--cache-file=config.cache'
1366
  -n, --no-create         do not create output files
1367
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
 
1369
Installation directories:
1370
  --prefix=PREFIX         install architecture-independent files in PREFIX
1371
                          [$ac_default_prefix]
1372
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373
                          [PREFIX]
1374
 
1375
By default, \`make install' will install all the files in
1376
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378
for instance \`--prefix=\$HOME'.
1379
 
1380
For better control, use the options below.
1381
 
1382
Fine tuning of the installation directories:
1383
  --bindir=DIR            user executables [EPREFIX/bin]
1384
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1390
  --libdir=DIR            object code libraries [EPREFIX/lib]
1391
  --includedir=DIR        C header files [PREFIX/include]
1392
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1396
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1398
  --docdir=DIR            documentation root [DATAROOTDIR/doc/metal]
1399
  --htmldir=DIR           html documentation [DOCDIR]
1400
  --dvidir=DIR            dvi documentation [DOCDIR]
1401
  --pdfdir=DIR            pdf documentation [DOCDIR]
1402
  --psdir=DIR             ps documentation [DOCDIR]
1403
_ACEOF
1404
 
1405
  cat <<\_ACEOF
1406
 
1407
Program names:
1408
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1409
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1410
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
 
1412
System types:
1413
  --build=BUILD     configure for building on BUILD [guessed]
1414
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415
_ACEOF
1416
fi
1417
 
1418
if test -n "$ac_init_help"; then
1419
  case $ac_init_help in
1420
     short | recursive ) echo "Configuration of metal 1.2:";;
1421
   esac
1422
  cat <<\_ACEOF
1423
 
1424
Optional Features:
1425
  --disable-option-checking  ignore unrecognized --enable/--with options
1426
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428
  --enable-silent-rules   less verbose build output (undo: "make V=1")
1429
  --disable-silent-rules  verbose build output (undo: "make V=0")
1430
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1431
  --enable-static[=PKGS]  build static libraries [default=yes]
1432
  --enable-fast-install[=PKGS]
1433
                          optimize for fast installation [default=yes]
1434
  --enable-dependency-tracking
1435
                          do not reject slow dependency extractors
1436
  --disable-dependency-tracking
1437
                          speeds up one-time build
1438
  --disable-libtool-lock  avoid locking (might break parallel builds)
1439
  --enable-maintainer-mode
1440
                          enable make rules and dependencies not useful (and
1441
                          sometimes confusing) to the casual installer
1442
 
1443
Optional Packages:
1444
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1447
                          both]
1448
  --with-aix-soname=aix|svr4|both
1449
                          shared library versioning (aka "SONAME") variant to
1450
                          provide on AIX, [default=aix].
1451
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1453
                          compiler's sysroot if not specified).
1454
 
1455
Some influential environment variables:
1456
  CC          C compiler command
1457
  CFLAGS      C compiler flags
1458
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1459
              nonstandard directory <lib dir>
1460
  LIBS        libraries to pass to the linker, e.g. -l<library>
1461
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462
              you have headers in a nonstandard directory <include dir>
1463
  LT_SYS_LIBRARY_PATH
1464
              User-defined run-time library search path.
1465
  CPP         C preprocessor
1466
  YACC        The `Yet Another Compiler Compiler' implementation to use.
1467
              Defaults to the first program found out of: `bison -y', `byacc',
1468
              `yacc'.
1469
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1470
              This script will default YFLAGS to the empty string to avoid a
1471
              default value of `-d' given by some make applications.
1472
  CXX         C++ compiler command
1473
  CXXFLAGS    C++ compiler flags
1474
  CXXCPP      C++ preprocessor
1475
 
1476
Use these variables to override the choices made by `configure' or to help
1477
it to find libraries and programs with nonstandard names/locations.
1478
 
1479
Report bugs to <mike@hamble.online>.
1480
_ACEOF
1481
ac_status=$?
1482
fi
1483
 
1484
if test "$ac_init_help" = "recursive"; then
1485
  # If there are subdirs, report their specific --help.
1486
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487
    test -d "$ac_dir" ||
1488
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489
      continue
1490
    ac_builddir=.
1491
 
1492
case "$ac_dir" in
1493
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494
*)
1495
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496
  # A ".." for each directory in $ac_dir_suffix.
1497
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498
  case $ac_top_builddir_sub in
1499
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501
  esac ;;
1502
esac
1503
ac_abs_top_builddir=$ac_pwd
1504
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505
# for backward compatibility:
1506
ac_top_builddir=$ac_top_build_prefix
1507
 
1508
case $srcdir in
1509
  .)  # We are building in place.
1510
    ac_srcdir=.
1511
    ac_top_srcdir=$ac_top_builddir_sub
1512
    ac_abs_top_srcdir=$ac_pwd ;;
1513
  [\\/]* | ?:[\\/]* )  # Absolute name.
1514
    ac_srcdir=$srcdir$ac_dir_suffix;
1515
    ac_top_srcdir=$srcdir
1516
    ac_abs_top_srcdir=$srcdir ;;
1517
  *) # Relative name.
1518
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521
esac
1522
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
 
1524
    cd "$ac_dir" || { ac_status=$?; continue; }
1525
    # Check for guested configure.
1526
    if test -f "$ac_srcdir/configure.gnu"; then
1527
      echo &&
1528
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529
    elif test -f "$ac_srcdir/configure"; then
1530
      echo &&
1531
      $SHELL "$ac_srcdir/configure" --help=recursive
1532
    else
1533
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534
    fi || ac_status=$?
1535
    cd "$ac_pwd" || { ac_status=$?; break; }
1536
  done
1537
fi
1538
 
1539
test -n "$ac_init_help" && exit $ac_status
1540
if $ac_init_version; then
1541
  cat <<\_ACEOF
1542
metal configure 1.2
1543
generated by GNU Autoconf 2.69
1544
 
1545
Copyright (C) 2012 Free Software Foundation, Inc.
1546
This configure script is free software; the Free Software Foundation
1547
gives unlimited permission to copy, distribute and modify it.
1548
_ACEOF
1549
  exit
1550
fi
1551
 
1552
## ------------------------ ##
1553
## Autoconf initialization. ##
1554
## ------------------------ ##
1555
 
1556
# ac_fn_c_try_compile LINENO
1557
# --------------------------
1558
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559
ac_fn_c_try_compile ()
1560
{
1561
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562
  rm -f conftest.$ac_objext
1563
  if { { ac_try="$ac_compile"
1564
case "(($ac_try" in
1565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566
  *) ac_try_echo=$ac_try;;
1567
esac
1568
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569
$as_echo "$ac_try_echo"; } >&5
1570
  (eval "$ac_compile") 2>conftest.err
1571
  ac_status=$?
1572
  if test -s conftest.err; then
1573
    grep -v '^ *+' conftest.err >conftest.er1
1574
    cat conftest.er1 >&5
1575
    mv -f conftest.er1 conftest.err
1576
  fi
1577
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578
  test $ac_status = 0; } && {
1579
	 test -z "$ac_c_werror_flag" ||
1580
	 test ! -s conftest.err
1581
       } && test -s conftest.$ac_objext; then :
1582
  ac_retval=0
1583
else
1584
  $as_echo "$as_me: failed program was:" >&5
1585
sed 's/^/| /' conftest.$ac_ext >&5
1586
 
1587
	ac_retval=1
1588
fi
1589
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590
  as_fn_set_status $ac_retval
1591
 
1592
} # ac_fn_c_try_compile
1593
 
1594
# ac_fn_c_try_link LINENO
1595
# -----------------------
1596
# Try to link conftest.$ac_ext, and return whether this succeeded.
1597
ac_fn_c_try_link ()
1598
{
1599
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600
  rm -f conftest.$ac_objext conftest$ac_exeext
1601
  if { { ac_try="$ac_link"
1602
case "(($ac_try" in
1603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604
  *) ac_try_echo=$ac_try;;
1605
esac
1606
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607
$as_echo "$ac_try_echo"; } >&5
1608
  (eval "$ac_link") 2>conftest.err
1609
  ac_status=$?
1610
  if test -s conftest.err; then
1611
    grep -v '^ *+' conftest.err >conftest.er1
1612
    cat conftest.er1 >&5
1613
    mv -f conftest.er1 conftest.err
1614
  fi
1615
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616
  test $ac_status = 0; } && {
1617
	 test -z "$ac_c_werror_flag" ||
1618
	 test ! -s conftest.err
1619
       } && test -s conftest$ac_exeext && {
1620
	 test "$cross_compiling" = yes ||
1621
	 test -x conftest$ac_exeext
1622
       }; then :
1623
  ac_retval=0
1624
else
1625
  $as_echo "$as_me: failed program was:" >&5
1626
sed 's/^/| /' conftest.$ac_ext >&5
1627
 
1628
	ac_retval=1
1629
fi
1630
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632
  # interfere with the next link command; also delete a directory that is
1633
  # left behind by Apple's compiler.  We do this before executing the actions.
1634
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636
  as_fn_set_status $ac_retval
1637
 
1638
} # ac_fn_c_try_link
1639
 
1640
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641
# -------------------------------------------------------
1642
# Tests whether HEADER exists and can be compiled using the include files in
1643
# INCLUDES, setting the cache variable VAR accordingly.
1644
ac_fn_c_check_header_compile ()
1645
{
1646
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648
$as_echo_n "checking for $2... " >&6; }
1649
if eval \${$3+:} false; then :
1650
  $as_echo_n "(cached) " >&6
1651
else
1652
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653
/* end confdefs.h.  */
1654
$4
1655
#include <$2>
1656
_ACEOF
1657
if ac_fn_c_try_compile "$LINENO"; then :
1658
  eval "$3=yes"
1659
else
1660
  eval "$3=no"
1661
fi
1662
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663
fi
1664
eval ac_res=\$$3
1665
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666
$as_echo "$ac_res" >&6; }
1667
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668
 
1669
} # ac_fn_c_check_header_compile
1670
 
1671
# ac_fn_c_try_cpp LINENO
1672
# ----------------------
1673
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674
ac_fn_c_try_cpp ()
1675
{
1676
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1678
case "(($ac_try" in
1679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680
  *) ac_try_echo=$ac_try;;
1681
esac
1682
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683
$as_echo "$ac_try_echo"; } >&5
1684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685
  ac_status=$?
1686
  if test -s conftest.err; then
1687
    grep -v '^ *+' conftest.err >conftest.er1
1688
    cat conftest.er1 >&5
1689
    mv -f conftest.er1 conftest.err
1690
  fi
1691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692
  test $ac_status = 0; } > conftest.i && {
1693
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694
	 test ! -s conftest.err
1695
       }; then :
1696
  ac_retval=0
1697
else
1698
  $as_echo "$as_me: failed program was:" >&5
1699
sed 's/^/| /' conftest.$ac_ext >&5
1700
 
1701
    ac_retval=1
1702
fi
1703
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
  as_fn_set_status $ac_retval
1705
 
1706
} # ac_fn_c_try_cpp
1707
 
1708
# ac_fn_c_try_run LINENO
1709
# ----------------------
1710
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711
# that executables *can* be run.
1712
ac_fn_c_try_run ()
1713
{
1714
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715
  if { { ac_try="$ac_link"
1716
case "(($ac_try" in
1717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718
  *) ac_try_echo=$ac_try;;
1719
esac
1720
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721
$as_echo "$ac_try_echo"; } >&5
1722
  (eval "$ac_link") 2>&5
1723
  ac_status=$?
1724
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726
  { { case "(($ac_try" in
1727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728
  *) ac_try_echo=$ac_try;;
1729
esac
1730
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731
$as_echo "$ac_try_echo"; } >&5
1732
  (eval "$ac_try") 2>&5
1733
  ac_status=$?
1734
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735
  test $ac_status = 0; }; }; then :
1736
  ac_retval=0
1737
else
1738
  $as_echo "$as_me: program exited with status $ac_status" >&5
1739
       $as_echo "$as_me: failed program was:" >&5
1740
sed 's/^/| /' conftest.$ac_ext >&5
1741
 
1742
       ac_retval=$ac_status
1743
fi
1744
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
  as_fn_set_status $ac_retval
1747
 
1748
} # ac_fn_c_try_run
1749
 
1750
# ac_fn_c_check_func LINENO FUNC VAR
1751
# ----------------------------------
1752
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1753
ac_fn_c_check_func ()
1754
{
1755
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757
$as_echo_n "checking for $2... " >&6; }
1758
if eval \${$3+:} false; then :
1759
  $as_echo_n "(cached) " >&6
1760
else
1761
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762
/* end confdefs.h.  */
1763
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765
#define $2 innocuous_$2
1766
 
1767
/* System header to define __stub macros and hopefully few prototypes,
1768
    which can conflict with char $2 (); below.
1769
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770
    <limits.h> exists even on freestanding compilers.  */
1771
 
1772
#ifdef __STDC__
1773
# include <limits.h>
1774
#else
1775
# include <assert.h>
1776
#endif
1777
 
1778
#undef $2
1779
 
1780
/* Override any GCC internal prototype to avoid an error.
1781
   Use char because int might match the return type of a GCC
1782
   builtin and then its argument prototype would still apply.  */
1783
#ifdef __cplusplus
1784
extern "C"
1785
#endif
1786
char $2 ();
1787
/* The GNU C library defines this for functions which it implements
1788
    to always fail with ENOSYS.  Some functions are actually named
1789
    something starting with __ and the normal name is an alias.  */
1790
#if defined __stub_$2 || defined __stub___$2
1791
choke me
1792
#endif
1793
 
1794
int
1795
main ()
1796
{
1797
return $2 ();
1798
  ;
1799
  return 0;
1800
}
1801
_ACEOF
1802
if ac_fn_c_try_link "$LINENO"; then :
1803
  eval "$3=yes"
1804
else
1805
  eval "$3=no"
1806
fi
1807
rm -f core conftest.err conftest.$ac_objext \
1808
    conftest$ac_exeext conftest.$ac_ext
1809
fi
1810
eval ac_res=\$$3
1811
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812
$as_echo "$ac_res" >&6; }
1813
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814
 
1815
} # ac_fn_c_check_func
1816
 
1817
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818
# -------------------------------------------------------
1819
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820
# the include files in INCLUDES and setting the cache variable VAR
1821
# accordingly.
1822
ac_fn_c_check_header_mongrel ()
1823
{
1824
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825
  if eval \${$3+:} false; then :
1826
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827
$as_echo_n "checking for $2... " >&6; }
1828
if eval \${$3+:} false; then :
1829
  $as_echo_n "(cached) " >&6
1830
fi
1831
eval ac_res=\$$3
1832
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833
$as_echo "$ac_res" >&6; }
1834
else
1835
  # Is the header compilable?
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837
$as_echo_n "checking $2 usability... " >&6; }
1838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839
/* end confdefs.h.  */
1840
$4
1841
#include <$2>
1842
_ACEOF
1843
if ac_fn_c_try_compile "$LINENO"; then :
1844
  ac_header_compiler=yes
1845
else
1846
  ac_header_compiler=no
1847
fi
1848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850
$as_echo "$ac_header_compiler" >&6; }
1851
 
1852
# Is the header present?
1853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854
$as_echo_n "checking $2 presence... " >&6; }
1855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856
/* end confdefs.h.  */
1857
#include <$2>
1858
_ACEOF
1859
if ac_fn_c_try_cpp "$LINENO"; then :
1860
  ac_header_preproc=yes
1861
else
1862
  ac_header_preproc=no
1863
fi
1864
rm -f conftest.err conftest.i conftest.$ac_ext
1865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866
$as_echo "$ac_header_preproc" >&6; }
1867
 
1868
# So?  What about this header?
1869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870
  yes:no: )
1871
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875
    ;;
1876
  no:yes:* )
1877
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1880
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1881
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1884
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887
( $as_echo "## --------------------------------- ##
1888
## Report this to mike@hamble.online ##
1889
## --------------------------------- ##"
1890
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1891
    ;;
1892
esac
1893
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894
$as_echo_n "checking for $2... " >&6; }
1895
if eval \${$3+:} false; then :
1896
  $as_echo_n "(cached) " >&6
1897
else
1898
  eval "$3=\$ac_header_compiler"
1899
fi
1900
eval ac_res=\$$3
1901
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902
$as_echo "$ac_res" >&6; }
1903
fi
1904
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905
 
1906
} # ac_fn_c_check_header_mongrel
1907
 
1908
# ac_fn_cxx_try_compile LINENO
1909
# ----------------------------
1910
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1911
ac_fn_cxx_try_compile ()
1912
{
1913
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914
  rm -f conftest.$ac_objext
1915
  if { { ac_try="$ac_compile"
1916
case "(($ac_try" in
1917
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918
  *) ac_try_echo=$ac_try;;
1919
esac
1920
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921
$as_echo "$ac_try_echo"; } >&5
1922
  (eval "$ac_compile") 2>conftest.err
1923
  ac_status=$?
1924
  if test -s conftest.err; then
1925
    grep -v '^ *+' conftest.err >conftest.er1
1926
    cat conftest.er1 >&5
1927
    mv -f conftest.er1 conftest.err
1928
  fi
1929
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930
  test $ac_status = 0; } && {
1931
	 test -z "$ac_cxx_werror_flag" ||
1932
	 test ! -s conftest.err
1933
       } && test -s conftest.$ac_objext; then :
1934
  ac_retval=0
1935
else
1936
  $as_echo "$as_me: failed program was:" >&5
1937
sed 's/^/| /' conftest.$ac_ext >&5
1938
 
1939
	ac_retval=1
1940
fi
1941
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
  as_fn_set_status $ac_retval
1943
 
1944
} # ac_fn_cxx_try_compile
1945
 
1946
# ac_fn_cxx_try_cpp LINENO
1947
# ------------------------
1948
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949
ac_fn_cxx_try_cpp ()
1950
{
1951
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1953
case "(($ac_try" in
1954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955
  *) ac_try_echo=$ac_try;;
1956
esac
1957
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958
$as_echo "$ac_try_echo"; } >&5
1959
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960
  ac_status=$?
1961
  if test -s conftest.err; then
1962
    grep -v '^ *+' conftest.err >conftest.er1
1963
    cat conftest.er1 >&5
1964
    mv -f conftest.er1 conftest.err
1965
  fi
1966
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967
  test $ac_status = 0; } > conftest.i && {
1968
	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1969
	 test ! -s conftest.err
1970
       }; then :
1971
  ac_retval=0
1972
else
1973
  $as_echo "$as_me: failed program was:" >&5
1974
sed 's/^/| /' conftest.$ac_ext >&5
1975
 
1976
    ac_retval=1
1977
fi
1978
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
  as_fn_set_status $ac_retval
1980
 
1981
} # ac_fn_cxx_try_cpp
1982
 
1983
# ac_fn_cxx_try_link LINENO
1984
# -------------------------
1985
# Try to link conftest.$ac_ext, and return whether this succeeded.
1986
ac_fn_cxx_try_link ()
1987
{
1988
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989
  rm -f conftest.$ac_objext conftest$ac_exeext
1990
  if { { ac_try="$ac_link"
1991
case "(($ac_try" in
1992
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993
  *) ac_try_echo=$ac_try;;
1994
esac
1995
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996
$as_echo "$ac_try_echo"; } >&5
1997
  (eval "$ac_link") 2>conftest.err
1998
  ac_status=$?
1999
  if test -s conftest.err; then
2000
    grep -v '^ *+' conftest.err >conftest.er1
2001
    cat conftest.er1 >&5
2002
    mv -f conftest.er1 conftest.err
2003
  fi
2004
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005
  test $ac_status = 0; } && {
2006
	 test -z "$ac_cxx_werror_flag" ||
2007
	 test ! -s conftest.err
2008
       } && test -s conftest$ac_exeext && {
2009
	 test "$cross_compiling" = yes ||
2010
	 test -x conftest$ac_exeext
2011
       }; then :
2012
  ac_retval=0
2013
else
2014
  $as_echo "$as_me: failed program was:" >&5
2015
sed 's/^/| /' conftest.$ac_ext >&5
2016
 
2017
	ac_retval=1
2018
fi
2019
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021
  # interfere with the next link command; also delete a directory that is
2022
  # left behind by Apple's compiler.  We do this before executing the actions.
2023
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
  as_fn_set_status $ac_retval
2026
 
2027
} # ac_fn_cxx_try_link
2028
cat >config.log <<_ACEOF
2029
This file contains any messages produced by compilers while
2030
running configure, to aid debugging if configure makes a mistake.
2031
 
2032
It was created by metal $as_me 1.2, which was
2033
generated by GNU Autoconf 2.69.  Invocation command line was
2034
 
2035
  $ $0 $@
2036
 
2037
_ACEOF
2038
exec 5>>config.log
2039
{
2040
cat <<_ASUNAME
2041
## --------- ##
2042
## Platform. ##
2043
## --------- ##
2044
 
2045
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
 
2051
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2053
 
2054
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2055
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2056
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2058
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2059
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2060
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2061
 
2062
_ASUNAME
2063
 
2064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065
for as_dir in $PATH
2066
do
2067
  IFS=$as_save_IFS
2068
  test -z "$as_dir" && as_dir=.
2069
    $as_echo "PATH: $as_dir"
2070
  done
2071
IFS=$as_save_IFS
2072
 
2073
} >&5
2074
 
2075
cat >&5 <<_ACEOF
2076
 
2077
 
2078
## ----------- ##
2079
## Core tests. ##
2080
## ----------- ##
2081
 
2082
_ACEOF
2083
 
2084
 
2085
# Keep a trace of the command line.
2086
# Strip out --no-create and --no-recursion so they do not pile up.
2087
# Strip out --silent because we don't want to record it for future runs.
2088
# Also quote any args containing shell meta-characters.
2089
# Make two passes to allow for proper duplicate-argument suppression.
2090
ac_configure_args=
2091
ac_configure_args0=
2092
ac_configure_args1=
2093
ac_must_keep_next=false
2094
for ac_pass in 1 2
2095
do
2096
  for ac_arg
2097
  do
2098
    case $ac_arg in
2099
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101
    | -silent | --silent | --silen | --sile | --sil)
2102
      continue ;;
2103
    *\'*)
2104
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105
    esac
2106
    case $ac_pass in
2107
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2108
    2)
2109
      as_fn_append ac_configure_args1 " '$ac_arg'"
2110
      if test $ac_must_keep_next = true; then
2111
	ac_must_keep_next=false # Got value, back to normal.
2112
      else
2113
	case $ac_arg in
2114
	  *=* | --config-cache | -C | -disable-* | --disable-* \
2115
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117
	  | -with-* | --with-* | -without-* | --without-* | --x)
2118
	    case "$ac_configure_args0 " in
2119
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120
	    esac
2121
	    ;;
2122
	  -* ) ac_must_keep_next=true ;;
2123
	esac
2124
      fi
2125
      as_fn_append ac_configure_args " '$ac_arg'"
2126
      ;;
2127
    esac
2128
  done
2129
done
2130
{ ac_configure_args0=; unset ac_configure_args0;}
2131
{ ac_configure_args1=; unset ac_configure_args1;}
2132
 
2133
# When interrupted or exit'd, cleanup temporary files, and complete
2134
# config.log.  We remove comments because anyway the quotes in there
2135
# would cause problems or look ugly.
2136
# WARNING: Use '\'' to represent an apostrophe within the trap.
2137
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138
trap 'exit_status=$?
2139
  # Save into config.log some information that might help in debugging.
2140
  {
2141
    echo
2142
 
2143
    $as_echo "## ---------------- ##
2144
## Cache variables. ##
2145
## ---------------- ##"
2146
    echo
2147
    # The following way of writing the cache mishandles newlines in values,
2148
(
2149
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2150
    eval ac_val=\$$ac_var
2151
    case $ac_val in #(
2152
    *${as_nl}*)
2153
      case $ac_var in #(
2154
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2155
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156
      esac
2157
      case $ac_var in #(
2158
      _ | IFS | as_nl) ;; #(
2159
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2160
      *) { eval $ac_var=; unset $ac_var;} ;;
2161
      esac ;;
2162
    esac
2163
  done
2164
  (set) 2>&1 |
2165
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2166
    *${as_nl}ac_space=\ *)
2167
      sed -n \
2168
	"s/'\''/'\''\\\\'\'''\''/g;
2169
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170
      ;; #(
2171
    *)
2172
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2173
      ;;
2174
    esac |
2175
    sort
2176
)
2177
    echo
2178
 
2179
    $as_echo "## ----------------- ##
2180
## Output variables. ##
2181
## ----------------- ##"
2182
    echo
2183
    for ac_var in $ac_subst_vars
2184
    do
2185
      eval ac_val=\$$ac_var
2186
      case $ac_val in
2187
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2188
      esac
2189
      $as_echo "$ac_var='\''$ac_val'\''"
2190
    done | sort
2191
    echo
2192
 
2193
    if test -n "$ac_subst_files"; then
2194
      $as_echo "## ------------------- ##
2195
## File substitutions. ##
2196
## ------------------- ##"
2197
      echo
2198
      for ac_var in $ac_subst_files
2199
      do
2200
	eval ac_val=\$$ac_var
2201
	case $ac_val in
2202
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203
	esac
2204
	$as_echo "$ac_var='\''$ac_val'\''"
2205
      done | sort
2206
      echo
2207
    fi
2208
 
2209
    if test -s confdefs.h; then
2210
      $as_echo "## ----------- ##
2211
## confdefs.h. ##
2212
## ----------- ##"
2213
      echo
2214
      cat confdefs.h
2215
      echo
2216
    fi
2217
    test "$ac_signal" != 0 &&
2218
      $as_echo "$as_me: caught signal $ac_signal"
2219
    $as_echo "$as_me: exit $exit_status"
2220
  } >&5
2221
  rm -f core *.core core.conftest.* &&
2222
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223
    exit $exit_status
2224
' 0
2225
for ac_signal in 1 2 13 15; do
2226
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227
done
2228
ac_signal=0
2229
 
2230
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2231
rm -f -r conftest* confdefs.h
2232
 
2233
$as_echo "/* confdefs.h */" > confdefs.h
2234
 
2235
# Predefined preprocessor variables.
2236
 
2237
cat >>confdefs.h <<_ACEOF
2238
#define PACKAGE_NAME "$PACKAGE_NAME"
2239
_ACEOF
2240
 
2241
cat >>confdefs.h <<_ACEOF
2242
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243
_ACEOF
2244
 
2245
cat >>confdefs.h <<_ACEOF
2246
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2247
_ACEOF
2248
 
2249
cat >>confdefs.h <<_ACEOF
2250
#define PACKAGE_STRING "$PACKAGE_STRING"
2251
_ACEOF
2252
 
2253
cat >>confdefs.h <<_ACEOF
2254
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255
_ACEOF
2256
 
2257
cat >>confdefs.h <<_ACEOF
2258
#define PACKAGE_URL "$PACKAGE_URL"
2259
_ACEOF
2260
 
2261
 
2262
# Let the site file select an alternate cache file if it wants to.
2263
# Prefer an explicitly selected file to automatically selected ones.
2264
ac_site_file1=NONE
2265
ac_site_file2=NONE
2266
if test -n "$CONFIG_SITE"; then
2267
  # We do not want a PATH search for config.site.
2268
  case $CONFIG_SITE in #((
2269
    -*)  ac_site_file1=./$CONFIG_SITE;;
2270
    */*) ac_site_file1=$CONFIG_SITE;;
2271
    *)   ac_site_file1=./$CONFIG_SITE;;
2272
  esac
2273
elif test "x$prefix" != xNONE; then
2274
  ac_site_file1=$prefix/share/config.site
2275
  ac_site_file2=$prefix/etc/config.site
2276
else
2277
  ac_site_file1=$ac_default_prefix/share/config.site
2278
  ac_site_file2=$ac_default_prefix/etc/config.site
2279
fi
2280
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281
do
2282
  test "x$ac_site_file" = xNONE && continue
2283
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2284
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2285
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2286
    sed 's/^/| /' "$ac_site_file" >&5
2287
    . "$ac_site_file" \
2288
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290
as_fn_error $? "failed to load site script $ac_site_file
2291
See \`config.log' for more details" "$LINENO" 5; }
2292
  fi
2293
done
2294
 
2295
if test -r "$cache_file"; then
2296
  # Some versions of bash will fail to source /dev/null (special files
2297
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2298
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2299
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300
$as_echo "$as_me: loading cache $cache_file" >&6;}
2301
    case $cache_file in
2302
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303
      *)                      . "./$cache_file";;
2304
    esac
2305
  fi
2306
else
2307
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308
$as_echo "$as_me: creating cache $cache_file" >&6;}
2309
  >$cache_file
2310
fi
2311
 
2312
# Check that the precious variables saved in the cache have kept the same
2313
# value.
2314
ac_cache_corrupted=false
2315
for ac_var in $ac_precious_vars; do
2316
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317
  eval ac_new_set=\$ac_env_${ac_var}_set
2318
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319
  eval ac_new_val=\$ac_env_${ac_var}_value
2320
  case $ac_old_set,$ac_new_set in
2321
    set,)
2322
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2324
      ac_cache_corrupted=: ;;
2325
    ,set)
2326
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2328
      ac_cache_corrupted=: ;;
2329
    ,);;
2330
    *)
2331
      if test "x$ac_old_val" != "x$ac_new_val"; then
2332
	# differences in whitespace do not lead to failure.
2333
	ac_old_val_w=`echo x $ac_old_val`
2334
	ac_new_val_w=`echo x $ac_new_val`
2335
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338
	  ac_cache_corrupted=:
2339
	else
2340
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342
	  eval $ac_var=\$ac_old_val
2343
	fi
2344
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2345
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2346
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2347
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2348
      fi;;
2349
  esac
2350
  # Pass precious variables to config.status.
2351
  if test "$ac_new_set" = set; then
2352
    case $ac_new_val in
2353
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2354
    *) ac_arg=$ac_var=$ac_new_val ;;
2355
    esac
2356
    case " $ac_configure_args " in
2357
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2358
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2359
    esac
2360
  fi
2361
done
2362
if $ac_cache_corrupted; then
2363
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2368
fi
2369
## -------------------- ##
2370
## Main body of script. ##
2371
## -------------------- ##
2372
 
2373
ac_ext=c
2374
ac_cpp='$CPP $CPPFLAGS'
2375
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
 
2379
 
2380
 
2381
ac_aux_dir=
2382
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2383
  if test -f "$ac_dir/install-sh"; then
2384
    ac_aux_dir=$ac_dir
2385
    ac_install_sh="$ac_aux_dir/install-sh -c"
2386
    break
2387
  elif test -f "$ac_dir/install.sh"; then
2388
    ac_aux_dir=$ac_dir
2389
    ac_install_sh="$ac_aux_dir/install.sh -c"
2390
    break
2391
  elif test -f "$ac_dir/shtool"; then
2392
    ac_aux_dir=$ac_dir
2393
    ac_install_sh="$ac_aux_dir/shtool install -c"
2394
    break
2395
  fi
2396
done
2397
if test -z "$ac_aux_dir"; then
2398
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2399
fi
2400
 
2401
# These three variables are undocumented and unsupported,
2402
# and are intended to be withdrawn in a future Autoconf release.
2403
# They can cause serious problems if a builder's source tree is in a directory
2404
# whose full name contains unusual characters.
2405
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2406
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2407
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2408
 
2409
 
2410
# Make sure we can run config.sub.
2411
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2412
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2413
 
2414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2415
$as_echo_n "checking build system type... " >&6; }
2416
if ${ac_cv_build+:} false; then :
2417
  $as_echo_n "(cached) " >&6
2418
else
2419
  ac_build_alias=$build_alias
2420
test "x$ac_build_alias" = x &&
2421
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2422
test "x$ac_build_alias" = x &&
2423
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2424
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2425
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2426
 
2427
fi
2428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2429
$as_echo "$ac_cv_build" >&6; }
2430
case $ac_cv_build in
2431
*-*-*) ;;
2432
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2433
esac
2434
build=$ac_cv_build
2435
ac_save_IFS=$IFS; IFS='-'
2436
set x $ac_cv_build
2437
shift
2438
build_cpu=$1
2439
build_vendor=$2
2440
shift; shift
2441
# Remember, the first character of IFS is used to create $*,
2442
# except with old shells:
2443
build_os=$*
2444
IFS=$ac_save_IFS
2445
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2446
 
2447
 
2448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2449
$as_echo_n "checking host system type... " >&6; }
2450
if ${ac_cv_host+:} false; then :
2451
  $as_echo_n "(cached) " >&6
2452
else
2453
  if test "x$host_alias" = x; then
2454
  ac_cv_host=$ac_cv_build
2455
else
2456
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2457
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2458
fi
2459
 
2460
fi
2461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2462
$as_echo "$ac_cv_host" >&6; }
2463
case $ac_cv_host in
2464
*-*-*) ;;
2465
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2466
esac
2467
host=$ac_cv_host
2468
ac_save_IFS=$IFS; IFS='-'
2469
set x $ac_cv_host
2470
shift
2471
host_cpu=$1
2472
host_vendor=$2
2473
shift; shift
2474
# Remember, the first character of IFS is used to create $*,
2475
# except with old shells:
2476
host_os=$*
2477
IFS=$ac_save_IFS
2478
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2479
 
2480
 
2481
 
2482
 
2483
 
2484
am__api_version='1.15'
2485
 
2486
# Find a good install program.  We prefer a C program (faster),
2487
# so one script is as good as another.  But avoid the broken or
2488
# incompatible versions:
2489
# SysV /etc/install, /usr/sbin/install
2490
# SunOS /usr/etc/install
2491
# IRIX /sbin/install
2492
# AIX /bin/install
2493
# AmigaOS /C/install, which installs bootblocks on floppy discs
2494
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497
# OS/2's system install, which has a completely different semantic
2498
# ./install, which can be erroneously created by make from ./install.sh.
2499
# Reject install programs that cannot install multiple files.
2500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2502
if test -z "$INSTALL"; then
2503
if ${ac_cv_path_install+:} false; then :
2504
  $as_echo_n "(cached) " >&6
2505
else
2506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507
for as_dir in $PATH
2508
do
2509
  IFS=$as_save_IFS
2510
  test -z "$as_dir" && as_dir=.
2511
    # Account for people who put trailing slashes in PATH elements.
2512
case $as_dir/ in #((
2513
  ./ | .// | /[cC]/* | \
2514
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516
  /usr/ucb/* ) ;;
2517
  *)
2518
    # OSF1 and SCO ODT 3.0 have their own names for install.
2519
    # Don't use installbsd from OSF since it installs stuff as root
2520
    # by default.
2521
    for ac_prog in ginstall scoinst install; do
2522
      for ac_exec_ext in '' $ac_executable_extensions; do
2523
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2524
	  if test $ac_prog = install &&
2525
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526
	    # AIX install.  It has an incompatible calling convention.
2527
	    :
2528
	  elif test $ac_prog = install &&
2529
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530
	    # program-specific install script used by HP pwplus--don't use.
2531
	    :
2532
	  else
2533
	    rm -rf conftest.one conftest.two conftest.dir
2534
	    echo one > conftest.one
2535
	    echo two > conftest.two
2536
	    mkdir conftest.dir
2537
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538
	      test -s conftest.one && test -s conftest.two &&
2539
	      test -s conftest.dir/conftest.one &&
2540
	      test -s conftest.dir/conftest.two
2541
	    then
2542
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543
	      break 3
2544
	    fi
2545
	  fi
2546
	fi
2547
      done
2548
    done
2549
    ;;
2550
esac
2551
 
2552
  done
2553
IFS=$as_save_IFS
2554
 
2555
rm -rf conftest.one conftest.two conftest.dir
2556
 
2557
fi
2558
  if test "${ac_cv_path_install+set}" = set; then
2559
    INSTALL=$ac_cv_path_install
2560
  else
2561
    # As a last resort, use the slow shell script.  Don't cache a
2562
    # value for INSTALL within a source directory, because that will
2563
    # break other packages using the cache if that directory is
2564
    # removed, or if the value is a relative name.
2565
    INSTALL=$ac_install_sh
2566
  fi
2567
fi
2568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569
$as_echo "$INSTALL" >&6; }
2570
 
2571
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572
# It thinks the first close brace ends the variable substitution.
2573
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
 
2575
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
 
2577
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
 
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580
$as_echo_n "checking whether build environment is sane... " >&6; }
2581
# Reject unsafe characters in $srcdir or the absolute working directory
2582
# name.  Accept space and tab only in the latter.
2583
am_lf='
2584
'
2585
case `pwd` in
2586
  *[\\\"\#\$\&\'\`$am_lf]*)
2587
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2588
esac
2589
case $srcdir in
2590
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2591
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2592
esac
2593
 
2594
# Do 'set' in a subshell so we don't clobber the current shell's
2595
# arguments.  Must try -L first in case configure is actually a
2596
# symlink; some systems play weird games with the mod time of symlinks
2597
# (eg FreeBSD returns the mod time of the symlink's containing
2598
# directory).
2599
if (
2600
   am_has_slept=no
2601
   for am_try in 1 2; do
2602
     echo "timestamp, slept: $am_has_slept" > conftest.file
2603
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604
     if test "$*" = "X"; then
2605
	# -L didn't work.
2606
	set X `ls -t "$srcdir/configure" conftest.file`
2607
     fi
2608
     if test "$*" != "X $srcdir/configure conftest.file" \
2609
	&& test "$*" != "X conftest.file $srcdir/configure"; then
2610
 
2611
	# If neither matched, then we have a broken ls.  This can happen
2612
	# if, for instance, CONFIG_SHELL is bash and it inherits a
2613
	# broken ls alias from the environment.  This has actually
2614
	# happened.  Such a system could not be considered "sane".
2615
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2616
  alias in your environment" "$LINENO" 5
2617
     fi
2618
     if test "$2" = conftest.file || test $am_try -eq 2; then
2619
       break
2620
     fi
2621
     # Just in case.
2622
     sleep 1
2623
     am_has_slept=yes
2624
   done
2625
   test "$2" = conftest.file
2626
   )
2627
then
2628
   # Ok.
2629
   :
2630
else
2631
   as_fn_error $? "newly created file is older than distributed files!
2632
Check your system clock" "$LINENO" 5
2633
fi
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635
$as_echo "yes" >&6; }
2636
# If we didn't sleep, we still need to ensure time stamps of config.status and
2637
# generated files are strictly newer.
2638
am_sleep_pid=
2639
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640
  ( sleep 1 ) &
2641
  am_sleep_pid=$!
2642
fi
2643
 
2644
rm -f conftest.file
2645
 
2646
test "$program_prefix" != NONE &&
2647
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2648
# Use a double $ so make ignores it.
2649
test "$program_suffix" != NONE &&
2650
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2651
# Double any \ or $.
2652
# By default was `s,x,x', remove it if useless.
2653
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2654
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2655
 
2656
# Expand $ac_aux_dir to an absolute path.
2657
am_aux_dir=`cd "$ac_aux_dir" && pwd`
2658
 
2659
if test x"${MISSING+set}" != xset; then
2660
  case $am_aux_dir in
2661
  *\ * | *\	*)
2662
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2663
  *)
2664
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2665
  esac
2666
fi
2667
# Use eval to expand $SHELL
2668
if eval "$MISSING --is-lightweight"; then
2669
  am_missing_run="$MISSING "
2670
else
2671
  am_missing_run=
2672
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2674
fi
2675
 
2676
if test x"${install_sh+set}" != xset; then
2677
  case $am_aux_dir in
2678
  *\ * | *\	*)
2679
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2680
  *)
2681
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2682
  esac
2683
fi
2684
 
2685
# Installed binaries are usually stripped using 'strip' when the user
2686
# run "make install-strip".  However 'strip' might not be the right
2687
# tool to use in cross-compilation environments, therefore Automake
2688
# will honor the 'STRIP' environment variable to overrule this program.
2689
if test "$cross_compiling" != no; then
2690
  if test -n "$ac_tool_prefix"; then
2691
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692
set dummy ${ac_tool_prefix}strip; ac_word=$2
2693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694
$as_echo_n "checking for $ac_word... " >&6; }
2695
if ${ac_cv_prog_STRIP+:} false; then :
2696
  $as_echo_n "(cached) " >&6
2697
else
2698
  if test -n "$STRIP"; then
2699
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2700
else
2701
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702
for as_dir in $PATH
2703
do
2704
  IFS=$as_save_IFS
2705
  test -z "$as_dir" && as_dir=.
2706
    for ac_exec_ext in '' $ac_executable_extensions; do
2707
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2709
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710
    break 2
2711
  fi
2712
done
2713
  done
2714
IFS=$as_save_IFS
2715
 
2716
fi
2717
fi
2718
STRIP=$ac_cv_prog_STRIP
2719
if test -n "$STRIP"; then
2720
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721
$as_echo "$STRIP" >&6; }
2722
else
2723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724
$as_echo "no" >&6; }
2725
fi
2726
 
2727
 
2728
fi
2729
if test -z "$ac_cv_prog_STRIP"; then
2730
  ac_ct_STRIP=$STRIP
2731
  # Extract the first word of "strip", so it can be a program name with args.
2732
set dummy strip; ac_word=$2
2733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734
$as_echo_n "checking for $ac_word... " >&6; }
2735
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2736
  $as_echo_n "(cached) " >&6
2737
else
2738
  if test -n "$ac_ct_STRIP"; then
2739
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2740
else
2741
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742
for as_dir in $PATH
2743
do
2744
  IFS=$as_save_IFS
2745
  test -z "$as_dir" && as_dir=.
2746
    for ac_exec_ext in '' $ac_executable_extensions; do
2747
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748
    ac_cv_prog_ac_ct_STRIP="strip"
2749
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750
    break 2
2751
  fi
2752
done
2753
  done
2754
IFS=$as_save_IFS
2755
 
2756
fi
2757
fi
2758
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2759
if test -n "$ac_ct_STRIP"; then
2760
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761
$as_echo "$ac_ct_STRIP" >&6; }
2762
else
2763
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764
$as_echo "no" >&6; }
2765
fi
2766
 
2767
  if test "x$ac_ct_STRIP" = x; then
2768
    STRIP=":"
2769
  else
2770
    case $cross_compiling:$ac_tool_warned in
2771
yes:)
2772
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774
ac_tool_warned=yes ;;
2775
esac
2776
    STRIP=$ac_ct_STRIP
2777
  fi
2778
else
2779
  STRIP="$ac_cv_prog_STRIP"
2780
fi
2781
 
2782
fi
2783
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2784
 
2785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787
if test -z "$MKDIR_P"; then
2788
  if ${ac_cv_path_mkdir+:} false; then :
2789
  $as_echo_n "(cached) " >&6
2790
else
2791
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2793
do
2794
  IFS=$as_save_IFS
2795
  test -z "$as_dir" && as_dir=.
2796
    for ac_prog in mkdir gmkdir; do
2797
	 for ac_exec_ext in '' $ac_executable_extensions; do
2798
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2799
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800
	     'mkdir (GNU coreutils) '* | \
2801
	     'mkdir (coreutils) '* | \
2802
	     'mkdir (fileutils) '4.1*)
2803
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2804
	       break 3;;
2805
	   esac
2806
	 done
2807
       done
2808
  done
2809
IFS=$as_save_IFS
2810
 
2811
fi
2812
 
2813
  test -d ./--version && rmdir ./--version
2814
  if test "${ac_cv_path_mkdir+set}" = set; then
2815
    MKDIR_P="$ac_cv_path_mkdir -p"
2816
  else
2817
    # As a last resort, use the slow shell script.  Don't cache a
2818
    # value for MKDIR_P within a source directory, because that will
2819
    # break other packages using the cache if that directory is
2820
    # removed, or if the value is a relative name.
2821
    MKDIR_P="$ac_install_sh -d"
2822
  fi
2823
fi
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825
$as_echo "$MKDIR_P" >&6; }
2826
 
2827
for ac_prog in gawk mawk nawk awk
2828
do
2829
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2830
set dummy $ac_prog; ac_word=$2
2831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832
$as_echo_n "checking for $ac_word... " >&6; }
2833
if ${ac_cv_prog_AWK+:} false; then :
2834
  $as_echo_n "(cached) " >&6
2835
else
2836
  if test -n "$AWK"; then
2837
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2838
else
2839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840
for as_dir in $PATH
2841
do
2842
  IFS=$as_save_IFS
2843
  test -z "$as_dir" && as_dir=.
2844
    for ac_exec_ext in '' $ac_executable_extensions; do
2845
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2846
    ac_cv_prog_AWK="$ac_prog"
2847
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848
    break 2
2849
  fi
2850
done
2851
  done
2852
IFS=$as_save_IFS
2853
 
2854
fi
2855
fi
2856
AWK=$ac_cv_prog_AWK
2857
if test -n "$AWK"; then
2858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2859
$as_echo "$AWK" >&6; }
2860
else
2861
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862
$as_echo "no" >&6; }
2863
fi
2864
 
2865
 
2866
  test -n "$AWK" && break
2867
done
2868
 
2869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2870
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2871
set x ${MAKE-make}
2872
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2873
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2874
  $as_echo_n "(cached) " >&6
2875
else
2876
  cat >conftest.make <<\_ACEOF
2877
SHELL = /bin/sh
2878
all:
2879
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2880
_ACEOF
2881
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2882
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2883
  *@@@%%%=?*=@@@%%%*)
2884
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2885
  *)
2886
    eval ac_cv_prog_make_${ac_make}_set=no;;
2887
esac
2888
rm -f conftest.make
2889
fi
2890
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2891
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2892
$as_echo "yes" >&6; }
2893
  SET_MAKE=
2894
else
2895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896
$as_echo "no" >&6; }
2897
  SET_MAKE="MAKE=${MAKE-make}"
2898
fi
2899
 
2900
rm -rf .tst 2>/dev/null
2901
mkdir .tst 2>/dev/null
2902
if test -d .tst; then
2903
  am__leading_dot=.
2904
else
2905
  am__leading_dot=_
2906
fi
2907
rmdir .tst 2>/dev/null
2908
 
2909
# Check whether --enable-silent-rules was given.
2910
if test "${enable_silent_rules+set}" = set; then :
2911
  enableval=$enable_silent_rules;
2912
fi
2913
 
2914
case $enable_silent_rules in # (((
2915
  yes) AM_DEFAULT_VERBOSITY=0;;
2916
   no) AM_DEFAULT_VERBOSITY=1;;
2917
    *) AM_DEFAULT_VERBOSITY=1;;
2918
esac
2919
am_make=${MAKE-make}
2920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922
if ${am_cv_make_support_nested_variables+:} false; then :
2923
  $as_echo_n "(cached) " >&6
2924
else
2925
  if $as_echo 'TRUE=$(BAR$(V))
2926
BAR0=false
2927
BAR1=true
2928
V=1
2929
am__doit:
2930
	@$(TRUE)
2931
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932
  am_cv_make_support_nested_variables=yes
2933
else
2934
  am_cv_make_support_nested_variables=no
2935
fi
2936
fi
2937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2939
if test $am_cv_make_support_nested_variables = yes; then
2940
    AM_V='$(V)'
2941
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942
else
2943
  AM_V=$AM_DEFAULT_VERBOSITY
2944
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945
fi
2946
AM_BACKSLASH='\'
2947
 
2948
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950
  # is not polluted with repeated "-I."
2951
  am__isrc=' -I$(srcdir)'
2952
  # test to see if srcdir already configured
2953
  if test -f $srcdir/config.status; then
2954
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955
  fi
2956
fi
2957
 
2958
# test whether we have cygpath
2959
if test -z "$CYGPATH_W"; then
2960
  if (cygpath --version) >/dev/null 2>/dev/null; then
2961
    CYGPATH_W='cygpath -w'
2962
  else
2963
    CYGPATH_W=echo
2964
  fi
2965
fi
2966
 
2967
 
2968
# Define the identity of the package.
2969
 PACKAGE='metal'
2970
 VERSION='1.2'
2971
 
2972
 
2973
cat >>confdefs.h <<_ACEOF
2974
#define PACKAGE "$PACKAGE"
2975
_ACEOF
2976
 
2977
 
2978
cat >>confdefs.h <<_ACEOF
2979
#define VERSION "$VERSION"
2980
_ACEOF
2981
 
2982
# Some tools Automake needs.
2983
 
2984
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985
 
2986
 
2987
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2988
 
2989
 
2990
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991
 
2992
 
2993
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2994
 
2995
 
2996
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2997
 
2998
# For better backward compatibility.  To be removed once Automake 1.9.x
2999
# dies out for good.  For more background, see:
3000
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3001
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3002
mkdir_p='$(MKDIR_P)'
3003
 
3004
# We need awk for the "check" target (and possibly the TAP driver).  The
3005
# system "awk" is bad on some platforms.
3006
# Always define AMTAR for backward compatibility.  Yes, it's still used
3007
# in the wild :-(  We should find a proper way to deprecate it ...
3008
AMTAR='$${TAR-tar}'
3009
 
3010
 
3011
# We'll loop over all known methods to create a tar archive until one works.
3012
_am_tools='gnutar  pax cpio none'
3013
 
3014
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3015
 
3016
 
3017
 
3018
 
3019
 
3020
 
3021
# POSIX will say in a future version that running "rm -f" with no argument
3022
# is OK; and we want to be able to make that assumption in our Makefile
3023
# recipes.  So use an aggressive probe to check that the usage we want is
3024
# actually supported "in the wild" to an acceptable degree.
3025
# See automake bug#10828.
3026
# To make any issue more visible, cause the running configure to be aborted
3027
# by default if the 'rm' program in use doesn't match our expectations; the
3028
# user can still override this though.
3029
if rm -f && rm -fr && rm -rf; then : OK; else
3030
  cat >&2 <<'END'
3031
Oops!
3032
 
3033
Your 'rm' program seems unable to run without file operands specified
3034
on the command line, even when the '-f' option is present.  This is contrary
3035
to the behaviour of most rm programs out there, and not conforming with
3036
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3037
 
3038
Please tell bug-automake@gnu.org about your system, including the value
3039
of your $PATH and any error possibly output before this message.  This
3040
can help us improve future automake versions.
3041
 
3042
END
3043
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3044
    echo 'Configuration will proceed anyway, since you have set the' >&2
3045
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3046
    echo >&2
3047
  else
3048
    cat >&2 <<'END'
3049
Aborting the configuration process, to ensure you take notice of the issue.
3050
 
3051
You can download and install GNU coreutils to get an 'rm' implementation
3052
that behaves properly: <http://www.gnu.org/software/coreutils/>.
3053
 
3054
If you want to complete the configuration process using your problematic
3055
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3056
to "yes", and re-run configure.
3057
 
3058
END
3059
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3060
  fi
3061
fi
3062
 
3063
 
3064
case `pwd` in
3065
  *\ * | *\	*)
3066
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3067
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3068
esac
3069
 
3070
 
3071
 
3072
macro_version='2.4.6'
3073
macro_revision='2.4.6'
3074
 
3075
 
3076
 
3077
 
3078
 
3079
 
3080
 
3081
 
3082
 
3083
 
3084
 
3085
 
3086
 
3087
ltmain=$ac_aux_dir/ltmain.sh
3088
 
3089
# Backslashify metacharacters that are still active within
3090
# double-quoted strings.
3091
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3092
 
3093
# Same as above, but do not quote variable references.
3094
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3095
 
3096
# Sed substitution to delay expansion of an escaped shell variable in a
3097
# double_quote_subst'ed string.
3098
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3099
 
3100
# Sed substitution to delay expansion of an escaped single quote.
3101
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3102
 
3103
# Sed substitution to avoid accidental globbing in evaled expressions
3104
no_glob_subst='s/\*/\\\*/g'
3105
 
3106
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3107
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3108
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3109
 
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3111
$as_echo_n "checking how to print strings... " >&6; }
3112
# Test print first, because it will be a builtin if present.
3113
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3114
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3115
  ECHO='print -r --'
3116
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3117
  ECHO='printf %s\n'
3118
else
3119
  # Use this function as a fallback that always works.
3120
  func_fallback_echo ()
3121
  {
3122
    eval 'cat <<_LTECHO_EOF
3123
$1
3124
_LTECHO_EOF'
3125
  }
3126
  ECHO='func_fallback_echo'
3127
fi
3128
 
3129
# func_echo_all arg...
3130
# Invoke $ECHO with all args, space-separated.
3131
func_echo_all ()
3132
{
3133
    $ECHO ""
3134
}
3135
 
3136
case $ECHO in
3137
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3138
$as_echo "printf" >&6; } ;;
3139
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3140
$as_echo "print -r" >&6; } ;;
3141
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3142
$as_echo "cat" >&6; } ;;
3143
esac
3144
 
3145
 
3146
 
3147
 
3148
 
3149
 
3150
 
3151
 
3152
 
3153
 
3154
 
3155
 
3156
 
3157
 
3158
DEPDIR="${am__leading_dot}deps"
3159
 
3160
ac_config_commands="$ac_config_commands depfiles"
3161
 
3162
 
3163
am_make=${MAKE-make}
3164
cat > confinc << 'END'
3165
am__doit:
3166
	@echo this is the am__doit target
3167
.PHONY: am__doit
3168
END
3169
# If we don't find an include directive, just comment out the code.
3170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3171
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3172
am__include="#"
3173
am__quote=
3174
_am_result=none
3175
# First try GNU make style include.
3176
echo "include confinc" > confmf
3177
# Ignore all kinds of additional output from 'make'.
3178
case `$am_make -s -f confmf 2> /dev/null` in #(
3179
*the\ am__doit\ target*)
3180
  am__include=include
3181
  am__quote=
3182
  _am_result=GNU
3183
  ;;
3184
esac
3185
# Now try BSD make style include.
3186
if test "$am__include" = "#"; then
3187
   echo '.include "confinc"' > confmf
3188
   case `$am_make -s -f confmf 2> /dev/null` in #(
3189
   *the\ am__doit\ target*)
3190
     am__include=.include
3191
     am__quote="\""
3192
     _am_result=BSD
3193
     ;;
3194
   esac
3195
fi
3196
 
3197
 
3198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3199
$as_echo "$_am_result" >&6; }
3200
rm -f confinc confmf
3201
 
3202
# Check whether --enable-dependency-tracking was given.
3203
if test "${enable_dependency_tracking+set}" = set; then :
3204
  enableval=$enable_dependency_tracking;
3205
fi
3206
 
3207
if test "x$enable_dependency_tracking" != xno; then
3208
  am_depcomp="$ac_aux_dir/depcomp"
3209
  AMDEPBACKSLASH='\'
3210
  am__nodep='_no'
3211
fi
3212
 if test "x$enable_dependency_tracking" != xno; then
3213
  AMDEP_TRUE=
3214
  AMDEP_FALSE='#'
3215
else
3216
  AMDEP_TRUE='#'
3217
  AMDEP_FALSE=
3218
fi
3219
 
3220
 
3221
ac_ext=c
3222
ac_cpp='$CPP $CPPFLAGS'
3223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226
if test -n "$ac_tool_prefix"; then
3227
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230
$as_echo_n "checking for $ac_word... " >&6; }
3231
if ${ac_cv_prog_CC+:} false; then :
3232
  $as_echo_n "(cached) " >&6
3233
else
3234
  if test -n "$CC"; then
3235
  ac_cv_prog_CC="$CC" # Let the user override the test.
3236
else
3237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238
for as_dir in $PATH
3239
do
3240
  IFS=$as_save_IFS
3241
  test -z "$as_dir" && as_dir=.
3242
    for ac_exec_ext in '' $ac_executable_extensions; do
3243
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246
    break 2
3247
  fi
3248
done
3249
  done
3250
IFS=$as_save_IFS
3251
 
3252
fi
3253
fi
3254
CC=$ac_cv_prog_CC
3255
if test -n "$CC"; then
3256
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257
$as_echo "$CC" >&6; }
3258
else
3259
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260
$as_echo "no" >&6; }
3261
fi
3262
 
3263
 
3264
fi
3265
if test -z "$ac_cv_prog_CC"; then
3266
  ac_ct_CC=$CC
3267
  # Extract the first word of "gcc", so it can be a program name with args.
3268
set dummy gcc; ac_word=$2
3269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270
$as_echo_n "checking for $ac_word... " >&6; }
3271
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3272
  $as_echo_n "(cached) " >&6
3273
else
3274
  if test -n "$ac_ct_CC"; then
3275
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276
else
3277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278
for as_dir in $PATH
3279
do
3280
  IFS=$as_save_IFS
3281
  test -z "$as_dir" && as_dir=.
3282
    for ac_exec_ext in '' $ac_executable_extensions; do
3283
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284
    ac_cv_prog_ac_ct_CC="gcc"
3285
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286
    break 2
3287
  fi
3288
done
3289
  done
3290
IFS=$as_save_IFS
3291
 
3292
fi
3293
fi
3294
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295
if test -n "$ac_ct_CC"; then
3296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297
$as_echo "$ac_ct_CC" >&6; }
3298
else
3299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300
$as_echo "no" >&6; }
3301
fi
3302
 
3303
  if test "x$ac_ct_CC" = x; then
3304
    CC=""
3305
  else
3306
    case $cross_compiling:$ac_tool_warned in
3307
yes:)
3308
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310
ac_tool_warned=yes ;;
3311
esac
3312
    CC=$ac_ct_CC
3313
  fi
3314
else
3315
  CC="$ac_cv_prog_CC"
3316
fi
3317
 
3318
if test -z "$CC"; then
3319
          if test -n "$ac_tool_prefix"; then
3320
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321
set dummy ${ac_tool_prefix}cc; ac_word=$2
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323
$as_echo_n "checking for $ac_word... " >&6; }
3324
if ${ac_cv_prog_CC+:} false; then :
3325
  $as_echo_n "(cached) " >&6
3326
else
3327
  if test -n "$CC"; then
3328
  ac_cv_prog_CC="$CC" # Let the user override the test.
3329
else
3330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331
for as_dir in $PATH
3332
do
3333
  IFS=$as_save_IFS
3334
  test -z "$as_dir" && as_dir=.
3335
    for ac_exec_ext in '' $ac_executable_extensions; do
3336
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3338
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339
    break 2
3340
  fi
3341
done
3342
  done
3343
IFS=$as_save_IFS
3344
 
3345
fi
3346
fi
3347
CC=$ac_cv_prog_CC
3348
if test -n "$CC"; then
3349
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350
$as_echo "$CC" >&6; }
3351
else
3352
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353
$as_echo "no" >&6; }
3354
fi
3355
 
3356
 
3357
  fi
3358
fi
3359
if test -z "$CC"; then
3360
  # Extract the first word of "cc", so it can be a program name with args.
3361
set dummy cc; ac_word=$2
3362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363
$as_echo_n "checking for $ac_word... " >&6; }
3364
if ${ac_cv_prog_CC+:} false; then :
3365
  $as_echo_n "(cached) " >&6
3366
else
3367
  if test -n "$CC"; then
3368
  ac_cv_prog_CC="$CC" # Let the user override the test.
3369
else
3370
  ac_prog_rejected=no
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372
for as_dir in $PATH
3373
do
3374
  IFS=$as_save_IFS
3375
  test -z "$as_dir" && as_dir=.
3376
    for ac_exec_ext in '' $ac_executable_extensions; do
3377
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379
       ac_prog_rejected=yes
3380
       continue
3381
     fi
3382
    ac_cv_prog_CC="cc"
3383
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384
    break 2
3385
  fi
3386
done
3387
  done
3388
IFS=$as_save_IFS
3389
 
3390
if test $ac_prog_rejected = yes; then
3391
  # We found a bogon in the path, so make sure we never use it.
3392
  set dummy $ac_cv_prog_CC
3393
  shift
3394
  if test $# != 0; then
3395
    # We chose a different compiler from the bogus one.
3396
    # However, it has the same basename, so the bogon will be chosen
3397
    # first if we set CC to just the basename; use the full file name.
3398
    shift
3399
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400
  fi
3401
fi
3402
fi
3403
fi
3404
CC=$ac_cv_prog_CC
3405
if test -n "$CC"; then
3406
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407
$as_echo "$CC" >&6; }
3408
else
3409
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410
$as_echo "no" >&6; }
3411
fi
3412
 
3413
 
3414
fi
3415
if test -z "$CC"; then
3416
  if test -n "$ac_tool_prefix"; then
3417
  for ac_prog in cl.exe
3418
  do
3419
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422
$as_echo_n "checking for $ac_word... " >&6; }
3423
if ${ac_cv_prog_CC+:} false; then :
3424
  $as_echo_n "(cached) " >&6
3425
else
3426
  if test -n "$CC"; then
3427
  ac_cv_prog_CC="$CC" # Let the user override the test.
3428
else
3429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430
for as_dir in $PATH
3431
do
3432
  IFS=$as_save_IFS
3433
  test -z "$as_dir" && as_dir=.
3434
    for ac_exec_ext in '' $ac_executable_extensions; do
3435
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438
    break 2
3439
  fi
3440
done
3441
  done
3442
IFS=$as_save_IFS
3443
 
3444
fi
3445
fi
3446
CC=$ac_cv_prog_CC
3447
if test -n "$CC"; then
3448
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449
$as_echo "$CC" >&6; }
3450
else
3451
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452
$as_echo "no" >&6; }
3453
fi
3454
 
3455
 
3456
    test -n "$CC" && break
3457
  done
3458
fi
3459
if test -z "$CC"; then
3460
  ac_ct_CC=$CC
3461
  for ac_prog in cl.exe
3462
do
3463
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3464
set dummy $ac_prog; ac_word=$2
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466
$as_echo_n "checking for $ac_word... " >&6; }
3467
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3468
  $as_echo_n "(cached) " >&6
3469
else
3470
  if test -n "$ac_ct_CC"; then
3471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472
else
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474
for as_dir in $PATH
3475
do
3476
  IFS=$as_save_IFS
3477
  test -z "$as_dir" && as_dir=.
3478
    for ac_exec_ext in '' $ac_executable_extensions; do
3479
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480
    ac_cv_prog_ac_ct_CC="$ac_prog"
3481
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482
    break 2
3483
  fi
3484
done
3485
  done
3486
IFS=$as_save_IFS
3487
 
3488
fi
3489
fi
3490
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491
if test -n "$ac_ct_CC"; then
3492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493
$as_echo "$ac_ct_CC" >&6; }
3494
else
3495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496
$as_echo "no" >&6; }
3497
fi
3498
 
3499
 
3500
  test -n "$ac_ct_CC" && break
3501
done
3502
 
3503
  if test "x$ac_ct_CC" = x; then
3504
    CC=""
3505
  else
3506
    case $cross_compiling:$ac_tool_warned in
3507
yes:)
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510
ac_tool_warned=yes ;;
3511
esac
3512
    CC=$ac_ct_CC
3513
  fi
3514
fi
3515
 
3516
fi
3517
 
3518
 
3519
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521
as_fn_error $? "no acceptable C compiler found in \$PATH
3522
See \`config.log' for more details" "$LINENO" 5; }
3523
 
3524
# Provide some information about the compiler.
3525
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526
set X $ac_compile
3527
ac_compiler=$2
3528
for ac_option in --version -v -V -qversion; do
3529
  { { ac_try="$ac_compiler $ac_option >&5"
3530
case "(($ac_try" in
3531
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532
  *) ac_try_echo=$ac_try;;
3533
esac
3534
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535
$as_echo "$ac_try_echo"; } >&5
3536
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537
  ac_status=$?
3538
  if test -s conftest.err; then
3539
    sed '10a\
3540
... rest of stderr output deleted ...
3541
         10q' conftest.err >conftest.er1
3542
    cat conftest.er1 >&5
3543
  fi
3544
  rm -f conftest.er1 conftest.err
3545
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546
  test $ac_status = 0; }
3547
done
3548
 
3549
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550
/* end confdefs.h.  */
3551
 
3552
int
3553
main ()
3554
{
3555
 
3556
  ;
3557
  return 0;
3558
}
3559
_ACEOF
3560
ac_clean_files_save=$ac_clean_files
3561
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3562
# Try to create an executable without -o first, disregard a.out.
3563
# It will help us diagnose broken compilers, and finding out an intuition
3564
# of exeext.
3565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3566
$as_echo_n "checking whether the C compiler works... " >&6; }
3567
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
 
3569
# The possible output files:
3570
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
 
3572
ac_rmfiles=
3573
for ac_file in $ac_files
3574
do
3575
  case $ac_file in
3576
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578
  esac
3579
done
3580
rm -f $ac_rmfiles
3581
 
3582
if { { ac_try="$ac_link_default"
3583
case "(($ac_try" in
3584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585
  *) ac_try_echo=$ac_try;;
3586
esac
3587
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588
$as_echo "$ac_try_echo"; } >&5
3589
  (eval "$ac_link_default") 2>&5
3590
  ac_status=$?
3591
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592
  test $ac_status = 0; }; then :
3593
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3596
# so that the user can short-circuit this test for compilers unknown to
3597
# Autoconf.
3598
for ac_file in $ac_files ''
3599
do
3600
  test -f "$ac_file" || continue
3601
  case $ac_file in
3602
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603
	;;
3604
    [ab].out )
3605
	# We found the default executable, but exeext='' is most
3606
	# certainly right.
3607
	break;;
3608
    *.* )
3609
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610
	then :; else
3611
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612
	fi
3613
	# We set ac_cv_exeext here because the later test for it is not
3614
	# safe: cross compilers may not add the suffix if given an `-o'
3615
	# argument, so we may need to know it at that point already.
3616
	# Even if this section looks crufty: it has the advantage of
3617
	# actually working.
3618
	break;;
3619
    * )
3620
	break;;
3621
  esac
3622
done
3623
test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
 
3625
else
3626
  ac_file=''
3627
fi
3628
if test -z "$ac_file"; then :
3629
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630
$as_echo "no" >&6; }
3631
$as_echo "$as_me: failed program was:" >&5
3632
sed 's/^/| /' conftest.$ac_ext >&5
3633
 
3634
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636
as_fn_error 77 "C compiler cannot create executables
3637
See \`config.log' for more details" "$LINENO" 5; }
3638
else
3639
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3640
$as_echo "yes" >&6; }
3641
fi
3642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3643
$as_echo_n "checking for C compiler default output file name... " >&6; }
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3645
$as_echo "$ac_file" >&6; }
3646
ac_exeext=$ac_cv_exeext
3647
 
3648
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3649
ac_clean_files=$ac_clean_files_save
3650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3651
$as_echo_n "checking for suffix of executables... " >&6; }
3652
if { { ac_try="$ac_link"
3653
case "(($ac_try" in
3654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655
  *) ac_try_echo=$ac_try;;
3656
esac
3657
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658
$as_echo "$ac_try_echo"; } >&5
3659
  (eval "$ac_link") 2>&5
3660
  ac_status=$?
3661
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662
  test $ac_status = 0; }; then :
3663
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3664
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3665
# work properly (i.e., refer to `conftest.exe'), while it won't with
3666
# `rm'.
3667
for ac_file in conftest.exe conftest conftest.*; do
3668
  test -f "$ac_file" || continue
3669
  case $ac_file in
3670
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3671
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3672
	  break;;
3673
    * ) break;;
3674
  esac
3675
done
3676
else
3677
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3680
See \`config.log' for more details" "$LINENO" 5; }
3681
fi
3682
rm -f conftest conftest$ac_cv_exeext
3683
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3684
$as_echo "$ac_cv_exeext" >&6; }
3685
 
3686
rm -f conftest.$ac_ext
3687
EXEEXT=$ac_cv_exeext
3688
ac_exeext=$EXEEXT
3689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690
/* end confdefs.h.  */
3691
#include <stdio.h>
3692
int
3693
main ()
3694
{
3695
FILE *f = fopen ("conftest.out", "w");
3696
 return ferror (f) || fclose (f) != 0;
3697
 
3698
  ;
3699
  return 0;
3700
}
3701
_ACEOF
3702
ac_clean_files="$ac_clean_files conftest.out"
3703
# Check that the compiler produces executables we can run.  If not, either
3704
# the compiler is broken, or we cross compile.
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706
$as_echo_n "checking whether we are cross compiling... " >&6; }
3707
if test "$cross_compiling" != yes; then
3708
  { { ac_try="$ac_link"
3709
case "(($ac_try" in
3710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711
  *) ac_try_echo=$ac_try;;
3712
esac
3713
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714
$as_echo "$ac_try_echo"; } >&5
3715
  (eval "$ac_link") 2>&5
3716
  ac_status=$?
3717
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718
  test $ac_status = 0; }
3719
  if { ac_try='./conftest$ac_cv_exeext'
3720
  { { case "(($ac_try" in
3721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722
  *) ac_try_echo=$ac_try;;
3723
esac
3724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725
$as_echo "$ac_try_echo"; } >&5
3726
  (eval "$ac_try") 2>&5
3727
  ac_status=$?
3728
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729
  test $ac_status = 0; }; }; then
3730
    cross_compiling=no
3731
  else
3732
    if test "$cross_compiling" = maybe; then
3733
	cross_compiling=yes
3734
    else
3735
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3736
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3737
as_fn_error $? "cannot run C compiled programs.
3738
If you meant to cross compile, use \`--host'.
3739
See \`config.log' for more details" "$LINENO" 5; }
3740
    fi
3741
  fi
3742
fi
3743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744
$as_echo "$cross_compiling" >&6; }
3745
 
3746
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3747
ac_clean_files=$ac_clean_files_save
3748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3749
$as_echo_n "checking for suffix of object files... " >&6; }
3750
if ${ac_cv_objext+:} false; then :
3751
  $as_echo_n "(cached) " >&6
3752
else
3753
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754
/* end confdefs.h.  */
3755
 
3756
int
3757
main ()
3758
{
3759
 
3760
  ;
3761
  return 0;
3762
}
3763
_ACEOF
3764
rm -f conftest.o conftest.obj
3765
if { { ac_try="$ac_compile"
3766
case "(($ac_try" in
3767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768
  *) ac_try_echo=$ac_try;;
3769
esac
3770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771
$as_echo "$ac_try_echo"; } >&5
3772
  (eval "$ac_compile") 2>&5
3773
  ac_status=$?
3774
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775
  test $ac_status = 0; }; then :
3776
  for ac_file in conftest.o conftest.obj conftest.*; do
3777
  test -f "$ac_file" || continue;
3778
  case $ac_file in
3779
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3780
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3781
       break;;
3782
  esac
3783
done
3784
else
3785
  $as_echo "$as_me: failed program was:" >&5
3786
sed 's/^/| /' conftest.$ac_ext >&5
3787
 
3788
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3789
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3790
as_fn_error $? "cannot compute suffix of object files: cannot compile
3791
See \`config.log' for more details" "$LINENO" 5; }
3792
fi
3793
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3794
fi
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3796
$as_echo "$ac_cv_objext" >&6; }
3797
OBJEXT=$ac_cv_objext
3798
ac_objext=$OBJEXT
3799
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3800
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3801
if ${ac_cv_c_compiler_gnu+:} false; then :
3802
  $as_echo_n "(cached) " >&6
3803
else
3804
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805
/* end confdefs.h.  */
3806
 
3807
int
3808
main ()
3809
{
3810
#ifndef __GNUC__
3811
       choke me
3812
#endif
3813
 
3814
  ;
3815
  return 0;
3816
}
3817
_ACEOF
3818
if ac_fn_c_try_compile "$LINENO"; then :
3819
  ac_compiler_gnu=yes
3820
else
3821
  ac_compiler_gnu=no
3822
fi
3823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3825
 
3826
fi
3827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3828
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3829
if test $ac_compiler_gnu = yes; then
3830
  GCC=yes
3831
else
3832
  GCC=
3833
fi
3834
ac_test_CFLAGS=${CFLAGS+set}
3835
ac_save_CFLAGS=$CFLAGS
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3837
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3838
if ${ac_cv_prog_cc_g+:} false; then :
3839
  $as_echo_n "(cached) " >&6
3840
else
3841
  ac_save_c_werror_flag=$ac_c_werror_flag
3842
   ac_c_werror_flag=yes
3843
   ac_cv_prog_cc_g=no
3844
   CFLAGS="-g"
3845
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846
/* end confdefs.h.  */
3847
 
3848
int
3849
main ()
3850
{
3851
 
3852
  ;
3853
  return 0;
3854
}
3855
_ACEOF
3856
if ac_fn_c_try_compile "$LINENO"; then :
3857
  ac_cv_prog_cc_g=yes
3858
else
3859
  CFLAGS=""
3860
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861
/* end confdefs.h.  */
3862
 
3863
int
3864
main ()
3865
{
3866
 
3867
  ;
3868
  return 0;
3869
}
3870
_ACEOF
3871
if ac_fn_c_try_compile "$LINENO"; then :
3872
 
3873
else
3874
  ac_c_werror_flag=$ac_save_c_werror_flag
3875
	 CFLAGS="-g"
3876
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877
/* end confdefs.h.  */
3878
 
3879
int
3880
main ()
3881
{
3882
 
3883
  ;
3884
  return 0;
3885
}
3886
_ACEOF
3887
if ac_fn_c_try_compile "$LINENO"; then :
3888
  ac_cv_prog_cc_g=yes
3889
fi
3890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891
fi
3892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893
fi
3894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895
   ac_c_werror_flag=$ac_save_c_werror_flag
3896
fi
3897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3898
$as_echo "$ac_cv_prog_cc_g" >&6; }
3899
if test "$ac_test_CFLAGS" = set; then
3900
  CFLAGS=$ac_save_CFLAGS
3901
elif test $ac_cv_prog_cc_g = yes; then
3902
  if test "$GCC" = yes; then
3903
    CFLAGS="-g -O2"
3904
  else
3905
    CFLAGS="-g"
3906
  fi
3907
else
3908
  if test "$GCC" = yes; then
3909
    CFLAGS="-O2"
3910
  else
3911
    CFLAGS=
3912
  fi
3913
fi
3914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3915
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3916
if ${ac_cv_prog_cc_c89+:} false; then :
3917
  $as_echo_n "(cached) " >&6
3918
else
3919
  ac_cv_prog_cc_c89=no
3920
ac_save_CC=$CC
3921
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922
/* end confdefs.h.  */
3923
#include <stdarg.h>
3924
#include <stdio.h>
3925
struct stat;
3926
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3927
struct buf { int x; };
3928
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929
static char *e (p, i)
3930
     char **p;
3931
     int i;
3932
{
3933
  return p[i];
3934
}
3935
static char *f (char * (*g) (char **, int), char **p, ...)
3936
{
3937
  char *s;
3938
  va_list v;
3939
  va_start (v,p);
3940
  s = g (p, va_arg (v,int));
3941
  va_end (v);
3942
  return s;
3943
}
3944
 
3945
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3946
   function prototypes and stuff, but not '\xHH' hex character constants.
3947
   These don't provoke an error unfortunately, instead are silently treated
3948
   as 'x'.  The following induces an error, until -std is added to get
3949
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3950
   array size at least.  It's necessary to write '\x00'==0 to get something
3951
   that's true only with -std.  */
3952
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
 
3954
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955
   inside strings and character constants.  */
3956
#define FOO(x) 'x'
3957
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
 
3959
int test (int i, double x);
3960
struct s1 {int (*f) (int a);};
3961
struct s2 {int (*f) (double a);};
3962
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963
int argc;
3964
char **argv;
3965
int
3966
main ()
3967
{
3968
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3969
  ;
3970
  return 0;
3971
}
3972
_ACEOF
3973
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975
do
3976
  CC="$ac_save_CC $ac_arg"
3977
  if ac_fn_c_try_compile "$LINENO"; then :
3978
  ac_cv_prog_cc_c89=$ac_arg
3979
fi
3980
rm -f core conftest.err conftest.$ac_objext
3981
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3982
done
3983
rm -f conftest.$ac_ext
3984
CC=$ac_save_CC
3985
 
3986
fi
3987
# AC_CACHE_VAL
3988
case "x$ac_cv_prog_cc_c89" in
3989
  x)
3990
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3991
$as_echo "none needed" >&6; } ;;
3992
  xno)
3993
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994
$as_echo "unsupported" >&6; } ;;
3995
  *)
3996
    CC="$CC $ac_cv_prog_cc_c89"
3997
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3998
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3999
esac
4000
if test "x$ac_cv_prog_cc_c89" != xno; then :
4001
 
4002
fi
4003
 
4004
ac_ext=c
4005
ac_cpp='$CPP $CPPFLAGS'
4006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4009
 
4010
ac_ext=c
4011
ac_cpp='$CPP $CPPFLAGS'
4012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4016
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4017
if ${am_cv_prog_cc_c_o+:} false; then :
4018
  $as_echo_n "(cached) " >&6
4019
else
4020
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021
/* end confdefs.h.  */
4022
 
4023
int
4024
main ()
4025
{
4026
 
4027
  ;
4028
  return 0;
4029
}
4030
_ACEOF
4031
  # Make sure it works both with $CC and with simple cc.
4032
  # Following AC_PROG_CC_C_O, we do the test twice because some
4033
  # compilers refuse to overwrite an existing .o file with -o,
4034
  # though they will create one.
4035
  am_cv_prog_cc_c_o=yes
4036
  for am_i in 1 2; do
4037
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4038
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4039
   ac_status=$?
4040
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041
   (exit $ac_status); } \
4042
         && test -f conftest2.$ac_objext; then
4043
      : OK
4044
    else
4045
      am_cv_prog_cc_c_o=no
4046
      break
4047
    fi
4048
  done
4049
  rm -f core conftest*
4050
  unset am_i
4051
fi
4052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4053
$as_echo "$am_cv_prog_cc_c_o" >&6; }
4054
if test "$am_cv_prog_cc_c_o" != yes; then
4055
   # Losing compiler, so override with the script.
4056
   # FIXME: It is wrong to rewrite CC.
4057
   # But if we don't then we get into trouble of one sort or another.
4058
   # A longer-term fix would be to have automake use am__CC in this case,
4059
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4060
   CC="$am_aux_dir/compile $CC"
4061
fi
4062
ac_ext=c
4063
ac_cpp='$CPP $CPPFLAGS'
4064
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067
 
4068
 
4069
depcc="$CC"   am_compiler_list=
4070
 
4071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4072
$as_echo_n "checking dependency style of $depcc... " >&6; }
4073
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4074
  $as_echo_n "(cached) " >&6
4075
else
4076
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4077
  # We make a subdir and do the tests there.  Otherwise we can end up
4078
  # making bogus files that we don't know about and never remove.  For
4079
  # instance it was reported that on HP-UX the gcc test will end up
4080
  # making a dummy file named 'D' -- because '-MD' means "put the output
4081
  # in D".
4082
  rm -rf conftest.dir
4083
  mkdir conftest.dir
4084
  # Copy depcomp to subdir because otherwise we won't find it if we're
4085
  # using a relative directory.
4086
  cp "$am_depcomp" conftest.dir
4087
  cd conftest.dir
4088
  # We will build objects and dependencies in a subdirectory because
4089
  # it helps to detect inapplicable dependency modes.  For instance
4090
  # both Tru64's cc and ICC support -MD to output dependencies as a
4091
  # side effect of compilation, but ICC will put the dependencies in
4092
  # the current directory while Tru64 will put them in the object
4093
  # directory.
4094
  mkdir sub
4095
 
4096
  am_cv_CC_dependencies_compiler_type=none
4097
  if test "$am_compiler_list" = ""; then
4098
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4099
  fi
4100
  am__universal=false
4101
  case " $depcc " in #(
4102
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4103
     esac
4104
 
4105
  for depmode in $am_compiler_list; do
4106
    # Setup a source with many dependencies, because some compilers
4107
    # like to wrap large dependency lists on column 80 (with \), and
4108
    # we should not choose a depcomp mode which is confused by this.
4109
    #
4110
    # We need to recreate these files for each test, as the compiler may
4111
    # overwrite some of them when testing with obscure command lines.
4112
    # This happens at least with the AIX C compiler.
4113
    : > sub/conftest.c
4114
    for i in 1 2 3 4 5 6; do
4115
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4116
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4117
      # Solaris 10 /bin/sh.
4118
      echo '/* dummy */' > sub/conftst$i.h
4119
    done
4120
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4121
 
4122
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4123
    # mode.  It turns out that the SunPro C++ compiler does not properly
4124
    # handle '-M -o', and we need to detect this.  Also, some Intel
4125
    # versions had trouble with output in subdirs.
4126
    am__obj=sub/conftest.${OBJEXT-o}
4127
    am__minus_obj="-o $am__obj"
4128
    case $depmode in
4129
    gcc)
4130
      # This depmode causes a compiler race in universal mode.
4131
      test "$am__universal" = false || continue
4132
      ;;
4133
    nosideeffect)
4134
      # After this tag, mechanisms are not by side-effect, so they'll
4135
      # only be used when explicitly requested.
4136
      if test "x$enable_dependency_tracking" = xyes; then
4137
	continue
4138
      else
4139
	break
4140
      fi
4141
      ;;
4142
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4143
      # This compiler won't grok '-c -o', but also, the minuso test has
4144
      # not run yet.  These depmodes are late enough in the game, and
4145
      # so weak that their functioning should not be impacted.
4146
      am__obj=conftest.${OBJEXT-o}
4147
      am__minus_obj=
4148
      ;;
4149
    none) break ;;
4150
    esac
4151
    if depmode=$depmode \
4152
       source=sub/conftest.c object=$am__obj \
4153
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4154
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4155
         >/dev/null 2>conftest.err &&
4156
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4157
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4158
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4159
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4160
      # icc doesn't choke on unknown options, it will just issue warnings
4161
      # or remarks (even with -Werror).  So we grep stderr for any message
4162
      # that says an option was ignored or not supported.
4163
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4164
      #   icc: Command line warning: ignoring option '-M'; no argument required
4165
      # The diagnosis changed in icc 8.0:
4166
      #   icc: Command line remark: option '-MP' not supported
4167
      if (grep 'ignoring option' conftest.err ||
4168
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4169
        am_cv_CC_dependencies_compiler_type=$depmode
4170
        break
4171
      fi
4172
    fi
4173
  done
4174
 
4175
  cd ..
4176
  rm -rf conftest.dir
4177
else
4178
  am_cv_CC_dependencies_compiler_type=none
4179
fi
4180
 
4181
fi
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4183
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4184
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4185
 
4186
 if
4187
  test "x$enable_dependency_tracking" != xno \
4188
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4189
  am__fastdepCC_TRUE=
4190
  am__fastdepCC_FALSE='#'
4191
else
4192
  am__fastdepCC_TRUE='#'
4193
  am__fastdepCC_FALSE=
4194
fi
4195
 
4196
 
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4198
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4199
if ${ac_cv_path_SED+:} false; then :
4200
  $as_echo_n "(cached) " >&6
4201
else
4202
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4203
     for ac_i in 1 2 3 4 5 6 7; do
4204
       ac_script="$ac_script$as_nl$ac_script"
4205
     done
4206
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4207
     { ac_script=; unset ac_script;}
4208
     if test -z "$SED"; then
4209
  ac_path_SED_found=false
4210
  # Loop through the user's path and test for each of PROGNAME-LIST
4211
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212
for as_dir in $PATH
4213
do
4214
  IFS=$as_save_IFS
4215
  test -z "$as_dir" && as_dir=.
4216
    for ac_prog in sed gsed; do
4217
    for ac_exec_ext in '' $ac_executable_extensions; do
4218
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4219
      as_fn_executable_p "$ac_path_SED" || continue
4220
# Check for GNU ac_path_SED and select it if it is found.
4221
  # Check for GNU $ac_path_SED
4222
case `"$ac_path_SED" --version 2>&1` in
4223
*GNU*)
4224
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4225
*)
4226
  ac_count=0
4227
  $as_echo_n 0123456789 >"conftest.in"
4228
  while :
4229
  do
4230
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4231
    mv "conftest.tmp" "conftest.in"
4232
    cp "conftest.in" "conftest.nl"
4233
    $as_echo '' >> "conftest.nl"
4234
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4237
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4238
      # Best one so far, save it but keep looking for a better one
4239
      ac_cv_path_SED="$ac_path_SED"
4240
      ac_path_SED_max=$ac_count
4241
    fi
4242
    # 10*(2^10) chars as input seems more than enough
4243
    test $ac_count -gt 10 && break
4244
  done
4245
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246
esac
4247
 
4248
      $ac_path_SED_found && break 3
4249
    done
4250
  done
4251
  done
4252
IFS=$as_save_IFS
4253
  if test -z "$ac_cv_path_SED"; then
4254
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4255
  fi
4256
else
4257
  ac_cv_path_SED=$SED
4258
fi
4259
 
4260
fi
4261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4262
$as_echo "$ac_cv_path_SED" >&6; }
4263
 SED="$ac_cv_path_SED"
4264
  rm -f conftest.sed
4265
 
4266
test -z "$SED" && SED=sed
4267
Xsed="$SED -e 1s/^X//"
4268
 
4269
 
4270
 
4271
 
4272
 
4273
 
4274
 
4275
 
4276
 
4277
 
4278
 
4279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4280
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4281
if ${ac_cv_path_GREP+:} false; then :
4282
  $as_echo_n "(cached) " >&6
4283
else
4284
  if test -z "$GREP"; then
4285
  ac_path_GREP_found=false
4286
  # Loop through the user's path and test for each of PROGNAME-LIST
4287
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289
do
4290
  IFS=$as_save_IFS
4291
  test -z "$as_dir" && as_dir=.
4292
    for ac_prog in grep ggrep; do
4293
    for ac_exec_ext in '' $ac_executable_extensions; do
4294
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4295
      as_fn_executable_p "$ac_path_GREP" || continue
4296
# Check for GNU ac_path_GREP and select it if it is found.
4297
  # Check for GNU $ac_path_GREP
4298
case `"$ac_path_GREP" --version 2>&1` in
4299
*GNU*)
4300
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301
*)
4302
  ac_count=0
4303
  $as_echo_n 0123456789 >"conftest.in"
4304
  while :
4305
  do
4306
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4307
    mv "conftest.tmp" "conftest.in"
4308
    cp "conftest.in" "conftest.nl"
4309
    $as_echo 'GREP' >> "conftest.nl"
4310
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4311
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4312
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4313
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4314
      # Best one so far, save it but keep looking for a better one
4315
      ac_cv_path_GREP="$ac_path_GREP"
4316
      ac_path_GREP_max=$ac_count
4317
    fi
4318
    # 10*(2^10) chars as input seems more than enough
4319
    test $ac_count -gt 10 && break
4320
  done
4321
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322
esac
4323
 
4324
      $ac_path_GREP_found && break 3
4325
    done
4326
  done
4327
  done
4328
IFS=$as_save_IFS
4329
  if test -z "$ac_cv_path_GREP"; then
4330
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331
  fi
4332
else
4333
  ac_cv_path_GREP=$GREP
4334
fi
4335
 
4336
fi
4337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4338
$as_echo "$ac_cv_path_GREP" >&6; }
4339
 GREP="$ac_cv_path_GREP"
4340
 
4341
 
4342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4343
$as_echo_n "checking for egrep... " >&6; }
4344
if ${ac_cv_path_EGREP+:} false; then :
4345
  $as_echo_n "(cached) " >&6
4346
else
4347
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4348
   then ac_cv_path_EGREP="$GREP -E"
4349
   else
4350
     if test -z "$EGREP"; then
4351
  ac_path_EGREP_found=false
4352
  # Loop through the user's path and test for each of PROGNAME-LIST
4353
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355
do
4356
  IFS=$as_save_IFS
4357
  test -z "$as_dir" && as_dir=.
4358
    for ac_prog in egrep; do
4359
    for ac_exec_ext in '' $ac_executable_extensions; do
4360
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4361
      as_fn_executable_p "$ac_path_EGREP" || continue
4362
# Check for GNU ac_path_EGREP and select it if it is found.
4363
  # Check for GNU $ac_path_EGREP
4364
case `"$ac_path_EGREP" --version 2>&1` in
4365
*GNU*)
4366
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367
*)
4368
  ac_count=0
4369
  $as_echo_n 0123456789 >"conftest.in"
4370
  while :
4371
  do
4372
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4373
    mv "conftest.tmp" "conftest.in"
4374
    cp "conftest.in" "conftest.nl"
4375
    $as_echo 'EGREP' >> "conftest.nl"
4376
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4377
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4378
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4379
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4380
      # Best one so far, save it but keep looking for a better one
4381
      ac_cv_path_EGREP="$ac_path_EGREP"
4382
      ac_path_EGREP_max=$ac_count
4383
    fi
4384
    # 10*(2^10) chars as input seems more than enough
4385
    test $ac_count -gt 10 && break
4386
  done
4387
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388
esac
4389
 
4390
      $ac_path_EGREP_found && break 3
4391
    done
4392
  done
4393
  done
4394
IFS=$as_save_IFS
4395
  if test -z "$ac_cv_path_EGREP"; then
4396
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4397
  fi
4398
else
4399
  ac_cv_path_EGREP=$EGREP
4400
fi
4401
 
4402
   fi
4403
fi
4404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4405
$as_echo "$ac_cv_path_EGREP" >&6; }
4406
 EGREP="$ac_cv_path_EGREP"
4407
 
4408
 
4409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4410
$as_echo_n "checking for fgrep... " >&6; }
4411
if ${ac_cv_path_FGREP+:} false; then :
4412
  $as_echo_n "(cached) " >&6
4413
else
4414
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4415
   then ac_cv_path_FGREP="$GREP -F"
4416
   else
4417
     if test -z "$FGREP"; then
4418
  ac_path_FGREP_found=false
4419
  # Loop through the user's path and test for each of PROGNAME-LIST
4420
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4422
do
4423
  IFS=$as_save_IFS
4424
  test -z "$as_dir" && as_dir=.
4425
    for ac_prog in fgrep; do
4426
    for ac_exec_ext in '' $ac_executable_extensions; do
4427
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4428
      as_fn_executable_p "$ac_path_FGREP" || continue
4429
# Check for GNU ac_path_FGREP and select it if it is found.
4430
  # Check for GNU $ac_path_FGREP
4431
case `"$ac_path_FGREP" --version 2>&1` in
4432
*GNU*)
4433
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4434
*)
4435
  ac_count=0
4436
  $as_echo_n 0123456789 >"conftest.in"
4437
  while :
4438
  do
4439
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4440
    mv "conftest.tmp" "conftest.in"
4441
    cp "conftest.in" "conftest.nl"
4442
    $as_echo 'FGREP' >> "conftest.nl"
4443
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4446
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4447
      # Best one so far, save it but keep looking for a better one
4448
      ac_cv_path_FGREP="$ac_path_FGREP"
4449
      ac_path_FGREP_max=$ac_count
4450
    fi
4451
    # 10*(2^10) chars as input seems more than enough
4452
    test $ac_count -gt 10 && break
4453
  done
4454
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455
esac
4456
 
4457
      $ac_path_FGREP_found && break 3
4458
    done
4459
  done
4460
  done
4461
IFS=$as_save_IFS
4462
  if test -z "$ac_cv_path_FGREP"; then
4463
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4464
  fi
4465
else
4466
  ac_cv_path_FGREP=$FGREP
4467
fi
4468
 
4469
   fi
4470
fi
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4472
$as_echo "$ac_cv_path_FGREP" >&6; }
4473
 FGREP="$ac_cv_path_FGREP"
4474
 
4475
 
4476
test -z "$GREP" && GREP=grep
4477
 
4478
 
4479
 
4480
 
4481
 
4482
 
4483
 
4484
 
4485
 
4486
 
4487
 
4488
 
4489
 
4490
 
4491
 
4492
 
4493
 
4494
 
4495
 
4496
# Check whether --with-gnu-ld was given.
4497
if test "${with_gnu_ld+set}" = set; then :
4498
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4499
else
4500
  with_gnu_ld=no
4501
fi
4502
 
4503
ac_prog=ld
4504
if test yes = "$GCC"; then
4505
  # Check if gcc -print-prog-name=ld gives a path.
4506
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4507
$as_echo_n "checking for ld used by $CC... " >&6; }
4508
  case $host in
4509
  *-*-mingw*)
4510
    # gcc leaves a trailing carriage return, which upsets mingw
4511
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4512
  *)
4513
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4514
  esac
4515
  case $ac_prog in
4516
    # Accept absolute paths.
4517
    [\\/]* | ?:[\\/]*)
4518
      re_direlt='/[^/][^/]*/\.\./'
4519
      # Canonicalize the pathname of ld
4520
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4521
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4522
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4523
      done
4524
      test -z "$LD" && LD=$ac_prog
4525
      ;;
4526
  "")
4527
    # If it fails, then pretend we aren't using GCC.
4528
    ac_prog=ld
4529
    ;;
4530
  *)
4531
    # If it is relative, then search for the first ld in PATH.
4532
    with_gnu_ld=unknown
4533
    ;;
4534
  esac
4535
elif test yes = "$with_gnu_ld"; then
4536
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4537
$as_echo_n "checking for GNU ld... " >&6; }
4538
else
4539
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4540
$as_echo_n "checking for non-GNU ld... " >&6; }
4541
fi
4542
if ${lt_cv_path_LD+:} false; then :
4543
  $as_echo_n "(cached) " >&6
4544
else
4545
  if test -z "$LD"; then
4546
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4547
  for ac_dir in $PATH; do
4548
    IFS=$lt_save_ifs
4549
    test -z "$ac_dir" && ac_dir=.
4550
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4551
      lt_cv_path_LD=$ac_dir/$ac_prog
4552
      # Check to see if the program is GNU ld.  I'd rather use --version,
4553
      # but apparently some variants of GNU ld only accept -v.
4554
      # Break only if it was the GNU/non-GNU ld that we prefer.
4555
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4556
      *GNU* | *'with BFD'*)
4557
	test no != "$with_gnu_ld" && break
4558
	;;
4559
      *)
4560
	test yes != "$with_gnu_ld" && break
4561
	;;
4562
      esac
4563
    fi
4564
  done
4565
  IFS=$lt_save_ifs
4566
else
4567
  lt_cv_path_LD=$LD # Let the user override the test with a path.
4568
fi
4569
fi
4570
 
4571
LD=$lt_cv_path_LD
4572
if test -n "$LD"; then
4573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4574
$as_echo "$LD" >&6; }
4575
else
4576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577
$as_echo "no" >&6; }
4578
fi
4579
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4581
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4582
if ${lt_cv_prog_gnu_ld+:} false; then :
4583
  $as_echo_n "(cached) " >&6
4584
else
4585
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4586
case `$LD -v 2>&1 </dev/null` in
4587
*GNU* | *'with BFD'*)
4588
  lt_cv_prog_gnu_ld=yes
4589
  ;;
4590
*)
4591
  lt_cv_prog_gnu_ld=no
4592
  ;;
4593
esac
4594
fi
4595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4596
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4597
with_gnu_ld=$lt_cv_prog_gnu_ld
4598
 
4599
 
4600
 
4601
 
4602
 
4603
 
4604
 
4605
 
4606
 
4607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4608
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4609
if ${lt_cv_path_NM+:} false; then :
4610
  $as_echo_n "(cached) " >&6
4611
else
4612
  if test -n "$NM"; then
4613
  # Let the user override the test.
4614
  lt_cv_path_NM=$NM
4615
else
4616
  lt_nm_to_check=${ac_tool_prefix}nm
4617
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4618
    lt_nm_to_check="$lt_nm_to_check nm"
4619
  fi
4620
  for lt_tmp_nm in $lt_nm_to_check; do
4621
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4622
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4623
      IFS=$lt_save_ifs
4624
      test -z "$ac_dir" && ac_dir=.
4625
      tmp_nm=$ac_dir/$lt_tmp_nm
4626
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4627
	# Check to see if the nm accepts a BSD-compat flag.
4628
	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4629
	#   nm: unknown option "B" ignored
4630
	# Tru64's nm complains that /dev/null is an invalid object file
4631
	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4632
	case $build_os in
4633
	mingw*) lt_bad_file=conftest.nm/nofile ;;
4634
	*) lt_bad_file=/dev/null ;;
4635
	esac
4636
	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4637
	*$lt_bad_file* | *'Invalid file or object type'*)
4638
	  lt_cv_path_NM="$tmp_nm -B"
4639
	  break 2
4640
	  ;;
4641
	*)
4642
	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643
	  */dev/null*)
4644
	    lt_cv_path_NM="$tmp_nm -p"
4645
	    break 2
4646
	    ;;
4647
	  *)
4648
	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649
	    continue # so that we can try to find one that supports BSD flags
4650
	    ;;
4651
	  esac
4652
	  ;;
4653
	esac
4654
      fi
4655
    done
4656
    IFS=$lt_save_ifs
4657
  done
4658
  : ${lt_cv_path_NM=no}
4659
fi
4660
fi
4661
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4662
$as_echo "$lt_cv_path_NM" >&6; }
4663
if test no != "$lt_cv_path_NM"; then
4664
  NM=$lt_cv_path_NM
4665
else
4666
  # Didn't find any BSD compatible name lister, look for dumpbin.
4667
  if test -n "$DUMPBIN"; then :
4668
    # Let the user override the test.
4669
  else
4670
    if test -n "$ac_tool_prefix"; then
4671
  for ac_prog in dumpbin "link -dump"
4672
  do
4673
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4674
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676
$as_echo_n "checking for $ac_word... " >&6; }
4677
if ${ac_cv_prog_DUMPBIN+:} false; then :
4678
  $as_echo_n "(cached) " >&6
4679
else
4680
  if test -n "$DUMPBIN"; then
4681
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4682
else
4683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684
for as_dir in $PATH
4685
do
4686
  IFS=$as_save_IFS
4687
  test -z "$as_dir" && as_dir=.
4688
    for ac_exec_ext in '' $ac_executable_extensions; do
4689
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4691
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692
    break 2
4693
  fi
4694
done
4695
  done
4696
IFS=$as_save_IFS
4697
 
4698
fi
4699
fi
4700
DUMPBIN=$ac_cv_prog_DUMPBIN
4701
if test -n "$DUMPBIN"; then
4702
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4703
$as_echo "$DUMPBIN" >&6; }
4704
else
4705
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706
$as_echo "no" >&6; }
4707
fi
4708
 
4709
 
4710
    test -n "$DUMPBIN" && break
4711
  done
4712
fi
4713
if test -z "$DUMPBIN"; then
4714
  ac_ct_DUMPBIN=$DUMPBIN
4715
  for ac_prog in dumpbin "link -dump"
4716
do
4717
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4718
set dummy $ac_prog; ac_word=$2
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720
$as_echo_n "checking for $ac_word... " >&6; }
4721
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4722
  $as_echo_n "(cached) " >&6
4723
else
4724
  if test -n "$ac_ct_DUMPBIN"; then
4725
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4726
else
4727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728
for as_dir in $PATH
4729
do
4730
  IFS=$as_save_IFS
4731
  test -z "$as_dir" && as_dir=.
4732
    for ac_exec_ext in '' $ac_executable_extensions; do
4733
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4735
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736
    break 2
4737
  fi
4738
done
4739
  done
4740
IFS=$as_save_IFS
4741
 
4742
fi
4743
fi
4744
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4745
if test -n "$ac_ct_DUMPBIN"; then
4746
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4747
$as_echo "$ac_ct_DUMPBIN" >&6; }
4748
else
4749
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750
$as_echo "no" >&6; }
4751
fi
4752
 
4753
 
4754
  test -n "$ac_ct_DUMPBIN" && break
4755
done
4756
 
4757
  if test "x$ac_ct_DUMPBIN" = x; then
4758
    DUMPBIN=":"
4759
  else
4760
    case $cross_compiling:$ac_tool_warned in
4761
yes:)
4762
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764
ac_tool_warned=yes ;;
4765
esac
4766
    DUMPBIN=$ac_ct_DUMPBIN
4767
  fi
4768
fi
4769
 
4770
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4771
    *COFF*)
4772
      DUMPBIN="$DUMPBIN -symbols -headers"
4773
      ;;
4774
    *)
4775
      DUMPBIN=:
4776
      ;;
4777
    esac
4778
  fi
4779
 
4780
  if test : != "$DUMPBIN"; then
4781
    NM=$DUMPBIN
4782
  fi
4783
fi
4784
test -z "$NM" && NM=nm
4785
 
4786
 
4787
 
4788
 
4789
 
4790
 
4791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4792
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4793
if ${lt_cv_nm_interface+:} false; then :
4794
  $as_echo_n "(cached) " >&6
4795
else
4796
  lt_cv_nm_interface="BSD nm"
4797
  echo "int some_variable = 0;" > conftest.$ac_ext
4798
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4799
  (eval "$ac_compile" 2>conftest.err)
4800
  cat conftest.err >&5
4801
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4802
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4803
  cat conftest.err >&5
4804
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4805
  cat conftest.out >&5
4806
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4807
    lt_cv_nm_interface="MS dumpbin"
4808
  fi
4809
  rm -f conftest*
4810
fi
4811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4812
$as_echo "$lt_cv_nm_interface" >&6; }
4813
 
4814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4815
$as_echo_n "checking whether ln -s works... " >&6; }
4816
LN_S=$as_ln_s
4817
if test "$LN_S" = "ln -s"; then
4818
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819
$as_echo "yes" >&6; }
4820
else
4821
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4822
$as_echo "no, using $LN_S" >&6; }
4823
fi
4824
 
4825
# find the maximum length of command line arguments
4826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4827
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4828
if ${lt_cv_sys_max_cmd_len+:} false; then :
4829
  $as_echo_n "(cached) " >&6
4830
else
4831
    i=0
4832
  teststring=ABCD
4833
 
4834
  case $build_os in
4835
  msdosdjgpp*)
4836
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4837
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4838
    # during glob expansion).  Even if it were fixed, the result of this
4839
    # check would be larger than it should be.
4840
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4841
    ;;
4842
 
4843
  gnu*)
4844
    # Under GNU Hurd, this test is not required because there is
4845
    # no limit to the length of command line arguments.
4846
    # Libtool will interpret -1 as no limit whatsoever
4847
    lt_cv_sys_max_cmd_len=-1;
4848
    ;;
4849
 
4850
  cygwin* | msys* | mingw* | cegcc*)
4851
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4852
    # about 5 minutes as the teststring grows exponentially.
4853
    # Worse, since 9x/ME are not pre-emptively multitasking,
4854
    # you end up with a "frozen" computer, even though with patience
4855
    # the test eventually succeeds (with a max line length of 256k).
4856
    # Instead, let's just punt: use the minimum linelength reported by
4857
    # all of the supported platforms: 8192 (on NT/2K/XP).
4858
    lt_cv_sys_max_cmd_len=8192;
4859
    ;;
4860
 
4861
  mint*)
4862
    # On MiNT this can take a long time and run out of memory.
4863
    lt_cv_sys_max_cmd_len=8192;
4864
    ;;
4865
 
4866
  amigaos*)
4867
    # On AmigaOS with pdksh, this test takes hours, literally.
4868
    # So we just punt and use a minimum line length of 8192.
4869
    lt_cv_sys_max_cmd_len=8192;
4870
    ;;
4871
 
4872
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4873
    # This has been around since 386BSD, at least.  Likely further.
4874
    if test -x /sbin/sysctl; then
4875
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4876
    elif test -x /usr/sbin/sysctl; then
4877
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4878
    else
4879
      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4880
    fi
4881
    # And add a safety zone
4882
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4883
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4884
    ;;
4885
 
4886
  interix*)
4887
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4888
    lt_cv_sys_max_cmd_len=196608
4889
    ;;
4890
 
4891
  os2*)
4892
    # The test takes a long time on OS/2.
4893
    lt_cv_sys_max_cmd_len=8192
4894
    ;;
4895
 
4896
  osf*)
4897
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4898
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4899
    # nice to cause kernel panics so lets avoid the loop below.
4900
    # First set a reasonable default.
4901
    lt_cv_sys_max_cmd_len=16384
4902
    #
4903
    if test -x /sbin/sysconfig; then
4904
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4905
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4906
      esac
4907
    fi
4908
    ;;
4909
  sco3.2v5*)
4910
    lt_cv_sys_max_cmd_len=102400
4911
    ;;
4912
  sysv5* | sco5v6* | sysv4.2uw2*)
4913
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4914
    if test -n "$kargmax"; then
4915
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4916
    else
4917
      lt_cv_sys_max_cmd_len=32768
4918
    fi
4919
    ;;
4920
  *)
4921
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4922
    if test -n "$lt_cv_sys_max_cmd_len" && \
4923
       test undefined != "$lt_cv_sys_max_cmd_len"; then
4924
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926
    else
4927
      # Make teststring a little bigger before we do anything with it.
4928
      # a 1K string should be a reasonable start.
4929
      for i in 1 2 3 4 5 6 7 8; do
4930
        teststring=$teststring$teststring
4931
      done
4932
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4933
      # If test is not a shell built-in, we'll probably end up computing a
4934
      # maximum length that is only half of the actual maximum length, but
4935
      # we can't tell.
4936
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4937
	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4938
	      test 17 != "$i" # 1/2 MB should be enough
4939
      do
4940
        i=`expr $i + 1`
4941
        teststring=$teststring$teststring
4942
      done
4943
      # Only check the string length outside the loop.
4944
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4945
      teststring=
4946
      # Add a significant safety factor because C++ compilers can tack on
4947
      # massive amounts of additional arguments before passing them to the
4948
      # linker.  It appears as though 1/2 is a usable value.
4949
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4950
    fi
4951
    ;;
4952
  esac
4953
 
4954
fi
4955
 
4956
if test -n "$lt_cv_sys_max_cmd_len"; then
4957
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4958
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4959
else
4960
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4961
$as_echo "none" >&6; }
4962
fi
4963
max_cmd_len=$lt_cv_sys_max_cmd_len
4964
 
4965
 
4966
 
4967
 
4968
 
4969
 
4970
: ${CP="cp -f"}
4971
: ${MV="mv -f"}
4972
: ${RM="rm -f"}
4973
 
4974
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4975
  lt_unset=unset
4976
else
4977
  lt_unset=false
4978
fi
4979
 
4980
 
4981
 
4982
 
4983
 
4984
# test EBCDIC or ASCII
4985
case `echo X|tr X '\101'` in
4986
 A) # ASCII based system
4987
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4988
  lt_SP2NL='tr \040 \012'
4989
  lt_NL2SP='tr \015\012 \040\040'
4990
  ;;
4991
 *) # EBCDIC based system
4992
  lt_SP2NL='tr \100 \n'
4993
  lt_NL2SP='tr \r\n \100\100'
4994
  ;;
4995
esac
4996
 
4997
 
4998
 
4999
 
5000
 
5001
 
5002
 
5003
 
5004
 
5005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5006
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5007
if ${lt_cv_to_host_file_cmd+:} false; then :
5008
  $as_echo_n "(cached) " >&6
5009
else
5010
  case $host in
5011
  *-*-mingw* )
5012
    case $build in
5013
      *-*-mingw* ) # actually msys
5014
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5015
        ;;
5016
      *-*-cygwin* | *-*-msys* )
5017
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5018
        ;;
5019
      * ) # otherwise, assume *nix
5020
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5021
        ;;
5022
    esac
5023
    ;;
5024
  *-*-cygwin* | *-*-msys* )
5025
    case $build in
5026
      *-*-mingw* ) # actually msys
5027
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5028
        ;;
5029
      *-*-cygwin* | *-*-msys* )
5030
        lt_cv_to_host_file_cmd=func_convert_file_noop
5031
        ;;
5032
      * ) # otherwise, assume *nix
5033
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5034
        ;;
5035
    esac
5036
    ;;
5037
  * ) # unhandled hosts (and "normal" native builds)
5038
    lt_cv_to_host_file_cmd=func_convert_file_noop
5039
    ;;
5040
esac
5041
 
5042
fi
5043
 
5044
to_host_file_cmd=$lt_cv_to_host_file_cmd
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5046
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5047
 
5048
 
5049
 
5050
 
5051
 
5052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5053
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5054
if ${lt_cv_to_tool_file_cmd+:} false; then :
5055
  $as_echo_n "(cached) " >&6
5056
else
5057
  #assume ordinary cross tools, or native build.
5058
lt_cv_to_tool_file_cmd=func_convert_file_noop
5059
case $host in
5060
  *-*-mingw* )
5061
    case $build in
5062
      *-*-mingw* ) # actually msys
5063
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5064
        ;;
5065
    esac
5066
    ;;
5067
esac
5068
 
5069
fi
5070
 
5071
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5073
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5074
 
5075
 
5076
 
5077
 
5078
 
5079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5080
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5081
if ${lt_cv_ld_reload_flag+:} false; then :
5082
  $as_echo_n "(cached) " >&6
5083
else
5084
  lt_cv_ld_reload_flag='-r'
5085
fi
5086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5087
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5088
reload_flag=$lt_cv_ld_reload_flag
5089
case $reload_flag in
5090
"" | " "*) ;;
5091
*) reload_flag=" $reload_flag" ;;
5092
esac
5093
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5094
case $host_os in
5095
  cygwin* | msys* | mingw* | pw32* | cegcc*)
5096
    if test yes != "$GCC"; then
5097
      reload_cmds=false
5098
    fi
5099
    ;;
5100
  darwin*)
5101
    if test yes = "$GCC"; then
5102
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5103
    else
5104
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5105
    fi
5106
    ;;
5107
esac
5108
 
5109
 
5110
 
5111
 
5112
 
5113
 
5114
 
5115
 
5116
 
5117
if test -n "$ac_tool_prefix"; then
5118
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5119
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121
$as_echo_n "checking for $ac_word... " >&6; }
5122
if ${ac_cv_prog_OBJDUMP+:} false; then :
5123
  $as_echo_n "(cached) " >&6
5124
else
5125
  if test -n "$OBJDUMP"; then
5126
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5127
else
5128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129
for as_dir in $PATH
5130
do
5131
  IFS=$as_save_IFS
5132
  test -z "$as_dir" && as_dir=.
5133
    for ac_exec_ext in '' $ac_executable_extensions; do
5134
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5136
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137
    break 2
5138
  fi
5139
done
5140
  done
5141
IFS=$as_save_IFS
5142
 
5143
fi
5144
fi
5145
OBJDUMP=$ac_cv_prog_OBJDUMP
5146
if test -n "$OBJDUMP"; then
5147
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5148
$as_echo "$OBJDUMP" >&6; }
5149
else
5150
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151
$as_echo "no" >&6; }
5152
fi
5153
 
5154
 
5155
fi
5156
if test -z "$ac_cv_prog_OBJDUMP"; then
5157
  ac_ct_OBJDUMP=$OBJDUMP
5158
  # Extract the first word of "objdump", so it can be a program name with args.
5159
set dummy objdump; ac_word=$2
5160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161
$as_echo_n "checking for $ac_word... " >&6; }
5162
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5163
  $as_echo_n "(cached) " >&6
5164
else
5165
  if test -n "$ac_ct_OBJDUMP"; then
5166
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5167
else
5168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169
for as_dir in $PATH
5170
do
5171
  IFS=$as_save_IFS
5172
  test -z "$as_dir" && as_dir=.
5173
    for ac_exec_ext in '' $ac_executable_extensions; do
5174
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177
    break 2
5178
  fi
5179
done
5180
  done
5181
IFS=$as_save_IFS
5182
 
5183
fi
5184
fi
5185
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5186
if test -n "$ac_ct_OBJDUMP"; then
5187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5188
$as_echo "$ac_ct_OBJDUMP" >&6; }
5189
else
5190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191
$as_echo "no" >&6; }
5192
fi
5193
 
5194
  if test "x$ac_ct_OBJDUMP" = x; then
5195
    OBJDUMP="false"
5196
  else
5197
    case $cross_compiling:$ac_tool_warned in
5198
yes:)
5199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201
ac_tool_warned=yes ;;
5202
esac
5203
    OBJDUMP=$ac_ct_OBJDUMP
5204
  fi
5205
else
5206
  OBJDUMP="$ac_cv_prog_OBJDUMP"
5207
fi
5208
 
5209
test -z "$OBJDUMP" && OBJDUMP=objdump
5210
 
5211
 
5212
 
5213
 
5214
 
5215
 
5216
 
5217
 
5218
 
5219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5220
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5221
if ${lt_cv_deplibs_check_method+:} false; then :
5222
  $as_echo_n "(cached) " >&6
5223
else
5224
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5225
lt_cv_file_magic_test_file=
5226
lt_cv_deplibs_check_method='unknown'
5227
# Need to set the preceding variable on all platforms that support
5228
# interlibrary dependencies.
5229
# 'none' -- dependencies not supported.
5230
# 'unknown' -- same as none, but documents that we really don't know.
5231
# 'pass_all' -- all dependencies passed with no checks.
5232
# 'test_compile' -- check by making test program.
5233
# 'file_magic [[regex]]' -- check by looking for files in library path
5234
# that responds to the $file_magic_cmd with a given extended regex.
5235
# If you have 'file' or equivalent on your system and you're not sure
5236
# whether 'pass_all' will *always* work, you probably want this one.
5237
 
5238
case $host_os in
5239
aix[4-9]*)
5240
  lt_cv_deplibs_check_method=pass_all
5241
  ;;
5242
 
5243
beos*)
5244
  lt_cv_deplibs_check_method=pass_all
5245
  ;;
5246
 
5247
bsdi[45]*)
5248
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5249
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5250
  lt_cv_file_magic_test_file=/shlib/libc.so
5251
  ;;
5252
 
5253
cygwin* | msys*)
5254
  # func_win32_libid is a shell function defined in ltmain.sh
5255
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5256
  lt_cv_file_magic_cmd='func_win32_libid'
5257
  ;;
5258
 
5259
mingw* | pw32*)
5260
  # Base MSYS/MinGW do not provide the 'file' command needed by
5261
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5262
  # unless we find 'file', for example because we are cross-compiling.
5263
  if ( file / ) >/dev/null 2>&1; then
5264
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5265
    lt_cv_file_magic_cmd='func_win32_libid'
5266
  else
5267
    # Keep this pattern in sync with the one in func_win32_libid.
5268
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5269
    lt_cv_file_magic_cmd='$OBJDUMP -f'
5270
  fi
5271
  ;;
5272
 
5273
cegcc*)
5274
  # use the weaker test based on 'objdump'. See mingw*.
5275
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5276
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5277
  ;;
5278
 
5279
darwin* | rhapsody*)
5280
  lt_cv_deplibs_check_method=pass_all
5281
  ;;
5282
 
5283
freebsd* | dragonfly*)
5284
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5285
    case $host_cpu in
5286
    i*86 )
5287
      # Not sure whether the presence of OpenBSD here was a mistake.
5288
      # Let's accept both of them until this is cleared up.
5289
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5290
      lt_cv_file_magic_cmd=/usr/bin/file
5291
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5292
      ;;
5293
    esac
5294
  else
5295
    lt_cv_deplibs_check_method=pass_all
5296
  fi
5297
  ;;
5298
 
5299
haiku*)
5300
  lt_cv_deplibs_check_method=pass_all
5301
  ;;
5302
 
5303
hpux10.20* | hpux11*)
5304
  lt_cv_file_magic_cmd=/usr/bin/file
5305
  case $host_cpu in
5306
  ia64*)
5307
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5308
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5309
    ;;
5310
  hppa*64*)
5311
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5312
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5313
    ;;
5314
  *)
5315
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5316
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5317
    ;;
5318
  esac
5319
  ;;
5320
 
5321
interix[3-9]*)
5322
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5323
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5324
  ;;
5325
 
5326
irix5* | irix6* | nonstopux*)
5327
  case $LD in
5328
  *-32|*"-32 ") libmagic=32-bit;;
5329
  *-n32|*"-n32 ") libmagic=N32;;
5330
  *-64|*"-64 ") libmagic=64-bit;;
5331
  *) libmagic=never-match;;
5332
  esac
5333
  lt_cv_deplibs_check_method=pass_all
5334
  ;;
5335
 
5336
# This must be glibc/ELF.
5337
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5338
  lt_cv_deplibs_check_method=pass_all
5339
  ;;
5340
 
5341
netbsd*)
5342
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5343
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5344
  else
5345
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5346
  fi
5347
  ;;
5348
 
5349
newos6*)
5350
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5351
  lt_cv_file_magic_cmd=/usr/bin/file
5352
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5353
  ;;
5354
 
5355
*nto* | *qnx*)
5356
  lt_cv_deplibs_check_method=pass_all
5357
  ;;
5358
 
5359
openbsd* | bitrig*)
5360
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5361
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5362
  else
5363
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5364
  fi
5365
  ;;
5366
 
5367
osf3* | osf4* | osf5*)
5368
  lt_cv_deplibs_check_method=pass_all
5369
  ;;
5370
 
5371
rdos*)
5372
  lt_cv_deplibs_check_method=pass_all
5373
  ;;
5374
 
5375
solaris*)
5376
  lt_cv_deplibs_check_method=pass_all
5377
  ;;
5378
 
5379
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5380
  lt_cv_deplibs_check_method=pass_all
5381
  ;;
5382
 
5383
sysv4 | sysv4.3*)
5384
  case $host_vendor in
5385
  motorola)
5386
    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]'
5387
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5388
    ;;
5389
  ncr)
5390
    lt_cv_deplibs_check_method=pass_all
5391
    ;;
5392
  sequent)
5393
    lt_cv_file_magic_cmd='/bin/file'
5394
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5395
    ;;
5396
  sni)
5397
    lt_cv_file_magic_cmd='/bin/file'
5398
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5399
    lt_cv_file_magic_test_file=/lib/libc.so
5400
    ;;
5401
  siemens)
5402
    lt_cv_deplibs_check_method=pass_all
5403
    ;;
5404
  pc)
5405
    lt_cv_deplibs_check_method=pass_all
5406
    ;;
5407
  esac
5408
  ;;
5409
 
5410
tpf*)
5411
  lt_cv_deplibs_check_method=pass_all
5412
  ;;
5413
os2*)
5414
  lt_cv_deplibs_check_method=pass_all
5415
  ;;
5416
esac
5417
 
5418
fi
5419
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5420
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5421
 
5422
file_magic_glob=
5423
want_nocaseglob=no
5424
if test "$build" = "$host"; then
5425
  case $host_os in
5426
  mingw* | pw32*)
5427
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5428
      want_nocaseglob=yes
5429
    else
5430
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5431
    fi
5432
    ;;
5433
  esac
5434
fi
5435
 
5436
file_magic_cmd=$lt_cv_file_magic_cmd
5437
deplibs_check_method=$lt_cv_deplibs_check_method
5438
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
if test -n "$ac_tool_prefix"; then
5462
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5463
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5464
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465
$as_echo_n "checking for $ac_word... " >&6; }
5466
if ${ac_cv_prog_DLLTOOL+:} false; then :
5467
  $as_echo_n "(cached) " >&6
5468
else
5469
  if test -n "$DLLTOOL"; then
5470
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5471
else
5472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473
for as_dir in $PATH
5474
do
5475
  IFS=$as_save_IFS
5476
  test -z "$as_dir" && as_dir=.
5477
    for ac_exec_ext in '' $ac_executable_extensions; do
5478
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5480
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481
    break 2
5482
  fi
5483
done
5484
  done
5485
IFS=$as_save_IFS
5486
 
5487
fi
5488
fi
5489
DLLTOOL=$ac_cv_prog_DLLTOOL
5490
if test -n "$DLLTOOL"; then
5491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5492
$as_echo "$DLLTOOL" >&6; }
5493
else
5494
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495
$as_echo "no" >&6; }
5496
fi
5497
 
5498
 
5499
fi
5500
if test -z "$ac_cv_prog_DLLTOOL"; then
5501
  ac_ct_DLLTOOL=$DLLTOOL
5502
  # Extract the first word of "dlltool", so it can be a program name with args.
5503
set dummy dlltool; ac_word=$2
5504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505
$as_echo_n "checking for $ac_word... " >&6; }
5506
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5507
  $as_echo_n "(cached) " >&6
5508
else
5509
  if test -n "$ac_ct_DLLTOOL"; then
5510
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5511
else
5512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513
for as_dir in $PATH
5514
do
5515
  IFS=$as_save_IFS
5516
  test -z "$as_dir" && as_dir=.
5517
    for ac_exec_ext in '' $ac_executable_extensions; do
5518
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521
    break 2
5522
  fi
5523
done
5524
  done
5525
IFS=$as_save_IFS
5526
 
5527
fi
5528
fi
5529
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5530
if test -n "$ac_ct_DLLTOOL"; then
5531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5532
$as_echo "$ac_ct_DLLTOOL" >&6; }
5533
else
5534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535
$as_echo "no" >&6; }
5536
fi
5537
 
5538
  if test "x$ac_ct_DLLTOOL" = x; then
5539
    DLLTOOL="false"
5540
  else
5541
    case $cross_compiling:$ac_tool_warned in
5542
yes:)
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545
ac_tool_warned=yes ;;
5546
esac
5547
    DLLTOOL=$ac_ct_DLLTOOL
5548
  fi
5549
else
5550
  DLLTOOL="$ac_cv_prog_DLLTOOL"
5551
fi
5552
 
5553
test -z "$DLLTOOL" && DLLTOOL=dlltool
5554
 
5555
 
5556
 
5557
 
5558
 
5559
 
5560
 
5561
 
5562
 
5563
 
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5565
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5566
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5567
  $as_echo_n "(cached) " >&6
5568
else
5569
  lt_cv_sharedlib_from_linklib_cmd='unknown'
5570
 
5571
case $host_os in
5572
cygwin* | msys* | mingw* | pw32* | cegcc*)
5573
  # two different shell functions defined in ltmain.sh;
5574
  # decide which one to use based on capabilities of $DLLTOOL
5575
  case `$DLLTOOL --help 2>&1` in
5576
  *--identify-strict*)
5577
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5578
    ;;
5579
  *)
5580
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5581
    ;;
5582
  esac
5583
  ;;
5584
*)
5585
  # fallback: assume linklib IS sharedlib
5586
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5587
  ;;
5588
esac
5589
 
5590
fi
5591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5592
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5593
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5594
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5595
 
5596
 
5597
 
5598
 
5599
 
5600
 
5601
 
5602
 
5603
if test -n "$ac_tool_prefix"; then
5604
  for ac_prog in ar
5605
  do
5606
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5607
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609
$as_echo_n "checking for $ac_word... " >&6; }
5610
if ${ac_cv_prog_AR+:} false; then :
5611
  $as_echo_n "(cached) " >&6
5612
else
5613
  if test -n "$AR"; then
5614
  ac_cv_prog_AR="$AR" # Let the user override the test.
5615
else
5616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617
for as_dir in $PATH
5618
do
5619
  IFS=$as_save_IFS
5620
  test -z "$as_dir" && as_dir=.
5621
    for ac_exec_ext in '' $ac_executable_extensions; do
5622
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5624
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625
    break 2
5626
  fi
5627
done
5628
  done
5629
IFS=$as_save_IFS
5630
 
5631
fi
5632
fi
5633
AR=$ac_cv_prog_AR
5634
if test -n "$AR"; then
5635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5636
$as_echo "$AR" >&6; }
5637
else
5638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639
$as_echo "no" >&6; }
5640
fi
5641
 
5642
 
5643
    test -n "$AR" && break
5644
  done
5645
fi
5646
if test -z "$AR"; then
5647
  ac_ct_AR=$AR
5648
  for ac_prog in ar
5649
do
5650
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5651
set dummy $ac_prog; ac_word=$2
5652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653
$as_echo_n "checking for $ac_word... " >&6; }
5654
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5655
  $as_echo_n "(cached) " >&6
5656
else
5657
  if test -n "$ac_ct_AR"; then
5658
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5659
else
5660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661
for as_dir in $PATH
5662
do
5663
  IFS=$as_save_IFS
5664
  test -z "$as_dir" && as_dir=.
5665
    for ac_exec_ext in '' $ac_executable_extensions; do
5666
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667
    ac_cv_prog_ac_ct_AR="$ac_prog"
5668
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669
    break 2
5670
  fi
5671
done
5672
  done
5673
IFS=$as_save_IFS
5674
 
5675
fi
5676
fi
5677
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5678
if test -n "$ac_ct_AR"; then
5679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5680
$as_echo "$ac_ct_AR" >&6; }
5681
else
5682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683
$as_echo "no" >&6; }
5684
fi
5685
 
5686
 
5687
  test -n "$ac_ct_AR" && break
5688
done
5689
 
5690
  if test "x$ac_ct_AR" = x; then
5691
    AR="false"
5692
  else
5693
    case $cross_compiling:$ac_tool_warned in
5694
yes:)
5695
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5696
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5697
ac_tool_warned=yes ;;
5698
esac
5699
    AR=$ac_ct_AR
5700
  fi
5701
fi
5702
 
5703
: ${AR=ar}
5704
: ${AR_FLAGS=cru}
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5717
$as_echo_n "checking for archiver @FILE support... " >&6; }
5718
if ${lt_cv_ar_at_file+:} false; then :
5719
  $as_echo_n "(cached) " >&6
5720
else
5721
  lt_cv_ar_at_file=no
5722
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723
/* end confdefs.h.  */
5724
 
5725
int
5726
main ()
5727
{
5728
 
5729
  ;
5730
  return 0;
5731
}
5732
_ACEOF
5733
if ac_fn_c_try_compile "$LINENO"; then :
5734
  echo conftest.$ac_objext > conftest.lst
5735
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5736
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5737
  (eval $lt_ar_try) 2>&5
5738
  ac_status=$?
5739
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5740
  test $ac_status = 0; }
5741
      if test 0 -eq "$ac_status"; then
5742
	# Ensure the archiver fails upon bogus file names.
5743
	rm -f conftest.$ac_objext libconftest.a
5744
	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5745
  (eval $lt_ar_try) 2>&5
5746
  ac_status=$?
5747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5748
  test $ac_status = 0; }
5749
	if test 0 -ne "$ac_status"; then
5750
          lt_cv_ar_at_file=@
5751
        fi
5752
      fi
5753
      rm -f conftest.* libconftest.a
5754
 
5755
fi
5756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757
 
5758
fi
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5760
$as_echo "$lt_cv_ar_at_file" >&6; }
5761
 
5762
if test no = "$lt_cv_ar_at_file"; then
5763
  archiver_list_spec=
5764
else
5765
  archiver_list_spec=$lt_cv_ar_at_file
5766
fi
5767
 
5768
 
5769
 
5770
 
5771
 
5772
 
5773
 
5774
if test -n "$ac_tool_prefix"; then
5775
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5776
set dummy ${ac_tool_prefix}strip; ac_word=$2
5777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778
$as_echo_n "checking for $ac_word... " >&6; }
5779
if ${ac_cv_prog_STRIP+:} false; then :
5780
  $as_echo_n "(cached) " >&6
5781
else
5782
  if test -n "$STRIP"; then
5783
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5784
else
5785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786
for as_dir in $PATH
5787
do
5788
  IFS=$as_save_IFS
5789
  test -z "$as_dir" && as_dir=.
5790
    for ac_exec_ext in '' $ac_executable_extensions; do
5791
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5793
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794
    break 2
5795
  fi
5796
done
5797
  done
5798
IFS=$as_save_IFS
5799
 
5800
fi
5801
fi
5802
STRIP=$ac_cv_prog_STRIP
5803
if test -n "$STRIP"; then
5804
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5805
$as_echo "$STRIP" >&6; }
5806
else
5807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808
$as_echo "no" >&6; }
5809
fi
5810
 
5811
 
5812
fi
5813
if test -z "$ac_cv_prog_STRIP"; then
5814
  ac_ct_STRIP=$STRIP
5815
  # Extract the first word of "strip", so it can be a program name with args.
5816
set dummy strip; ac_word=$2
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818
$as_echo_n "checking for $ac_word... " >&6; }
5819
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5820
  $as_echo_n "(cached) " >&6
5821
else
5822
  if test -n "$ac_ct_STRIP"; then
5823
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5824
else
5825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826
for as_dir in $PATH
5827
do
5828
  IFS=$as_save_IFS
5829
  test -z "$as_dir" && as_dir=.
5830
    for ac_exec_ext in '' $ac_executable_extensions; do
5831
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832
    ac_cv_prog_ac_ct_STRIP="strip"
5833
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834
    break 2
5835
  fi
5836
done
5837
  done
5838
IFS=$as_save_IFS
5839
 
5840
fi
5841
fi
5842
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5843
if test -n "$ac_ct_STRIP"; then
5844
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5845
$as_echo "$ac_ct_STRIP" >&6; }
5846
else
5847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848
$as_echo "no" >&6; }
5849
fi
5850
 
5851
  if test "x$ac_ct_STRIP" = x; then
5852
    STRIP=":"
5853
  else
5854
    case $cross_compiling:$ac_tool_warned in
5855
yes:)
5856
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5857
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5858
ac_tool_warned=yes ;;
5859
esac
5860
    STRIP=$ac_ct_STRIP
5861
  fi
5862
else
5863
  STRIP="$ac_cv_prog_STRIP"
5864
fi
5865
 
5866
test -z "$STRIP" && STRIP=:
5867
 
5868
 
5869
 
5870
 
5871
 
5872
 
5873
if test -n "$ac_tool_prefix"; then
5874
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5875
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877
$as_echo_n "checking for $ac_word... " >&6; }
5878
if ${ac_cv_prog_RANLIB+:} false; then :
5879
  $as_echo_n "(cached) " >&6
5880
else
5881
  if test -n "$RANLIB"; then
5882
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5883
else
5884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885
for as_dir in $PATH
5886
do
5887
  IFS=$as_save_IFS
5888
  test -z "$as_dir" && as_dir=.
5889
    for ac_exec_ext in '' $ac_executable_extensions; do
5890
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5892
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893
    break 2
5894
  fi
5895
done
5896
  done
5897
IFS=$as_save_IFS
5898
 
5899
fi
5900
fi
5901
RANLIB=$ac_cv_prog_RANLIB
5902
if test -n "$RANLIB"; then
5903
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5904
$as_echo "$RANLIB" >&6; }
5905
else
5906
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907
$as_echo "no" >&6; }
5908
fi
5909
 
5910
 
5911
fi
5912
if test -z "$ac_cv_prog_RANLIB"; then
5913
  ac_ct_RANLIB=$RANLIB
5914
  # Extract the first word of "ranlib", so it can be a program name with args.
5915
set dummy ranlib; ac_word=$2
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917
$as_echo_n "checking for $ac_word... " >&6; }
5918
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5919
  $as_echo_n "(cached) " >&6
5920
else
5921
  if test -n "$ac_ct_RANLIB"; then
5922
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5923
else
5924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925
for as_dir in $PATH
5926
do
5927
  IFS=$as_save_IFS
5928
  test -z "$as_dir" && as_dir=.
5929
    for ac_exec_ext in '' $ac_executable_extensions; do
5930
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5932
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933
    break 2
5934
  fi
5935
done
5936
  done
5937
IFS=$as_save_IFS
5938
 
5939
fi
5940
fi
5941
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5942
if test -n "$ac_ct_RANLIB"; then
5943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5944
$as_echo "$ac_ct_RANLIB" >&6; }
5945
else
5946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947
$as_echo "no" >&6; }
5948
fi
5949
 
5950
  if test "x$ac_ct_RANLIB" = x; then
5951
    RANLIB=":"
5952
  else
5953
    case $cross_compiling:$ac_tool_warned in
5954
yes:)
5955
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5956
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5957
ac_tool_warned=yes ;;
5958
esac
5959
    RANLIB=$ac_ct_RANLIB
5960
  fi
5961
else
5962
  RANLIB="$ac_cv_prog_RANLIB"
5963
fi
5964
 
5965
test -z "$RANLIB" && RANLIB=:
5966
 
5967
 
5968
 
5969
 
5970
 
5971
 
5972
# Determine commands to create old-style static archives.
5973
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5974
old_postinstall_cmds='chmod 644 $oldlib'
5975
old_postuninstall_cmds=
5976
 
5977
if test -n "$RANLIB"; then
5978
  case $host_os in
5979
  bitrig* | openbsd*)
5980
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5981
    ;;
5982
  *)
5983
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5984
    ;;
5985
  esac
5986
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5987
fi
5988
 
5989
case $host_os in
5990
  darwin*)
5991
    lock_old_archive_extraction=yes ;;
5992
  *)
5993
    lock_old_archive_extraction=no ;;
5994
esac
5995
 
5996
 
5997
 
5998
 
5999
 
6000
 
6001
 
6002
 
6003
 
6004
 
6005
 
6006
 
6007
 
6008
 
6009
 
6010
 
6011
 
6012
 
6013
 
6014
 
6015
 
6016
 
6017
 
6018
 
6019
 
6020
 
6021
 
6022
 
6023
 
6024
 
6025
 
6026
 
6027
 
6028
 
6029
 
6030
 
6031
 
6032
 
6033
 
6034
# If no C compiler was specified, use CC.
6035
LTCC=${LTCC-"$CC"}
6036
 
6037
# If no C compiler flags were specified, use CFLAGS.
6038
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6039
 
6040
# Allow CC to be a program name with arguments.
6041
compiler=$CC
6042
 
6043
 
6044
# Check for command to grab the raw symbol name followed by C symbol from nm.
6045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6046
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6047
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6048
  $as_echo_n "(cached) " >&6
6049
else
6050
 
6051
# These are sane defaults that work on at least a few old systems.
6052
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6053
 
6054
# Character class describing NM global symbol codes.
6055
symcode='[BCDEGRST]'
6056
 
6057
# Regexp to match symbols that can be accessed directly from C.
6058
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6059
 
6060
# Define system-specific variables.
6061
case $host_os in
6062
aix*)
6063
  symcode='[BCDT]'
6064
  ;;
6065
cygwin* | msys* | mingw* | pw32* | cegcc*)
6066
  symcode='[ABCDGISTW]'
6067
  ;;
6068
hpux*)
6069
  if test ia64 = "$host_cpu"; then
6070
    symcode='[ABCDEGRST]'
6071
  fi
6072
  ;;
6073
irix* | nonstopux*)
6074
  symcode='[BCDEGRST]'
6075
  ;;
6076
osf*)
6077
  symcode='[BCDEGQRST]'
6078
  ;;
6079
solaris*)
6080
  symcode='[BDRT]'
6081
  ;;
6082
sco3.2v5*)
6083
  symcode='[DT]'
6084
  ;;
6085
sysv4.2uw2*)
6086
  symcode='[DT]'
6087
  ;;
6088
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6089
  symcode='[ABDT]'
6090
  ;;
6091
sysv4)
6092
  symcode='[DFNSTU]'
6093
  ;;
6094
esac
6095
 
6096
# If we're using GNU nm, then use its standard symbol codes.
6097
case `$NM -V 2>&1` in
6098
*GNU* | *'with BFD'*)
6099
  symcode='[ABCDGIRSTW]' ;;
6100
esac
6101
 
6102
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6103
  # Gets list of data symbols to import.
6104
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6105
  # Adjust the below global symbol transforms to fixup imported variables.
6106
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6107
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6108
  lt_c_name_lib_hook="\
6109
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6110
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6111
else
6112
  # Disable hooks by default.
6113
  lt_cv_sys_global_symbol_to_import=
6114
  lt_cdecl_hook=
6115
  lt_c_name_hook=
6116
  lt_c_name_lib_hook=
6117
fi
6118
 
6119
# Transform an extracted symbol line into a proper C declaration.
6120
# Some systems (esp. on ia64) link data and code symbols differently,
6121
# so use this general approach.
6122
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6123
$lt_cdecl_hook\
6124
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6125
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6126
 
6127
# Transform an extracted symbol line into symbol name and symbol address
6128
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6129
$lt_c_name_hook\
6130
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6131
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6132
 
6133
# Transform an extracted symbol line into symbol name with lib prefix and
6134
# symbol address.
6135
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6136
$lt_c_name_lib_hook\
6137
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6138
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6139
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6140
 
6141
# Handle CRLF in mingw tool chain
6142
opt_cr=
6143
case $build_os in
6144
mingw*)
6145
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6146
  ;;
6147
esac
6148
 
6149
# Try without a prefix underscore, then with it.
6150
for ac_symprfx in "" "_"; do
6151
 
6152
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6153
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6154
 
6155
  # Write the raw and C identifiers.
6156
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6157
    # Fake it for dumpbin and say T for any non-static function,
6158
    # D for any global variable and I for any imported variable.
6159
    # Also find C++ and __fastcall symbols from MSVC++,
6160
    # which start with @ or ?.
6161
    lt_cv_sys_global_symbol_pipe="$AWK '"\
6162
"     {last_section=section; section=\$ 3};"\
6163
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6164
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6165
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6166
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6167
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6168
"     \$ 0!~/External *\|/{next};"\
6169
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6170
"     {if(hide[section]) next};"\
6171
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6172
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6173
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6174
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6175
"     ' prfx=^$ac_symprfx"
6176
  else
6177
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6178
  fi
6179
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6180
 
6181
  # Check to see that the pipe works correctly.
6182
  pipe_works=no
6183
 
6184
  rm -f conftest*
6185
  cat > conftest.$ac_ext <<_LT_EOF
6186
#ifdef __cplusplus
6187
extern "C" {
6188
#endif
6189
char nm_test_var;
6190
void nm_test_func(void);
6191
void nm_test_func(void){}
6192
#ifdef __cplusplus
6193
}
6194
#endif
6195
int main(){nm_test_var='a';nm_test_func();return(0);}
6196
_LT_EOF
6197
 
6198
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199
  (eval $ac_compile) 2>&5
6200
  ac_status=$?
6201
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202
  test $ac_status = 0; }; then
6203
    # Now try to grab the symbols.
6204
    nlist=conftest.nm
6205
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6206
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6207
  ac_status=$?
6208
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209
  test $ac_status = 0; } && test -s "$nlist"; then
6210
      # Try sorting and uniquifying the output.
6211
      if sort "$nlist" | uniq > "$nlist"T; then
6212
	mv -f "$nlist"T "$nlist"
6213
      else
6214
	rm -f "$nlist"T
6215
      fi
6216
 
6217
      # Make sure that we snagged all the symbols we need.
6218
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219
	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220
	  cat <<_LT_EOF > conftest.$ac_ext
6221
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6222
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6223
/* DATA imports from DLLs on WIN32 can't be const, because runtime
6224
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6225
# define LT_DLSYM_CONST
6226
#elif defined __osf__
6227
/* This system does not cope well with relocations in const data.  */
6228
# define LT_DLSYM_CONST
6229
#else
6230
# define LT_DLSYM_CONST const
6231
#endif
6232
 
6233
#ifdef __cplusplus
6234
extern "C" {
6235
#endif
6236
 
6237
_LT_EOF
6238
	  # Now generate the symbol file.
6239
	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6240
 
6241
	  cat <<_LT_EOF >> conftest.$ac_ext
6242
 
6243
/* The mapping between symbol names and symbols.  */
6244
LT_DLSYM_CONST struct {
6245
  const char *name;
6246
  void       *address;
6247
}
6248
lt__PROGRAM__LTX_preloaded_symbols[] =
6249
{
6250
  { "@PROGRAM@", (void *) 0 },
6251
_LT_EOF
6252
	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6253
	  cat <<\_LT_EOF >> conftest.$ac_ext
6254
  {0, (void *) 0}
6255
};
6256
 
6257
/* This works around a problem in FreeBSD linker */
6258
#ifdef FREEBSD_WORKAROUND
6259
static const void *lt_preloaded_setup() {
6260
  return lt__PROGRAM__LTX_preloaded_symbols;
6261
}
6262
#endif
6263
 
6264
#ifdef __cplusplus
6265
}
6266
#endif
6267
_LT_EOF
6268
	  # Now try linking the two files.
6269
	  mv conftest.$ac_objext conftstm.$ac_objext
6270
	  lt_globsym_save_LIBS=$LIBS
6271
	  lt_globsym_save_CFLAGS=$CFLAGS
6272
	  LIBS=conftstm.$ac_objext
6273
	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6274
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6275
  (eval $ac_link) 2>&5
6276
  ac_status=$?
6277
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6279
	    pipe_works=yes
6280
	  fi
6281
	  LIBS=$lt_globsym_save_LIBS
6282
	  CFLAGS=$lt_globsym_save_CFLAGS
6283
	else
6284
	  echo "cannot find nm_test_func in $nlist" >&5
6285
	fi
6286
      else
6287
	echo "cannot find nm_test_var in $nlist" >&5
6288
      fi
6289
    else
6290
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6291
    fi
6292
  else
6293
    echo "$progname: failed program was:" >&5
6294
    cat conftest.$ac_ext >&5
6295
  fi
6296
  rm -rf conftest* conftst*
6297
 
6298
  # Do not use the global_symbol_pipe unless it works.
6299
  if test yes = "$pipe_works"; then
6300
    break
6301
  else
6302
    lt_cv_sys_global_symbol_pipe=
6303
  fi
6304
done
6305
 
6306
fi
6307
 
6308
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6309
  lt_cv_sys_global_symbol_to_cdecl=
6310
fi
6311
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6312
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6313
$as_echo "failed" >&6; }
6314
else
6315
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6316
$as_echo "ok" >&6; }
6317
fi
6318
 
6319
# Response file support.
6320
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6321
  nm_file_list_spec='@'
6322
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6323
  nm_file_list_spec='@'
6324
fi
6325
 
6326
 
6327
 
6328
 
6329
 
6330
 
6331
 
6332
 
6333
 
6334
 
6335
 
6336
 
6337
 
6338
 
6339
 
6340
 
6341
 
6342
 
6343
 
6344
 
6345
 
6346
 
6347
 
6348
 
6349
 
6350
 
6351
 
6352
 
6353
 
6354
 
6355
 
6356
 
6357
 
6358
 
6359
 
6360
 
6361
 
6362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6363
$as_echo_n "checking for sysroot... " >&6; }
6364
 
6365
# Check whether --with-sysroot was given.
6366
if test "${with_sysroot+set}" = set; then :
6367
  withval=$with_sysroot;
6368
else
6369
  with_sysroot=no
6370
fi
6371
 
6372
 
6373
lt_sysroot=
6374
case $with_sysroot in #(
6375
 yes)
6376
   if test yes = "$GCC"; then
6377
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6378
   fi
6379
   ;; #(
6380
 /*)
6381
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6382
   ;; #(
6383
 no|'')
6384
   ;; #(
6385
 *)
6386
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6387
$as_echo "$with_sysroot" >&6; }
6388
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6389
   ;;
6390
esac
6391
 
6392
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6393
$as_echo "${lt_sysroot:-no}" >&6; }
6394
 
6395
 
6396
 
6397
 
6398
 
6399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6400
$as_echo_n "checking for a working dd... " >&6; }
6401
if ${ac_cv_path_lt_DD+:} false; then :
6402
  $as_echo_n "(cached) " >&6
6403
else
6404
  printf 0123456789abcdef0123456789abcdef >conftest.i
6405
cat conftest.i conftest.i >conftest2.i
6406
: ${lt_DD:=$DD}
6407
if test -z "$lt_DD"; then
6408
  ac_path_lt_DD_found=false
6409
  # Loop through the user's path and test for each of PROGNAME-LIST
6410
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411
for as_dir in $PATH
6412
do
6413
  IFS=$as_save_IFS
6414
  test -z "$as_dir" && as_dir=.
6415
    for ac_prog in dd; do
6416
    for ac_exec_ext in '' $ac_executable_extensions; do
6417
      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6418
      as_fn_executable_p "$ac_path_lt_DD" || continue
6419
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6420
  cmp -s conftest.i conftest.out \
6421
  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6422
fi
6423
      $ac_path_lt_DD_found && break 3
6424
    done
6425
  done
6426
  done
6427
IFS=$as_save_IFS
6428
  if test -z "$ac_cv_path_lt_DD"; then
6429
    :
6430
  fi
6431
else
6432
  ac_cv_path_lt_DD=$lt_DD
6433
fi
6434
 
6435
rm -f conftest.i conftest2.i conftest.out
6436
fi
6437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6438
$as_echo "$ac_cv_path_lt_DD" >&6; }
6439
 
6440
 
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6442
$as_echo_n "checking how to truncate binary pipes... " >&6; }
6443
if ${lt_cv_truncate_bin+:} false; then :
6444
  $as_echo_n "(cached) " >&6
6445
else
6446
  printf 0123456789abcdef0123456789abcdef >conftest.i
6447
cat conftest.i conftest.i >conftest2.i
6448
lt_cv_truncate_bin=
6449
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6450
  cmp -s conftest.i conftest.out \
6451
  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6452
fi
6453
rm -f conftest.i conftest2.i conftest.out
6454
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6455
fi
6456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6457
$as_echo "$lt_cv_truncate_bin" >&6; }
6458
 
6459
 
6460
 
6461
 
6462
 
6463
 
6464
 
6465
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6466
func_cc_basename ()
6467
{
6468
    for cc_temp in $*""; do
6469
      case $cc_temp in
6470
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6471
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6472
        \-*) ;;
6473
        *) break;;
6474
      esac
6475
    done
6476
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6477
}
6478
 
6479
# Check whether --enable-libtool-lock was given.
6480
if test "${enable_libtool_lock+set}" = set; then :
6481
  enableval=$enable_libtool_lock;
6482
fi
6483
 
6484
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6485
 
6486
# Some flags need to be propagated to the compiler or linker for good
6487
# libtool support.
6488
case $host in
6489
ia64-*-hpux*)
6490
  # Find out what ABI is being produced by ac_compile, and set mode
6491
  # options accordingly.
6492
  echo 'int i;' > conftest.$ac_ext
6493
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6494
  (eval $ac_compile) 2>&5
6495
  ac_status=$?
6496
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6497
  test $ac_status = 0; }; then
6498
    case `/usr/bin/file conftest.$ac_objext` in
6499
      *ELF-32*)
6500
	HPUX_IA64_MODE=32
6501
	;;
6502
      *ELF-64*)
6503
	HPUX_IA64_MODE=64
6504
	;;
6505
    esac
6506
  fi
6507
  rm -rf conftest*
6508
  ;;
6509
*-*-irix6*)
6510
  # Find out what ABI is being produced by ac_compile, and set linker
6511
  # options accordingly.
6512
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6513
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6514
  (eval $ac_compile) 2>&5
6515
  ac_status=$?
6516
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517
  test $ac_status = 0; }; then
6518
    if test yes = "$lt_cv_prog_gnu_ld"; then
6519
      case `/usr/bin/file conftest.$ac_objext` in
6520
	*32-bit*)
6521
	  LD="${LD-ld} -melf32bsmip"
6522
	  ;;
6523
	*N32*)
6524
	  LD="${LD-ld} -melf32bmipn32"
6525
	  ;;
6526
	*64-bit*)
6527
	  LD="${LD-ld} -melf64bmip"
6528
	;;
6529
      esac
6530
    else
6531
      case `/usr/bin/file conftest.$ac_objext` in
6532
	*32-bit*)
6533
	  LD="${LD-ld} -32"
6534
	  ;;
6535
	*N32*)
6536
	  LD="${LD-ld} -n32"
6537
	  ;;
6538
	*64-bit*)
6539
	  LD="${LD-ld} -64"
6540
	  ;;
6541
      esac
6542
    fi
6543
  fi
6544
  rm -rf conftest*
6545
  ;;
6546
 
6547
mips64*-*linux*)
6548
  # Find out what ABI is being produced by ac_compile, and set linker
6549
  # options accordingly.
6550
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6551
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552
  (eval $ac_compile) 2>&5
6553
  ac_status=$?
6554
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555
  test $ac_status = 0; }; then
6556
    emul=elf
6557
    case `/usr/bin/file conftest.$ac_objext` in
6558
      *32-bit*)
6559
	emul="${emul}32"
6560
	;;
6561
      *64-bit*)
6562
	emul="${emul}64"
6563
	;;
6564
    esac
6565
    case `/usr/bin/file conftest.$ac_objext` in
6566
      *MSB*)
6567
	emul="${emul}btsmip"
6568
	;;
6569
      *LSB*)
6570
	emul="${emul}ltsmip"
6571
	;;
6572
    esac
6573
    case `/usr/bin/file conftest.$ac_objext` in
6574
      *N32*)
6575
	emul="${emul}n32"
6576
	;;
6577
    esac
6578
    LD="${LD-ld} -m $emul"
6579
  fi
6580
  rm -rf conftest*
6581
  ;;
6582
 
6583
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6584
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6585
  # Find out what ABI is being produced by ac_compile, and set linker
6586
  # options accordingly.  Note that the listed cases only cover the
6587
  # situations where additional linker options are needed (such as when
6588
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6589
  # vice versa); the common cases where no linker options are needed do
6590
  # not appear in the list.
6591
  echo 'int i;' > conftest.$ac_ext
6592
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593
  (eval $ac_compile) 2>&5
6594
  ac_status=$?
6595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596
  test $ac_status = 0; }; then
6597
    case `/usr/bin/file conftest.o` in
6598
      *32-bit*)
6599
	case $host in
6600
	  x86_64-*kfreebsd*-gnu)
6601
	    LD="${LD-ld} -m elf_i386_fbsd"
6602
	    ;;
6603
	  x86_64-*linux*)
6604
	    case `/usr/bin/file conftest.o` in
6605
	      *x86-64*)
6606
		LD="${LD-ld} -m elf32_x86_64"
6607
		;;
6608
	      *)
6609
		LD="${LD-ld} -m elf_i386"
6610
		;;
6611
	    esac
6612
	    ;;
6613
	  powerpc64le-*linux*)
6614
	    LD="${LD-ld} -m elf32lppclinux"
6615
	    ;;
6616
	  powerpc64-*linux*)
6617
	    LD="${LD-ld} -m elf32ppclinux"
6618
	    ;;
6619
	  s390x-*linux*)
6620
	    LD="${LD-ld} -m elf_s390"
6621
	    ;;
6622
	  sparc64-*linux*)
6623
	    LD="${LD-ld} -m elf32_sparc"
6624
	    ;;
6625
	esac
6626
	;;
6627
      *64-bit*)
6628
	case $host in
6629
	  x86_64-*kfreebsd*-gnu)
6630
	    LD="${LD-ld} -m elf_x86_64_fbsd"
6631
	    ;;
6632
	  x86_64-*linux*)
6633
	    LD="${LD-ld} -m elf_x86_64"
6634
	    ;;
6635
	  powerpcle-*linux*)
6636
	    LD="${LD-ld} -m elf64lppc"
6637
	    ;;
6638
	  powerpc-*linux*)
6639
	    LD="${LD-ld} -m elf64ppc"
6640
	    ;;
6641
	  s390*-*linux*|s390*-*tpf*)
6642
	    LD="${LD-ld} -m elf64_s390"
6643
	    ;;
6644
	  sparc*-*linux*)
6645
	    LD="${LD-ld} -m elf64_sparc"
6646
	    ;;
6647
	esac
6648
	;;
6649
    esac
6650
  fi
6651
  rm -rf conftest*
6652
  ;;
6653
 
6654
*-*-sco3.2v5*)
6655
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6656
  SAVE_CFLAGS=$CFLAGS
6657
  CFLAGS="$CFLAGS -belf"
6658
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6659
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6660
if ${lt_cv_cc_needs_belf+:} false; then :
6661
  $as_echo_n "(cached) " >&6
6662
else
6663
  ac_ext=c
6664
ac_cpp='$CPP $CPPFLAGS'
6665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
 
6669
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670
/* end confdefs.h.  */
6671
 
6672
int
6673
main ()
6674
{
6675
 
6676
  ;
6677
  return 0;
6678
}
6679
_ACEOF
6680
if ac_fn_c_try_link "$LINENO"; then :
6681
  lt_cv_cc_needs_belf=yes
6682
else
6683
  lt_cv_cc_needs_belf=no
6684
fi
6685
rm -f core conftest.err conftest.$ac_objext \
6686
    conftest$ac_exeext conftest.$ac_ext
6687
     ac_ext=c
6688
ac_cpp='$CPP $CPPFLAGS'
6689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692
 
6693
fi
6694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6695
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6696
  if test yes != "$lt_cv_cc_needs_belf"; then
6697
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6698
    CFLAGS=$SAVE_CFLAGS
6699
  fi
6700
  ;;
6701
*-*solaris*)
6702
  # Find out what ABI is being produced by ac_compile, and set linker
6703
  # options accordingly.
6704
  echo 'int i;' > conftest.$ac_ext
6705
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706
  (eval $ac_compile) 2>&5
6707
  ac_status=$?
6708
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709
  test $ac_status = 0; }; then
6710
    case `/usr/bin/file conftest.o` in
6711
    *64-bit*)
6712
      case $lt_cv_prog_gnu_ld in
6713
      yes*)
6714
        case $host in
6715
        i?86-*-solaris*|x86_64-*-solaris*)
6716
          LD="${LD-ld} -m elf_x86_64"
6717
          ;;
6718
        sparc*-*-solaris*)
6719
          LD="${LD-ld} -m elf64_sparc"
6720
          ;;
6721
        esac
6722
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6723
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6724
          LD=${LD-ld}_sol2
6725
        fi
6726
        ;;
6727
      *)
6728
	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6729
	  LD="${LD-ld} -64"
6730
	fi
6731
	;;
6732
      esac
6733
      ;;
6734
    esac
6735
  fi
6736
  rm -rf conftest*
6737
  ;;
6738
esac
6739
 
6740
need_locks=$enable_libtool_lock
6741
 
6742
if test -n "$ac_tool_prefix"; then
6743
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6744
set dummy ${ac_tool_prefix}mt; ac_word=$2
6745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6746
$as_echo_n "checking for $ac_word... " >&6; }
6747
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6748
  $as_echo_n "(cached) " >&6
6749
else
6750
  if test -n "$MANIFEST_TOOL"; then
6751
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6752
else
6753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754
for as_dir in $PATH
6755
do
6756
  IFS=$as_save_IFS
6757
  test -z "$as_dir" && as_dir=.
6758
    for ac_exec_ext in '' $ac_executable_extensions; do
6759
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6760
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6761
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762
    break 2
6763
  fi
6764
done
6765
  done
6766
IFS=$as_save_IFS
6767
 
6768
fi
6769
fi
6770
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6771
if test -n "$MANIFEST_TOOL"; then
6772
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6773
$as_echo "$MANIFEST_TOOL" >&6; }
6774
else
6775
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776
$as_echo "no" >&6; }
6777
fi
6778
 
6779
 
6780
fi
6781
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6782
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6783
  # Extract the first word of "mt", so it can be a program name with args.
6784
set dummy mt; ac_word=$2
6785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786
$as_echo_n "checking for $ac_word... " >&6; }
6787
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6788
  $as_echo_n "(cached) " >&6
6789
else
6790
  if test -n "$ac_ct_MANIFEST_TOOL"; then
6791
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6792
else
6793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794
for as_dir in $PATH
6795
do
6796
  IFS=$as_save_IFS
6797
  test -z "$as_dir" && as_dir=.
6798
    for ac_exec_ext in '' $ac_executable_extensions; do
6799
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6800
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6801
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802
    break 2
6803
  fi
6804
done
6805
  done
6806
IFS=$as_save_IFS
6807
 
6808
fi
6809
fi
6810
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6811
if test -n "$ac_ct_MANIFEST_TOOL"; then
6812
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6813
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6814
else
6815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6816
$as_echo "no" >&6; }
6817
fi
6818
 
6819
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6820
    MANIFEST_TOOL=":"
6821
  else
6822
    case $cross_compiling:$ac_tool_warned in
6823
yes:)
6824
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6825
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6826
ac_tool_warned=yes ;;
6827
esac
6828
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6829
  fi
6830
else
6831
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6832
fi
6833
 
6834
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6836
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6837
if ${lt_cv_path_mainfest_tool+:} false; then :
6838
  $as_echo_n "(cached) " >&6
6839
else
6840
  lt_cv_path_mainfest_tool=no
6841
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6842
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6843
  cat conftest.err >&5
6844
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6845
    lt_cv_path_mainfest_tool=yes
6846
  fi
6847
  rm -f conftest*
6848
fi
6849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6850
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6851
if test yes != "$lt_cv_path_mainfest_tool"; then
6852
  MANIFEST_TOOL=:
6853
fi
6854
 
6855
 
6856
 
6857
 
6858
 
6859
 
6860
  case $host_os in
6861
    rhapsody* | darwin*)
6862
    if test -n "$ac_tool_prefix"; then
6863
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6864
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6865
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866
$as_echo_n "checking for $ac_word... " >&6; }
6867
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6868
  $as_echo_n "(cached) " >&6
6869
else
6870
  if test -n "$DSYMUTIL"; then
6871
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6872
else
6873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874
for as_dir in $PATH
6875
do
6876
  IFS=$as_save_IFS
6877
  test -z "$as_dir" && as_dir=.
6878
    for ac_exec_ext in '' $ac_executable_extensions; do
6879
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6881
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882
    break 2
6883
  fi
6884
done
6885
  done
6886
IFS=$as_save_IFS
6887
 
6888
fi
6889
fi
6890
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6891
if test -n "$DSYMUTIL"; then
6892
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6893
$as_echo "$DSYMUTIL" >&6; }
6894
else
6895
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896
$as_echo "no" >&6; }
6897
fi
6898
 
6899
 
6900
fi
6901
if test -z "$ac_cv_prog_DSYMUTIL"; then
6902
  ac_ct_DSYMUTIL=$DSYMUTIL
6903
  # Extract the first word of "dsymutil", so it can be a program name with args.
6904
set dummy dsymutil; ac_word=$2
6905
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906
$as_echo_n "checking for $ac_word... " >&6; }
6907
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6908
  $as_echo_n "(cached) " >&6
6909
else
6910
  if test -n "$ac_ct_DSYMUTIL"; then
6911
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6912
else
6913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914
for as_dir in $PATH
6915
do
6916
  IFS=$as_save_IFS
6917
  test -z "$as_dir" && as_dir=.
6918
    for ac_exec_ext in '' $ac_executable_extensions; do
6919
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6921
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922
    break 2
6923
  fi
6924
done
6925
  done
6926
IFS=$as_save_IFS
6927
 
6928
fi
6929
fi
6930
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6931
if test -n "$ac_ct_DSYMUTIL"; then
6932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6933
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6934
else
6935
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936
$as_echo "no" >&6; }
6937
fi
6938
 
6939
  if test "x$ac_ct_DSYMUTIL" = x; then
6940
    DSYMUTIL=":"
6941
  else
6942
    case $cross_compiling:$ac_tool_warned in
6943
yes:)
6944
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946
ac_tool_warned=yes ;;
6947
esac
6948
    DSYMUTIL=$ac_ct_DSYMUTIL
6949
  fi
6950
else
6951
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6952
fi
6953
 
6954
    if test -n "$ac_tool_prefix"; then
6955
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6956
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958
$as_echo_n "checking for $ac_word... " >&6; }
6959
if ${ac_cv_prog_NMEDIT+:} false; then :
6960
  $as_echo_n "(cached) " >&6
6961
else
6962
  if test -n "$NMEDIT"; then
6963
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6964
else
6965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966
for as_dir in $PATH
6967
do
6968
  IFS=$as_save_IFS
6969
  test -z "$as_dir" && as_dir=.
6970
    for ac_exec_ext in '' $ac_executable_extensions; do
6971
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6973
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974
    break 2
6975
  fi
6976
done
6977
  done
6978
IFS=$as_save_IFS
6979
 
6980
fi
6981
fi
6982
NMEDIT=$ac_cv_prog_NMEDIT
6983
if test -n "$NMEDIT"; then
6984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6985
$as_echo "$NMEDIT" >&6; }
6986
else
6987
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988
$as_echo "no" >&6; }
6989
fi
6990
 
6991
 
6992
fi
6993
if test -z "$ac_cv_prog_NMEDIT"; then
6994
  ac_ct_NMEDIT=$NMEDIT
6995
  # Extract the first word of "nmedit", so it can be a program name with args.
6996
set dummy nmedit; ac_word=$2
6997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998
$as_echo_n "checking for $ac_word... " >&6; }
6999
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7000
  $as_echo_n "(cached) " >&6
7001
else
7002
  if test -n "$ac_ct_NMEDIT"; then
7003
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7004
else
7005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006
for as_dir in $PATH
7007
do
7008
  IFS=$as_save_IFS
7009
  test -z "$as_dir" && as_dir=.
7010
    for ac_exec_ext in '' $ac_executable_extensions; do
7011
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7013
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014
    break 2
7015
  fi
7016
done
7017
  done
7018
IFS=$as_save_IFS
7019
 
7020
fi
7021
fi
7022
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7023
if test -n "$ac_ct_NMEDIT"; then
7024
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7025
$as_echo "$ac_ct_NMEDIT" >&6; }
7026
else
7027
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028
$as_echo "no" >&6; }
7029
fi
7030
 
7031
  if test "x$ac_ct_NMEDIT" = x; then
7032
    NMEDIT=":"
7033
  else
7034
    case $cross_compiling:$ac_tool_warned in
7035
yes:)
7036
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038
ac_tool_warned=yes ;;
7039
esac
7040
    NMEDIT=$ac_ct_NMEDIT
7041
  fi
7042
else
7043
  NMEDIT="$ac_cv_prog_NMEDIT"
7044
fi
7045
 
7046
    if test -n "$ac_tool_prefix"; then
7047
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7048
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050
$as_echo_n "checking for $ac_word... " >&6; }
7051
if ${ac_cv_prog_LIPO+:} false; then :
7052
  $as_echo_n "(cached) " >&6
7053
else
7054
  if test -n "$LIPO"; then
7055
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7056
else
7057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058
for as_dir in $PATH
7059
do
7060
  IFS=$as_save_IFS
7061
  test -z "$as_dir" && as_dir=.
7062
    for ac_exec_ext in '' $ac_executable_extensions; do
7063
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7065
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066
    break 2
7067
  fi
7068
done
7069
  done
7070
IFS=$as_save_IFS
7071
 
7072
fi
7073
fi
7074
LIPO=$ac_cv_prog_LIPO
7075
if test -n "$LIPO"; then
7076
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7077
$as_echo "$LIPO" >&6; }
7078
else
7079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080
$as_echo "no" >&6; }
7081
fi
7082
 
7083
 
7084
fi
7085
if test -z "$ac_cv_prog_LIPO"; then
7086
  ac_ct_LIPO=$LIPO
7087
  # Extract the first word of "lipo", so it can be a program name with args.
7088
set dummy lipo; ac_word=$2
7089
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090
$as_echo_n "checking for $ac_word... " >&6; }
7091
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7092
  $as_echo_n "(cached) " >&6
7093
else
7094
  if test -n "$ac_ct_LIPO"; then
7095
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7096
else
7097
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098
for as_dir in $PATH
7099
do
7100
  IFS=$as_save_IFS
7101
  test -z "$as_dir" && as_dir=.
7102
    for ac_exec_ext in '' $ac_executable_extensions; do
7103
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104
    ac_cv_prog_ac_ct_LIPO="lipo"
7105
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106
    break 2
7107
  fi
7108
done
7109
  done
7110
IFS=$as_save_IFS
7111
 
7112
fi
7113
fi
7114
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7115
if test -n "$ac_ct_LIPO"; then
7116
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7117
$as_echo "$ac_ct_LIPO" >&6; }
7118
else
7119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120
$as_echo "no" >&6; }
7121
fi
7122
 
7123
  if test "x$ac_ct_LIPO" = x; then
7124
    LIPO=":"
7125
  else
7126
    case $cross_compiling:$ac_tool_warned in
7127
yes:)
7128
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130
ac_tool_warned=yes ;;
7131
esac
7132
    LIPO=$ac_ct_LIPO
7133
  fi
7134
else
7135
  LIPO="$ac_cv_prog_LIPO"
7136
fi
7137
 
7138
    if test -n "$ac_tool_prefix"; then
7139
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7140
set dummy ${ac_tool_prefix}otool; ac_word=$2
7141
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142
$as_echo_n "checking for $ac_word... " >&6; }
7143
if ${ac_cv_prog_OTOOL+:} false; then :
7144
  $as_echo_n "(cached) " >&6
7145
else
7146
  if test -n "$OTOOL"; then
7147
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7148
else
7149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150
for as_dir in $PATH
7151
do
7152
  IFS=$as_save_IFS
7153
  test -z "$as_dir" && as_dir=.
7154
    for ac_exec_ext in '' $ac_executable_extensions; do
7155
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7157
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158
    break 2
7159
  fi
7160
done
7161
  done
7162
IFS=$as_save_IFS
7163
 
7164
fi
7165
fi
7166
OTOOL=$ac_cv_prog_OTOOL
7167
if test -n "$OTOOL"; then
7168
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7169
$as_echo "$OTOOL" >&6; }
7170
else
7171
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172
$as_echo "no" >&6; }
7173
fi
7174
 
7175
 
7176
fi
7177
if test -z "$ac_cv_prog_OTOOL"; then
7178
  ac_ct_OTOOL=$OTOOL
7179
  # Extract the first word of "otool", so it can be a program name with args.
7180
set dummy otool; ac_word=$2
7181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182
$as_echo_n "checking for $ac_word... " >&6; }
7183
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7184
  $as_echo_n "(cached) " >&6
7185
else
7186
  if test -n "$ac_ct_OTOOL"; then
7187
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7188
else
7189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190
for as_dir in $PATH
7191
do
7192
  IFS=$as_save_IFS
7193
  test -z "$as_dir" && as_dir=.
7194
    for ac_exec_ext in '' $ac_executable_extensions; do
7195
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196
    ac_cv_prog_ac_ct_OTOOL="otool"
7197
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198
    break 2
7199
  fi
7200
done
7201
  done
7202
IFS=$as_save_IFS
7203
 
7204
fi
7205
fi
7206
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7207
if test -n "$ac_ct_OTOOL"; then
7208
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7209
$as_echo "$ac_ct_OTOOL" >&6; }
7210
else
7211
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212
$as_echo "no" >&6; }
7213
fi
7214
 
7215
  if test "x$ac_ct_OTOOL" = x; then
7216
    OTOOL=":"
7217
  else
7218
    case $cross_compiling:$ac_tool_warned in
7219
yes:)
7220
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222
ac_tool_warned=yes ;;
7223
esac
7224
    OTOOL=$ac_ct_OTOOL
7225
  fi
7226
else
7227
  OTOOL="$ac_cv_prog_OTOOL"
7228
fi
7229
 
7230
    if test -n "$ac_tool_prefix"; then
7231
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7232
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234
$as_echo_n "checking for $ac_word... " >&6; }
7235
if ${ac_cv_prog_OTOOL64+:} false; then :
7236
  $as_echo_n "(cached) " >&6
7237
else
7238
  if test -n "$OTOOL64"; then
7239
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7240
else
7241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242
for as_dir in $PATH
7243
do
7244
  IFS=$as_save_IFS
7245
  test -z "$as_dir" && as_dir=.
7246
    for ac_exec_ext in '' $ac_executable_extensions; do
7247
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7249
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250
    break 2
7251
  fi
7252
done
7253
  done
7254
IFS=$as_save_IFS
7255
 
7256
fi
7257
fi
7258
OTOOL64=$ac_cv_prog_OTOOL64
7259
if test -n "$OTOOL64"; then
7260
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7261
$as_echo "$OTOOL64" >&6; }
7262
else
7263
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264
$as_echo "no" >&6; }
7265
fi
7266
 
7267
 
7268
fi
7269
if test -z "$ac_cv_prog_OTOOL64"; then
7270
  ac_ct_OTOOL64=$OTOOL64
7271
  # Extract the first word of "otool64", so it can be a program name with args.
7272
set dummy otool64; ac_word=$2
7273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274
$as_echo_n "checking for $ac_word... " >&6; }
7275
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7276
  $as_echo_n "(cached) " >&6
7277
else
7278
  if test -n "$ac_ct_OTOOL64"; then
7279
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7280
else
7281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282
for as_dir in $PATH
7283
do
7284
  IFS=$as_save_IFS
7285
  test -z "$as_dir" && as_dir=.
7286
    for ac_exec_ext in '' $ac_executable_extensions; do
7287
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288
    ac_cv_prog_ac_ct_OTOOL64="otool64"
7289
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290
    break 2
7291
  fi
7292
done
7293
  done
7294
IFS=$as_save_IFS
7295
 
7296
fi
7297
fi
7298
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7299
if test -n "$ac_ct_OTOOL64"; then
7300
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7301
$as_echo "$ac_ct_OTOOL64" >&6; }
7302
else
7303
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304
$as_echo "no" >&6; }
7305
fi
7306
 
7307
  if test "x$ac_ct_OTOOL64" = x; then
7308
    OTOOL64=":"
7309
  else
7310
    case $cross_compiling:$ac_tool_warned in
7311
yes:)
7312
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314
ac_tool_warned=yes ;;
7315
esac
7316
    OTOOL64=$ac_ct_OTOOL64
7317
  fi
7318
else
7319
  OTOOL64="$ac_cv_prog_OTOOL64"
7320
fi
7321
 
7322
 
7323
 
7324
 
7325
 
7326
 
7327
 
7328
 
7329
 
7330
 
7331
 
7332
 
7333
 
7334
 
7335
 
7336
 
7337
 
7338
 
7339
 
7340
 
7341
 
7342
 
7343
 
7344
 
7345
 
7346
 
7347
 
7348
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7349
$as_echo_n "checking for -single_module linker flag... " >&6; }
7350
if ${lt_cv_apple_cc_single_mod+:} false; then :
7351
  $as_echo_n "(cached) " >&6
7352
else
7353
  lt_cv_apple_cc_single_mod=no
7354
      if test -z "$LT_MULTI_MODULE"; then
7355
	# By default we will add the -single_module flag. You can override
7356
	# by either setting the environment variable LT_MULTI_MODULE
7357
	# non-empty at configure time, or by adding -multi_module to the
7358
	# link flags.
7359
	rm -rf libconftest.dylib*
7360
	echo "int foo(void){return 1;}" > conftest.c
7361
	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7362
-dynamiclib -Wl,-single_module conftest.c" >&5
7363
	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7364
	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7365
        _lt_result=$?
7366
	# If there is a non-empty error log, and "single_module"
7367
	# appears in it, assume the flag caused a linker warning
7368
        if test -s conftest.err && $GREP single_module conftest.err; then
7369
	  cat conftest.err >&5
7370
	# Otherwise, if the output was created with a 0 exit code from
7371
	# the compiler, it worked.
7372
	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7373
	  lt_cv_apple_cc_single_mod=yes
7374
	else
7375
	  cat conftest.err >&5
7376
	fi
7377
	rm -rf libconftest.dylib*
7378
	rm -f conftest.*
7379
      fi
7380
fi
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7382
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7383
 
7384
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7385
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7387
  $as_echo_n "(cached) " >&6
7388
else
7389
  lt_cv_ld_exported_symbols_list=no
7390
      save_LDFLAGS=$LDFLAGS
7391
      echo "_main" > conftest.sym
7392
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7393
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394
/* end confdefs.h.  */
7395
 
7396
int
7397
main ()
7398
{
7399
 
7400
  ;
7401
  return 0;
7402
}
7403
_ACEOF
7404
if ac_fn_c_try_link "$LINENO"; then :
7405
  lt_cv_ld_exported_symbols_list=yes
7406
else
7407
  lt_cv_ld_exported_symbols_list=no
7408
fi
7409
rm -f core conftest.err conftest.$ac_objext \
7410
    conftest$ac_exeext conftest.$ac_ext
7411
	LDFLAGS=$save_LDFLAGS
7412
 
7413
fi
7414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7415
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7416
 
7417
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7418
$as_echo_n "checking for -force_load linker flag... " >&6; }
7419
if ${lt_cv_ld_force_load+:} false; then :
7420
  $as_echo_n "(cached) " >&6
7421
else
7422
  lt_cv_ld_force_load=no
7423
      cat > conftest.c << _LT_EOF
7424
int forced_loaded() { return 2;}
7425
_LT_EOF
7426
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7427
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7428
      echo "$AR cru libconftest.a conftest.o" >&5
7429
      $AR cru libconftest.a conftest.o 2>&5
7430
      echo "$RANLIB libconftest.a" >&5
7431
      $RANLIB libconftest.a 2>&5
7432
      cat > conftest.c << _LT_EOF
7433
int main() { return 0;}
7434
_LT_EOF
7435
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7436
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7437
      _lt_result=$?
7438
      if test -s conftest.err && $GREP force_load conftest.err; then
7439
	cat conftest.err >&5
7440
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7441
	lt_cv_ld_force_load=yes
7442
      else
7443
	cat conftest.err >&5
7444
      fi
7445
        rm -f conftest.err libconftest.a conftest conftest.c
7446
        rm -rf conftest.dSYM
7447
 
7448
fi
7449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7450
$as_echo "$lt_cv_ld_force_load" >&6; }
7451
    case $host_os in
7452
    rhapsody* | darwin1.[012])
7453
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7454
    darwin1.*)
7455
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7456
    darwin*) # darwin 5.x on
7457
      # if running on 10.5 or later, the deployment target defaults
7458
      # to the OS version, if on x86, and 10.4, the deployment
7459
      # target defaults to 10.4. Don't you love it?
7460
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7461
	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7462
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7463
	10.[012][,.]*)
7464
	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7465
	10.*)
7466
	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7467
      esac
7468
    ;;
7469
  esac
7470
    if test yes = "$lt_cv_apple_cc_single_mod"; then
7471
      _lt_dar_single_mod='$single_module'
7472
    fi
7473
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7474
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7475
    else
7476
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7477
    fi
7478
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7479
      _lt_dsymutil='~$DSYMUTIL $lib || :'
7480
    else
7481
      _lt_dsymutil=
7482
    fi
7483
    ;;
7484
  esac
7485
 
7486
# func_munge_path_list VARIABLE PATH
7487
# -----------------------------------
7488
# VARIABLE is name of variable containing _space_ separated list of
7489
# directories to be munged by the contents of PATH, which is string
7490
# having a format:
7491
# "DIR[:DIR]:"
7492
#       string "DIR[ DIR]" will be prepended to VARIABLE
7493
# ":DIR[:DIR]"
7494
#       string "DIR[ DIR]" will be appended to VARIABLE
7495
# "DIRP[:DIRP]::[DIRA:]DIRA"
7496
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7497
#       "DIRA[ DIRA]" will be appended to VARIABLE
7498
# "DIR[:DIR]"
7499
#       VARIABLE will be replaced by "DIR[ DIR]"
7500
func_munge_path_list ()
7501
{
7502
    case x$2 in
7503
    x)
7504
        ;;
7505
    *:)
7506
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7507
        ;;
7508
    x:*)
7509
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7510
        ;;
7511
    *::*)
7512
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7513
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7514
        ;;
7515
    *)
7516
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7517
        ;;
7518
    esac
7519
}
7520
 
7521
ac_ext=c
7522
ac_cpp='$CPP $CPPFLAGS'
7523
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7527
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7528
# On Suns, sometimes $CPP names a directory.
7529
if test -n "$CPP" && test -d "$CPP"; then
7530
  CPP=
7531
fi
7532
if test -z "$CPP"; then
7533
  if ${ac_cv_prog_CPP+:} false; then :
7534
  $as_echo_n "(cached) " >&6
7535
else
7536
      # Double quotes because CPP needs to be expanded
7537
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7538
    do
7539
      ac_preproc_ok=false
7540
for ac_c_preproc_warn_flag in '' yes
7541
do
7542
  # Use a header file that comes with gcc, so configuring glibc
7543
  # with a fresh cross-compiler works.
7544
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7545
  # <limits.h> exists even on freestanding compilers.
7546
  # On the NeXT, cc -E runs the code through the compiler's parser,
7547
  # not just through cpp. "Syntax error" is here to catch this case.
7548
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549
/* end confdefs.h.  */
7550
#ifdef __STDC__
7551
# include <limits.h>
7552
#else
7553
# include <assert.h>
7554
#endif
7555
		     Syntax error
7556
_ACEOF
7557
if ac_fn_c_try_cpp "$LINENO"; then :
7558
 
7559
else
7560
  # Broken: fails on valid input.
7561
continue
7562
fi
7563
rm -f conftest.err conftest.i conftest.$ac_ext
7564
 
7565
  # OK, works on sane cases.  Now check whether nonexistent headers
7566
  # can be detected and how.
7567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568
/* end confdefs.h.  */
7569
#include <ac_nonexistent.h>
7570
_ACEOF
7571
if ac_fn_c_try_cpp "$LINENO"; then :
7572
  # Broken: success on invalid input.
7573
continue
7574
else
7575
  # Passes both tests.
7576
ac_preproc_ok=:
7577
break
7578
fi
7579
rm -f conftest.err conftest.i conftest.$ac_ext
7580
 
7581
done
7582
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7583
rm -f conftest.i conftest.err conftest.$ac_ext
7584
if $ac_preproc_ok; then :
7585
  break
7586
fi
7587
 
7588
    done
7589
    ac_cv_prog_CPP=$CPP
7590
 
7591
fi
7592
  CPP=$ac_cv_prog_CPP
7593
else
7594
  ac_cv_prog_CPP=$CPP
7595
fi
7596
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7597
$as_echo "$CPP" >&6; }
7598
ac_preproc_ok=false
7599
for ac_c_preproc_warn_flag in '' yes
7600
do
7601
  # Use a header file that comes with gcc, so configuring glibc
7602
  # with a fresh cross-compiler works.
7603
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7604
  # <limits.h> exists even on freestanding compilers.
7605
  # On the NeXT, cc -E runs the code through the compiler's parser,
7606
  # not just through cpp. "Syntax error" is here to catch this case.
7607
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608
/* end confdefs.h.  */
7609
#ifdef __STDC__
7610
# include <limits.h>
7611
#else
7612
# include <assert.h>
7613
#endif
7614
		     Syntax error
7615
_ACEOF
7616
if ac_fn_c_try_cpp "$LINENO"; then :
7617
 
7618
else
7619
  # Broken: fails on valid input.
7620
continue
7621
fi
7622
rm -f conftest.err conftest.i conftest.$ac_ext
7623
 
7624
  # OK, works on sane cases.  Now check whether nonexistent headers
7625
  # can be detected and how.
7626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627
/* end confdefs.h.  */
7628
#include <ac_nonexistent.h>
7629
_ACEOF
7630
if ac_fn_c_try_cpp "$LINENO"; then :
7631
  # Broken: success on invalid input.
7632
continue
7633
else
7634
  # Passes both tests.
7635
ac_preproc_ok=:
7636
break
7637
fi
7638
rm -f conftest.err conftest.i conftest.$ac_ext
7639
 
7640
done
7641
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7642
rm -f conftest.i conftest.err conftest.$ac_ext
7643
if $ac_preproc_ok; then :
7644
 
7645
else
7646
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7647
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7648
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7649
See \`config.log' for more details" "$LINENO" 5; }
7650
fi
7651
 
7652
ac_ext=c
7653
ac_cpp='$CPP $CPPFLAGS'
7654
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657
 
7658
 
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7660
$as_echo_n "checking for ANSI C header files... " >&6; }
7661
if ${ac_cv_header_stdc+:} false; then :
7662
  $as_echo_n "(cached) " >&6
7663
else
7664
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665
/* end confdefs.h.  */
7666
#include <stdlib.h>
7667
#include <stdarg.h>
7668
#include <string.h>
7669
#include <float.h>
7670
 
7671
int
7672
main ()
7673
{
7674
 
7675
  ;
7676
  return 0;
7677
}
7678
_ACEOF
7679
if ac_fn_c_try_compile "$LINENO"; then :
7680
  ac_cv_header_stdc=yes
7681
else
7682
  ac_cv_header_stdc=no
7683
fi
7684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685
 
7686
if test $ac_cv_header_stdc = yes; then
7687
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7688
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689
/* end confdefs.h.  */
7690
#include <string.h>
7691
 
7692
_ACEOF
7693
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7694
  $EGREP "memchr" >/dev/null 2>&1; then :
7695
 
7696
else
7697
  ac_cv_header_stdc=no
7698
fi
7699
rm -f conftest*
7700
 
7701
fi
7702
 
7703
if test $ac_cv_header_stdc = yes; then
7704
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7705
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706
/* end confdefs.h.  */
7707
#include <stdlib.h>
7708
 
7709
_ACEOF
7710
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711
  $EGREP "free" >/dev/null 2>&1; then :
7712
 
7713
else
7714
  ac_cv_header_stdc=no
7715
fi
7716
rm -f conftest*
7717
 
7718
fi
7719
 
7720
if test $ac_cv_header_stdc = yes; then
7721
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7722
  if test "$cross_compiling" = yes; then :
7723
  :
7724
else
7725
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726
/* end confdefs.h.  */
7727
#include <ctype.h>
7728
#include <stdlib.h>
7729
#if ((' ' & 0x0FF) == 0x020)
7730
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7731
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7732
#else
7733
# define ISLOWER(c) \
7734
		   (('a' <= (c) && (c) <= 'i') \
7735
		     || ('j' <= (c) && (c) <= 'r') \
7736
		     || ('s' <= (c) && (c) <= 'z'))
7737
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7738
#endif
7739
 
7740
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7741
int
7742
main ()
7743
{
7744
  int i;
7745
  for (i = 0; i < 256; i++)
7746
    if (XOR (islower (i), ISLOWER (i))
7747
	|| toupper (i) != TOUPPER (i))
7748
      return 2;
7749
  return 0;
7750
}
7751
_ACEOF
7752
if ac_fn_c_try_run "$LINENO"; then :
7753
 
7754
else
7755
  ac_cv_header_stdc=no
7756
fi
7757
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7758
  conftest.$ac_objext conftest.beam conftest.$ac_ext
7759
fi
7760
 
7761
fi
7762
fi
7763
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7764
$as_echo "$ac_cv_header_stdc" >&6; }
7765
if test $ac_cv_header_stdc = yes; then
7766
 
7767
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7768
 
7769
fi
7770
 
7771
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7772
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7773
		  inttypes.h stdint.h unistd.h
7774
do :
7775
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7777
"
7778
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7779
  cat >>confdefs.h <<_ACEOF
7780
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7781
_ACEOF
7782
 
7783
fi
7784
 
7785
done
7786
 
7787
 
7788
for ac_header in dlfcn.h
7789
do :
7790
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7791
"
7792
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7793
  cat >>confdefs.h <<_ACEOF
7794
#define HAVE_DLFCN_H 1
7795
_ACEOF
7796
 
7797
fi
7798
 
7799
done
7800
 
7801
 
7802
 
7803
 
7804
 
7805
# Set options
7806
 
7807
 
7808
 
7809
        enable_dlopen=no
7810
 
7811
 
7812
  enable_win32_dll=no
7813
 
7814
 
7815
            # Check whether --enable-shared was given.
7816
if test "${enable_shared+set}" = set; then :
7817
  enableval=$enable_shared; p=${PACKAGE-default}
7818
    case $enableval in
7819
    yes) enable_shared=yes ;;
7820
    no) enable_shared=no ;;
7821
    *)
7822
      enable_shared=no
7823
      # Look at the argument we got.  We use all the common list separators.
7824
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7825
      for pkg in $enableval; do
7826
	IFS=$lt_save_ifs
7827
	if test "X$pkg" = "X$p"; then
7828
	  enable_shared=yes
7829
	fi
7830
      done
7831
      IFS=$lt_save_ifs
7832
      ;;
7833
    esac
7834
else
7835
  enable_shared=yes
7836
fi
7837
 
7838
 
7839
 
7840
 
7841
 
7842
 
7843
 
7844
 
7845
 
7846
  # Check whether --enable-static was given.
7847
if test "${enable_static+set}" = set; then :
7848
  enableval=$enable_static; p=${PACKAGE-default}
7849
    case $enableval in
7850
    yes) enable_static=yes ;;
7851
    no) enable_static=no ;;
7852
    *)
7853
     enable_static=no
7854
      # Look at the argument we got.  We use all the common list separators.
7855
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7856
      for pkg in $enableval; do
7857
	IFS=$lt_save_ifs
7858
	if test "X$pkg" = "X$p"; then
7859
	  enable_static=yes
7860
	fi
7861
      done
7862
      IFS=$lt_save_ifs
7863
      ;;
7864
    esac
7865
else
7866
  enable_static=yes
7867
fi
7868
 
7869
 
7870
 
7871
 
7872
 
7873
 
7874
 
7875
 
7876
 
7877
 
7878
# Check whether --with-pic was given.
7879
if test "${with_pic+set}" = set; then :
7880
  withval=$with_pic; lt_p=${PACKAGE-default}
7881
    case $withval in
7882
    yes|no) pic_mode=$withval ;;
7883
    *)
7884
      pic_mode=default
7885
      # Look at the argument we got.  We use all the common list separators.
7886
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7887
      for lt_pkg in $withval; do
7888
	IFS=$lt_save_ifs
7889
	if test "X$lt_pkg" = "X$lt_p"; then
7890
	  pic_mode=yes
7891
	fi
7892
      done
7893
      IFS=$lt_save_ifs
7894
      ;;
7895
    esac
7896
else
7897
  pic_mode=default
7898
fi
7899
 
7900
 
7901
 
7902
 
7903
 
7904
 
7905
 
7906
 
7907
  # Check whether --enable-fast-install was given.
7908
if test "${enable_fast_install+set}" = set; then :
7909
  enableval=$enable_fast_install; p=${PACKAGE-default}
7910
    case $enableval in
7911
    yes) enable_fast_install=yes ;;
7912
    no) enable_fast_install=no ;;
7913
    *)
7914
      enable_fast_install=no
7915
      # Look at the argument we got.  We use all the common list separators.
7916
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7917
      for pkg in $enableval; do
7918
	IFS=$lt_save_ifs
7919
	if test "X$pkg" = "X$p"; then
7920
	  enable_fast_install=yes
7921
	fi
7922
      done
7923
      IFS=$lt_save_ifs
7924
      ;;
7925
    esac
7926
else
7927
  enable_fast_install=yes
7928
fi
7929
 
7930
 
7931
 
7932
 
7933
 
7934
 
7935
 
7936
 
7937
  shared_archive_member_spec=
7938
case $host,$enable_shared in
7939
power*-*-aix[5-9]*,yes)
7940
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7941
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7942
 
7943
# Check whether --with-aix-soname was given.
7944
if test "${with_aix_soname+set}" = set; then :
7945
  withval=$with_aix_soname; case $withval in
7946
    aix|svr4|both)
7947
      ;;
7948
    *)
7949
      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7950
      ;;
7951
    esac
7952
    lt_cv_with_aix_soname=$with_aix_soname
7953
else
7954
  if ${lt_cv_with_aix_soname+:} false; then :
7955
  $as_echo_n "(cached) " >&6
7956
else
7957
  lt_cv_with_aix_soname=aix
7958
fi
7959
 
7960
    with_aix_soname=$lt_cv_with_aix_soname
7961
fi
7962
 
7963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7964
$as_echo "$with_aix_soname" >&6; }
7965
  if test aix != "$with_aix_soname"; then
7966
    # For the AIX way of multilib, we name the shared archive member
7967
    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7968
    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7969
    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7970
    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7971
    if test 64 = "${OBJECT_MODE-32}"; then
7972
      shared_archive_member_spec=shr_64
7973
    else
7974
      shared_archive_member_spec=shr
7975
    fi
7976
  fi
7977
  ;;
7978
*)
7979
  with_aix_soname=aix
7980
  ;;
7981
esac
7982
 
7983
 
7984
 
7985
 
7986
 
7987
 
7988
 
7989
 
7990
 
7991
 
7992
# This can be used to rebuild libtool when needed
7993
LIBTOOL_DEPS=$ltmain
7994
 
7995
# Always use our own libtool.
7996
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7997
 
7998
 
7999
 
8000
 
8001
 
8002
 
8003
 
8004
 
8005
 
8006
 
8007
 
8008
 
8009
 
8010
 
8011
 
8012
 
8013
 
8014
 
8015
 
8016
 
8017
 
8018
 
8019
 
8020
 
8021
 
8022
 
8023
 
8024
 
8025
 
8026
 
8027
test -z "$LN_S" && LN_S="ln -s"
8028
 
8029
 
8030
 
8031
 
8032
 
8033
 
8034
 
8035
 
8036
 
8037
 
8038
 
8039
 
8040
 
8041
 
8042
if test -n "${ZSH_VERSION+set}"; then
8043
   setopt NO_GLOB_SUBST
8044
fi
8045
 
8046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8047
$as_echo_n "checking for objdir... " >&6; }
8048
if ${lt_cv_objdir+:} false; then :
8049
  $as_echo_n "(cached) " >&6
8050
else
8051
  rm -f .libs 2>/dev/null
8052
mkdir .libs 2>/dev/null
8053
if test -d .libs; then
8054
  lt_cv_objdir=.libs
8055
else
8056
  # MS-DOS does not allow filenames that begin with a dot.
8057
  lt_cv_objdir=_libs
8058
fi
8059
rmdir .libs 2>/dev/null
8060
fi
8061
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8062
$as_echo "$lt_cv_objdir" >&6; }
8063
objdir=$lt_cv_objdir
8064
 
8065
 
8066
 
8067
 
8068
 
8069
cat >>confdefs.h <<_ACEOF
8070
#define LT_OBJDIR "$lt_cv_objdir/"
8071
_ACEOF
8072
 
8073
 
8074
 
8075
 
8076
case $host_os in
8077
aix3*)
8078
  # AIX sometimes has problems with the GCC collect2 program.  For some
8079
  # reason, if we set the COLLECT_NAMES environment variable, the problems
8080
  # vanish in a puff of smoke.
8081
  if test set != "${COLLECT_NAMES+set}"; then
8082
    COLLECT_NAMES=
8083
    export COLLECT_NAMES
8084
  fi
8085
  ;;
8086
esac
8087
 
8088
# Global variables:
8089
ofile=libtool
8090
can_build_shared=yes
8091
 
8092
# All known linkers require a '.a' archive for static linking (except MSVC,
8093
# which needs '.lib').
8094
libext=a
8095
 
8096
with_gnu_ld=$lt_cv_prog_gnu_ld
8097
 
8098
old_CC=$CC
8099
old_CFLAGS=$CFLAGS
8100
 
8101
# Set sane defaults for various variables
8102
test -z "$CC" && CC=cc
8103
test -z "$LTCC" && LTCC=$CC
8104
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8105
test -z "$LD" && LD=ld
8106
test -z "$ac_objext" && ac_objext=o
8107
 
8108
func_cc_basename $compiler
8109
cc_basename=$func_cc_basename_result
8110
 
8111
 
8112
# Only perform the check for file, if the check method requires it
8113
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8114
case $deplibs_check_method in
8115
file_magic*)
8116
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8117
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8118
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8119
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8120
  $as_echo_n "(cached) " >&6
8121
else
8122
  case $MAGIC_CMD in
8123
[\\/*] |  ?:[\\/]*)
8124
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8125
  ;;
8126
*)
8127
  lt_save_MAGIC_CMD=$MAGIC_CMD
8128
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8129
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8130
  for ac_dir in $ac_dummy; do
8131
    IFS=$lt_save_ifs
8132
    test -z "$ac_dir" && ac_dir=.
8133
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8134
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8135
      if test -n "$file_magic_test_file"; then
8136
	case $deplibs_check_method in
8137
	"file_magic "*)
8138
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8139
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8140
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8141
	    $EGREP "$file_magic_regex" > /dev/null; then
8142
	    :
8143
	  else
8144
	    cat <<_LT_EOF 1>&2
8145
 
8146
*** Warning: the command libtool uses to detect shared libraries,
8147
*** $file_magic_cmd, produces output that libtool cannot recognize.
8148
*** The result is that libtool may fail to recognize shared libraries
8149
*** as such.  This will affect the creation of libtool libraries that
8150
*** depend on shared libraries, but programs linked with such libtool
8151
*** libraries will work regardless of this problem.  Nevertheless, you
8152
*** may want to report the problem to your system manager and/or to
8153
*** bug-libtool@gnu.org
8154
 
8155
_LT_EOF
8156
	  fi ;;
8157
	esac
8158
      fi
8159
      break
8160
    fi
8161
  done
8162
  IFS=$lt_save_ifs
8163
  MAGIC_CMD=$lt_save_MAGIC_CMD
8164
  ;;
8165
esac
8166
fi
8167
 
8168
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8169
if test -n "$MAGIC_CMD"; then
8170
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8171
$as_echo "$MAGIC_CMD" >&6; }
8172
else
8173
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174
$as_echo "no" >&6; }
8175
fi
8176
 
8177
 
8178
 
8179
 
8180
 
8181
if test -z "$lt_cv_path_MAGIC_CMD"; then
8182
  if test -n "$ac_tool_prefix"; then
8183
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8184
$as_echo_n "checking for file... " >&6; }
8185
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8186
  $as_echo_n "(cached) " >&6
8187
else
8188
  case $MAGIC_CMD in
8189
[\\/*] |  ?:[\\/]*)
8190
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8191
  ;;
8192
*)
8193
  lt_save_MAGIC_CMD=$MAGIC_CMD
8194
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8195
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8196
  for ac_dir in $ac_dummy; do
8197
    IFS=$lt_save_ifs
8198
    test -z "$ac_dir" && ac_dir=.
8199
    if test -f "$ac_dir/file"; then
8200
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8201
      if test -n "$file_magic_test_file"; then
8202
	case $deplibs_check_method in
8203
	"file_magic "*)
8204
	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8205
	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8206
	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8207
	    $EGREP "$file_magic_regex" > /dev/null; then
8208
	    :
8209
	  else
8210
	    cat <<_LT_EOF 1>&2
8211
 
8212
*** Warning: the command libtool uses to detect shared libraries,
8213
*** $file_magic_cmd, produces output that libtool cannot recognize.
8214
*** The result is that libtool may fail to recognize shared libraries
8215
*** as such.  This will affect the creation of libtool libraries that
8216
*** depend on shared libraries, but programs linked with such libtool
8217
*** libraries will work regardless of this problem.  Nevertheless, you
8218
*** may want to report the problem to your system manager and/or to
8219
*** bug-libtool@gnu.org
8220
 
8221
_LT_EOF
8222
	  fi ;;
8223
	esac
8224
      fi
8225
      break
8226
    fi
8227
  done
8228
  IFS=$lt_save_ifs
8229
  MAGIC_CMD=$lt_save_MAGIC_CMD
8230
  ;;
8231
esac
8232
fi
8233
 
8234
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8235
if test -n "$MAGIC_CMD"; then
8236
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8237
$as_echo "$MAGIC_CMD" >&6; }
8238
else
8239
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240
$as_echo "no" >&6; }
8241
fi
8242
 
8243
 
8244
  else
8245
    MAGIC_CMD=:
8246
  fi
8247
fi
8248
 
8249
  fi
8250
  ;;
8251
esac
8252
 
8253
# Use C for the default configuration in the libtool script
8254
 
8255
lt_save_CC=$CC
8256
ac_ext=c
8257
ac_cpp='$CPP $CPPFLAGS'
8258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8261
 
8262
 
8263
# Source file extension for C test sources.
8264
ac_ext=c
8265
 
8266
# Object file extension for compiled C test sources.
8267
objext=o
8268
objext=$objext
8269
 
8270
# Code to be used in simple compile tests
8271
lt_simple_compile_test_code="int some_variable = 0;"
8272
 
8273
# Code to be used in simple link tests
8274
lt_simple_link_test_code='int main(){return(0);}'
8275
 
8276
 
8277
 
8278
 
8279
 
8280
 
8281
 
8282
# If no C compiler was specified, use CC.
8283
LTCC=${LTCC-"$CC"}
8284
 
8285
# If no C compiler flags were specified, use CFLAGS.
8286
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8287
 
8288
# Allow CC to be a program name with arguments.
8289
compiler=$CC
8290
 
8291
# Save the default compiler, since it gets overwritten when the other
8292
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8293
compiler_DEFAULT=$CC
8294
 
8295
# save warnings/boilerplate of simple test code
8296
ac_outfile=conftest.$ac_objext
8297
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8298
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8299
_lt_compiler_boilerplate=`cat conftest.err`
8300
$RM conftest*
8301
 
8302
ac_outfile=conftest.$ac_objext
8303
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8304
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8305
_lt_linker_boilerplate=`cat conftest.err`
8306
$RM -r conftest*
8307
 
8308
 
8309
## CAVEAT EMPTOR:
8310
## There is no encapsulation within the following macros, do not change
8311
## the running order or otherwise move them around unless you know exactly
8312
## what you are doing...
8313
if test -n "$compiler"; then
8314
 
8315
lt_prog_compiler_no_builtin_flag=
8316
 
8317
if test yes = "$GCC"; then
8318
  case $cc_basename in
8319
  nvcc*)
8320
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8321
  *)
8322
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8323
  esac
8324
 
8325
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8326
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8327
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8328
  $as_echo_n "(cached) " >&6
8329
else
8330
  lt_cv_prog_compiler_rtti_exceptions=no
8331
   ac_outfile=conftest.$ac_objext
8332
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8333
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8334
   # Insert the option either (1) after the last *FLAGS variable, or
8335
   # (2) before a word containing "conftest.", or (3) at the end.
8336
   # Note that $ac_compile itself does not contain backslashes and begins
8337
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8338
   # The option is referenced via a variable to avoid confusing sed.
8339
   lt_compile=`echo "$ac_compile" | $SED \
8340
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8341
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8342
   -e 's:$: $lt_compiler_flag:'`
8343
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8344
   (eval "$lt_compile" 2>conftest.err)
8345
   ac_status=$?
8346
   cat conftest.err >&5
8347
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348
   if (exit $ac_status) && test -s "$ac_outfile"; then
8349
     # The compiler can only warn and ignore the option if not recognized
8350
     # So say no if there are warnings other than the usual output.
8351
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8352
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8353
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8354
       lt_cv_prog_compiler_rtti_exceptions=yes
8355
     fi
8356
   fi
8357
   $RM conftest*
8358
 
8359
fi
8360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8361
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8362
 
8363
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8364
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8365
else
8366
    :
8367
fi
8368
 
8369
fi
8370
 
8371
 
8372
 
8373
 
8374
 
8375
 
8376
  lt_prog_compiler_wl=
8377
lt_prog_compiler_pic=
8378
lt_prog_compiler_static=
8379
 
8380
 
8381
  if test yes = "$GCC"; then
8382
    lt_prog_compiler_wl='-Wl,'
8383
    lt_prog_compiler_static='-static'
8384
 
8385
    case $host_os in
8386
      aix*)
8387
      # All AIX code is PIC.
8388
      if test ia64 = "$host_cpu"; then
8389
	# AIX 5 now supports IA64 processor
8390
	lt_prog_compiler_static='-Bstatic'
8391
      fi
8392
      lt_prog_compiler_pic='-fPIC'
8393
      ;;
8394
 
8395
    amigaos*)
8396
      case $host_cpu in
8397
      powerpc)
8398
            # see comment about AmigaOS4 .so support
8399
            lt_prog_compiler_pic='-fPIC'
8400
        ;;
8401
      m68k)
8402
            # FIXME: we need at least 68020 code to build shared libraries, but
8403
            # adding the '-m68020' flag to GCC prevents building anything better,
8404
            # like '-m68040'.
8405
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8406
        ;;
8407
      esac
8408
      ;;
8409
 
8410
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8411
      # PIC is the default for these OSes.
8412
      ;;
8413
 
8414
    mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
8415
      # This hack is so that the source file can tell whether it is being
8416
      # built for inclusion in a dll (and should export symbols for example).
8417
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8418
      # (--disable-auto-import) libraries
8419
      lt_prog_compiler_pic='-DDLL_EXPORT'
8420
      case $host_os in
8421
      os2*)
8422
	lt_prog_compiler_static='$wl-static'
8423
	;;
8424
      esac
8425
      ;;
8426
 
8427
    darwin* | rhapsody*)
8428
      # PIC is the default on this platform
8429
      # Common symbols not allowed in MH_DYLIB files
8430
      lt_prog_compiler_pic='-fno-common'
8431
      ;;
8432
 
8433
    haiku*)
8434
      # PIC is the default for Haiku.
8435
      # The "-static" flag exists, but is broken.
8436
      lt_prog_compiler_static=
8437
      ;;
8438
 
8439
    hpux*)
8440
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8441
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8442
      # sets the default TLS model and affects inlining.
8443
      case $host_cpu in
8444
      hppa*64*)
8445
	# +Z the default
8446
	;;
8447
      *)
8448
	lt_prog_compiler_pic='-fPIC'
8449
	;;
8450
      esac
8451
      ;;
8452
 
8453
    interix[3-9]*)
8454
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8455
      # Instead, we relocate shared libraries at runtime.
8456
      ;;
8457
 
8458
    msdosdjgpp*)
8459
      # Just because we use GCC doesn't mean we suddenly get shared libraries
8460
      # on systems that don't support them.
8461
      lt_prog_compiler_can_build_shared=no
8462
      enable_shared=no
8463
      ;;
8464
 
8465
    *nto* | *qnx*)
8466
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8467
      # it will coredump.
8468
      lt_prog_compiler_pic='-fPIC -shared'
8469
      ;;
8470
 
8471
    sysv4*MP*)
8472
      if test -d /usr/nec; then
8473
	lt_prog_compiler_pic=-Kconform_pic
8474
      fi
8475
      ;;
8476
 
8477
    *)
8478
      lt_prog_compiler_pic='-fPIC'
8479
      ;;
8480
    esac
8481
 
8482
    case $cc_basename in
8483
    nvcc*) # Cuda Compiler Driver 2.2
8484
      lt_prog_compiler_wl='-Xlinker '
8485
      if test -n "$lt_prog_compiler_pic"; then
8486
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8487
      fi
8488
      ;;
8489
    esac
8490
  else
8491
    # PORTME Check for flag to pass linker flags through the system compiler.
8492
    case $host_os in
8493
    aix*)
8494
      lt_prog_compiler_wl='-Wl,'
8495
      if test ia64 = "$host_cpu"; then
8496
	# AIX 5 now supports IA64 processor
8497
	lt_prog_compiler_static='-Bstatic'
8498
      else
8499
	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8500
      fi
8501
      ;;
8502
 
8503
    darwin* | rhapsody*)
8504
      # PIC is the default on this platform
8505
      # Common symbols not allowed in MH_DYLIB files
8506
      lt_prog_compiler_pic='-fno-common'
8507
      case $cc_basename in
8508
      nagfor*)
8509
        # NAG Fortran compiler
8510
        lt_prog_compiler_wl='-Wl,-Wl,,'
8511
        lt_prog_compiler_pic='-PIC'
8512
        lt_prog_compiler_static='-Bstatic'
8513
        ;;
8514
      esac
8515
      ;;
8516
 
8517
    mingw* | cygwin* | msys* | pw32* | os2* | cegcc*)
8518
      # This hack is so that the source file can tell whether it is being
8519
      # built for inclusion in a dll (and should export symbols for example).
8520
      lt_prog_compiler_pic='-DDLL_EXPORT'
8521
      case $host_os in
8522
      os2*)
8523
	lt_prog_compiler_static='$wl-static'
8524
	;;
8525
      esac
8526
      ;;
8527
 
8528
    hpux9* | hpux10* | hpux11*)
8529
      lt_prog_compiler_wl='-Wl,'
8530
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8531
      # not for PA HP-UX.
8532
      case $host_cpu in
8533
      hppa*64*|ia64*)
8534
	# +Z the default
8535
	;;
8536
      *)
8537
	lt_prog_compiler_pic='+Z'
8538
	;;
8539
      esac
8540
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8541
      lt_prog_compiler_static='$wl-a ${wl}archive'
8542
      ;;
8543
 
8544
    irix5* | irix6* | nonstopux*)
8545
      lt_prog_compiler_wl='-Wl,'
8546
      # PIC (with -KPIC) is the default.
8547
      lt_prog_compiler_static='-non_shared'
8548
      ;;
8549
 
8550
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8551
      case $cc_basename in
8552
      # old Intel for x86_64, which still supported -KPIC.
8553
      ecc*)
8554
	lt_prog_compiler_wl='-Wl,'
8555
	lt_prog_compiler_pic='-KPIC'
8556
	lt_prog_compiler_static='-static'
8557
        ;;
8558
      # icc used to be incompatible with GCC.
8559
      # ICC 10 doesn't accept -KPIC any more.
8560
      icc* | ifort*)
8561
	lt_prog_compiler_wl='-Wl,'
8562
	lt_prog_compiler_pic='-fPIC'
8563
	lt_prog_compiler_static='-static'
8564
        ;;
8565
      # Lahey Fortran 8.1.
8566
      lf95*)
8567
	lt_prog_compiler_wl='-Wl,'
8568
	lt_prog_compiler_pic='--shared'
8569
	lt_prog_compiler_static='--static'
8570
	;;
8571
      nagfor*)
8572
	# NAG Fortran compiler
8573
	lt_prog_compiler_wl='-Wl,-Wl,,'
8574
	lt_prog_compiler_pic='-PIC'
8575
	lt_prog_compiler_static='-Bstatic'
8576
	;;
8577
      tcc*)
8578
	# Fabrice Bellard et al's Tiny C Compiler
8579
	lt_prog_compiler_wl='-Wl,'
8580
	lt_prog_compiler_pic='-fPIC'
8581
	lt_prog_compiler_static='-static'
8582
	;;
8583
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8584
        # Portland Group compilers (*not* the Pentium gcc compiler,
8585
	# which looks to be a dead project)
8586
	lt_prog_compiler_wl='-Wl,'
8587
	lt_prog_compiler_pic='-fpic'
8588
	lt_prog_compiler_static='-Bstatic'
8589
        ;;
8590
      ccc*)
8591
        lt_prog_compiler_wl='-Wl,'
8592
        # All Alpha code is PIC.
8593
        lt_prog_compiler_static='-non_shared'
8594
        ;;
8595
      xl* | bgxl* | bgf* | mpixl*)
8596
	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8597
	lt_prog_compiler_wl='-Wl,'
8598
	lt_prog_compiler_pic='-qpic'
8599
	lt_prog_compiler_static='-qstaticlink'
8600
	;;
8601
      *)
8602
	case `$CC -V 2>&1 | sed 5q` in
8603
	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8604
	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8605
	  lt_prog_compiler_pic='-KPIC'
8606
	  lt_prog_compiler_static='-Bstatic'
8607
	  lt_prog_compiler_wl=''
8608
	  ;;
8609
	*Sun\ F* | *Sun*Fortran*)
8610
	  lt_prog_compiler_pic='-KPIC'
8611
	  lt_prog_compiler_static='-Bstatic'
8612
	  lt_prog_compiler_wl='-Qoption ld '
8613
	  ;;
8614
	*Sun\ C*)
8615
	  # Sun C 5.9
8616
	  lt_prog_compiler_pic='-KPIC'
8617
	  lt_prog_compiler_static='-Bstatic'
8618
	  lt_prog_compiler_wl='-Wl,'
8619
	  ;;
8620
        *Intel*\ [CF]*Compiler*)
8621
	  lt_prog_compiler_wl='-Wl,'
8622
	  lt_prog_compiler_pic='-fPIC'
8623
	  lt_prog_compiler_static='-static'
8624
	  ;;
8625
	*Portland\ Group*)
8626
	  lt_prog_compiler_wl='-Wl,'
8627
	  lt_prog_compiler_pic='-fpic'
8628
	  lt_prog_compiler_static='-Bstatic'
8629
	  ;;
8630
	esac
8631
	;;
8632
      esac
8633
      ;;
8634
 
8635
    newsos6)
8636
      lt_prog_compiler_pic='-KPIC'
8637
      lt_prog_compiler_static='-Bstatic'
8638
      ;;
8639
 
8640
    *nto* | *qnx*)
8641
      # QNX uses GNU C++, but need to define -shared option too, otherwise
8642
      # it will coredump.
8643
      lt_prog_compiler_pic='-fPIC -shared'
8644
      ;;
8645
 
8646
    osf3* | osf4* | osf5*)
8647
      lt_prog_compiler_wl='-Wl,'
8648
      # All OSF/1 code is PIC.
8649
      lt_prog_compiler_static='-non_shared'
8650
      ;;
8651
 
8652
    rdos*)
8653
      lt_prog_compiler_static='-non_shared'
8654
      ;;
8655
 
8656
    solaris*)
8657
      lt_prog_compiler_pic='-KPIC'
8658
      lt_prog_compiler_static='-Bstatic'
8659
      case $cc_basename in
8660
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8661
	lt_prog_compiler_wl='-Qoption ld ';;
8662
      *)
8663
	lt_prog_compiler_wl='-Wl,';;
8664
      esac
8665
      ;;
8666
 
8667
    sunos4*)
8668
      lt_prog_compiler_wl='-Qoption ld '
8669
      lt_prog_compiler_pic='-PIC'
8670
      lt_prog_compiler_static='-Bstatic'
8671
      ;;
8672
 
8673
    sysv4 | sysv4.2uw2* | sysv4.3*)
8674
      lt_prog_compiler_wl='-Wl,'
8675
      lt_prog_compiler_pic='-KPIC'
8676
      lt_prog_compiler_static='-Bstatic'
8677
      ;;
8678
 
8679
    sysv4*MP*)
8680
      if test -d /usr/nec; then
8681
	lt_prog_compiler_pic='-Kconform_pic'
8682
	lt_prog_compiler_static='-Bstatic'
8683
      fi
8684
      ;;
8685
 
8686
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8687
      lt_prog_compiler_wl='-Wl,'
8688
      lt_prog_compiler_pic='-KPIC'
8689
      lt_prog_compiler_static='-Bstatic'
8690
      ;;
8691
 
8692
    unicos*)
8693
      lt_prog_compiler_wl='-Wl,'
8694
      lt_prog_compiler_can_build_shared=no
8695
      ;;
8696
 
8697
    uts4*)
8698
      lt_prog_compiler_pic='-pic'
8699
      lt_prog_compiler_static='-Bstatic'
8700
      ;;
8701
 
8702
    *)
8703
      lt_prog_compiler_can_build_shared=no
8704
      ;;
8705
    esac
8706
  fi
8707
 
8708
case $host_os in
8709
  # For platforms that do not support PIC, -DPIC is meaningless:
8710
  *djgpp*)
8711
    lt_prog_compiler_pic=
8712
    ;;
8713
  *)
8714
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8715
    ;;
8716
esac
8717
 
8718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8719
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8720
if ${lt_cv_prog_compiler_pic+:} false; then :
8721
  $as_echo_n "(cached) " >&6
8722
else
8723
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8724
fi
8725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8726
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8727
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8728
 
8729
#
8730
# Check to make sure the PIC flag actually works.
8731
#
8732
if test -n "$lt_prog_compiler_pic"; then
8733
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8734
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8735
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8736
  $as_echo_n "(cached) " >&6
8737
else
8738
  lt_cv_prog_compiler_pic_works=no
8739
   ac_outfile=conftest.$ac_objext
8740
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8741
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8742
   # Insert the option either (1) after the last *FLAGS variable, or
8743
   # (2) before a word containing "conftest.", or (3) at the end.
8744
   # Note that $ac_compile itself does not contain backslashes and begins
8745
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8746
   # The option is referenced via a variable to avoid confusing sed.
8747
   lt_compile=`echo "$ac_compile" | $SED \
8748
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8749
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8750
   -e 's:$: $lt_compiler_flag:'`
8751
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8752
   (eval "$lt_compile" 2>conftest.err)
8753
   ac_status=$?
8754
   cat conftest.err >&5
8755
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756
   if (exit $ac_status) && test -s "$ac_outfile"; then
8757
     # The compiler can only warn and ignore the option if not recognized
8758
     # So say no if there are warnings other than the usual output.
8759
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8760
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8761
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8762
       lt_cv_prog_compiler_pic_works=yes
8763
     fi
8764
   fi
8765
   $RM conftest*
8766
 
8767
fi
8768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8769
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8770
 
8771
if test yes = "$lt_cv_prog_compiler_pic_works"; then
8772
    case $lt_prog_compiler_pic in
8773
     "" | " "*) ;;
8774
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8775
     esac
8776
else
8777
    lt_prog_compiler_pic=
8778
     lt_prog_compiler_can_build_shared=no
8779
fi
8780
 
8781
fi
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
#
8794
# Check to make sure the static flag actually works.
8795
#
8796
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8798
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8799
if ${lt_cv_prog_compiler_static_works+:} false; then :
8800
  $as_echo_n "(cached) " >&6
8801
else
8802
  lt_cv_prog_compiler_static_works=no
8803
   save_LDFLAGS=$LDFLAGS
8804
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8805
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8806
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8807
     # The linker can only warn and ignore the option if not recognized
8808
     # So say no if there are warnings
8809
     if test -s conftest.err; then
8810
       # Append any errors to the config.log.
8811
       cat conftest.err 1>&5
8812
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8813
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8814
       if diff conftest.exp conftest.er2 >/dev/null; then
8815
         lt_cv_prog_compiler_static_works=yes
8816
       fi
8817
     else
8818
       lt_cv_prog_compiler_static_works=yes
8819
     fi
8820
   fi
8821
   $RM -r conftest*
8822
   LDFLAGS=$save_LDFLAGS
8823
 
8824
fi
8825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8826
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8827
 
8828
if test yes = "$lt_cv_prog_compiler_static_works"; then
8829
    :
8830
else
8831
    lt_prog_compiler_static=
8832
fi
8833
 
8834
 
8835
 
8836
 
8837
 
8838
 
8839
 
8840
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8842
if ${lt_cv_prog_compiler_c_o+:} false; then :
8843
  $as_echo_n "(cached) " >&6
8844
else
8845
  lt_cv_prog_compiler_c_o=no
8846
   $RM -r conftest 2>/dev/null
8847
   mkdir conftest
8848
   cd conftest
8849
   mkdir out
8850
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
 
8852
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8853
   # Insert the option either (1) after the last *FLAGS variable, or
8854
   # (2) before a word containing "conftest.", or (3) at the end.
8855
   # Note that $ac_compile itself does not contain backslashes and begins
8856
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8857
   lt_compile=`echo "$ac_compile" | $SED \
8858
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860
   -e 's:$: $lt_compiler_flag:'`
8861
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862
   (eval "$lt_compile" 2>out/conftest.err)
8863
   ac_status=$?
8864
   cat out/conftest.err >&5
8865
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867
   then
8868
     # The compiler can only warn and ignore the option if not recognized
8869
     # So say no if there are warnings
8870
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873
       lt_cv_prog_compiler_c_o=yes
8874
     fi
8875
   fi
8876
   chmod u+w . 2>&5
8877
   $RM conftest*
8878
   # SGI C++ compiler will create directory out/ii_files/ for
8879
   # template instantiation
8880
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881
   $RM out/* && rmdir out
8882
   cd ..
8883
   $RM -r conftest
8884
   $RM conftest*
8885
 
8886
fi
8887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
 
8890
 
8891
 
8892
 
8893
 
8894
 
8895
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8897
if ${lt_cv_prog_compiler_c_o+:} false; then :
8898
  $as_echo_n "(cached) " >&6
8899
else
8900
  lt_cv_prog_compiler_c_o=no
8901
   $RM -r conftest 2>/dev/null
8902
   mkdir conftest
8903
   cd conftest
8904
   mkdir out
8905
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906
 
8907
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8908
   # Insert the option either (1) after the last *FLAGS variable, or
8909
   # (2) before a word containing "conftest.", or (3) at the end.
8910
   # Note that $ac_compile itself does not contain backslashes and begins
8911
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8912
   lt_compile=`echo "$ac_compile" | $SED \
8913
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915
   -e 's:$: $lt_compiler_flag:'`
8916
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917
   (eval "$lt_compile" 2>out/conftest.err)
8918
   ac_status=$?
8919
   cat out/conftest.err >&5
8920
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8922
   then
8923
     # The compiler can only warn and ignore the option if not recognized
8924
     # So say no if there are warnings
8925
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928
       lt_cv_prog_compiler_c_o=yes
8929
     fi
8930
   fi
8931
   chmod u+w . 2>&5
8932
   $RM conftest*
8933
   # SGI C++ compiler will create directory out/ii_files/ for
8934
   # template instantiation
8935
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936
   $RM out/* && rmdir out
8937
   cd ..
8938
   $RM -r conftest
8939
   $RM conftest*
8940
 
8941
fi
8942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944
 
8945
 
8946
 
8947
 
8948
hard_links=nottested
8949
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8950
  # do not overwrite the value of need_locks provided by the user
8951
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952
$as_echo_n "checking if we can lock with hard links... " >&6; }
8953
  hard_links=yes
8954
  $RM conftest*
8955
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956
  touch conftest.a
8957
  ln conftest.a conftest.b 2>&5 || hard_links=no
8958
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960
$as_echo "$hard_links" >&6; }
8961
  if test no = "$hard_links"; then
8962
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8963
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8964
    need_locks=warn
8965
  fi
8966
else
8967
  need_locks=no
8968
fi
8969
 
8970
 
8971
 
8972
 
8973
 
8974
 
8975
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8976
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8977
 
8978
  runpath_var=
8979
  allow_undefined_flag=
8980
  always_export_symbols=no
8981
  archive_cmds=
8982
  archive_expsym_cmds=
8983
  compiler_needs_object=no
8984
  enable_shared_with_static_runtimes=no
8985
  export_dynamic_flag_spec=
8986
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8987
  hardcode_automatic=no
8988
  hardcode_direct=no
8989
  hardcode_direct_absolute=no
8990
  hardcode_libdir_flag_spec=
8991
  hardcode_libdir_separator=
8992
  hardcode_minus_L=no
8993
  hardcode_shlibpath_var=unsupported
8994
  inherit_rpath=no
8995
  link_all_deplibs=unknown
8996
  module_cmds=
8997
  module_expsym_cmds=
8998
  old_archive_from_new_cmds=
8999
  old_archive_from_expsyms_cmds=
9000
  thread_safe_flag_spec=
9001
  whole_archive_flag_spec=
9002
  # include_expsyms should be a list of space-separated symbols to be *always*
9003
  # included in the symbol list
9004
  include_expsyms=
9005
  # exclude_expsyms can be an extended regexp of symbols to exclude
9006
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9007
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9008
  # as well as any symbol that contains 'd'.
9009
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9010
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9011
  # platforms (ab)use it in PIC code, but their linkers get confused if
9012
  # the symbol is explicitly referenced.  Since portable code cannot
9013
  # rely on this symbol name, it's probably fine to never include it in
9014
  # preloaded symbol tables.
9015
  # Exclude shared library initialization/finalization symbols.
9016
  extract_expsyms_cmds=
9017
 
9018
  case $host_os in
9019
  cygwin* | msys* | mingw* | pw32* | cegcc*)
9020
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9021
    # When not using gcc, we currently assume that we are using
9022
    # Microsoft Visual C++.
9023
    if test yes != "$GCC"; then
9024
      with_gnu_ld=no
9025
    fi
9026
    ;;
9027
  interix*)
9028
    # we just hope/assume this is gcc and not c89 (= MSVC++)
9029
    with_gnu_ld=yes
9030
    ;;
9031
  openbsd* | bitrig*)
9032
    with_gnu_ld=no
9033
    ;;
9034
  esac
9035
 
9036
  ld_shlibs=yes
9037
 
9038
  # On some targets, GNU ld is compatible enough with the native linker
9039
  # that we're better off using the native interface for both.
9040
  lt_use_gnu_ld_interface=no
9041
  if test yes = "$with_gnu_ld"; then
9042
    case $host_os in
9043
      aix*)
9044
	# The AIX port of GNU ld has always aspired to compatibility
9045
	# with the native linker.  However, as the warning in the GNU ld
9046
	# block says, versions before 2.19.5* couldn't really create working
9047
	# shared libraries, regardless of the interface used.
9048
	case `$LD -v 2>&1` in
9049
	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9050
	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9051
	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9052
	  *)
9053
	    lt_use_gnu_ld_interface=yes
9054
	    ;;
9055
	esac
9056
	;;
9057
      *)
9058
	lt_use_gnu_ld_interface=yes
9059
	;;
9060
    esac
9061
  fi
9062
 
9063
  if test yes = "$lt_use_gnu_ld_interface"; then
9064
    # If archive_cmds runs LD, not CC, wlarc should be empty
9065
    wlarc='$wl'
9066
 
9067
    # Set some defaults for GNU ld with shared library support. These
9068
    # are reset later if shared libraries are not supported. Putting them
9069
    # here allows them to be overridden if necessary.
9070
    runpath_var=LD_RUN_PATH
9071
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9072
    export_dynamic_flag_spec='$wl--export-dynamic'
9073
    # ancient GNU ld didn't support --whole-archive et. al.
9074
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9075
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9076
    else
9077
      whole_archive_flag_spec=
9078
    fi
9079
    supports_anon_versioning=no
9080
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9081
      *GNU\ gold*) supports_anon_versioning=yes ;;
9082
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9083
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9084
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9085
      *\ 2.11.*) ;; # other 2.11 versions
9086
      *) supports_anon_versioning=yes ;;
9087
    esac
9088
 
9089
    # See if GNU ld supports shared libraries.
9090
    case $host_os in
9091
    aix[3-9]*)
9092
      # On AIX/PPC, the GNU linker is very broken
9093
      if test ia64 != "$host_cpu"; then
9094
	ld_shlibs=no
9095
	cat <<_LT_EOF 1>&2
9096
 
9097
*** Warning: the GNU linker, at least up to release 2.19, is reported
9098
*** to be unable to reliably create shared libraries on AIX.
9099
*** Therefore, libtool is disabling shared libraries support.  If you
9100
*** really care for shared libraries, you may want to install binutils
9101
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9102
*** You will then need to restart the configuration process.
9103
 
9104
_LT_EOF
9105
      fi
9106
      ;;
9107
 
9108
    amigaos*)
9109
      case $host_cpu in
9110
      powerpc)
9111
            # see comment about AmigaOS4 .so support
9112
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9113
            archive_expsym_cmds=''
9114
        ;;
9115
      m68k)
9116
            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)'
9117
            hardcode_libdir_flag_spec='-L$libdir'
9118
            hardcode_minus_L=yes
9119
        ;;
9120
      esac
9121
      ;;
9122
 
9123
    beos*)
9124
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9125
	allow_undefined_flag=unsupported
9126
	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9127
	# support --undefined.  This deserves some investigation.  FIXME
9128
	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9129
      else
9130
	ld_shlibs=no
9131
      fi
9132
      ;;
9133
 
9134
    cygwin* | msys* | mingw* | pw32* | cegcc*)
9135
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9136
      # as there is no search path for DLLs.
9137
      hardcode_libdir_flag_spec='-L$libdir'
9138
      export_dynamic_flag_spec='$wl--export-all-symbols'
9139
      allow_undefined_flag=unsupported
9140
      always_export_symbols=no
9141
      enable_shared_with_static_runtimes=yes
9142
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9143
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9144
      file_list_spec='@'
9145
 
9146
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9147
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9148
	# If the export-symbols file already is a .def file, use it as
9149
	# is; otherwise, prepend EXPORTS...
9150
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9151
          cp $export_symbols $output_objdir/$soname.def;
9152
        else
9153
          echo EXPORTS > $output_objdir/$soname.def;
9154
          cat $export_symbols >> $output_objdir/$soname.def;
9155
        fi~
9156
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9157
      else
9158
	ld_shlibs=no
9159
      fi
9160
      ;;
9161
 
9162
    haiku*)
9163
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9164
      link_all_deplibs=yes
9165
      ;;
9166
 
9167
    os2*)
9168
      hardcode_libdir_flag_spec='-L$libdir'
9169
      hardcode_minus_L=yes
9170
      allow_undefined_flag=unsupported
9171
      shrext_cmds=.dll
9172
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9173
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9174
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9175
	$ECHO EXPORTS >> $output_objdir/$libname.def~
9176
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9177
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9178
	emximp -o $lib $output_objdir/$libname.def'
9179
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9180
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9181
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9182
	$ECHO EXPORTS >> $output_objdir/$libname.def~
9183
	prefix_cmds="$SED"~
9184
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9185
	  prefix_cmds="$prefix_cmds -e 1d";
9186
	fi~
9187
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9188
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9189
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9190
	emximp -o $lib $output_objdir/$libname.def'
9191
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9192
      enable_shared_with_static_runtimes=yes
9193
      ;;
9194
 
9195
    interix[3-9]*)
9196
      hardcode_direct=no
9197
      hardcode_shlibpath_var=no
9198
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9199
      export_dynamic_flag_spec='$wl-E'
9200
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9201
      # Instead, shared libraries are loaded at an image base (0x10000000 by
9202
      # default) and relocated if they conflict, which is a slow very memory
9203
      # consuming and fragmenting process.  To avoid this, we pick a random,
9204
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9205
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9206
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9207
      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'
9208
      ;;
9209
 
9210
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9211
      tmp_diet=no
9212
      if test linux-dietlibc = "$host_os"; then
9213
	case $cc_basename in
9214
	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9215
	esac
9216
      fi
9217
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9218
	 && test no = "$tmp_diet"
9219
      then
9220
	tmp_addflag=' $pic_flag'
9221
	tmp_sharedflag='-shared'
9222
	case $cc_basename,$host_cpu in
9223
        pgcc*)				# Portland Group C compiler
9224
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9225
	  tmp_addflag=' $pic_flag'
9226
	  ;;
9227
	pgf77* | pgf90* | pgf95* | pgfortran*)
9228
					# Portland Group f77 and f90 compilers
9229
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9230
	  tmp_addflag=' $pic_flag -Mnomain' ;;
9231
	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9232
	  tmp_addflag=' -i_dynamic' ;;
9233
	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9234
	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9235
	ifc* | ifort*)			# Intel Fortran compiler
9236
	  tmp_addflag=' -nofor_main' ;;
9237
	lf95*)				# Lahey Fortran 8.1
9238
	  whole_archive_flag_spec=
9239
	  tmp_sharedflag='--shared' ;;
9240
        nagfor*)                        # NAGFOR 5.3
9241
          tmp_sharedflag='-Wl,-shared' ;;
9242
	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9243
	  tmp_sharedflag='-qmkshrobj'
9244
	  tmp_addflag= ;;
9245
	nvcc*)	# Cuda Compiler Driver 2.2
9246
	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9247
	  compiler_needs_object=yes
9248
	  ;;
9249
	esac
9250
	case `$CC -V 2>&1 | sed 5q` in
9251
	*Sun\ C*)			# Sun C 5.9
9252
	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9253
	  compiler_needs_object=yes
9254
	  tmp_sharedflag='-G' ;;
9255
	*Sun\ F*)			# Sun Fortran 8.3
9256
	  tmp_sharedflag='-G' ;;
9257
	esac
9258
	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9259
 
9260
        if test yes = "$supports_anon_versioning"; then
9261
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9262
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9263
            echo "local: *; };" >> $output_objdir/$libname.ver~
9264
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9265
        fi
9266
 
9267
	case $cc_basename in
9268
	tcc*)
9269
	  export_dynamic_flag_spec='-rdynamic'
9270
	  ;;
9271
	xlf* | bgf* | bgxlf* | mpixlf*)
9272
	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9273
	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9274
	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9275
	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9276
	  if test yes = "$supports_anon_versioning"; then
9277
	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9278
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9279
              echo "local: *; };" >> $output_objdir/$libname.ver~
9280
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9281
	  fi
9282
	  ;;
9283
	esac
9284
      else
9285
        ld_shlibs=no
9286
      fi
9287
      ;;
9288
 
9289
    netbsd*)
9290
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9291
	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9292
	wlarc=
9293
      else
9294
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9295
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9296
      fi
9297
      ;;
9298
 
9299
    solaris*)
9300
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9301
	ld_shlibs=no
9302
	cat <<_LT_EOF 1>&2
9303
 
9304
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9305
*** create shared libraries on Solaris systems.  Therefore, libtool
9306
*** is disabling shared libraries support.  We urge you to upgrade GNU
9307
*** binutils to release 2.9.1 or newer.  Another option is to modify
9308
*** your PATH or compiler configuration so that the native linker is
9309
*** used, and then restart.
9310
 
9311
_LT_EOF
9312
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9314
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9315
      else
9316
	ld_shlibs=no
9317
      fi
9318
      ;;
9319
 
9320
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9321
      case `$LD -v 2>&1` in
9322
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9323
	ld_shlibs=no
9324
	cat <<_LT_EOF 1>&2
9325
 
9326
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9327
*** reliably create shared libraries on SCO systems.  Therefore, libtool
9328
*** is disabling shared libraries support.  We urge you to upgrade GNU
9329
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9330
*** your PATH or compiler configuration so that the native linker is
9331
*** used, and then restart.
9332
 
9333
_LT_EOF
9334
	;;
9335
	*)
9336
	  # For security reasons, it is highly recommended that you always
9337
	  # use absolute paths for naming shared libraries, and exclude the
9338
	  # DT_RUNPATH tag from executables and libraries.  But doing so
9339
	  # requires that you compile everything twice, which is a pain.
9340
	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9341
	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9342
	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9343
	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9344
	  else
9345
	    ld_shlibs=no
9346
	  fi
9347
	;;
9348
      esac
9349
      ;;
9350
 
9351
    sunos4*)
9352
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9353
      wlarc=
9354
      hardcode_direct=yes
9355
      hardcode_shlibpath_var=no
9356
      ;;
9357
 
9358
    *)
9359
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9360
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9361
	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9362
      else
9363
	ld_shlibs=no
9364
      fi
9365
      ;;
9366
    esac
9367
 
9368
    if test no = "$ld_shlibs"; then
9369
      runpath_var=
9370
      hardcode_libdir_flag_spec=
9371
      export_dynamic_flag_spec=
9372
      whole_archive_flag_spec=
9373
    fi
9374
  else
9375
    # PORTME fill in a description of your system's linker (not GNU ld)
9376
    case $host_os in
9377
    aix3*)
9378
      allow_undefined_flag=unsupported
9379
      always_export_symbols=yes
9380
      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'
9381
      # Note: this linker hardcodes the directories in LIBPATH if there
9382
      # are no directories specified by -L.
9383
      hardcode_minus_L=yes
9384
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9385
	# Neither direct hardcoding nor static linking is supported with a
9386
	# broken collect2.
9387
	hardcode_direct=unsupported
9388
      fi
9389
      ;;
9390
 
9391
    aix[4-9]*)
9392
      if test ia64 = "$host_cpu"; then
9393
	# On IA64, the linker does run time linking by default, so we don't
9394
	# have to do anything special.
9395
	aix_use_runtimelinking=no
9396
	exp_sym_flag='-Bexport'
9397
	no_entry_flag=
9398
      else
9399
	# If we're using GNU nm, then we don't want the "-C" option.
9400
	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9401
	# Without the "-l" option, or with the "-B" option, AIX nm treats
9402
	# weak defined symbols like other global defined symbols, whereas
9403
	# GNU nm marks them as "W".
9404
	# While the 'weak' keyword is ignored in the Export File, we need
9405
	# it in the Import File for the 'aix-soname' feature, so we have
9406
	# to replace the "-B" option with "-P" for AIX nm.
9407
	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9408
	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9409
	else
9410
	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9411
	fi
9412
	aix_use_runtimelinking=no
9413
 
9414
	# Test if we are trying to use run time linking or normal
9415
	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9416
	# have runtime linking enabled, and use it for executables.
9417
	# For shared libraries, we enable/disable runtime linking
9418
	# depending on the kind of the shared library created -
9419
	# when "with_aix_soname,aix_use_runtimelinking" is:
9420
	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9421
	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9422
	#            lib.a           static archive
9423
	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9424
	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9425
	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9426
	#            lib.a(lib.so.V) shared, rtl:no
9427
	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9428
	#            lib.a           static archive
9429
	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9430
	  for ld_flag in $LDFLAGS; do
9431
	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9432
	    aix_use_runtimelinking=yes
9433
	    break
9434
	  fi
9435
	  done
9436
	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9437
	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9438
	    # so we don't have lib.a shared libs to link our executables.
9439
	    # We have to force runtime linking in this case.
9440
	    aix_use_runtimelinking=yes
9441
	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9442
	  fi
9443
	  ;;
9444
	esac
9445
 
9446
	exp_sym_flag='-bexport'
9447
	no_entry_flag='-bnoentry'
9448
      fi
9449
 
9450
      # When large executables or shared objects are built, AIX ld can
9451
      # have problems creating the table of contents.  If linking a library
9452
      # or program results in "error TOC overflow" add -mminimal-toc to
9453
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9454
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9455
 
9456
      archive_cmds=''
9457
      hardcode_direct=yes
9458
      hardcode_direct_absolute=yes
9459
      hardcode_libdir_separator=':'
9460
      link_all_deplibs=yes
9461
      file_list_spec='$wl-f,'
9462
      case $with_aix_soname,$aix_use_runtimelinking in
9463
      aix,*) ;; # traditional, no import file
9464
      svr4,* | *,yes) # use import file
9465
	# The Import File defines what to hardcode.
9466
	hardcode_direct=no
9467
	hardcode_direct_absolute=no
9468
	;;
9469
      esac
9470
 
9471
      if test yes = "$GCC"; then
9472
	case $host_os in aix4.[012]|aix4.[012].*)
9473
	# We only want to do this on AIX 4.2 and lower, the check
9474
	# below for broken collect2 doesn't work under 4.3+
9475
	  collect2name=`$CC -print-prog-name=collect2`
9476
	  if test -f "$collect2name" &&
9477
	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9478
	  then
9479
	  # We have reworked collect2
9480
	  :
9481
	  else
9482
	  # We have old collect2
9483
	  hardcode_direct=unsupported
9484
	  # It fails to find uninstalled libraries when the uninstalled
9485
	  # path is not listed in the libpath.  Setting hardcode_minus_L
9486
	  # to unsupported forces relinking
9487
	  hardcode_minus_L=yes
9488
	  hardcode_libdir_flag_spec='-L$libdir'
9489
	  hardcode_libdir_separator=
9490
	  fi
9491
	  ;;
9492
	esac
9493
	shared_flag='-shared'
9494
	if test yes = "$aix_use_runtimelinking"; then
9495
	  shared_flag="$shared_flag "'$wl-G'
9496
	fi
9497
	# Need to ensure runtime linking is disabled for the traditional
9498
	# shared library, or the linker may eventually find shared libraries
9499
	# /with/ Import File - we do not want to mix them.
9500
	shared_flag_aix='-shared'
9501
	shared_flag_svr4='-shared $wl-G'
9502
      else
9503
	# not using gcc
9504
	if test ia64 = "$host_cpu"; then
9505
	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9506
	# chokes on -Wl,-G. The following line is correct:
9507
	  shared_flag='-G'
9508
	else
9509
	  if test yes = "$aix_use_runtimelinking"; then
9510
	    shared_flag='$wl-G'
9511
	  else
9512
	    shared_flag='$wl-bM:SRE'
9513
	  fi
9514
	  shared_flag_aix='$wl-bM:SRE'
9515
	  shared_flag_svr4='$wl-G'
9516
	fi
9517
      fi
9518
 
9519
      export_dynamic_flag_spec='$wl-bexpall'
9520
      # It seems that -bexpall does not export symbols beginning with
9521
      # underscore (_), so it is better to generate a list of symbols to export.
9522
      always_export_symbols=yes
9523
      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9524
	# Warning - without using the other runtime loading flags (-brtl),
9525
	# -berok will link without error, but may produce a broken library.
9526
	allow_undefined_flag='-berok'
9527
        # Determine the default libpath from the value encoded in an
9528
        # empty executable.
9529
        if test set = "${lt_cv_aix_libpath+set}"; then
9530
  aix_libpath=$lt_cv_aix_libpath
9531
else
9532
  if ${lt_cv_aix_libpath_+:} false; then :
9533
  $as_echo_n "(cached) " >&6
9534
else
9535
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536
/* end confdefs.h.  */
9537
 
9538
int
9539
main ()
9540
{
9541
 
9542
  ;
9543
  return 0;
9544
}
9545
_ACEOF
9546
if ac_fn_c_try_link "$LINENO"; then :
9547
 
9548
  lt_aix_libpath_sed='
9549
      /Import File Strings/,/^$/ {
9550
	  /^0/ {
9551
	      s/^0  *\([^ ]*\) *$/\1/
9552
	      p
9553
	  }
9554
      }'
9555
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556
  # Check for a 64-bit object if we didn't find anything.
9557
  if test -z "$lt_cv_aix_libpath_"; then
9558
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9559
  fi
9560
fi
9561
rm -f core conftest.err conftest.$ac_objext \
9562
    conftest$ac_exeext conftest.$ac_ext
9563
  if test -z "$lt_cv_aix_libpath_"; then
9564
    lt_cv_aix_libpath_=/usr/lib:/lib
9565
  fi
9566
 
9567
fi
9568
 
9569
  aix_libpath=$lt_cv_aix_libpath_
9570
fi
9571
 
9572
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9573
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9574
      else
9575
	if test ia64 = "$host_cpu"; then
9576
	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9577
	  allow_undefined_flag="-z nodefs"
9578
	  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"
9579
	else
9580
	 # Determine the default libpath from the value encoded in an
9581
	 # empty executable.
9582
	 if test set = "${lt_cv_aix_libpath+set}"; then
9583
  aix_libpath=$lt_cv_aix_libpath
9584
else
9585
  if ${lt_cv_aix_libpath_+:} false; then :
9586
  $as_echo_n "(cached) " >&6
9587
else
9588
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589
/* end confdefs.h.  */
9590
 
9591
int
9592
main ()
9593
{
9594
 
9595
  ;
9596
  return 0;
9597
}
9598
_ACEOF
9599
if ac_fn_c_try_link "$LINENO"; then :
9600
 
9601
  lt_aix_libpath_sed='
9602
      /Import File Strings/,/^$/ {
9603
	  /^0/ {
9604
	      s/^0  *\([^ ]*\) *$/\1/
9605
	      p
9606
	  }
9607
      }'
9608
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609
  # Check for a 64-bit object if we didn't find anything.
9610
  if test -z "$lt_cv_aix_libpath_"; then
9611
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9612
  fi
9613
fi
9614
rm -f core conftest.err conftest.$ac_objext \
9615
    conftest$ac_exeext conftest.$ac_ext
9616
  if test -z "$lt_cv_aix_libpath_"; then
9617
    lt_cv_aix_libpath_=/usr/lib:/lib
9618
  fi
9619
 
9620
fi
9621
 
9622
  aix_libpath=$lt_cv_aix_libpath_
9623
fi
9624
 
9625
	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9626
	  # Warning - without using the other run time loading flags,
9627
	  # -berok will link without error, but may produce a broken library.
9628
	  no_undefined_flag=' $wl-bernotok'
9629
	  allow_undefined_flag=' $wl-berok'
9630
	  if test yes = "$with_gnu_ld"; then
9631
	    # We only use this code for GNU lds that support --whole-archive.
9632
	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9633
	  else
9634
	    # Exported symbols can be pulled into shared objects from archives
9635
	    whole_archive_flag_spec='$convenience'
9636
	  fi
9637
	  archive_cmds_need_lc=yes
9638
	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9639
	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9640
	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9641
	  if test svr4 != "$with_aix_soname"; then
9642
	    # This is similar to how AIX traditionally builds its shared libraries.
9643
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9644
	  fi
9645
	  if test aix != "$with_aix_soname"; then
9646
	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9647
	  else
9648
	    # used by -dlpreopen to get the symbols
9649
	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9650
	  fi
9651
	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9652
	fi
9653
      fi
9654
      ;;
9655
 
9656
    amigaos*)
9657
      case $host_cpu in
9658
      powerpc)
9659
            # see comment about AmigaOS4 .so support
9660
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9661
            archive_expsym_cmds=''
9662
        ;;
9663
      m68k)
9664
            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)'
9665
            hardcode_libdir_flag_spec='-L$libdir'
9666
            hardcode_minus_L=yes
9667
        ;;
9668
      esac
9669
      ;;
9670
 
9671
    bsdi[45]*)
9672
      export_dynamic_flag_spec=-rdynamic
9673
      ;;
9674
 
9675
    cygwin* | msys* | mingw* | pw32* | cegcc*)
9676
      # When not using gcc, we currently assume that we are using
9677
      # Microsoft Visual C++.
9678
      # hardcode_libdir_flag_spec is actually meaningless, as there is
9679
      # no search path for DLLs.
9680
      case $cc_basename in
9681
      cl*)
9682
	# Native MSVC
9683
	hardcode_libdir_flag_spec=' '
9684
	allow_undefined_flag=unsupported
9685
	always_export_symbols=yes
9686
	file_list_spec='@'
9687
	# Tell ltmain to make .lib files, not .a files.
9688
	libext=lib
9689
	# Tell ltmain to make .dll files, not .so files.
9690
	shrext_cmds=.dll
9691
	# FIXME: Setting linknames here is a bad hack.
9692
	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9693
	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9694
            cp "$export_symbols" "$output_objdir/$soname.def";
9695
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9696
          else
9697
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9698
          fi~
9699
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9700
          linknames='
9701
	# The linker will not automatically build a static lib if we build a DLL.
9702
	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9703
	enable_shared_with_static_runtimes=yes
9704
	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9705
	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9706
	# Don't use ranlib
9707
	old_postinstall_cmds='chmod 644 $oldlib'
9708
	postlink_cmds='lt_outputfile="@OUTPUT@"~
9709
          lt_tool_outputfile="@TOOL_OUTPUT@"~
9710
          case $lt_outputfile in
9711
            *.exe|*.EXE) ;;
9712
            *)
9713
              lt_outputfile=$lt_outputfile.exe
9714
              lt_tool_outputfile=$lt_tool_outputfile.exe
9715
              ;;
9716
          esac~
9717
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9718
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9719
            $RM "$lt_outputfile.manifest";
9720
          fi'
9721
	;;
9722
      *)
9723
	# Assume MSVC wrapper
9724
	hardcode_libdir_flag_spec=' '
9725
	allow_undefined_flag=unsupported
9726
	# Tell ltmain to make .lib files, not .a files.
9727
	libext=lib
9728
	# Tell ltmain to make .dll files, not .so files.
9729
	shrext_cmds=.dll
9730
	# FIXME: Setting linknames here is a bad hack.
9731
	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9732
	# The linker will automatically build a .lib file if we build a DLL.
9733
	old_archive_from_new_cmds='true'
9734
	# FIXME: Should let the user specify the lib program.
9735
	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9736
	enable_shared_with_static_runtimes=yes
9737
	;;
9738
      esac
9739
      ;;
9740
 
9741
    darwin* | rhapsody*)
9742
 
9743
 
9744
  archive_cmds_need_lc=no
9745
  hardcode_direct=no
9746
  hardcode_automatic=yes
9747
  hardcode_shlibpath_var=unsupported
9748
  if test yes = "$lt_cv_ld_force_load"; then
9749
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9750
 
9751
  else
9752
    whole_archive_flag_spec=''
9753
  fi
9754
  link_all_deplibs=yes
9755
  allow_undefined_flag=$_lt_dar_allow_undefined
9756
  case $cc_basename in
9757
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9758
     *) _lt_dar_can_shared=$GCC ;;
9759
  esac
9760
  if test yes = "$_lt_dar_can_shared"; then
9761
    output_verbose_link_cmd=func_echo_all
9762
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9763
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9764
    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"
9765
    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"
9766
 
9767
  else
9768
  ld_shlibs=no
9769
  fi
9770
 
9771
      ;;
9772
 
9773
    dgux*)
9774
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775
      hardcode_libdir_flag_spec='-L$libdir'
9776
      hardcode_shlibpath_var=no
9777
      ;;
9778
 
9779
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9780
    # support.  Future versions do this automatically, but an explicit c++rt0.o
9781
    # does not break anything, and helps significantly (at the cost of a little
9782
    # extra space).
9783
    freebsd2.2*)
9784
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9785
      hardcode_libdir_flag_spec='-R$libdir'
9786
      hardcode_direct=yes
9787
      hardcode_shlibpath_var=no
9788
      ;;
9789
 
9790
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9791
    freebsd2.*)
9792
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9793
      hardcode_direct=yes
9794
      hardcode_minus_L=yes
9795
      hardcode_shlibpath_var=no
9796
      ;;
9797
 
9798
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9799
    freebsd* | dragonfly*)
9800
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9801
      hardcode_libdir_flag_spec='-R$libdir'
9802
      hardcode_direct=yes
9803
      hardcode_shlibpath_var=no
9804
      ;;
9805
 
9806
    hpux9*)
9807
      if test yes = "$GCC"; then
9808
	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9809
      else
9810
	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9811
      fi
9812
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9813
      hardcode_libdir_separator=:
9814
      hardcode_direct=yes
9815
 
9816
      # hardcode_minus_L: Not really in the search PATH,
9817
      # but as the default location of the library.
9818
      hardcode_minus_L=yes
9819
      export_dynamic_flag_spec='$wl-E'
9820
      ;;
9821
 
9822
    hpux10*)
9823
      if test yes,no = "$GCC,$with_gnu_ld"; then
9824
	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825
      else
9826
	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827
      fi
9828
      if test no = "$with_gnu_ld"; then
9829
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9830
	hardcode_libdir_separator=:
9831
	hardcode_direct=yes
9832
	hardcode_direct_absolute=yes
9833
	export_dynamic_flag_spec='$wl-E'
9834
	# hardcode_minus_L: Not really in the search PATH,
9835
	# but as the default location of the library.
9836
	hardcode_minus_L=yes
9837
      fi
9838
      ;;
9839
 
9840
    hpux11*)
9841
      if test yes,no = "$GCC,$with_gnu_ld"; then
9842
	case $host_cpu in
9843
	hppa*64*)
9844
	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9845
	  ;;
9846
	ia64*)
9847
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9848
	  ;;
9849
	*)
9850
	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9851
	  ;;
9852
	esac
9853
      else
9854
	case $host_cpu in
9855
	hppa*64*)
9856
	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9857
	  ;;
9858
	ia64*)
9859
	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9860
	  ;;
9861
	*)
9862
 
9863
	  # Older versions of the 11.00 compiler do not understand -b yet
9864
	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9865
	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9866
$as_echo_n "checking if $CC understands -b... " >&6; }
9867
if ${lt_cv_prog_compiler__b+:} false; then :
9868
  $as_echo_n "(cached) " >&6
9869
else
9870
  lt_cv_prog_compiler__b=no
9871
   save_LDFLAGS=$LDFLAGS
9872
   LDFLAGS="$LDFLAGS -b"
9873
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9874
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9875
     # The linker can only warn and ignore the option if not recognized
9876
     # So say no if there are warnings
9877
     if test -s conftest.err; then
9878
       # Append any errors to the config.log.
9879
       cat conftest.err 1>&5
9880
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9881
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9882
       if diff conftest.exp conftest.er2 >/dev/null; then
9883
         lt_cv_prog_compiler__b=yes
9884
       fi
9885
     else
9886
       lt_cv_prog_compiler__b=yes
9887
     fi
9888
   fi
9889
   $RM -r conftest*
9890
   LDFLAGS=$save_LDFLAGS
9891
 
9892
fi
9893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9894
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9895
 
9896
if test yes = "$lt_cv_prog_compiler__b"; then
9897
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898
else
9899
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9900
fi
9901
 
9902
	  ;;
9903
	esac
9904
      fi
9905
      if test no = "$with_gnu_ld"; then
9906
	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9907
	hardcode_libdir_separator=:
9908
 
9909
	case $host_cpu in
9910
	hppa*64*|ia64*)
9911
	  hardcode_direct=no
9912
	  hardcode_shlibpath_var=no
9913
	  ;;
9914
	*)
9915
	  hardcode_direct=yes
9916
	  hardcode_direct_absolute=yes
9917
	  export_dynamic_flag_spec='$wl-E'
9918
 
9919
	  # hardcode_minus_L: Not really in the search PATH,
9920
	  # but as the default location of the library.
9921
	  hardcode_minus_L=yes
9922
	  ;;
9923
	esac
9924
      fi
9925
      ;;
9926
 
9927
    irix5* | irix6* | nonstopux*)
9928
      if test yes = "$GCC"; then
9929
	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9930
	# Try to use the -exported_symbol ld option, if it does not
9931
	# work, assume that -exports_file does not work either and
9932
	# implicitly export all symbols.
9933
	# This should be the same for all languages, so no per-tag cache variable.
9934
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9935
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9936
if ${lt_cv_irix_exported_symbol+:} false; then :
9937
  $as_echo_n "(cached) " >&6
9938
else
9939
  save_LDFLAGS=$LDFLAGS
9940
	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9941
	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942
/* end confdefs.h.  */
9943
int foo (void) { return 0; }
9944
_ACEOF
9945
if ac_fn_c_try_link "$LINENO"; then :
9946
  lt_cv_irix_exported_symbol=yes
9947
else
9948
  lt_cv_irix_exported_symbol=no
9949
fi
9950
rm -f core conftest.err conftest.$ac_objext \
9951
    conftest$ac_exeext conftest.$ac_ext
9952
           LDFLAGS=$save_LDFLAGS
9953
fi
9954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9955
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9956
	if test yes = "$lt_cv_irix_exported_symbol"; then
9957
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9958
	fi
9959
      else
9960
	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9961
	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9962
      fi
9963
      archive_cmds_need_lc='no'
9964
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9965
      hardcode_libdir_separator=:
9966
      inherit_rpath=yes
9967
      link_all_deplibs=yes
9968
      ;;
9969
 
9970
    linux*)
9971
      case $cc_basename in
9972
      tcc*)
9973
	# Fabrice Bellard et al's Tiny C Compiler
9974
	ld_shlibs=yes
9975
	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9976
	;;
9977
      esac
9978
      ;;
9979
 
9980
    netbsd*)
9981
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9982
	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9983
      else
9984
	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9985
      fi
9986
      hardcode_libdir_flag_spec='-R$libdir'
9987
      hardcode_direct=yes
9988
      hardcode_shlibpath_var=no
9989
      ;;
9990
 
9991
    newsos6)
9992
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993
      hardcode_direct=yes
9994
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9995
      hardcode_libdir_separator=:
9996
      hardcode_shlibpath_var=no
9997
      ;;
9998
 
9999
    *nto* | *qnx*)
10000
      ;;
10001
 
10002
    openbsd* | bitrig*)
10003
      if test -f /usr/libexec/ld.so; then
10004
	hardcode_direct=yes
10005
	hardcode_shlibpath_var=no
10006
	hardcode_direct_absolute=yes
10007
	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10008
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10009
	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10010
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10011
	  export_dynamic_flag_spec='$wl-E'
10012
	else
10013
	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10014
	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10015
	fi
10016
      else
10017
	ld_shlibs=no
10018
      fi
10019
      ;;
10020
 
10021
    os2*)
10022
      hardcode_libdir_flag_spec='-L$libdir'
10023
      hardcode_minus_L=yes
10024
      allow_undefined_flag=unsupported
10025
      shrext_cmds=.dll
10026
      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10027
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10028
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10029
	$ECHO EXPORTS >> $output_objdir/$libname.def~
10030
	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10031
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10032
	emximp -o $lib $output_objdir/$libname.def'
10033
      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10034
	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10035
	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10036
	$ECHO EXPORTS >> $output_objdir/$libname.def~
10037
	prefix_cmds="$SED"~
10038
	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10039
	  prefix_cmds="$prefix_cmds -e 1d";
10040
	fi~
10041
	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10042
	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10043
	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10044
	emximp -o $lib $output_objdir/$libname.def'
10045
      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10046
      enable_shared_with_static_runtimes=yes
10047
      ;;
10048
 
10049
    osf3*)
10050
      if test yes = "$GCC"; then
10051
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10052
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10053
      else
10054
	allow_undefined_flag=' -expect_unresolved \*'
10055
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10056
      fi
10057
      archive_cmds_need_lc='no'
10058
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10059
      hardcode_libdir_separator=:
10060
      ;;
10061
 
10062
    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10063
      if test yes = "$GCC"; then
10064
	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10065
	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10066
	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10067
      else
10068
	allow_undefined_flag=' -expect_unresolved \*'
10069
	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10070
	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~
10071
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10072
 
10073
	# Both c and cxx compiler support -rpath directly
10074
	hardcode_libdir_flag_spec='-rpath $libdir'
10075
      fi
10076
      archive_cmds_need_lc='no'
10077
      hardcode_libdir_separator=:
10078
      ;;
10079
 
10080
    solaris*)
10081
      no_undefined_flag=' -z defs'
10082
      if test yes = "$GCC"; then
10083
	wlarc='$wl'
10084
	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10085
	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10086
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10087
      else
10088
	case `$CC -V 2>&1` in
10089
	*"Compilers 5.0"*)
10090
	  wlarc=''
10091
	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10093
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10094
	  ;;
10095
	*)
10096
	  wlarc='$wl'
10097
	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098
	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10099
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10100
	  ;;
10101
	esac
10102
      fi
10103
      hardcode_libdir_flag_spec='-R$libdir'
10104
      hardcode_shlibpath_var=no
10105
      case $host_os in
10106
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10107
      *)
10108
	# The compiler driver will combine and reorder linker options,
10109
	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10110
	# but is careful enough not to reorder.
10111
	# Supported since Solaris 2.6 (maybe 2.5.1?)
10112
	if test yes = "$GCC"; then
10113
	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10114
	else
10115
	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10116
	fi
10117
	;;
10118
      esac
10119
      link_all_deplibs=yes
10120
      ;;
10121
 
10122
    sunos4*)
10123
      if test sequent = "$host_vendor"; then
10124
	# Use $CC to link under sequent, because it throws in some extra .o
10125
	# files that make .init and .fini sections work.
10126
	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10127
      else
10128
	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10129
      fi
10130
      hardcode_libdir_flag_spec='-L$libdir'
10131
      hardcode_direct=yes
10132
      hardcode_minus_L=yes
10133
      hardcode_shlibpath_var=no
10134
      ;;
10135
 
10136
    sysv4)
10137
      case $host_vendor in
10138
	sni)
10139
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140
	  hardcode_direct=yes # is this really true???
10141
	;;
10142
	siemens)
10143
	  ## LD is ld it makes a PLAMLIB
10144
	  ## CC just makes a GrossModule.
10145
	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10146
	  reload_cmds='$CC -r -o $output$reload_objs'
10147
	  hardcode_direct=no
10148
        ;;
10149
	motorola)
10150
	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151
	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10152
	;;
10153
      esac
10154
      runpath_var='LD_RUN_PATH'
10155
      hardcode_shlibpath_var=no
10156
      ;;
10157
 
10158
    sysv4.3*)
10159
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160
      hardcode_shlibpath_var=no
10161
      export_dynamic_flag_spec='-Bexport'
10162
      ;;
10163
 
10164
    sysv4*MP*)
10165
      if test -d /usr/nec; then
10166
	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167
	hardcode_shlibpath_var=no
10168
	runpath_var=LD_RUN_PATH
10169
	hardcode_runpath_var=yes
10170
	ld_shlibs=yes
10171
      fi
10172
      ;;
10173
 
10174
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10175
      no_undefined_flag='$wl-z,text'
10176
      archive_cmds_need_lc=no
10177
      hardcode_shlibpath_var=no
10178
      runpath_var='LD_RUN_PATH'
10179
 
10180
      if test yes = "$GCC"; then
10181
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10183
      else
10184
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186
      fi
10187
      ;;
10188
 
10189
    sysv5* | sco3.2v5* | sco5v6*)
10190
      # Note: We CANNOT use -z defs as we might desire, because we do not
10191
      # link with -lc, and that would cause any symbols used from libc to
10192
      # always be unresolved, which means just about no library would
10193
      # ever link correctly.  If we're not using GNU ld we use -z text
10194
      # though, which does catch some bad symbols but isn't as heavy-handed
10195
      # as -z defs.
10196
      no_undefined_flag='$wl-z,text'
10197
      allow_undefined_flag='$wl-z,nodefs'
10198
      archive_cmds_need_lc=no
10199
      hardcode_shlibpath_var=no
10200
      hardcode_libdir_flag_spec='$wl-R,$libdir'
10201
      hardcode_libdir_separator=':'
10202
      link_all_deplibs=yes
10203
      export_dynamic_flag_spec='$wl-Bexport'
10204
      runpath_var='LD_RUN_PATH'
10205
 
10206
      if test yes = "$GCC"; then
10207
	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208
	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10209
      else
10210
	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211
	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212
      fi
10213
      ;;
10214
 
10215
    uts4*)
10216
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217
      hardcode_libdir_flag_spec='-L$libdir'
10218
      hardcode_shlibpath_var=no
10219
      ;;
10220
 
10221
    *)
10222
      ld_shlibs=no
10223
      ;;
10224
    esac
10225
 
10226
    if test sni = "$host_vendor"; then
10227
      case $host in
10228
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10229
	export_dynamic_flag_spec='$wl-Blargedynsym'
10230
	;;
10231
      esac
10232
    fi
10233
  fi
10234
 
10235
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10236
$as_echo "$ld_shlibs" >&6; }
10237
test no = "$ld_shlibs" && can_build_shared=no
10238
 
10239
with_gnu_ld=$with_gnu_ld
10240
 
10241
 
10242
 
10243
 
10244
 
10245
 
10246
 
10247
 
10248
 
10249
 
10250
 
10251
 
10252
 
10253
 
10254
 
10255
#
10256
# Do we need to explicitly link libc?
10257
#
10258
case "x$archive_cmds_need_lc" in
10259
x|xyes)
10260
  # Assume -lc should be added
10261
  archive_cmds_need_lc=yes
10262
 
10263
  if test yes,yes = "$GCC,$enable_shared"; then
10264
    case $archive_cmds in
10265
    *'~'*)
10266
      # FIXME: we may have to deal with multi-command sequences.
10267
      ;;
10268
    '$CC '*)
10269
      # Test whether the compiler implicitly links with -lc since on some
10270
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10271
      # to ld, don't add -lc before -lgcc.
10272
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10273
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10274
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10275
  $as_echo_n "(cached) " >&6
10276
else
10277
  $RM conftest*
10278
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10279
 
10280
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10281
  (eval $ac_compile) 2>&5
10282
  ac_status=$?
10283
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10284
  test $ac_status = 0; } 2>conftest.err; then
10285
	  soname=conftest
10286
	  lib=conftest
10287
	  libobjs=conftest.$ac_objext
10288
	  deplibs=
10289
	  wl=$lt_prog_compiler_wl
10290
	  pic_flag=$lt_prog_compiler_pic
10291
	  compiler_flags=-v
10292
	  linker_flags=-v
10293
	  verstring=
10294
	  output_objdir=.
10295
	  libname=conftest
10296
	  lt_save_allow_undefined_flag=$allow_undefined_flag
10297
	  allow_undefined_flag=
10298
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10299
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10300
  ac_status=$?
10301
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10302
  test $ac_status = 0; }
10303
	  then
10304
	    lt_cv_archive_cmds_need_lc=no
10305
	  else
10306
	    lt_cv_archive_cmds_need_lc=yes
10307
	  fi
10308
	  allow_undefined_flag=$lt_save_allow_undefined_flag
10309
	else
10310
	  cat conftest.err 1>&5
10311
	fi
10312
	$RM conftest*
10313
 
10314
fi
10315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10316
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10317
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10318
      ;;
10319
    esac
10320
  fi
10321
  ;;
10322
esac
10323
 
10324
 
10325
 
10326
 
10327
 
10328
 
10329
 
10330
 
10331
 
10332
 
10333
 
10334
 
10335
 
10336
 
10337
 
10338
 
10339
 
10340
 
10341
 
10342
 
10343
 
10344
 
10345
 
10346
 
10347
 
10348
 
10349
 
10350
 
10351
 
10352
 
10353
 
10354
 
10355
 
10356
 
10357
 
10358
 
10359
 
10360
 
10361
 
10362
 
10363
 
10364
 
10365
 
10366
 
10367
 
10368
 
10369
 
10370
 
10371
 
10372
 
10373
 
10374
 
10375
 
10376
 
10377
 
10378
 
10379
 
10380
 
10381
 
10382
 
10383
 
10384
 
10385
 
10386
 
10387
 
10388
 
10389
 
10390
 
10391
 
10392
 
10393
 
10394
 
10395
 
10396
 
10397
 
10398
 
10399
 
10400
 
10401
 
10402
 
10403
 
10404
 
10405
 
10406
 
10407
 
10408
 
10409
 
10410
 
10411
 
10412
 
10413
 
10414
 
10415
 
10416
 
10417
 
10418
 
10419
 
10420
 
10421
 
10422
 
10423
 
10424
 
10425
 
10426
 
10427
 
10428
 
10429
 
10430
 
10431
 
10432
 
10433
 
10434
 
10435
 
10436
 
10437
 
10438
 
10439
 
10440
 
10441
 
10442
 
10443
 
10444
 
10445
 
10446
 
10447
 
10448
 
10449
 
10450
 
10451
 
10452
 
10453
 
10454
 
10455
 
10456
 
10457
 
10458
 
10459
 
10460
 
10461
 
10462
 
10463
 
10464
 
10465
 
10466
 
10467
 
10468
 
10469
 
10470
 
10471
 
10472
 
10473
 
10474
 
10475
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10476
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10477
 
10478
if test yes = "$GCC"; then
10479
  case $host_os in
10480
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10481
    *) lt_awk_arg='/^libraries:/' ;;
10482
  esac
10483
  case $host_os in
10484
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10485
    *) lt_sed_strip_eq='s|=/|/|g' ;;
10486
  esac
10487
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10488
  case $lt_search_path_spec in
10489
  *\;*)
10490
    # if the path contains ";" then we assume it to be the separator
10491
    # otherwise default to the standard path separator (i.e. ":") - it is
10492
    # assumed that no part of a normal pathname contains ";" but that should
10493
    # okay in the real world where ";" in dirpaths is itself problematic.
10494
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10495
    ;;
10496
  *)
10497
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10498
    ;;
10499
  esac
10500
  # Ok, now we have the path, separated by spaces, we can step through it
10501
  # and add multilib dir if necessary...
10502
  lt_tmp_lt_search_path_spec=
10503
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10504
  # ...but if some path component already ends with the multilib dir we assume
10505
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10506
  case "$lt_multi_os_dir; $lt_search_path_spec " in
10507
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10508
    lt_multi_os_dir=
10509
    ;;
10510
  esac
10511
  for lt_sys_path in $lt_search_path_spec; do
10512
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10513
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10514
    elif test -n "$lt_multi_os_dir"; then
10515
      test -d "$lt_sys_path" && \
10516
	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10517
    fi
10518
  done
10519
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10520
BEGIN {RS = " "; FS = "/|\n";} {
10521
  lt_foo = "";
10522
  lt_count = 0;
10523
  for (lt_i = NF; lt_i > 0; lt_i--) {
10524
    if ($lt_i != "" && $lt_i != ".") {
10525
      if ($lt_i == "..") {
10526
        lt_count++;
10527
      } else {
10528
        if (lt_count == 0) {
10529
          lt_foo = "/" $lt_i lt_foo;
10530
        } else {
10531
          lt_count--;
10532
        }
10533
      }
10534
    }
10535
  }
10536
  if (lt_foo != "") { lt_freq[lt_foo]++; }
10537
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10538
}'`
10539
  # AWK program above erroneously prepends '/' to C:/dos/paths
10540
  # for these hosts.
10541
  case $host_os in
10542
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10543
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10544
  esac
10545
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10546
else
10547
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10548
fi
10549
library_names_spec=
10550
libname_spec='lib$name'
10551
soname_spec=
10552
shrext_cmds=.so
10553
postinstall_cmds=
10554
postuninstall_cmds=
10555
finish_cmds=
10556
finish_eval=
10557
shlibpath_var=
10558
shlibpath_overrides_runpath=unknown
10559
version_type=none
10560
dynamic_linker="$host_os ld.so"
10561
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10562
need_lib_prefix=unknown
10563
hardcode_into_libs=no
10564
 
10565
# when you set need_version to no, make sure it does not cause -set_version
10566
# flags to be left without arguments
10567
need_version=unknown
10568
 
10569
 
10570
 
10571
case $host_os in
10572
aix3*)
10573
  version_type=linux # correct to gnu/linux during the next big refactor
10574
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10575
  shlibpath_var=LIBPATH
10576
 
10577
  # AIX 3 has no versioning support, so we append a major version to the name.
10578
  soname_spec='$libname$release$shared_ext$major'
10579
  ;;
10580
 
10581
aix[4-9]*)
10582
  version_type=linux # correct to gnu/linux during the next big refactor
10583
  need_lib_prefix=no
10584
  need_version=no
10585
  hardcode_into_libs=yes
10586
  if test ia64 = "$host_cpu"; then
10587
    # AIX 5 supports IA64
10588
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10589
    shlibpath_var=LD_LIBRARY_PATH
10590
  else
10591
    # With GCC up to 2.95.x, collect2 would create an import file
10592
    # for dependence libraries.  The import file would start with
10593
    # the line '#! .'.  This would cause the generated library to
10594
    # depend on '.', always an invalid library.  This was fixed in
10595
    # development snapshots of GCC prior to 3.0.
10596
    case $host_os in
10597
      aix4 | aix4.[01] | aix4.[01].*)
10598
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10599
	   echo ' yes '
10600
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10601
	:
10602
      else
10603
	can_build_shared=no
10604
      fi
10605
      ;;
10606
    esac
10607
    # Using Import Files as archive members, it is possible to support
10608
    # filename-based versioning of shared library archives on AIX. While
10609
    # this would work for both with and without runtime linking, it will
10610
    # prevent static linking of such archives. So we do filename-based
10611
    # shared library versioning with .so extension only, which is used
10612
    # when both runtime linking and shared linking is enabled.
10613
    # Unfortunately, runtime linking may impact performance, so we do
10614
    # not want this to be the default eventually. Also, we use the
10615
    # versioned .so libs for executables only if there is the -brtl
10616
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10617
    # To allow for filename-based versioning support, we need to create
10618
    # libNAME.so.V as an archive file, containing:
10619
    # *) an Import File, referring to the versioned filename of the
10620
    #    archive as well as the shared archive member, telling the
10621
    #    bitwidth (32 or 64) of that shared object, and providing the
10622
    #    list of exported symbols of that shared object, eventually
10623
    #    decorated with the 'weak' keyword
10624
    # *) the shared object with the F_LOADONLY flag set, to really avoid
10625
    #    it being seen by the linker.
10626
    # At run time we better use the real file rather than another symlink,
10627
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10628
 
10629
    case $with_aix_soname,$aix_use_runtimelinking in
10630
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10631
    # soname into executable. Probably we can add versioning support to
10632
    # collect2, so additional links can be useful in future.
10633
    aix,yes) # traditional libtool
10634
      dynamic_linker='AIX unversionable lib.so'
10635
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10636
      # instead of lib<name>.a to let people know that these are not
10637
      # typical AIX shared libraries.
10638
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10639
      ;;
10640
    aix,no) # traditional AIX only
10641
      dynamic_linker='AIX lib.a(lib.so.V)'
10642
      # We preserve .a as extension for shared libraries through AIX4.2
10643
      # and later when we are not doing run time linking.
10644
      library_names_spec='$libname$release.a $libname.a'
10645
      soname_spec='$libname$release$shared_ext$major'
10646
      ;;
10647
    svr4,*) # full svr4 only
10648
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10649
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10650
      # We do not specify a path in Import Files, so LIBPATH fires.
10651
      shlibpath_overrides_runpath=yes
10652
      ;;
10653
    *,yes) # both, prefer svr4
10654
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10655
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10656
      # unpreferred sharedlib libNAME.a needs extra handling
10657
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10658
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10659
      # We do not specify a path in Import Files, so LIBPATH fires.
10660
      shlibpath_overrides_runpath=yes
10661
      ;;
10662
    *,no) # both, prefer aix
10663
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10664
      library_names_spec='$libname$release.a $libname.a'
10665
      soname_spec='$libname$release$shared_ext$major'
10666
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10667
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10668
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10669
      ;;
10670
    esac
10671
    shlibpath_var=LIBPATH
10672
  fi
10673
  ;;
10674
 
10675
amigaos*)
10676
  case $host_cpu in
10677
  powerpc)
10678
    # Since July 2007 AmigaOS4 officially supports .so libraries.
10679
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10680
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10681
    ;;
10682
  m68k)
10683
    library_names_spec='$libname.ixlibrary $libname.a'
10684
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10685
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10686
    ;;
10687
  esac
10688
  ;;
10689
 
10690
beos*)
10691
  library_names_spec='$libname$shared_ext'
10692
  dynamic_linker="$host_os ld.so"
10693
  shlibpath_var=LIBRARY_PATH
10694
  ;;
10695
 
10696
bsdi[45]*)
10697
  version_type=linux # correct to gnu/linux during the next big refactor
10698
  need_version=no
10699
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10700
  soname_spec='$libname$release$shared_ext$major'
10701
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10702
  shlibpath_var=LD_LIBRARY_PATH
10703
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10704
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10705
  # the default ld.so.conf also contains /usr/contrib/lib and
10706
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10707
  # libtool to hard-code these into programs
10708
  ;;
10709
 
10710
cygwin* | msys* | mingw* | pw32* | cegcc*)
10711
  version_type=windows
10712
  shrext_cmds=.dll
10713
  need_version=no
10714
  need_lib_prefix=no
10715
 
10716
  case $GCC,$cc_basename in
10717
  yes,*)
10718
    # gcc
10719
    library_names_spec='$libname.dll.a'
10720
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721
    postinstall_cmds='base_file=`basename \$file`~
10722
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10723
      dldir=$destdir/`dirname \$dlpath`~
10724
      test -d \$dldir || mkdir -p \$dldir~
10725
      $install_prog $dir/$dlname \$dldir/$dlname~
10726
      chmod a+x \$dldir/$dlname~
10727
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10728
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10729
      fi'
10730
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10731
      dlpath=$dir/\$dldll~
10732
       $RM \$dlpath'
10733
    shlibpath_overrides_runpath=yes
10734
 
10735
    case $host_os in
10736
    cygwin*)
10737
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10738
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10739
 
10740
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10741
      ;;
10742
    msys*)
10743
      # MSYS DLLs use 'msys-' prefix rather than 'lib'
10744
      soname_spec='`echo $libname | sed -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10745
 
10746
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10747
      ;;
10748
    mingw* | cegcc*)
10749
      # MinGW DLLs use traditional 'lib' prefix
10750
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10751
      ;;
10752
    pw32*)
10753
      # pw32 DLLs use 'pw' prefix rather than 'lib'
10754
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10755
      ;;
10756
    esac
10757
    dynamic_linker='Win32 ld.exe'
10758
    ;;
10759
 
10760
  *,cl*)
10761
    # Native MSVC
10762
    libname_spec='$name'
10763
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10764
    library_names_spec='$libname.dll.lib'
10765
 
10766
    case $build_os in
10767
    mingw*)
10768
      sys_lib_search_path_spec=
10769
      lt_save_ifs=$IFS
10770
      IFS=';'
10771
      for lt_path in $LIB
10772
      do
10773
        IFS=$lt_save_ifs
10774
        # Let DOS variable expansion print the short 8.3 style file name.
10775
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10776
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10777
      done
10778
      IFS=$lt_save_ifs
10779
      # Convert to MSYS style.
10780
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10781
      ;;
10782
    cygwin* | msys*)
10783
      # Convert to unix form, then to dos form, then back to unix form
10784
      # but this time dos style (no spaces!) so that the unix form looks
10785
      # like /cygdrive/c/PROGRA~1:/cygdr...
10786
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10787
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10788
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10789
      ;;
10790
    *)
10791
      sys_lib_search_path_spec=$LIB
10792
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10793
        # It is most probably a Windows format PATH.
10794
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10795
      else
10796
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797
      fi
10798
      # FIXME: find the short name or the path components, as spaces are
10799
      # common. (e.g. "Program Files" -> "PROGRA~1")
10800
      ;;
10801
    esac
10802
 
10803
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10804
    postinstall_cmds='base_file=`basename \$file`~
10805
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10806
      dldir=$destdir/`dirname \$dlpath`~
10807
      test -d \$dldir || mkdir -p \$dldir~
10808
      $install_prog $dir/$dlname \$dldir/$dlname'
10809
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10810
      dlpath=$dir/\$dldll~
10811
       $RM \$dlpath'
10812
    shlibpath_overrides_runpath=yes
10813
    dynamic_linker='Win32 link.exe'
10814
    ;;
10815
 
10816
  *)
10817
    # Assume MSVC wrapper
10818
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10819
    dynamic_linker='Win32 ld.exe'
10820
    ;;
10821
  esac
10822
  # FIXME: first we should search . and the directory the executable is in
10823
  shlibpath_var=PATH
10824
  ;;
10825
 
10826
darwin* | rhapsody*)
10827
  dynamic_linker="$host_os dyld"
10828
  version_type=darwin
10829
  need_lib_prefix=no
10830
  need_version=no
10831
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10832
  soname_spec='$libname$release$major$shared_ext'
10833
  shlibpath_overrides_runpath=yes
10834
  shlibpath_var=DYLD_LIBRARY_PATH
10835
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10836
 
10837
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10838
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10839
  ;;
10840
 
10841
dgux*)
10842
  version_type=linux # correct to gnu/linux during the next big refactor
10843
  need_lib_prefix=no
10844
  need_version=no
10845
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10846
  soname_spec='$libname$release$shared_ext$major'
10847
  shlibpath_var=LD_LIBRARY_PATH
10848
  ;;
10849
 
10850
freebsd* | dragonfly*)
10851
  # DragonFly does not have aout.  When/if they implement a new
10852
  # versioning mechanism, adjust this.
10853
  if test -x /usr/bin/objformat; then
10854
    objformat=`/usr/bin/objformat`
10855
  else
10856
    case $host_os in
10857
    freebsd[23].*) objformat=aout ;;
10858
    *) objformat=elf ;;
10859
    esac
10860
  fi
10861
  version_type=freebsd-$objformat
10862
  case $version_type in
10863
    freebsd-elf*)
10864
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10865
      soname_spec='$libname$release$shared_ext$major'
10866
      need_version=no
10867
      need_lib_prefix=no
10868
      ;;
10869
    freebsd-*)
10870
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10871
      need_version=yes
10872
      ;;
10873
  esac
10874
  shlibpath_var=LD_LIBRARY_PATH
10875
  case $host_os in
10876
  freebsd2.*)
10877
    shlibpath_overrides_runpath=yes
10878
    ;;
10879
  freebsd3.[01]* | freebsdelf3.[01]*)
10880
    shlibpath_overrides_runpath=yes
10881
    hardcode_into_libs=yes
10882
    ;;
10883
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10884
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10885
    shlibpath_overrides_runpath=no
10886
    hardcode_into_libs=yes
10887
    ;;
10888
  *) # from 4.6 on, and DragonFly
10889
    shlibpath_overrides_runpath=yes
10890
    hardcode_into_libs=yes
10891
    ;;
10892
  esac
10893
  ;;
10894
 
10895
haiku*)
10896
  version_type=linux # correct to gnu/linux during the next big refactor
10897
  need_lib_prefix=no
10898
  need_version=no
10899
  dynamic_linker="$host_os runtime_loader"
10900
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901
  soname_spec='$libname$release$shared_ext$major'
10902
  shlibpath_var=LIBRARY_PATH
10903
  shlibpath_overrides_runpath=no
10904
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10905
  hardcode_into_libs=yes
10906
  ;;
10907
 
10908
hpux9* | hpux10* | hpux11*)
10909
  # Give a soname corresponding to the major version so that dld.sl refuses to
10910
  # link against other versions.
10911
  version_type=sunos
10912
  need_lib_prefix=no
10913
  need_version=no
10914
  case $host_cpu in
10915
  ia64*)
10916
    shrext_cmds='.so'
10917
    hardcode_into_libs=yes
10918
    dynamic_linker="$host_os dld.so"
10919
    shlibpath_var=LD_LIBRARY_PATH
10920
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10921
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922
    soname_spec='$libname$release$shared_ext$major'
10923
    if test 32 = "$HPUX_IA64_MODE"; then
10924
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10925
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10926
    else
10927
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10928
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10929
    fi
10930
    ;;
10931
  hppa*64*)
10932
    shrext_cmds='.sl'
10933
    hardcode_into_libs=yes
10934
    dynamic_linker="$host_os dld.sl"
10935
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10936
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938
    soname_spec='$libname$release$shared_ext$major'
10939
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10940
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10941
    ;;
10942
  *)
10943
    shrext_cmds='.sl'
10944
    dynamic_linker="$host_os dld.sl"
10945
    shlibpath_var=SHLIB_PATH
10946
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10947
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10948
    soname_spec='$libname$release$shared_ext$major'
10949
    ;;
10950
  esac
10951
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10952
  postinstall_cmds='chmod 555 $lib'
10953
  # or fails outright, so override atomically:
10954
  install_override_mode=555
10955
  ;;
10956
 
10957
interix[3-9]*)
10958
  version_type=linux # correct to gnu/linux during the next big refactor
10959
  need_lib_prefix=no
10960
  need_version=no
10961
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962
  soname_spec='$libname$release$shared_ext$major'
10963
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10964
  shlibpath_var=LD_LIBRARY_PATH
10965
  shlibpath_overrides_runpath=no
10966
  hardcode_into_libs=yes
10967
  ;;
10968
 
10969
irix5* | irix6* | nonstopux*)
10970
  case $host_os in
10971
    nonstopux*) version_type=nonstopux ;;
10972
    *)
10973
	if test yes = "$lt_cv_prog_gnu_ld"; then
10974
		version_type=linux # correct to gnu/linux during the next big refactor
10975
	else
10976
		version_type=irix
10977
	fi ;;
10978
  esac
10979
  need_lib_prefix=no
10980
  need_version=no
10981
  soname_spec='$libname$release$shared_ext$major'
10982
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10983
  case $host_os in
10984
  irix5* | nonstopux*)
10985
    libsuff= shlibsuff=
10986
    ;;
10987
  *)
10988
    case $LD in # libtool.m4 will add one of these switches to LD
10989
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10990
      libsuff= shlibsuff= libmagic=32-bit;;
10991
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10992
      libsuff=32 shlibsuff=N32 libmagic=N32;;
10993
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10994
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10995
    *) libsuff= shlibsuff= libmagic=never-match;;
10996
    esac
10997
    ;;
10998
  esac
10999
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11000
  shlibpath_overrides_runpath=no
11001
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11002
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11003
  hardcode_into_libs=yes
11004
  ;;
11005
 
11006
# No shared lib support for Linux oldld, aout, or coff.
11007
linux*oldld* | linux*aout* | linux*coff*)
11008
  dynamic_linker=no
11009
  ;;
11010
 
11011
linux*android*)
11012
  version_type=none # Android doesn't support versioned libraries.
11013
  need_lib_prefix=no
11014
  need_version=no
11015
  library_names_spec='$libname$release$shared_ext'
11016
  soname_spec='$libname$release$shared_ext'
11017
  finish_cmds=
11018
  shlibpath_var=LD_LIBRARY_PATH
11019
  shlibpath_overrides_runpath=yes
11020
 
11021
  # This implies no fast_install, which is unacceptable.
11022
  # Some rework will be needed to allow for fast_install
11023
  # before this can be enabled.
11024
  hardcode_into_libs=yes
11025
 
11026
  dynamic_linker='Android linker'
11027
  # Don't embed -rpath directories since the linker doesn't support them.
11028
  hardcode_libdir_flag_spec='-L$libdir'
11029
  ;;
11030
 
11031
# This must be glibc/ELF.
11032
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11033
  version_type=linux # correct to gnu/linux during the next big refactor
11034
  need_lib_prefix=no
11035
  need_version=no
11036
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037
  soname_spec='$libname$release$shared_ext$major'
11038
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039
  shlibpath_var=LD_LIBRARY_PATH
11040
  shlibpath_overrides_runpath=no
11041
 
11042
  # Some binutils ld are patched to set DT_RUNPATH
11043
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044
  $as_echo_n "(cached) " >&6
11045
else
11046
  lt_cv_shlibpath_overrides_runpath=no
11047
    save_LDFLAGS=$LDFLAGS
11048
    save_libdir=$libdir
11049
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052
/* end confdefs.h.  */
11053
 
11054
int
11055
main ()
11056
{
11057
 
11058
  ;
11059
  return 0;
11060
}
11061
_ACEOF
11062
if ac_fn_c_try_link "$LINENO"; then :
11063
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064
  lt_cv_shlibpath_overrides_runpath=yes
11065
fi
11066
fi
11067
rm -f core conftest.err conftest.$ac_objext \
11068
    conftest$ac_exeext conftest.$ac_ext
11069
    LDFLAGS=$save_LDFLAGS
11070
    libdir=$save_libdir
11071
 
11072
fi
11073
 
11074
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075
 
11076
  # This implies no fast_install, which is unacceptable.
11077
  # Some rework will be needed to allow for fast_install
11078
  # before this can be enabled.
11079
  hardcode_into_libs=yes
11080
 
11081
  # Ideally, we could use ldconfig to report *all* directores which are
11082
  # searched for libraries, however this is still not possible.  Aside from not
11083
  # being certain /sbin/ldconfig is available, command
11084
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11085
  # even though it is searched at run-time.  Try to do the best guess by
11086
  # appending ld.so.conf contents (and includes) to the search path.
11087
  if test -f /etc/ld.so.conf; then
11088
    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;s/"//g;/^$/d' | tr '\n' ' '`
11089
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11090
  fi
11091
 
11092
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11093
  # powerpc, because MkLinux only supported shared libraries with the
11094
  # GNU dynamic linker.  Since this was broken with cross compilers,
11095
  # most powerpc-linux boxes support dynamic linking these days and
11096
  # people can always --disable-shared, the test was removed, and we
11097
  # assume the GNU/Linux dynamic linker is in use.
11098
  dynamic_linker='GNU/Linux ld.so'
11099
  ;;
11100
 
11101
netbsd*)
11102
  version_type=sunos
11103
  need_lib_prefix=no
11104
  need_version=no
11105
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11107
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108
    dynamic_linker='NetBSD (a.out) ld.so'
11109
  else
11110
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11111
    soname_spec='$libname$release$shared_ext$major'
11112
    dynamic_linker='NetBSD ld.elf_so'
11113
  fi
11114
  shlibpath_var=LD_LIBRARY_PATH
11115
  shlibpath_overrides_runpath=yes
11116
  hardcode_into_libs=yes
11117
  ;;
11118
 
11119
newsos6)
11120
  version_type=linux # correct to gnu/linux during the next big refactor
11121
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11122
  shlibpath_var=LD_LIBRARY_PATH
11123
  shlibpath_overrides_runpath=yes
11124
  ;;
11125
 
11126
*nto* | *qnx*)
11127
  version_type=qnx
11128
  need_lib_prefix=no
11129
  need_version=no
11130
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131
  soname_spec='$libname$release$shared_ext$major'
11132
  shlibpath_var=LD_LIBRARY_PATH
11133
  shlibpath_overrides_runpath=no
11134
  hardcode_into_libs=yes
11135
  dynamic_linker='ldqnx.so'
11136
  ;;
11137
 
11138
openbsd* | bitrig*)
11139
  version_type=sunos
11140
  sys_lib_dlsearch_path_spec=/usr/lib
11141
  need_lib_prefix=no
11142
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11143
    need_version=no
11144
  else
11145
    need_version=yes
11146
  fi
11147
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11148
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149
  shlibpath_var=LD_LIBRARY_PATH
11150
  shlibpath_overrides_runpath=yes
11151
  ;;
11152
 
11153
os2*)
11154
  libname_spec='$name'
11155
  version_type=windows
11156
  shrext_cmds=.dll
11157
  need_version=no
11158
  need_lib_prefix=no
11159
  # OS/2 can only load a DLL with a base name of 8 characters or less.
11160
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11161
    v=$($ECHO $release$versuffix | tr -d .-);
11162
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11163
    $ECHO $n$v`$shared_ext'
11164
  library_names_spec='${libname}_dll.$libext'
11165
  dynamic_linker='OS/2 ld.exe'
11166
  shlibpath_var=BEGINLIBPATH
11167
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11168
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11169
  postinstall_cmds='base_file=`basename \$file`~
11170
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11171
    dldir=$destdir/`dirname \$dlpath`~
11172
    test -d \$dldir || mkdir -p \$dldir~
11173
    $install_prog $dir/$dlname \$dldir/$dlname~
11174
    chmod a+x \$dldir/$dlname~
11175
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11176
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11177
    fi'
11178
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11179
    dlpath=$dir/\$dldll~
11180
    $RM \$dlpath'
11181
  ;;
11182
 
11183
osf3* | osf4* | osf5*)
11184
  version_type=osf
11185
  need_lib_prefix=no
11186
  need_version=no
11187
  soname_spec='$libname$release$shared_ext$major'
11188
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189
  shlibpath_var=LD_LIBRARY_PATH
11190
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11191
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192
  ;;
11193
 
11194
rdos*)
11195
  dynamic_linker=no
11196
  ;;
11197
 
11198
solaris*)
11199
  version_type=linux # correct to gnu/linux during the next big refactor
11200
  need_lib_prefix=no
11201
  need_version=no
11202
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203
  soname_spec='$libname$release$shared_ext$major'
11204
  shlibpath_var=LD_LIBRARY_PATH
11205
  shlibpath_overrides_runpath=yes
11206
  hardcode_into_libs=yes
11207
  # ldd complains unless libraries are executable
11208
  postinstall_cmds='chmod +x $lib'
11209
  ;;
11210
 
11211
sunos4*)
11212
  version_type=sunos
11213
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11214
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11215
  shlibpath_var=LD_LIBRARY_PATH
11216
  shlibpath_overrides_runpath=yes
11217
  if test yes = "$with_gnu_ld"; then
11218
    need_lib_prefix=no
11219
  fi
11220
  need_version=yes
11221
  ;;
11222
 
11223
sysv4 | sysv4.3*)
11224
  version_type=linux # correct to gnu/linux during the next big refactor
11225
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226
  soname_spec='$libname$release$shared_ext$major'
11227
  shlibpath_var=LD_LIBRARY_PATH
11228
  case $host_vendor in
11229
    sni)
11230
      shlibpath_overrides_runpath=no
11231
      need_lib_prefix=no
11232
      runpath_var=LD_RUN_PATH
11233
      ;;
11234
    siemens)
11235
      need_lib_prefix=no
11236
      ;;
11237
    motorola)
11238
      need_lib_prefix=no
11239
      need_version=no
11240
      shlibpath_overrides_runpath=no
11241
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11242
      ;;
11243
  esac
11244
  ;;
11245
 
11246
sysv4*MP*)
11247
  if test -d /usr/nec; then
11248
    version_type=linux # correct to gnu/linux during the next big refactor
11249
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11250
    soname_spec='$libname$shared_ext.$major'
11251
    shlibpath_var=LD_LIBRARY_PATH
11252
  fi
11253
  ;;
11254
 
11255
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11256
  version_type=sco
11257
  need_lib_prefix=no
11258
  need_version=no
11259
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11260
  soname_spec='$libname$release$shared_ext$major'
11261
  shlibpath_var=LD_LIBRARY_PATH
11262
  shlibpath_overrides_runpath=yes
11263
  hardcode_into_libs=yes
11264
  if test yes = "$with_gnu_ld"; then
11265
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11266
  else
11267
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11268
    case $host_os in
11269
      sco3.2v5*)
11270
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11271
	;;
11272
    esac
11273
  fi
11274
  sys_lib_dlsearch_path_spec='/usr/lib'
11275
  ;;
11276
 
11277
tpf*)
11278
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11279
  version_type=linux # correct to gnu/linux during the next big refactor
11280
  need_lib_prefix=no
11281
  need_version=no
11282
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11283
  shlibpath_var=LD_LIBRARY_PATH
11284
  shlibpath_overrides_runpath=no
11285
  hardcode_into_libs=yes
11286
  ;;
11287
 
11288
uts4*)
11289
  version_type=linux # correct to gnu/linux during the next big refactor
11290
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11291
  soname_spec='$libname$release$shared_ext$major'
11292
  shlibpath_var=LD_LIBRARY_PATH
11293
  ;;
11294
 
11295
*)
11296
  dynamic_linker=no
11297
  ;;
11298
esac
11299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11300
$as_echo "$dynamic_linker" >&6; }
11301
test no = "$dynamic_linker" && can_build_shared=no
11302
 
11303
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11304
if test yes = "$GCC"; then
11305
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11306
fi
11307
 
11308
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11309
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11310
fi
11311
 
11312
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11313
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11314
fi
11315
 
11316
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11317
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11318
 
11319
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11320
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11321
 
11322
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11323
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11324
 
11325
 
11326
 
11327
 
11328
 
11329
 
11330
 
11331
 
11332
 
11333
 
11334
 
11335
 
11336
 
11337
 
11338
 
11339
 
11340
 
11341
 
11342
 
11343
 
11344
 
11345
 
11346
 
11347
 
11348
 
11349
 
11350
 
11351
 
11352
 
11353
 
11354
 
11355
 
11356
 
11357
 
11358
 
11359
 
11360
 
11361
 
11362
 
11363
 
11364
 
11365
 
11366
 
11367
 
11368
 
11369
 
11370
 
11371
 
11372
 
11373
 
11374
 
11375
 
11376
 
11377
 
11378
 
11379
 
11380
 
11381
 
11382
 
11383
 
11384
 
11385
 
11386
 
11387
 
11388
 
11389
 
11390
 
11391
 
11392
 
11393
 
11394
 
11395
 
11396
 
11397
 
11398
 
11399
 
11400
 
11401
 
11402
 
11403
 
11404
 
11405
 
11406
 
11407
 
11408
 
11409
 
11410
 
11411
 
11412
 
11413
 
11414
 
11415
 
11416
 
11417
 
11418
 
11419
 
11420
 
11421
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11422
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11423
hardcode_action=
11424
if test -n "$hardcode_libdir_flag_spec" ||
11425
   test -n "$runpath_var" ||
11426
   test yes = "$hardcode_automatic"; then
11427
 
11428
  # We can hardcode non-existent directories.
11429
  if test no != "$hardcode_direct" &&
11430
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11431
     # have to relink, otherwise we might link with an installed library
11432
     # when we should be linking with a yet-to-be-installed one
11433
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11434
     test no != "$hardcode_minus_L"; then
11435
    # Linking always hardcodes the temporary library directory.
11436
    hardcode_action=relink
11437
  else
11438
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11439
    hardcode_action=immediate
11440
  fi
11441
else
11442
  # We cannot hardcode anything, or else we can only hardcode existing
11443
  # directories.
11444
  hardcode_action=unsupported
11445
fi
11446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11447
$as_echo "$hardcode_action" >&6; }
11448
 
11449
if test relink = "$hardcode_action" ||
11450
   test yes = "$inherit_rpath"; then
11451
  # Fast installation is not supported
11452
  enable_fast_install=no
11453
elif test yes = "$shlibpath_overrides_runpath" ||
11454
     test no = "$enable_shared"; then
11455
  # Fast installation is not necessary
11456
  enable_fast_install=needless
11457
fi
11458
 
11459
 
11460
 
11461
 
11462
 
11463
 
11464
  if test yes != "$enable_dlopen"; then
11465
  enable_dlopen=unknown
11466
  enable_dlopen_self=unknown
11467
  enable_dlopen_self_static=unknown
11468
else
11469
  lt_cv_dlopen=no
11470
  lt_cv_dlopen_libs=
11471
 
11472
  case $host_os in
11473
  beos*)
11474
    lt_cv_dlopen=load_add_on
11475
    lt_cv_dlopen_libs=
11476
    lt_cv_dlopen_self=yes
11477
    ;;
11478
 
11479
  mingw* | pw32* | cegcc*)
11480
    lt_cv_dlopen=LoadLibrary
11481
    lt_cv_dlopen_libs=
11482
    ;;
11483
 
11484
  cygwin* | msys*)
11485
    lt_cv_dlopen=dlopen
11486
    lt_cv_dlopen_libs=
11487
    ;;
11488
 
11489
  darwin*)
11490
    # if libdl is installed we need to link against it
11491
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11493
if ${ac_cv_lib_dl_dlopen+:} false; then :
11494
  $as_echo_n "(cached) " >&6
11495
else
11496
  ac_check_lib_save_LIBS=$LIBS
11497
LIBS="-ldl  $LIBS"
11498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499
/* end confdefs.h.  */
11500
 
11501
/* Override any GCC internal prototype to avoid an error.
11502
   Use char because int might match the return type of a GCC
11503
   builtin and then its argument prototype would still apply.  */
11504
#ifdef __cplusplus
11505
extern "C"
11506
#endif
11507
char dlopen ();
11508
int
11509
main ()
11510
{
11511
return dlopen ();
11512
  ;
11513
  return 0;
11514
}
11515
_ACEOF
11516
if ac_fn_c_try_link "$LINENO"; then :
11517
  ac_cv_lib_dl_dlopen=yes
11518
else
11519
  ac_cv_lib_dl_dlopen=no
11520
fi
11521
rm -f core conftest.err conftest.$ac_objext \
11522
    conftest$ac_exeext conftest.$ac_ext
11523
LIBS=$ac_check_lib_save_LIBS
11524
fi
11525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11529
else
11530
 
11531
    lt_cv_dlopen=dyld
11532
    lt_cv_dlopen_libs=
11533
    lt_cv_dlopen_self=yes
11534
 
11535
fi
11536
 
11537
    ;;
11538
 
11539
  tpf*)
11540
    # Don't try to run any link tests for TPF.  We know it's impossible
11541
    # because TPF is a cross-compiler, and we know how we open DSOs.
11542
    lt_cv_dlopen=dlopen
11543
    lt_cv_dlopen_libs=
11544
    lt_cv_dlopen_self=no
11545
    ;;
11546
 
11547
  *)
11548
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11549
if test "x$ac_cv_func_shl_load" = xyes; then :
11550
  lt_cv_dlopen=shl_load
11551
else
11552
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11553
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11554
if ${ac_cv_lib_dld_shl_load+:} false; then :
11555
  $as_echo_n "(cached) " >&6
11556
else
11557
  ac_check_lib_save_LIBS=$LIBS
11558
LIBS="-ldld  $LIBS"
11559
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560
/* end confdefs.h.  */
11561
 
11562
/* Override any GCC internal prototype to avoid an error.
11563
   Use char because int might match the return type of a GCC
11564
   builtin and then its argument prototype would still apply.  */
11565
#ifdef __cplusplus
11566
extern "C"
11567
#endif
11568
char shl_load ();
11569
int
11570
main ()
11571
{
11572
return shl_load ();
11573
  ;
11574
  return 0;
11575
}
11576
_ACEOF
11577
if ac_fn_c_try_link "$LINENO"; then :
11578
  ac_cv_lib_dld_shl_load=yes
11579
else
11580
  ac_cv_lib_dld_shl_load=no
11581
fi
11582
rm -f core conftest.err conftest.$ac_objext \
11583
    conftest$ac_exeext conftest.$ac_ext
11584
LIBS=$ac_check_lib_save_LIBS
11585
fi
11586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11587
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11588
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11589
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11590
else
11591
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11592
if test "x$ac_cv_func_dlopen" = xyes; then :
11593
  lt_cv_dlopen=dlopen
11594
else
11595
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11597
if ${ac_cv_lib_dl_dlopen+:} false; then :
11598
  $as_echo_n "(cached) " >&6
11599
else
11600
  ac_check_lib_save_LIBS=$LIBS
11601
LIBS="-ldl  $LIBS"
11602
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603
/* end confdefs.h.  */
11604
 
11605
/* Override any GCC internal prototype to avoid an error.
11606
   Use char because int might match the return type of a GCC
11607
   builtin and then its argument prototype would still apply.  */
11608
#ifdef __cplusplus
11609
extern "C"
11610
#endif
11611
char dlopen ();
11612
int
11613
main ()
11614
{
11615
return dlopen ();
11616
  ;
11617
  return 0;
11618
}
11619
_ACEOF
11620
if ac_fn_c_try_link "$LINENO"; then :
11621
  ac_cv_lib_dl_dlopen=yes
11622
else
11623
  ac_cv_lib_dl_dlopen=no
11624
fi
11625
rm -f core conftest.err conftest.$ac_objext \
11626
    conftest$ac_exeext conftest.$ac_ext
11627
LIBS=$ac_check_lib_save_LIBS
11628
fi
11629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11630
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11631
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11632
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11633
else
11634
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11635
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11636
if ${ac_cv_lib_svld_dlopen+:} false; then :
11637
  $as_echo_n "(cached) " >&6
11638
else
11639
  ac_check_lib_save_LIBS=$LIBS
11640
LIBS="-lsvld  $LIBS"
11641
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642
/* end confdefs.h.  */
11643
 
11644
/* Override any GCC internal prototype to avoid an error.
11645
   Use char because int might match the return type of a GCC
11646
   builtin and then its argument prototype would still apply.  */
11647
#ifdef __cplusplus
11648
extern "C"
11649
#endif
11650
char dlopen ();
11651
int
11652
main ()
11653
{
11654
return dlopen ();
11655
  ;
11656
  return 0;
11657
}
11658
_ACEOF
11659
if ac_fn_c_try_link "$LINENO"; then :
11660
  ac_cv_lib_svld_dlopen=yes
11661
else
11662
  ac_cv_lib_svld_dlopen=no
11663
fi
11664
rm -f core conftest.err conftest.$ac_objext \
11665
    conftest$ac_exeext conftest.$ac_ext
11666
LIBS=$ac_check_lib_save_LIBS
11667
fi
11668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11669
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11670
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11671
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11672
else
11673
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11674
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11675
if ${ac_cv_lib_dld_dld_link+:} false; then :
11676
  $as_echo_n "(cached) " >&6
11677
else
11678
  ac_check_lib_save_LIBS=$LIBS
11679
LIBS="-ldld  $LIBS"
11680
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681
/* end confdefs.h.  */
11682
 
11683
/* Override any GCC internal prototype to avoid an error.
11684
   Use char because int might match the return type of a GCC
11685
   builtin and then its argument prototype would still apply.  */
11686
#ifdef __cplusplus
11687
extern "C"
11688
#endif
11689
char dld_link ();
11690
int
11691
main ()
11692
{
11693
return dld_link ();
11694
  ;
11695
  return 0;
11696
}
11697
_ACEOF
11698
if ac_fn_c_try_link "$LINENO"; then :
11699
  ac_cv_lib_dld_dld_link=yes
11700
else
11701
  ac_cv_lib_dld_dld_link=no
11702
fi
11703
rm -f core conftest.err conftest.$ac_objext \
11704
    conftest$ac_exeext conftest.$ac_ext
11705
LIBS=$ac_check_lib_save_LIBS
11706
fi
11707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11708
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11709
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11710
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11711
fi
11712
 
11713
 
11714
fi
11715
 
11716
 
11717
fi
11718
 
11719
 
11720
fi
11721
 
11722
 
11723
fi
11724
 
11725
 
11726
fi
11727
 
11728
    ;;
11729
  esac
11730
 
11731
  if test no = "$lt_cv_dlopen"; then
11732
    enable_dlopen=no
11733
  else
11734
    enable_dlopen=yes
11735
  fi
11736
 
11737
  case $lt_cv_dlopen in
11738
  dlopen)
11739
    save_CPPFLAGS=$CPPFLAGS
11740
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11741
 
11742
    save_LDFLAGS=$LDFLAGS
11743
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11744
 
11745
    save_LIBS=$LIBS
11746
    LIBS="$lt_cv_dlopen_libs $LIBS"
11747
 
11748
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11749
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11750
if ${lt_cv_dlopen_self+:} false; then :
11751
  $as_echo_n "(cached) " >&6
11752
else
11753
  	  if test yes = "$cross_compiling"; then :
11754
  lt_cv_dlopen_self=cross
11755
else
11756
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757
  lt_status=$lt_dlunknown
11758
  cat > conftest.$ac_ext <<_LT_EOF
11759
#line $LINENO "configure"
11760
#include "confdefs.h"
11761
 
11762
#if HAVE_DLFCN_H
11763
#include <dlfcn.h>
11764
#endif
11765
 
11766
#include <stdio.h>
11767
 
11768
#ifdef RTLD_GLOBAL
11769
#  define LT_DLGLOBAL		RTLD_GLOBAL
11770
#else
11771
#  ifdef DL_GLOBAL
11772
#    define LT_DLGLOBAL		DL_GLOBAL
11773
#  else
11774
#    define LT_DLGLOBAL		0
11775
#  endif
11776
#endif
11777
 
11778
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779
   find out it does not work in some platform. */
11780
#ifndef LT_DLLAZY_OR_NOW
11781
#  ifdef RTLD_LAZY
11782
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11783
#  else
11784
#    ifdef DL_LAZY
11785
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11786
#    else
11787
#      ifdef RTLD_NOW
11788
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11789
#      else
11790
#        ifdef DL_NOW
11791
#          define LT_DLLAZY_OR_NOW	DL_NOW
11792
#        else
11793
#          define LT_DLLAZY_OR_NOW	0
11794
#        endif
11795
#      endif
11796
#    endif
11797
#  endif
11798
#endif
11799
 
11800
/* When -fvisibility=hidden is used, assume the code has been annotated
11801
   correspondingly for the symbols needed.  */
11802
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803
int fnord () __attribute__((visibility("default")));
11804
#endif
11805
 
11806
int fnord () { return 42; }
11807
int main ()
11808
{
11809
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810
  int status = $lt_dlunknown;
11811
 
11812
  if (self)
11813
    {
11814
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11815
      else
11816
        {
11817
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11818
          else puts (dlerror ());
11819
	}
11820
      /* dlclose (self); */
11821
    }
11822
  else
11823
    puts (dlerror ());
11824
 
11825
  return status;
11826
}
11827
_LT_EOF
11828
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829
  (eval $ac_link) 2>&5
11830
  ac_status=$?
11831
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11833
    (./conftest; exit; ) >&5 2>/dev/null
11834
    lt_status=$?
11835
    case x$lt_status in
11836
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11837
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11838
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11839
    esac
11840
  else :
11841
    # compilation failed
11842
    lt_cv_dlopen_self=no
11843
  fi
11844
fi
11845
rm -fr conftest*
11846
 
11847
 
11848
fi
11849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11850
$as_echo "$lt_cv_dlopen_self" >&6; }
11851
 
11852
    if test yes = "$lt_cv_dlopen_self"; then
11853
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11854
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11855
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11856
if ${lt_cv_dlopen_self_static+:} false; then :
11857
  $as_echo_n "(cached) " >&6
11858
else
11859
  	  if test yes = "$cross_compiling"; then :
11860
  lt_cv_dlopen_self_static=cross
11861
else
11862
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11863
  lt_status=$lt_dlunknown
11864
  cat > conftest.$ac_ext <<_LT_EOF
11865
#line $LINENO "configure"
11866
#include "confdefs.h"
11867
 
11868
#if HAVE_DLFCN_H
11869
#include <dlfcn.h>
11870
#endif
11871
 
11872
#include <stdio.h>
11873
 
11874
#ifdef RTLD_GLOBAL
11875
#  define LT_DLGLOBAL		RTLD_GLOBAL
11876
#else
11877
#  ifdef DL_GLOBAL
11878
#    define LT_DLGLOBAL		DL_GLOBAL
11879
#  else
11880
#    define LT_DLGLOBAL		0
11881
#  endif
11882
#endif
11883
 
11884
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11885
   find out it does not work in some platform. */
11886
#ifndef LT_DLLAZY_OR_NOW
11887
#  ifdef RTLD_LAZY
11888
#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11889
#  else
11890
#    ifdef DL_LAZY
11891
#      define LT_DLLAZY_OR_NOW		DL_LAZY
11892
#    else
11893
#      ifdef RTLD_NOW
11894
#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11895
#      else
11896
#        ifdef DL_NOW
11897
#          define LT_DLLAZY_OR_NOW	DL_NOW
11898
#        else
11899
#          define LT_DLLAZY_OR_NOW	0
11900
#        endif
11901
#      endif
11902
#    endif
11903
#  endif
11904
#endif
11905
 
11906
/* When -fvisibility=hidden is used, assume the code has been annotated
11907
   correspondingly for the symbols needed.  */
11908
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11909
int fnord () __attribute__((visibility("default")));
11910
#endif
11911
 
11912
int fnord () { return 42; }
11913
int main ()
11914
{
11915
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11916
  int status = $lt_dlunknown;
11917
 
11918
  if (self)
11919
    {
11920
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11921
      else
11922
        {
11923
	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11924
          else puts (dlerror ());
11925
	}
11926
      /* dlclose (self); */
11927
    }
11928
  else
11929
    puts (dlerror ());
11930
 
11931
  return status;
11932
}
11933
_LT_EOF
11934
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11935
  (eval $ac_link) 2>&5
11936
  ac_status=$?
11937
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11939
    (./conftest; exit; ) >&5 2>/dev/null
11940
    lt_status=$?
11941
    case x$lt_status in
11942
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11943
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11944
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11945
    esac
11946
  else :
11947
    # compilation failed
11948
    lt_cv_dlopen_self_static=no
11949
  fi
11950
fi
11951
rm -fr conftest*
11952
 
11953
 
11954
fi
11955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11956
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11957
    fi
11958
 
11959
    CPPFLAGS=$save_CPPFLAGS
11960
    LDFLAGS=$save_LDFLAGS
11961
    LIBS=$save_LIBS
11962
    ;;
11963
  esac
11964
 
11965
  case $lt_cv_dlopen_self in
11966
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11967
  *) enable_dlopen_self=unknown ;;
11968
  esac
11969
 
11970
  case $lt_cv_dlopen_self_static in
11971
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11972
  *) enable_dlopen_self_static=unknown ;;
11973
  esac
11974
fi
11975
 
11976
 
11977
 
11978
 
11979
 
11980
 
11981
 
11982
 
11983
 
11984
 
11985
 
11986
 
11987
 
11988
 
11989
 
11990
 
11991
 
11992
striplib=
11993
old_striplib=
11994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11995
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11996
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11997
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11998
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000
$as_echo "yes" >&6; }
12001
else
12002
# FIXME - insert some real tests, host_os isn't really good enough
12003
  case $host_os in
12004
  darwin*)
12005
    if test -n "$STRIP"; then
12006
      striplib="$STRIP -x"
12007
      old_striplib="$STRIP -S"
12008
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009
$as_echo "yes" >&6; }
12010
    else
12011
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012
$as_echo "no" >&6; }
12013
    fi
12014
    ;;
12015
  *)
12016
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017
$as_echo "no" >&6; }
12018
    ;;
12019
  esac
12020
fi
12021
 
12022
 
12023
 
12024
 
12025
 
12026
 
12027
 
12028
 
12029
 
12030
 
12031
 
12032
 
12033
  # Report what library types will actually be built
12034
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12035
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12037
$as_echo "$can_build_shared" >&6; }
12038
 
12039
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12040
$as_echo_n "checking whether to build shared libraries... " >&6; }
12041
  test no = "$can_build_shared" && enable_shared=no
12042
 
12043
  # On AIX, shared libraries and static libraries use the same namespace, and
12044
  # are all built from PIC.
12045
  case $host_os in
12046
  aix3*)
12047
    test yes = "$enable_shared" && enable_static=no
12048
    if test -n "$RANLIB"; then
12049
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12050
      postinstall_cmds='$RANLIB $lib'
12051
    fi
12052
    ;;
12053
 
12054
  aix[4-9]*)
12055
    if test ia64 != "$host_cpu"; then
12056
      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12057
      yes,aix,yes) ;;			# shared object as lib.so file only
12058
      yes,svr4,*) ;;			# shared object as lib.so archive member only
12059
      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12060
      esac
12061
    fi
12062
    ;;
12063
  esac
12064
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12065
$as_echo "$enable_shared" >&6; }
12066
 
12067
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12068
$as_echo_n "checking whether to build static libraries... " >&6; }
12069
  # Make sure either enable_shared or enable_static is yes.
12070
  test yes = "$enable_shared" || enable_static=yes
12071
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12072
$as_echo "$enable_static" >&6; }
12073
 
12074
 
12075
 
12076
 
12077
fi
12078
ac_ext=c
12079
ac_cpp='$CPP $CPPFLAGS'
12080
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12081
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12082
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12083
 
12084
CC=$lt_save_CC
12085
 
12086
 
12087
 
12088
 
12089
 
12090
 
12091
 
12092
 
12093
 
12094
 
12095
 
12096
 
12097
 
12098
 
12099
 
12100
        ac_config_commands="$ac_config_commands libtool"
12101
 
12102
 
12103
 
12104
 
12105
# Only expand once:
12106
 
12107
 
12108
 
12109
 
12110
for ac_prog in flex lex
12111
do
12112
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12113
set dummy $ac_prog; ac_word=$2
12114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115
$as_echo_n "checking for $ac_word... " >&6; }
12116
if ${ac_cv_prog_LEX+:} false; then :
12117
  $as_echo_n "(cached) " >&6
12118
else
12119
  if test -n "$LEX"; then
12120
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12121
else
12122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123
for as_dir in $PATH
12124
do
12125
  IFS=$as_save_IFS
12126
  test -z "$as_dir" && as_dir=.
12127
    for ac_exec_ext in '' $ac_executable_extensions; do
12128
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129
    ac_cv_prog_LEX="$ac_prog"
12130
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131
    break 2
12132
  fi
12133
done
12134
  done
12135
IFS=$as_save_IFS
12136
 
12137
fi
12138
fi
12139
LEX=$ac_cv_prog_LEX
12140
if test -n "$LEX"; then
12141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12142
$as_echo "$LEX" >&6; }
12143
else
12144
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145
$as_echo "no" >&6; }
12146
fi
12147
 
12148
 
12149
  test -n "$LEX" && break
12150
done
12151
test -n "$LEX" || LEX=":"
12152
 
12153
if test "x$LEX" != "x:"; then
12154
  cat >conftest.l <<_ACEOF
12155
%%
12156
a { ECHO; }
12157
b { REJECT; }
12158
c { yymore (); }
12159
d { yyless (1); }
12160
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12161
    yyless ((input () != 0)); }
12162
f { unput (yytext[0]); }
12163
. { BEGIN INITIAL; }
12164
%%
12165
#ifdef YYTEXT_POINTER
12166
extern char *yytext;
12167
#endif
12168
int
12169
main (void)
12170
{
12171
  return ! yylex () + ! yywrap ();
12172
}
12173
_ACEOF
12174
{ { ac_try="$LEX conftest.l"
12175
case "(($ac_try" in
12176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177
  *) ac_try_echo=$ac_try;;
12178
esac
12179
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12180
$as_echo "$ac_try_echo"; } >&5
12181
  (eval "$LEX conftest.l") 2>&5
12182
  ac_status=$?
12183
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184
  test $ac_status = 0; }
12185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12186
$as_echo_n "checking lex output file root... " >&6; }
12187
if ${ac_cv_prog_lex_root+:} false; then :
12188
  $as_echo_n "(cached) " >&6
12189
else
12190
 
12191
if test -f lex.yy.c; then
12192
  ac_cv_prog_lex_root=lex.yy
12193
elif test -f lexyy.c; then
12194
  ac_cv_prog_lex_root=lexyy
12195
else
12196
  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12197
fi
12198
fi
12199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12200
$as_echo "$ac_cv_prog_lex_root" >&6; }
12201
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12202
 
12203
if test -z "${LEXLIB+set}"; then
12204
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12205
$as_echo_n "checking lex library... " >&6; }
12206
if ${ac_cv_lib_lex+:} false; then :
12207
  $as_echo_n "(cached) " >&6
12208
else
12209
 
12210
    ac_save_LIBS=$LIBS
12211
    ac_cv_lib_lex='none needed'
12212
    for ac_lib in '' -lfl -ll; do
12213
      LIBS="$ac_lib $ac_save_LIBS"
12214
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215
/* end confdefs.h.  */
12216
`cat $LEX_OUTPUT_ROOT.c`
12217
_ACEOF
12218
if ac_fn_c_try_link "$LINENO"; then :
12219
  ac_cv_lib_lex=$ac_lib
12220
fi
12221
rm -f core conftest.err conftest.$ac_objext \
12222
    conftest$ac_exeext conftest.$ac_ext
12223
      test "$ac_cv_lib_lex" != 'none needed' && break
12224
    done
12225
    LIBS=$ac_save_LIBS
12226
 
12227
fi
12228
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12229
$as_echo "$ac_cv_lib_lex" >&6; }
12230
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12231
fi
12232
 
12233
 
12234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12235
$as_echo_n "checking whether yytext is a pointer... " >&6; }
12236
if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12237
  $as_echo_n "(cached) " >&6
12238
else
12239
  # POSIX says lex can declare yytext either as a pointer or an array; the
12240
# default is implementation-dependent.  Figure out which it is, since
12241
# not all implementations provide the %pointer and %array declarations.
12242
ac_cv_prog_lex_yytext_pointer=no
12243
ac_save_LIBS=$LIBS
12244
LIBS="$LEXLIB $ac_save_LIBS"
12245
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246
/* end confdefs.h.  */
12247
 
12248
  #define YYTEXT_POINTER 1
12249
`cat $LEX_OUTPUT_ROOT.c`
12250
_ACEOF
12251
if ac_fn_c_try_link "$LINENO"; then :
12252
  ac_cv_prog_lex_yytext_pointer=yes
12253
fi
12254
rm -f core conftest.err conftest.$ac_objext \
12255
    conftest$ac_exeext conftest.$ac_ext
12256
LIBS=$ac_save_LIBS
12257
 
12258
fi
12259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12260
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12261
if test $ac_cv_prog_lex_yytext_pointer = yes; then
12262
 
12263
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12264
 
12265
fi
12266
rm -f conftest.l $LEX_OUTPUT_ROOT.c
12267
 
12268
fi
12269
 
12270
 
12271
for ac_prog in 'bison -y' byacc
12272
do
12273
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12274
set dummy $ac_prog; ac_word=$2
12275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276
$as_echo_n "checking for $ac_word... " >&6; }
12277
if ${ac_cv_prog_YACC+:} false; then :
12278
  $as_echo_n "(cached) " >&6
12279
else
12280
  if test -n "$YACC"; then
12281
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12282
else
12283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284
for as_dir in $PATH
12285
do
12286
  IFS=$as_save_IFS
12287
  test -z "$as_dir" && as_dir=.
12288
    for ac_exec_ext in '' $ac_executable_extensions; do
12289
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12290
    ac_cv_prog_YACC="$ac_prog"
12291
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292
    break 2
12293
  fi
12294
done
12295
  done
12296
IFS=$as_save_IFS
12297
 
12298
fi
12299
fi
12300
YACC=$ac_cv_prog_YACC
12301
if test -n "$YACC"; then
12302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12303
$as_echo "$YACC" >&6; }
12304
else
12305
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306
$as_echo "no" >&6; }
12307
fi
12308
 
12309
 
12310
  test -n "$YACC" && break
12311
done
12312
test -n "$YACC" || YACC="yacc"
12313
 
12314
AM_YFLAGS = -d
12315
 
12316
ac_config_headers="$ac_config_headers config.h:config.in"
12317
 
12318
 
12319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12320
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12321
    # Check whether --enable-maintainer-mode was given.
12322
if test "${enable_maintainer_mode+set}" = set; then :
12323
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12324
else
12325
  USE_MAINTAINER_MODE=no
12326
fi
12327
 
12328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12329
$as_echo "$USE_MAINTAINER_MODE" >&6; }
12330
   if test $USE_MAINTAINER_MODE = yes; then
12331
  MAINTAINER_MODE_TRUE=
12332
  MAINTAINER_MODE_FALSE='#'
12333
else
12334
  MAINTAINER_MODE_TRUE='#'
12335
  MAINTAINER_MODE_FALSE=
12336
fi
12337
 
12338
  MAINT=$MAINTAINER_MODE_TRUE
12339
 
12340
 
12341
 
12342
for ac_header in regexp.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h termios.h unistd.h netdb.h
12343
do :
12344
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12345
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12346
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12347
  cat >>confdefs.h <<_ACEOF
12348
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349
_ACEOF
12350
 
12351
fi
12352
 
12353
done
12354
 
12355
 
12356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regcomp" >&5
12357
$as_echo_n "checking for library containing regcomp... " >&6; }
12358
if ${ac_cv_search_regcomp+:} false; then :
12359
  $as_echo_n "(cached) " >&6
12360
else
12361
  ac_func_search_save_LIBS=$LIBS
12362
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363
/* end confdefs.h.  */
12364
 
12365
/* Override any GCC internal prototype to avoid an error.
12366
   Use char because int might match the return type of a GCC
12367
   builtin and then its argument prototype would still apply.  */
12368
#ifdef __cplusplus
12369
extern "C"
12370
#endif
12371
char regcomp ();
12372
int
12373
main ()
12374
{
12375
return regcomp ();
12376
  ;
12377
  return 0;
12378
}
12379
_ACEOF
12380
for ac_lib in '' pcre2 pcre regex ; do
12381
  if test -z "$ac_lib"; then
12382
    ac_res="none required"
12383
  else
12384
    ac_res=-l$ac_lib
12385
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12386
  fi
12387
  if ac_fn_c_try_link "$LINENO"; then :
12388
  ac_cv_search_regcomp=$ac_res
12389
fi
12390
rm -f core conftest.err conftest.$ac_objext \
12391
    conftest$ac_exeext
12392
  if ${ac_cv_search_regcomp+:} false; then :
12393
  break
12394
fi
12395
done
12396
if ${ac_cv_search_regcomp+:} false; then :
12397
 
12398
else
12399
  ac_cv_search_regcomp=no
12400
fi
12401
rm conftest.$ac_ext
12402
LIBS=$ac_func_search_save_LIBS
12403
fi
12404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regcomp" >&5
12405
$as_echo "$ac_cv_search_regcomp" >&6; }
12406
ac_res=$ac_cv_search_regcomp
12407
if test "$ac_res" != no; then :
12408
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12409
 
12410
else
12411
 
12412
  as_fn_error $? "unable to find regcomp() function" "$LINENO" 5
12413
 
12414
fi
12415
 
12416
 
12417
ac_ext=c
12418
ac_cpp='$CPP $CPPFLAGS'
12419
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12420
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12421
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12422
if test -n "$ac_tool_prefix"; then
12423
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12424
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426
$as_echo_n "checking for $ac_word... " >&6; }
12427
if ${ac_cv_prog_CC+:} false; then :
12428
  $as_echo_n "(cached) " >&6
12429
else
12430
  if test -n "$CC"; then
12431
  ac_cv_prog_CC="$CC" # Let the user override the test.
12432
else
12433
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434
for as_dir in $PATH
12435
do
12436
  IFS=$as_save_IFS
12437
  test -z "$as_dir" && as_dir=.
12438
    for ac_exec_ext in '' $ac_executable_extensions; do
12439
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12441
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442
    break 2
12443
  fi
12444
done
12445
  done
12446
IFS=$as_save_IFS
12447
 
12448
fi
12449
fi
12450
CC=$ac_cv_prog_CC
12451
if test -n "$CC"; then
12452
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12453
$as_echo "$CC" >&6; }
12454
else
12455
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456
$as_echo "no" >&6; }
12457
fi
12458
 
12459
 
12460
fi
12461
if test -z "$ac_cv_prog_CC"; then
12462
  ac_ct_CC=$CC
12463
  # Extract the first word of "gcc", so it can be a program name with args.
12464
set dummy gcc; ac_word=$2
12465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466
$as_echo_n "checking for $ac_word... " >&6; }
12467
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12468
  $as_echo_n "(cached) " >&6
12469
else
12470
  if test -n "$ac_ct_CC"; then
12471
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12472
else
12473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474
for as_dir in $PATH
12475
do
12476
  IFS=$as_save_IFS
12477
  test -z "$as_dir" && as_dir=.
12478
    for ac_exec_ext in '' $ac_executable_extensions; do
12479
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480
    ac_cv_prog_ac_ct_CC="gcc"
12481
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482
    break 2
12483
  fi
12484
done
12485
  done
12486
IFS=$as_save_IFS
12487
 
12488
fi
12489
fi
12490
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12491
if test -n "$ac_ct_CC"; then
12492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12493
$as_echo "$ac_ct_CC" >&6; }
12494
else
12495
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496
$as_echo "no" >&6; }
12497
fi
12498
 
12499
  if test "x$ac_ct_CC" = x; then
12500
    CC=""
12501
  else
12502
    case $cross_compiling:$ac_tool_warned in
12503
yes:)
12504
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12505
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12506
ac_tool_warned=yes ;;
12507
esac
12508
    CC=$ac_ct_CC
12509
  fi
12510
else
12511
  CC="$ac_cv_prog_CC"
12512
fi
12513
 
12514
if test -z "$CC"; then
12515
          if test -n "$ac_tool_prefix"; then
12516
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12517
set dummy ${ac_tool_prefix}cc; ac_word=$2
12518
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519
$as_echo_n "checking for $ac_word... " >&6; }
12520
if ${ac_cv_prog_CC+:} false; then :
12521
  $as_echo_n "(cached) " >&6
12522
else
12523
  if test -n "$CC"; then
12524
  ac_cv_prog_CC="$CC" # Let the user override the test.
12525
else
12526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527
for as_dir in $PATH
12528
do
12529
  IFS=$as_save_IFS
12530
  test -z "$as_dir" && as_dir=.
12531
    for ac_exec_ext in '' $ac_executable_extensions; do
12532
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533
    ac_cv_prog_CC="${ac_tool_prefix}cc"
12534
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12535
    break 2
12536
  fi
12537
done
12538
  done
12539
IFS=$as_save_IFS
12540
 
12541
fi
12542
fi
12543
CC=$ac_cv_prog_CC
12544
if test -n "$CC"; then
12545
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12546
$as_echo "$CC" >&6; }
12547
else
12548
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549
$as_echo "no" >&6; }
12550
fi
12551
 
12552
 
12553
  fi
12554
fi
12555
if test -z "$CC"; then
12556
  # Extract the first word of "cc", so it can be a program name with args.
12557
set dummy cc; ac_word=$2
12558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559
$as_echo_n "checking for $ac_word... " >&6; }
12560
if ${ac_cv_prog_CC+:} false; then :
12561
  $as_echo_n "(cached) " >&6
12562
else
12563
  if test -n "$CC"; then
12564
  ac_cv_prog_CC="$CC" # Let the user override the test.
12565
else
12566
  ac_prog_rejected=no
12567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568
for as_dir in $PATH
12569
do
12570
  IFS=$as_save_IFS
12571
  test -z "$as_dir" && as_dir=.
12572
    for ac_exec_ext in '' $ac_executable_extensions; do
12573
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12575
       ac_prog_rejected=yes
12576
       continue
12577
     fi
12578
    ac_cv_prog_CC="cc"
12579
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580
    break 2
12581
  fi
12582
done
12583
  done
12584
IFS=$as_save_IFS
12585
 
12586
if test $ac_prog_rejected = yes; then
12587
  # We found a bogon in the path, so make sure we never use it.
12588
  set dummy $ac_cv_prog_CC
12589
  shift
12590
  if test $# != 0; then
12591
    # We chose a different compiler from the bogus one.
12592
    # However, it has the same basename, so the bogon will be chosen
12593
    # first if we set CC to just the basename; use the full file name.
12594
    shift
12595
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12596
  fi
12597
fi
12598
fi
12599
fi
12600
CC=$ac_cv_prog_CC
12601
if test -n "$CC"; then
12602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12603
$as_echo "$CC" >&6; }
12604
else
12605
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606
$as_echo "no" >&6; }
12607
fi
12608
 
12609
 
12610
fi
12611
if test -z "$CC"; then
12612
  if test -n "$ac_tool_prefix"; then
12613
  for ac_prog in cl.exe
12614
  do
12615
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12616
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618
$as_echo_n "checking for $ac_word... " >&6; }
12619
if ${ac_cv_prog_CC+:} false; then :
12620
  $as_echo_n "(cached) " >&6
12621
else
12622
  if test -n "$CC"; then
12623
  ac_cv_prog_CC="$CC" # Let the user override the test.
12624
else
12625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626
for as_dir in $PATH
12627
do
12628
  IFS=$as_save_IFS
12629
  test -z "$as_dir" && as_dir=.
12630
    for ac_exec_ext in '' $ac_executable_extensions; do
12631
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12633
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634
    break 2
12635
  fi
12636
done
12637
  done
12638
IFS=$as_save_IFS
12639
 
12640
fi
12641
fi
12642
CC=$ac_cv_prog_CC
12643
if test -n "$CC"; then
12644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12645
$as_echo "$CC" >&6; }
12646
else
12647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648
$as_echo "no" >&6; }
12649
fi
12650
 
12651
 
12652
    test -n "$CC" && break
12653
  done
12654
fi
12655
if test -z "$CC"; then
12656
  ac_ct_CC=$CC
12657
  for ac_prog in cl.exe
12658
do
12659
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12660
set dummy $ac_prog; ac_word=$2
12661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662
$as_echo_n "checking for $ac_word... " >&6; }
12663
if ${ac_cv_prog_ac_ct_CC+:} false; then :
12664
  $as_echo_n "(cached) " >&6
12665
else
12666
  if test -n "$ac_ct_CC"; then
12667
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12668
else
12669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670
for as_dir in $PATH
12671
do
12672
  IFS=$as_save_IFS
12673
  test -z "$as_dir" && as_dir=.
12674
    for ac_exec_ext in '' $ac_executable_extensions; do
12675
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676
    ac_cv_prog_ac_ct_CC="$ac_prog"
12677
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678
    break 2
12679
  fi
12680
done
12681
  done
12682
IFS=$as_save_IFS
12683
 
12684
fi
12685
fi
12686
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12687
if test -n "$ac_ct_CC"; then
12688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12689
$as_echo "$ac_ct_CC" >&6; }
12690
else
12691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692
$as_echo "no" >&6; }
12693
fi
12694
 
12695
 
12696
  test -n "$ac_ct_CC" && break
12697
done
12698
 
12699
  if test "x$ac_ct_CC" = x; then
12700
    CC=""
12701
  else
12702
    case $cross_compiling:$ac_tool_warned in
12703
yes:)
12704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12706
ac_tool_warned=yes ;;
12707
esac
12708
    CC=$ac_ct_CC
12709
  fi
12710
fi
12711
 
12712
fi
12713
 
12714
 
12715
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12716
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12717
as_fn_error $? "no acceptable C compiler found in \$PATH
12718
See \`config.log' for more details" "$LINENO" 5; }
12719
 
12720
# Provide some information about the compiler.
12721
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12722
set X $ac_compile
12723
ac_compiler=$2
12724
for ac_option in --version -v -V -qversion; do
12725
  { { ac_try="$ac_compiler $ac_option >&5"
12726
case "(($ac_try" in
12727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728
  *) ac_try_echo=$ac_try;;
12729
esac
12730
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12731
$as_echo "$ac_try_echo"; } >&5
12732
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12733
  ac_status=$?
12734
  if test -s conftest.err; then
12735
    sed '10a\
12736
... rest of stderr output deleted ...
12737
         10q' conftest.err >conftest.er1
12738
    cat conftest.er1 >&5
12739
  fi
12740
  rm -f conftest.er1 conftest.err
12741
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742
  test $ac_status = 0; }
12743
done
12744
 
12745
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12746
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12747
if ${ac_cv_c_compiler_gnu+:} false; then :
12748
  $as_echo_n "(cached) " >&6
12749
else
12750
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751
/* end confdefs.h.  */
12752
 
12753
int
12754
main ()
12755
{
12756
#ifndef __GNUC__
12757
       choke me
12758
#endif
12759
 
12760
  ;
12761
  return 0;
12762
}
12763
_ACEOF
12764
if ac_fn_c_try_compile "$LINENO"; then :
12765
  ac_compiler_gnu=yes
12766
else
12767
  ac_compiler_gnu=no
12768
fi
12769
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770
ac_cv_c_compiler_gnu=$ac_compiler_gnu
12771
 
12772
fi
12773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12774
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12775
if test $ac_compiler_gnu = yes; then
12776
  GCC=yes
12777
else
12778
  GCC=
12779
fi
12780
ac_test_CFLAGS=${CFLAGS+set}
12781
ac_save_CFLAGS=$CFLAGS
12782
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12783
$as_echo_n "checking whether $CC accepts -g... " >&6; }
12784
if ${ac_cv_prog_cc_g+:} false; then :
12785
  $as_echo_n "(cached) " >&6
12786
else
12787
  ac_save_c_werror_flag=$ac_c_werror_flag
12788
   ac_c_werror_flag=yes
12789
   ac_cv_prog_cc_g=no
12790
   CFLAGS="-g"
12791
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792
/* end confdefs.h.  */
12793
 
12794
int
12795
main ()
12796
{
12797
 
12798
  ;
12799
  return 0;
12800
}
12801
_ACEOF
12802
if ac_fn_c_try_compile "$LINENO"; then :
12803
  ac_cv_prog_cc_g=yes
12804
else
12805
  CFLAGS=""
12806
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807
/* end confdefs.h.  */
12808
 
12809
int
12810
main ()
12811
{
12812
 
12813
  ;
12814
  return 0;
12815
}
12816
_ACEOF
12817
if ac_fn_c_try_compile "$LINENO"; then :
12818
 
12819
else
12820
  ac_c_werror_flag=$ac_save_c_werror_flag
12821
	 CFLAGS="-g"
12822
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823
/* end confdefs.h.  */
12824
 
12825
int
12826
main ()
12827
{
12828
 
12829
  ;
12830
  return 0;
12831
}
12832
_ACEOF
12833
if ac_fn_c_try_compile "$LINENO"; then :
12834
  ac_cv_prog_cc_g=yes
12835
fi
12836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12837
fi
12838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839
fi
12840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841
   ac_c_werror_flag=$ac_save_c_werror_flag
12842
fi
12843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12844
$as_echo "$ac_cv_prog_cc_g" >&6; }
12845
if test "$ac_test_CFLAGS" = set; then
12846
  CFLAGS=$ac_save_CFLAGS
12847
elif test $ac_cv_prog_cc_g = yes; then
12848
  if test "$GCC" = yes; then
12849
    CFLAGS="-g -O2"
12850
  else
12851
    CFLAGS="-g"
12852
  fi
12853
else
12854
  if test "$GCC" = yes; then
12855
    CFLAGS="-O2"
12856
  else
12857
    CFLAGS=
12858
  fi
12859
fi
12860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12861
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12862
if ${ac_cv_prog_cc_c89+:} false; then :
12863
  $as_echo_n "(cached) " >&6
12864
else
12865
  ac_cv_prog_cc_c89=no
12866
ac_save_CC=$CC
12867
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868
/* end confdefs.h.  */
12869
#include <stdarg.h>
12870
#include <stdio.h>
12871
struct stat;
12872
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12873
struct buf { int x; };
12874
FILE * (*rcsopen) (struct buf *, struct stat *, int);
12875
static char *e (p, i)
12876
     char **p;
12877
     int i;
12878
{
12879
  return p[i];
12880
}
12881
static char *f (char * (*g) (char **, int), char **p, ...)
12882
{
12883
  char *s;
12884
  va_list v;
12885
  va_start (v,p);
12886
  s = g (p, va_arg (v,int));
12887
  va_end (v);
12888
  return s;
12889
}
12890
 
12891
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12892
   function prototypes and stuff, but not '\xHH' hex character constants.
12893
   These don't provoke an error unfortunately, instead are silently treated
12894
   as 'x'.  The following induces an error, until -std is added to get
12895
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12896
   array size at least.  It's necessary to write '\x00'==0 to get something
12897
   that's true only with -std.  */
12898
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12899
 
12900
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12901
   inside strings and character constants.  */
12902
#define FOO(x) 'x'
12903
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12904
 
12905
int test (int i, double x);
12906
struct s1 {int (*f) (int a);};
12907
struct s2 {int (*f) (double a);};
12908
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12909
int argc;
12910
char **argv;
12911
int
12912
main ()
12913
{
12914
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12915
  ;
12916
  return 0;
12917
}
12918
_ACEOF
12919
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12920
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12921
do
12922
  CC="$ac_save_CC $ac_arg"
12923
  if ac_fn_c_try_compile "$LINENO"; then :
12924
  ac_cv_prog_cc_c89=$ac_arg
12925
fi
12926
rm -f core conftest.err conftest.$ac_objext
12927
  test "x$ac_cv_prog_cc_c89" != "xno" && break
12928
done
12929
rm -f conftest.$ac_ext
12930
CC=$ac_save_CC
12931
 
12932
fi
12933
# AC_CACHE_VAL
12934
case "x$ac_cv_prog_cc_c89" in
12935
  x)
12936
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12937
$as_echo "none needed" >&6; } ;;
12938
  xno)
12939
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12940
$as_echo "unsupported" >&6; } ;;
12941
  *)
12942
    CC="$CC $ac_cv_prog_cc_c89"
12943
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12944
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12945
esac
12946
if test "x$ac_cv_prog_cc_c89" != xno; then :
12947
 
12948
fi
12949
 
12950
ac_ext=c
12951
ac_cpp='$CPP $CPPFLAGS'
12952
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12953
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12954
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955
 
12956
ac_ext=c
12957
ac_cpp='$CPP $CPPFLAGS'
12958
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12962
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12963
if ${am_cv_prog_cc_c_o+:} false; then :
12964
  $as_echo_n "(cached) " >&6
12965
else
12966
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12967
/* end confdefs.h.  */
12968
 
12969
int
12970
main ()
12971
{
12972
 
12973
  ;
12974
  return 0;
12975
}
12976
_ACEOF
12977
  # Make sure it works both with $CC and with simple cc.
12978
  # Following AC_PROG_CC_C_O, we do the test twice because some
12979
  # compilers refuse to overwrite an existing .o file with -o,
12980
  # though they will create one.
12981
  am_cv_prog_cc_c_o=yes
12982
  for am_i in 1 2; do
12983
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12984
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12985
   ac_status=$?
12986
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987
   (exit $ac_status); } \
12988
         && test -f conftest2.$ac_objext; then
12989
      : OK
12990
    else
12991
      am_cv_prog_cc_c_o=no
12992
      break
12993
    fi
12994
  done
12995
  rm -f core conftest*
12996
  unset am_i
12997
fi
12998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12999
$as_echo "$am_cv_prog_cc_c_o" >&6; }
13000
if test "$am_cv_prog_cc_c_o" != yes; then
13001
   # Losing compiler, so override with the script.
13002
   # FIXME: It is wrong to rewrite CC.
13003
   # But if we don't then we get into trouble of one sort or another.
13004
   # A longer-term fix would be to have automake use am__CC in this case,
13005
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13006
   CC="$am_aux_dir/compile $CC"
13007
fi
13008
ac_ext=c
13009
ac_cpp='$CPP $CPPFLAGS'
13010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13013
 
13014
 
13015
depcc="$CC"   am_compiler_list=
13016
 
13017
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13018
$as_echo_n "checking dependency style of $depcc... " >&6; }
13019
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13020
  $as_echo_n "(cached) " >&6
13021
else
13022
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13023
  # We make a subdir and do the tests there.  Otherwise we can end up
13024
  # making bogus files that we don't know about and never remove.  For
13025
  # instance it was reported that on HP-UX the gcc test will end up
13026
  # making a dummy file named 'D' -- because '-MD' means "put the output
13027
  # in D".
13028
  rm -rf conftest.dir
13029
  mkdir conftest.dir
13030
  # Copy depcomp to subdir because otherwise we won't find it if we're
13031
  # using a relative directory.
13032
  cp "$am_depcomp" conftest.dir
13033
  cd conftest.dir
13034
  # We will build objects and dependencies in a subdirectory because
13035
  # it helps to detect inapplicable dependency modes.  For instance
13036
  # both Tru64's cc and ICC support -MD to output dependencies as a
13037
  # side effect of compilation, but ICC will put the dependencies in
13038
  # the current directory while Tru64 will put them in the object
13039
  # directory.
13040
  mkdir sub
13041
 
13042
  am_cv_CC_dependencies_compiler_type=none
13043
  if test "$am_compiler_list" = ""; then
13044
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13045
  fi
13046
  am__universal=false
13047
  case " $depcc " in #(
13048
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13049
     esac
13050
 
13051
  for depmode in $am_compiler_list; do
13052
    # Setup a source with many dependencies, because some compilers
13053
    # like to wrap large dependency lists on column 80 (with \), and
13054
    # we should not choose a depcomp mode which is confused by this.
13055
    #
13056
    # We need to recreate these files for each test, as the compiler may
13057
    # overwrite some of them when testing with obscure command lines.
13058
    # This happens at least with the AIX C compiler.
13059
    : > sub/conftest.c
13060
    for i in 1 2 3 4 5 6; do
13061
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13062
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13063
      # Solaris 10 /bin/sh.
13064
      echo '/* dummy */' > sub/conftst$i.h
13065
    done
13066
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13067
 
13068
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13069
    # mode.  It turns out that the SunPro C++ compiler does not properly
13070
    # handle '-M -o', and we need to detect this.  Also, some Intel
13071
    # versions had trouble with output in subdirs.
13072
    am__obj=sub/conftest.${OBJEXT-o}
13073
    am__minus_obj="-o $am__obj"
13074
    case $depmode in
13075
    gcc)
13076
      # This depmode causes a compiler race in universal mode.
13077
      test "$am__universal" = false || continue
13078
      ;;
13079
    nosideeffect)
13080
      # After this tag, mechanisms are not by side-effect, so they'll
13081
      # only be used when explicitly requested.
13082
      if test "x$enable_dependency_tracking" = xyes; then
13083
	continue
13084
      else
13085
	break
13086
      fi
13087
      ;;
13088
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13089
      # This compiler won't grok '-c -o', but also, the minuso test has
13090
      # not run yet.  These depmodes are late enough in the game, and
13091
      # so weak that their functioning should not be impacted.
13092
      am__obj=conftest.${OBJEXT-o}
13093
      am__minus_obj=
13094
      ;;
13095
    none) break ;;
13096
    esac
13097
    if depmode=$depmode \
13098
       source=sub/conftest.c object=$am__obj \
13099
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13100
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13101
         >/dev/null 2>conftest.err &&
13102
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13103
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13104
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13105
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13106
      # icc doesn't choke on unknown options, it will just issue warnings
13107
      # or remarks (even with -Werror).  So we grep stderr for any message
13108
      # that says an option was ignored or not supported.
13109
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13110
      #   icc: Command line warning: ignoring option '-M'; no argument required
13111
      # The diagnosis changed in icc 8.0:
13112
      #   icc: Command line remark: option '-MP' not supported
13113
      if (grep 'ignoring option' conftest.err ||
13114
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13115
        am_cv_CC_dependencies_compiler_type=$depmode
13116
        break
13117
      fi
13118
    fi
13119
  done
13120
 
13121
  cd ..
13122
  rm -rf conftest.dir
13123
else
13124
  am_cv_CC_dependencies_compiler_type=none
13125
fi
13126
 
13127
fi
13128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13129
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13130
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13131
 
13132
 if
13133
  test "x$enable_dependency_tracking" != xno \
13134
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13135
  am__fastdepCC_TRUE=
13136
  am__fastdepCC_FALSE='#'
13137
else
13138
  am__fastdepCC_TRUE='#'
13139
  am__fastdepCC_FALSE=
13140
fi
13141
 
13142
 
13143
 
13144
test ! -z "$GCC" &&  CFLAGS="$CFLAGS -Wall -W -Wundef -Wshadow -Wsequence-point"
13145
 
13146
ac_ext=cpp
13147
ac_cpp='$CXXCPP $CPPFLAGS'
13148
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13149
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13150
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13151
if test -z "$CXX"; then
13152
  if test -n "$CCC"; then
13153
    CXX=$CCC
13154
  else
13155
    if test -n "$ac_tool_prefix"; then
13156
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13157
  do
13158
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13159
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161
$as_echo_n "checking for $ac_word... " >&6; }
13162
if ${ac_cv_prog_CXX+:} false; then :
13163
  $as_echo_n "(cached) " >&6
13164
else
13165
  if test -n "$CXX"; then
13166
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
13167
else
13168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169
for as_dir in $PATH
13170
do
13171
  IFS=$as_save_IFS
13172
  test -z "$as_dir" && as_dir=.
13173
    for ac_exec_ext in '' $ac_executable_extensions; do
13174
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13175
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13176
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177
    break 2
13178
  fi
13179
done
13180
  done
13181
IFS=$as_save_IFS
13182
 
13183
fi
13184
fi
13185
CXX=$ac_cv_prog_CXX
13186
if test -n "$CXX"; then
13187
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13188
$as_echo "$CXX" >&6; }
13189
else
13190
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191
$as_echo "no" >&6; }
13192
fi
13193
 
13194
 
13195
    test -n "$CXX" && break
13196
  done
13197
fi
13198
if test -z "$CXX"; then
13199
  ac_ct_CXX=$CXX
13200
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13201
do
13202
  # Extract the first word of "$ac_prog", so it can be a program name with args.
13203
set dummy $ac_prog; ac_word=$2
13204
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205
$as_echo_n "checking for $ac_word... " >&6; }
13206
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
13207
  $as_echo_n "(cached) " >&6
13208
else
13209
  if test -n "$ac_ct_CXX"; then
13210
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13211
else
13212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213
for as_dir in $PATH
13214
do
13215
  IFS=$as_save_IFS
13216
  test -z "$as_dir" && as_dir=.
13217
    for ac_exec_ext in '' $ac_executable_extensions; do
13218
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219
    ac_cv_prog_ac_ct_CXX="$ac_prog"
13220
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13221
    break 2
13222
  fi
13223
done
13224
  done
13225
IFS=$as_save_IFS
13226
 
13227
fi
13228
fi
13229
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13230
if test -n "$ac_ct_CXX"; then
13231
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13232
$as_echo "$ac_ct_CXX" >&6; }
13233
else
13234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13235
$as_echo "no" >&6; }
13236
fi
13237
 
13238
 
13239
  test -n "$ac_ct_CXX" && break
13240
done
13241
 
13242
  if test "x$ac_ct_CXX" = x; then
13243
    CXX="g++"
13244
  else
13245
    case $cross_compiling:$ac_tool_warned in
13246
yes:)
13247
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13248
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13249
ac_tool_warned=yes ;;
13250
esac
13251
    CXX=$ac_ct_CXX
13252
  fi
13253
fi
13254
 
13255
  fi
13256
fi
13257
# Provide some information about the compiler.
13258
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13259
set X $ac_compile
13260
ac_compiler=$2
13261
for ac_option in --version -v -V -qversion; do
13262
  { { ac_try="$ac_compiler $ac_option >&5"
13263
case "(($ac_try" in
13264
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265
  *) ac_try_echo=$ac_try;;
13266
esac
13267
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13268
$as_echo "$ac_try_echo"; } >&5
13269
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13270
  ac_status=$?
13271
  if test -s conftest.err; then
13272
    sed '10a\
13273
... rest of stderr output deleted ...
13274
         10q' conftest.err >conftest.er1
13275
    cat conftest.er1 >&5
13276
  fi
13277
  rm -f conftest.er1 conftest.err
13278
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13279
  test $ac_status = 0; }
13280
done
13281
 
13282
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13283
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13284
if ${ac_cv_cxx_compiler_gnu+:} false; then :
13285
  $as_echo_n "(cached) " >&6
13286
else
13287
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288
/* end confdefs.h.  */
13289
 
13290
int
13291
main ()
13292
{
13293
#ifndef __GNUC__
13294
       choke me
13295
#endif
13296
 
13297
  ;
13298
  return 0;
13299
}
13300
_ACEOF
13301
if ac_fn_cxx_try_compile "$LINENO"; then :
13302
  ac_compiler_gnu=yes
13303
else
13304
  ac_compiler_gnu=no
13305
fi
13306
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13307
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13308
 
13309
fi
13310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13311
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13312
if test $ac_compiler_gnu = yes; then
13313
  GXX=yes
13314
else
13315
  GXX=
13316
fi
13317
ac_test_CXXFLAGS=${CXXFLAGS+set}
13318
ac_save_CXXFLAGS=$CXXFLAGS
13319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13320
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13321
if ${ac_cv_prog_cxx_g+:} false; then :
13322
  $as_echo_n "(cached) " >&6
13323
else
13324
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13325
   ac_cxx_werror_flag=yes
13326
   ac_cv_prog_cxx_g=no
13327
   CXXFLAGS="-g"
13328
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329
/* end confdefs.h.  */
13330
 
13331
int
13332
main ()
13333
{
13334
 
13335
  ;
13336
  return 0;
13337
}
13338
_ACEOF
13339
if ac_fn_cxx_try_compile "$LINENO"; then :
13340
  ac_cv_prog_cxx_g=yes
13341
else
13342
  CXXFLAGS=""
13343
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344
/* end confdefs.h.  */
13345
 
13346
int
13347
main ()
13348
{
13349
 
13350
  ;
13351
  return 0;
13352
}
13353
_ACEOF
13354
if ac_fn_cxx_try_compile "$LINENO"; then :
13355
 
13356
else
13357
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13358
	 CXXFLAGS="-g"
13359
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360
/* end confdefs.h.  */
13361
 
13362
int
13363
main ()
13364
{
13365
 
13366
  ;
13367
  return 0;
13368
}
13369
_ACEOF
13370
if ac_fn_cxx_try_compile "$LINENO"; then :
13371
  ac_cv_prog_cxx_g=yes
13372
fi
13373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374
fi
13375
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376
fi
13377
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13379
fi
13380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13381
$as_echo "$ac_cv_prog_cxx_g" >&6; }
13382
if test "$ac_test_CXXFLAGS" = set; then
13383
  CXXFLAGS=$ac_save_CXXFLAGS
13384
elif test $ac_cv_prog_cxx_g = yes; then
13385
  if test "$GXX" = yes; then
13386
    CXXFLAGS="-g -O2"
13387
  else
13388
    CXXFLAGS="-g"
13389
  fi
13390
else
13391
  if test "$GXX" = yes; then
13392
    CXXFLAGS="-O2"
13393
  else
13394
    CXXFLAGS=
13395
  fi
13396
fi
13397
ac_ext=c
13398
ac_cpp='$CPP $CPPFLAGS'
13399
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402
 
13403
depcc="$CXX"  am_compiler_list=
13404
 
13405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13406
$as_echo_n "checking dependency style of $depcc... " >&6; }
13407
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
13408
  $as_echo_n "(cached) " >&6
13409
else
13410
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13411
  # We make a subdir and do the tests there.  Otherwise we can end up
13412
  # making bogus files that we don't know about and never remove.  For
13413
  # instance it was reported that on HP-UX the gcc test will end up
13414
  # making a dummy file named 'D' -- because '-MD' means "put the output
13415
  # in D".
13416
  rm -rf conftest.dir
13417
  mkdir conftest.dir
13418
  # Copy depcomp to subdir because otherwise we won't find it if we're
13419
  # using a relative directory.
13420
  cp "$am_depcomp" conftest.dir
13421
  cd conftest.dir
13422
  # We will build objects and dependencies in a subdirectory because
13423
  # it helps to detect inapplicable dependency modes.  For instance
13424
  # both Tru64's cc and ICC support -MD to output dependencies as a
13425
  # side effect of compilation, but ICC will put the dependencies in
13426
  # the current directory while Tru64 will put them in the object
13427
  # directory.
13428
  mkdir sub
13429
 
13430
  am_cv_CXX_dependencies_compiler_type=none
13431
  if test "$am_compiler_list" = ""; then
13432
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13433
  fi
13434
  am__universal=false
13435
  case " $depcc " in #(
13436
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13437
     esac
13438
 
13439
  for depmode in $am_compiler_list; do
13440
    # Setup a source with many dependencies, because some compilers
13441
    # like to wrap large dependency lists on column 80 (with \), and
13442
    # we should not choose a depcomp mode which is confused by this.
13443
    #
13444
    # We need to recreate these files for each test, as the compiler may
13445
    # overwrite some of them when testing with obscure command lines.
13446
    # This happens at least with the AIX C compiler.
13447
    : > sub/conftest.c
13448
    for i in 1 2 3 4 5 6; do
13449
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13450
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13451
      # Solaris 10 /bin/sh.
13452
      echo '/* dummy */' > sub/conftst$i.h
13453
    done
13454
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13455
 
13456
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13457
    # mode.  It turns out that the SunPro C++ compiler does not properly
13458
    # handle '-M -o', and we need to detect this.  Also, some Intel
13459
    # versions had trouble with output in subdirs.
13460
    am__obj=sub/conftest.${OBJEXT-o}
13461
    am__minus_obj="-o $am__obj"
13462
    case $depmode in
13463
    gcc)
13464
      # This depmode causes a compiler race in universal mode.
13465
      test "$am__universal" = false || continue
13466
      ;;
13467
    nosideeffect)
13468
      # After this tag, mechanisms are not by side-effect, so they'll
13469
      # only be used when explicitly requested.
13470
      if test "x$enable_dependency_tracking" = xyes; then
13471
	continue
13472
      else
13473
	break
13474
      fi
13475
      ;;
13476
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13477
      # This compiler won't grok '-c -o', but also, the minuso test has
13478
      # not run yet.  These depmodes are late enough in the game, and
13479
      # so weak that their functioning should not be impacted.
13480
      am__obj=conftest.${OBJEXT-o}
13481
      am__minus_obj=
13482
      ;;
13483
    none) break ;;
13484
    esac
13485
    if depmode=$depmode \
13486
       source=sub/conftest.c object=$am__obj \
13487
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13488
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13489
         >/dev/null 2>conftest.err &&
13490
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13491
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13492
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13493
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13494
      # icc doesn't choke on unknown options, it will just issue warnings
13495
      # or remarks (even with -Werror).  So we grep stderr for any message
13496
      # that says an option was ignored or not supported.
13497
      # When given -MP, icc 7.0 and 7.1 complain thusly:
13498
      #   icc: Command line warning: ignoring option '-M'; no argument required
13499
      # The diagnosis changed in icc 8.0:
13500
      #   icc: Command line remark: option '-MP' not supported
13501
      if (grep 'ignoring option' conftest.err ||
13502
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13503
        am_cv_CXX_dependencies_compiler_type=$depmode
13504
        break
13505
      fi
13506
    fi
13507
  done
13508
 
13509
  cd ..
13510
  rm -rf conftest.dir
13511
else
13512
  am_cv_CXX_dependencies_compiler_type=none
13513
fi
13514
 
13515
fi
13516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13517
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13518
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13519
 
13520
 if
13521
  test "x$enable_dependency_tracking" != xno \
13522
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13523
  am__fastdepCXX_TRUE=
13524
  am__fastdepCXX_FALSE='#'
13525
else
13526
  am__fastdepCXX_TRUE='#'
13527
  am__fastdepCXX_FALSE=
13528
fi
13529
 
13530
 
13531
 
13532
 
13533
func_stripname_cnf ()
13534
{
13535
  case $2 in
13536
  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13537
  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13538
  esac
13539
} # func_stripname_cnf
13540
 
13541
      if test -n "$CXX" && ( test no != "$CXX" &&
13542
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13543
    (test g++ != "$CXX"))); then
13544
  ac_ext=cpp
13545
ac_cpp='$CXXCPP $CPPFLAGS'
13546
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13547
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13548
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13550
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13551
if test -z "$CXXCPP"; then
13552
  if ${ac_cv_prog_CXXCPP+:} false; then :
13553
  $as_echo_n "(cached) " >&6
13554
else
13555
      # Double quotes because CXXCPP needs to be expanded
13556
    for CXXCPP in "$CXX -E" "/lib/cpp"
13557
    do
13558
      ac_preproc_ok=false
13559
for ac_cxx_preproc_warn_flag in '' yes
13560
do
13561
  # Use a header file that comes with gcc, so configuring glibc
13562
  # with a fresh cross-compiler works.
13563
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13564
  # <limits.h> exists even on freestanding compilers.
13565
  # On the NeXT, cc -E runs the code through the compiler's parser,
13566
  # not just through cpp. "Syntax error" is here to catch this case.
13567
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568
/* end confdefs.h.  */
13569
#ifdef __STDC__
13570
# include <limits.h>
13571
#else
13572
# include <assert.h>
13573
#endif
13574
		     Syntax error
13575
_ACEOF
13576
if ac_fn_cxx_try_cpp "$LINENO"; then :
13577
 
13578
else
13579
  # Broken: fails on valid input.
13580
continue
13581
fi
13582
rm -f conftest.err conftest.i conftest.$ac_ext
13583
 
13584
  # OK, works on sane cases.  Now check whether nonexistent headers
13585
  # can be detected and how.
13586
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587
/* end confdefs.h.  */
13588
#include <ac_nonexistent.h>
13589
_ACEOF
13590
if ac_fn_cxx_try_cpp "$LINENO"; then :
13591
  # Broken: success on invalid input.
13592
continue
13593
else
13594
  # Passes both tests.
13595
ac_preproc_ok=:
13596
break
13597
fi
13598
rm -f conftest.err conftest.i conftest.$ac_ext
13599
 
13600
done
13601
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13602
rm -f conftest.i conftest.err conftest.$ac_ext
13603
if $ac_preproc_ok; then :
13604
  break
13605
fi
13606
 
13607
    done
13608
    ac_cv_prog_CXXCPP=$CXXCPP
13609
 
13610
fi
13611
  CXXCPP=$ac_cv_prog_CXXCPP
13612
else
13613
  ac_cv_prog_CXXCPP=$CXXCPP
13614
fi
13615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13616
$as_echo "$CXXCPP" >&6; }
13617
ac_preproc_ok=false
13618
for ac_cxx_preproc_warn_flag in '' yes
13619
do
13620
  # Use a header file that comes with gcc, so configuring glibc
13621
  # with a fresh cross-compiler works.
13622
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13623
  # <limits.h> exists even on freestanding compilers.
13624
  # On the NeXT, cc -E runs the code through the compiler's parser,
13625
  # not just through cpp. "Syntax error" is here to catch this case.
13626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627
/* end confdefs.h.  */
13628
#ifdef __STDC__
13629
# include <limits.h>
13630
#else
13631
# include <assert.h>
13632
#endif
13633
		     Syntax error
13634
_ACEOF
13635
if ac_fn_cxx_try_cpp "$LINENO"; then :
13636
 
13637
else
13638
  # Broken: fails on valid input.
13639
continue
13640
fi
13641
rm -f conftest.err conftest.i conftest.$ac_ext
13642
 
13643
  # OK, works on sane cases.  Now check whether nonexistent headers
13644
  # can be detected and how.
13645
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646
/* end confdefs.h.  */
13647
#include <ac_nonexistent.h>
13648
_ACEOF
13649
if ac_fn_cxx_try_cpp "$LINENO"; then :
13650
  # Broken: success on invalid input.
13651
continue
13652
else
13653
  # Passes both tests.
13654
ac_preproc_ok=:
13655
break
13656
fi
13657
rm -f conftest.err conftest.i conftest.$ac_ext
13658
 
13659
done
13660
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13661
rm -f conftest.i conftest.err conftest.$ac_ext
13662
if $ac_preproc_ok; then :
13663
 
13664
else
13665
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13666
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13667
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13668
See \`config.log' for more details" "$LINENO" 5; }
13669
fi
13670
 
13671
ac_ext=c
13672
ac_cpp='$CPP $CPPFLAGS'
13673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13676
 
13677
else
13678
  _lt_caught_CXX_error=yes
13679
fi
13680
 
13681
ac_ext=cpp
13682
ac_cpp='$CXXCPP $CPPFLAGS'
13683
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13684
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13685
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13686
 
13687
archive_cmds_need_lc_CXX=no
13688
allow_undefined_flag_CXX=
13689
always_export_symbols_CXX=no
13690
archive_expsym_cmds_CXX=
13691
compiler_needs_object_CXX=no
13692
export_dynamic_flag_spec_CXX=
13693
hardcode_direct_CXX=no
13694
hardcode_direct_absolute_CXX=no
13695
hardcode_libdir_flag_spec_CXX=
13696
hardcode_libdir_separator_CXX=
13697
hardcode_minus_L_CXX=no
13698
hardcode_shlibpath_var_CXX=unsupported
13699
hardcode_automatic_CXX=no
13700
inherit_rpath_CXX=no
13701
module_cmds_CXX=
13702
module_expsym_cmds_CXX=
13703
link_all_deplibs_CXX=unknown
13704
old_archive_cmds_CXX=$old_archive_cmds
13705
reload_flag_CXX=$reload_flag
13706
reload_cmds_CXX=$reload_cmds
13707
no_undefined_flag_CXX=
13708
whole_archive_flag_spec_CXX=
13709
enable_shared_with_static_runtimes_CXX=no
13710
 
13711
# Source file extension for C++ test sources.
13712
ac_ext=cpp
13713
 
13714
# Object file extension for compiled C++ test sources.
13715
objext=o
13716
objext_CXX=$objext
13717
 
13718
# No sense in running all these tests if we already determined that
13719
# the CXX compiler isn't working.  Some variables (like enable_shared)
13720
# are currently assumed to apply to all compilers on this platform,
13721
# and will be corrupted by setting them based on a non-working compiler.
13722
if test yes != "$_lt_caught_CXX_error"; then
13723
  # Code to be used in simple compile tests
13724
  lt_simple_compile_test_code="int some_variable = 0;"
13725
 
13726
  # Code to be used in simple link tests
13727
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13728
 
13729
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13730
 
13731
 
13732
 
13733
 
13734
 
13735
 
13736
# If no C compiler was specified, use CC.
13737
LTCC=${LTCC-"$CC"}
13738
 
13739
# If no C compiler flags were specified, use CFLAGS.
13740
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13741
 
13742
# Allow CC to be a program name with arguments.
13743
compiler=$CC
13744
 
13745
 
13746
  # save warnings/boilerplate of simple test code
13747
  ac_outfile=conftest.$ac_objext
13748
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13749
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13750
_lt_compiler_boilerplate=`cat conftest.err`
13751
$RM conftest*
13752
 
13753
  ac_outfile=conftest.$ac_objext
13754
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13755
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13756
_lt_linker_boilerplate=`cat conftest.err`
13757
$RM -r conftest*
13758
 
13759
 
13760
  # Allow CC to be a program name with arguments.
13761
  lt_save_CC=$CC
13762
  lt_save_CFLAGS=$CFLAGS
13763
  lt_save_LD=$LD
13764
  lt_save_GCC=$GCC
13765
  GCC=$GXX
13766
  lt_save_with_gnu_ld=$with_gnu_ld
13767
  lt_save_path_LD=$lt_cv_path_LD
13768
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13769
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13770
  else
13771
    $as_unset lt_cv_prog_gnu_ld
13772
  fi
13773
  if test -n "${lt_cv_path_LDCXX+set}"; then
13774
    lt_cv_path_LD=$lt_cv_path_LDCXX
13775
  else
13776
    $as_unset lt_cv_path_LD
13777
  fi
13778
  test -z "${LDCXX+set}" || LD=$LDCXX
13779
  CC=${CXX-"c++"}
13780
  CFLAGS=$CXXFLAGS
13781
  compiler=$CC
13782
  compiler_CXX=$CC
13783
  func_cc_basename $compiler
13784
cc_basename=$func_cc_basename_result
13785
 
13786
 
13787
  if test -n "$compiler"; then
13788
    # We don't want -fno-exception when compiling C++ code, so set the
13789
    # no_builtin_flag separately
13790
    if test yes = "$GXX"; then
13791
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13792
    else
13793
      lt_prog_compiler_no_builtin_flag_CXX=
13794
    fi
13795
 
13796
    if test yes = "$GXX"; then
13797
      # Set up default GNU C++ configuration
13798
 
13799
 
13800
 
13801
# Check whether --with-gnu-ld was given.
13802
if test "${with_gnu_ld+set}" = set; then :
13803
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13804
else
13805
  with_gnu_ld=no
13806
fi
13807
 
13808
ac_prog=ld
13809
if test yes = "$GCC"; then
13810
  # Check if gcc -print-prog-name=ld gives a path.
13811
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13812
$as_echo_n "checking for ld used by $CC... " >&6; }
13813
  case $host in
13814
  *-*-mingw*)
13815
    # gcc leaves a trailing carriage return, which upsets mingw
13816
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13817
  *)
13818
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13819
  esac
13820
  case $ac_prog in
13821
    # Accept absolute paths.
13822
    [\\/]* | ?:[\\/]*)
13823
      re_direlt='/[^/][^/]*/\.\./'
13824
      # Canonicalize the pathname of ld
13825
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13826
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13827
	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13828
      done
13829
      test -z "$LD" && LD=$ac_prog
13830
      ;;
13831
  "")
13832
    # If it fails, then pretend we aren't using GCC.
13833
    ac_prog=ld
13834
    ;;
13835
  *)
13836
    # If it is relative, then search for the first ld in PATH.
13837
    with_gnu_ld=unknown
13838
    ;;
13839
  esac
13840
elif test yes = "$with_gnu_ld"; then
13841
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13842
$as_echo_n "checking for GNU ld... " >&6; }
13843
else
13844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13845
$as_echo_n "checking for non-GNU ld... " >&6; }
13846
fi
13847
if ${lt_cv_path_LD+:} false; then :
13848
  $as_echo_n "(cached) " >&6
13849
else
13850
  if test -z "$LD"; then
13851
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13852
  for ac_dir in $PATH; do
13853
    IFS=$lt_save_ifs
13854
    test -z "$ac_dir" && ac_dir=.
13855
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13856
      lt_cv_path_LD=$ac_dir/$ac_prog
13857
      # Check to see if the program is GNU ld.  I'd rather use --version,
13858
      # but apparently some variants of GNU ld only accept -v.
13859
      # Break only if it was the GNU/non-GNU ld that we prefer.
13860
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13861
      *GNU* | *'with BFD'*)
13862
	test no != "$with_gnu_ld" && break
13863
	;;
13864
      *)
13865
	test yes != "$with_gnu_ld" && break
13866
	;;
13867
      esac
13868
    fi
13869
  done
13870
  IFS=$lt_save_ifs
13871
else
13872
  lt_cv_path_LD=$LD # Let the user override the test with a path.
13873
fi
13874
fi
13875
 
13876
LD=$lt_cv_path_LD
13877
if test -n "$LD"; then
13878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13879
$as_echo "$LD" >&6; }
13880
else
13881
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882
$as_echo "no" >&6; }
13883
fi
13884
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13886
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13887
if ${lt_cv_prog_gnu_ld+:} false; then :
13888
  $as_echo_n "(cached) " >&6
13889
else
13890
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13891
case `$LD -v 2>&1 </dev/null` in
13892
*GNU* | *'with BFD'*)
13893
  lt_cv_prog_gnu_ld=yes
13894
  ;;
13895
*)
13896
  lt_cv_prog_gnu_ld=no
13897
  ;;
13898
esac
13899
fi
13900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13901
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13902
with_gnu_ld=$lt_cv_prog_gnu_ld
13903
 
13904
 
13905
 
13906
 
13907
 
13908
 
13909
 
13910
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13911
      # archiving commands below assume that GNU ld is being used.
13912
      if test yes = "$with_gnu_ld"; then
13913
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13914
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13915
 
13916
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13917
        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13918
 
13919
        # If archive_cmds runs LD, not CC, wlarc should be empty
13920
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13921
        #     investigate it a little bit more. (MM)
13922
        wlarc='$wl'
13923
 
13924
        # ancient GNU ld didn't support --whole-archive et. al.
13925
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13926
	  $GREP 'no-whole-archive' > /dev/null; then
13927
          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13928
        else
13929
          whole_archive_flag_spec_CXX=
13930
        fi
13931
      else
13932
        with_gnu_ld=no
13933
        wlarc=
13934
 
13935
        # A generic and very simple default shared library creation
13936
        # command for GNU C++ for the case where it uses the native
13937
        # linker, instead of GNU ld.  If possible, this setting should
13938
        # overridden to take advantage of the native linker features on
13939
        # the platform it is being used on.
13940
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13941
      fi
13942
 
13943
      # Commands to make compiler produce verbose output that lists
13944
      # what "hidden" libraries, object files and flags are used when
13945
      # linking a shared library.
13946
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13947
 
13948
    else
13949
      GXX=no
13950
      with_gnu_ld=no
13951
      wlarc=
13952
    fi
13953
 
13954
    # PORTME: fill in a description of your system's C++ link characteristics
13955
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13956
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13957
    ld_shlibs_CXX=yes
13958
    case $host_os in
13959
      aix3*)
13960
        # FIXME: insert proper C++ library support
13961
        ld_shlibs_CXX=no
13962
        ;;
13963
      aix[4-9]*)
13964
        if test ia64 = "$host_cpu"; then
13965
          # On IA64, the linker does run time linking by default, so we don't
13966
          # have to do anything special.
13967
          aix_use_runtimelinking=no
13968
          exp_sym_flag='-Bexport'
13969
          no_entry_flag=
13970
        else
13971
          aix_use_runtimelinking=no
13972
 
13973
          # Test if we are trying to use run time linking or normal
13974
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13975
          # have runtime linking enabled, and use it for executables.
13976
          # For shared libraries, we enable/disable runtime linking
13977
          # depending on the kind of the shared library created -
13978
          # when "with_aix_soname,aix_use_runtimelinking" is:
13979
          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13980
          # "aix,yes"  lib.so          shared, rtl:yes, for executables
13981
          #            lib.a           static archive
13982
          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13983
          #            lib.a(lib.so.V) shared, rtl:no,  for executables
13984
          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13985
          #            lib.a(lib.so.V) shared, rtl:no
13986
          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13987
          #            lib.a           static archive
13988
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13989
	    for ld_flag in $LDFLAGS; do
13990
	      case $ld_flag in
13991
	      *-brtl*)
13992
	        aix_use_runtimelinking=yes
13993
	        break
13994
	        ;;
13995
	      esac
13996
	    done
13997
	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13998
	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
13999
	      # so we don't have lib.a shared libs to link our executables.
14000
	      # We have to force runtime linking in this case.
14001
	      aix_use_runtimelinking=yes
14002
	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14003
	    fi
14004
	    ;;
14005
          esac
14006
 
14007
          exp_sym_flag='-bexport'
14008
          no_entry_flag='-bnoentry'
14009
        fi
14010
 
14011
        # When large executables or shared objects are built, AIX ld can
14012
        # have problems creating the table of contents.  If linking a library
14013
        # or program results in "error TOC overflow" add -mminimal-toc to
14014
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14015
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14016
 
14017
        archive_cmds_CXX=''
14018
        hardcode_direct_CXX=yes
14019
        hardcode_direct_absolute_CXX=yes
14020
        hardcode_libdir_separator_CXX=':'
14021
        link_all_deplibs_CXX=yes
14022
        file_list_spec_CXX='$wl-f,'
14023
        case $with_aix_soname,$aix_use_runtimelinking in
14024
        aix,*) ;;	# no import file
14025
        svr4,* | *,yes) # use import file
14026
          # The Import File defines what to hardcode.
14027
          hardcode_direct_CXX=no
14028
          hardcode_direct_absolute_CXX=no
14029
          ;;
14030
        esac
14031
 
14032
        if test yes = "$GXX"; then
14033
          case $host_os in aix4.[012]|aix4.[012].*)
14034
          # We only want to do this on AIX 4.2 and lower, the check
14035
          # below for broken collect2 doesn't work under 4.3+
14036
	  collect2name=`$CC -print-prog-name=collect2`
14037
	  if test -f "$collect2name" &&
14038
	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14039
	  then
14040
	    # We have reworked collect2
14041
	    :
14042
	  else
14043
	    # We have old collect2
14044
	    hardcode_direct_CXX=unsupported
14045
	    # It fails to find uninstalled libraries when the uninstalled
14046
	    # path is not listed in the libpath.  Setting hardcode_minus_L
14047
	    # to unsupported forces relinking
14048
	    hardcode_minus_L_CXX=yes
14049
	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14050
	    hardcode_libdir_separator_CXX=
14051
	  fi
14052
          esac
14053
          shared_flag='-shared'
14054
	  if test yes = "$aix_use_runtimelinking"; then
14055
	    shared_flag=$shared_flag' $wl-G'
14056
	  fi
14057
	  # Need to ensure runtime linking is disabled for the traditional
14058
	  # shared library, or the linker may eventually find shared libraries
14059
	  # /with/ Import File - we do not want to mix them.
14060
	  shared_flag_aix='-shared'
14061
	  shared_flag_svr4='-shared $wl-G'
14062
        else
14063
          # not using gcc
14064
          if test ia64 = "$host_cpu"; then
14065
	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14066
	  # chokes on -Wl,-G. The following line is correct:
14067
	  shared_flag='-G'
14068
          else
14069
	    if test yes = "$aix_use_runtimelinking"; then
14070
	      shared_flag='$wl-G'
14071
	    else
14072
	      shared_flag='$wl-bM:SRE'
14073
	    fi
14074
	    shared_flag_aix='$wl-bM:SRE'
14075
	    shared_flag_svr4='$wl-G'
14076
          fi
14077
        fi
14078
 
14079
        export_dynamic_flag_spec_CXX='$wl-bexpall'
14080
        # It seems that -bexpall does not export symbols beginning with
14081
        # underscore (_), so it is better to generate a list of symbols to
14082
	# export.
14083
        always_export_symbols_CXX=yes
14084
	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14085
          # Warning - without using the other runtime loading flags (-brtl),
14086
          # -berok will link without error, but may produce a broken library.
14087
          # The "-G" linker flag allows undefined symbols.
14088
          no_undefined_flag_CXX='-bernotok'
14089
          # Determine the default libpath from the value encoded in an empty
14090
          # executable.
14091
          if test set = "${lt_cv_aix_libpath+set}"; then
14092
  aix_libpath=$lt_cv_aix_libpath
14093
else
14094
  if ${lt_cv_aix_libpath__CXX+:} false; then :
14095
  $as_echo_n "(cached) " >&6
14096
else
14097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098
/* end confdefs.h.  */
14099
 
14100
int
14101
main ()
14102
{
14103
 
14104
  ;
14105
  return 0;
14106
}
14107
_ACEOF
14108
if ac_fn_cxx_try_link "$LINENO"; then :
14109
 
14110
  lt_aix_libpath_sed='
14111
      /Import File Strings/,/^$/ {
14112
	  /^0/ {
14113
	      s/^0  *\([^ ]*\) *$/\1/
14114
	      p
14115
	  }
14116
      }'
14117
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14118
  # Check for a 64-bit object if we didn't find anything.
14119
  if test -z "$lt_cv_aix_libpath__CXX"; then
14120
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14121
  fi
14122
fi
14123
rm -f core conftest.err conftest.$ac_objext \
14124
    conftest$ac_exeext conftest.$ac_ext
14125
  if test -z "$lt_cv_aix_libpath__CXX"; then
14126
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14127
  fi
14128
 
14129
fi
14130
 
14131
  aix_libpath=$lt_cv_aix_libpath__CXX
14132
fi
14133
 
14134
          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14135
 
14136
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14137
        else
14138
          if test ia64 = "$host_cpu"; then
14139
	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14140
	    allow_undefined_flag_CXX="-z nodefs"
14141
	    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"
14142
          else
14143
	    # Determine the default libpath from the value encoded in an
14144
	    # empty executable.
14145
	    if test set = "${lt_cv_aix_libpath+set}"; then
14146
  aix_libpath=$lt_cv_aix_libpath
14147
else
14148
  if ${lt_cv_aix_libpath__CXX+:} false; then :
14149
  $as_echo_n "(cached) " >&6
14150
else
14151
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152
/* end confdefs.h.  */
14153
 
14154
int
14155
main ()
14156
{
14157
 
14158
  ;
14159
  return 0;
14160
}
14161
_ACEOF
14162
if ac_fn_cxx_try_link "$LINENO"; then :
14163
 
14164
  lt_aix_libpath_sed='
14165
      /Import File Strings/,/^$/ {
14166
	  /^0/ {
14167
	      s/^0  *\([^ ]*\) *$/\1/
14168
	      p
14169
	  }
14170
      }'
14171
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14172
  # Check for a 64-bit object if we didn't find anything.
14173
  if test -z "$lt_cv_aix_libpath__CXX"; then
14174
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14175
  fi
14176
fi
14177
rm -f core conftest.err conftest.$ac_objext \
14178
    conftest$ac_exeext conftest.$ac_ext
14179
  if test -z "$lt_cv_aix_libpath__CXX"; then
14180
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14181
  fi
14182
 
14183
fi
14184
 
14185
  aix_libpath=$lt_cv_aix_libpath__CXX
14186
fi
14187
 
14188
	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14189
	    # Warning - without using the other run time loading flags,
14190
	    # -berok will link without error, but may produce a broken library.
14191
	    no_undefined_flag_CXX=' $wl-bernotok'
14192
	    allow_undefined_flag_CXX=' $wl-berok'
14193
	    if test yes = "$with_gnu_ld"; then
14194
	      # We only use this code for GNU lds that support --whole-archive.
14195
	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14196
	    else
14197
	      # Exported symbols can be pulled into shared objects from archives
14198
	      whole_archive_flag_spec_CXX='$convenience'
14199
	    fi
14200
	    archive_cmds_need_lc_CXX=yes
14201
	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14202
	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14203
	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14204
	    if test svr4 != "$with_aix_soname"; then
14205
	      # This is similar to how AIX traditionally builds its shared
14206
	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14207
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14208
	    fi
14209
	    if test aix != "$with_aix_soname"; then
14210
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14211
	    else
14212
	      # used by -dlpreopen to get the symbols
14213
	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14214
	    fi
14215
	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14216
          fi
14217
        fi
14218
        ;;
14219
 
14220
      beos*)
14221
	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14222
	  allow_undefined_flag_CXX=unsupported
14223
	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14224
	  # support --undefined.  This deserves some investigation.  FIXME
14225
	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14226
	else
14227
	  ld_shlibs_CXX=no
14228
	fi
14229
	;;
14230
 
14231
      chorus*)
14232
        case $cc_basename in
14233
          *)
14234
	  # FIXME: insert proper C++ library support
14235
	  ld_shlibs_CXX=no
14236
	  ;;
14237
        esac
14238
        ;;
14239
 
14240
      cygwin* | msys* | mingw* | pw32* | cegcc*)
14241
	case $GXX,$cc_basename in
14242
	,cl* | no,cl*)
14243
	  # Native MSVC
14244
	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14245
	  # no search path for DLLs.
14246
	  hardcode_libdir_flag_spec_CXX=' '
14247
	  allow_undefined_flag_CXX=unsupported
14248
	  always_export_symbols_CXX=yes
14249
	  file_list_spec_CXX='@'
14250
	  # Tell ltmain to make .lib files, not .a files.
14251
	  libext=lib
14252
	  # Tell ltmain to make .dll files, not .so files.
14253
	  shrext_cmds=.dll
14254
	  # FIXME: Setting linknames here is a bad hack.
14255
	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14256
	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14257
              cp "$export_symbols" "$output_objdir/$soname.def";
14258
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14259
            else
14260
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14261
            fi~
14262
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14263
            linknames='
14264
	  # The linker will not automatically build a static lib if we build a DLL.
14265
	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14266
	  enable_shared_with_static_runtimes_CXX=yes
14267
	  # Don't use ranlib
14268
	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14269
	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14270
            lt_tool_outputfile="@TOOL_OUTPUT@"~
14271
            case $lt_outputfile in
14272
              *.exe|*.EXE) ;;
14273
              *)
14274
                lt_outputfile=$lt_outputfile.exe
14275
                lt_tool_outputfile=$lt_tool_outputfile.exe
14276
                ;;
14277
            esac~
14278
            func_to_tool_file "$lt_outputfile"~
14279
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14280
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14281
              $RM "$lt_outputfile.manifest";
14282
            fi'
14283
	  ;;
14284
	*)
14285
	  # g++
14286
	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14287
	  # as there is no search path for DLLs.
14288
	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14289
	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14290
	  allow_undefined_flag_CXX=unsupported
14291
	  always_export_symbols_CXX=no
14292
	  enable_shared_with_static_runtimes_CXX=yes
14293
	  file_list_spec_CXX='@'
14294
 
14295
	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14296
	    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'
14297
	    # If the export-symbols file already is a .def file, use it as
14298
	    # is; otherwise, prepend EXPORTS...
14299
	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14300
              cp $export_symbols $output_objdir/$soname.def;
14301
            else
14302
              echo EXPORTS > $output_objdir/$soname.def;
14303
              cat $export_symbols >> $output_objdir/$soname.def;
14304
            fi~
14305
            $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'
14306
	  else
14307
	    ld_shlibs_CXX=no
14308
	  fi
14309
	  ;;
14310
	esac
14311
	;;
14312
      darwin* | rhapsody*)
14313
 
14314
 
14315
  archive_cmds_need_lc_CXX=no
14316
  hardcode_direct_CXX=no
14317
  hardcode_automatic_CXX=yes
14318
  hardcode_shlibpath_var_CXX=unsupported
14319
  if test yes = "$lt_cv_ld_force_load"; then
14320
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14321
 
14322
  else
14323
    whole_archive_flag_spec_CXX=''
14324
  fi
14325
  link_all_deplibs_CXX=yes
14326
  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14327
  case $cc_basename in
14328
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14329
     *) _lt_dar_can_shared=$GCC ;;
14330
  esac
14331
  if test yes = "$_lt_dar_can_shared"; then
14332
    output_verbose_link_cmd=func_echo_all
14333
    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"
14334
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14335
    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"
14336
    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"
14337
       if test yes != "$lt_cv_apple_cc_single_mod"; then
14338
      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"
14339
      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"
14340
    fi
14341
 
14342
  else
14343
  ld_shlibs_CXX=no
14344
  fi
14345
 
14346
	;;
14347
 
14348
      os2*)
14349
	hardcode_libdir_flag_spec_CXX='-L$libdir'
14350
	hardcode_minus_L_CXX=yes
14351
	allow_undefined_flag_CXX=unsupported
14352
	shrext_cmds=.dll
14353
	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14354
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14355
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14356
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14357
	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14358
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14359
	  emximp -o $lib $output_objdir/$libname.def'
14360
	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14361
	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14362
	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14363
	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14364
	  prefix_cmds="$SED"~
14365
	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14366
	    prefix_cmds="$prefix_cmds -e 1d";
14367
	  fi~
14368
	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14369
	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14370
	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14371
	  emximp -o $lib $output_objdir/$libname.def'
14372
	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14373
	enable_shared_with_static_runtimes_CXX=yes
14374
	;;
14375
 
14376
      dgux*)
14377
        case $cc_basename in
14378
          ec++*)
14379
	    # FIXME: insert proper C++ library support
14380
	    ld_shlibs_CXX=no
14381
	    ;;
14382
          ghcx*)
14383
	    # Green Hills C++ Compiler
14384
	    # FIXME: insert proper C++ library support
14385
	    ld_shlibs_CXX=no
14386
	    ;;
14387
          *)
14388
	    # FIXME: insert proper C++ library support
14389
	    ld_shlibs_CXX=no
14390
	    ;;
14391
        esac
14392
        ;;
14393
 
14394
      freebsd2.*)
14395
        # C++ shared libraries reported to be fairly broken before
14396
	# switch to ELF
14397
        ld_shlibs_CXX=no
14398
        ;;
14399
 
14400
      freebsd-elf*)
14401
        archive_cmds_need_lc_CXX=no
14402
        ;;
14403
 
14404
      freebsd* | dragonfly*)
14405
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14406
        # conventions
14407
        ld_shlibs_CXX=yes
14408
        ;;
14409
 
14410
      haiku*)
14411
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14412
        link_all_deplibs_CXX=yes
14413
        ;;
14414
 
14415
      hpux9*)
14416
        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14417
        hardcode_libdir_separator_CXX=:
14418
        export_dynamic_flag_spec_CXX='$wl-E'
14419
        hardcode_direct_CXX=yes
14420
        hardcode_minus_L_CXX=yes # Not in the search PATH,
14421
				             # but as the default
14422
				             # location of the library.
14423
 
14424
        case $cc_basename in
14425
          CC*)
14426
            # FIXME: insert proper C++ library support
14427
            ld_shlibs_CXX=no
14428
            ;;
14429
          aCC*)
14430
            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14431
            # Commands to make compiler produce verbose output that lists
14432
            # what "hidden" libraries, object files and flags are used when
14433
            # linking a shared library.
14434
            #
14435
            # There doesn't appear to be a way to prevent this compiler from
14436
            # explicitly linking system object files so we need to strip them
14437
            # from the output so that they don't get included in the library
14438
            # dependencies.
14439
            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; func_echo_all "$list"'
14440
            ;;
14441
          *)
14442
            if test yes = "$GXX"; then
14443
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14444
            else
14445
              # FIXME: insert proper C++ library support
14446
              ld_shlibs_CXX=no
14447
            fi
14448
            ;;
14449
        esac
14450
        ;;
14451
 
14452
      hpux10*|hpux11*)
14453
        if test no = "$with_gnu_ld"; then
14454
	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14455
	  hardcode_libdir_separator_CXX=:
14456
 
14457
          case $host_cpu in
14458
            hppa*64*|ia64*)
14459
              ;;
14460
            *)
14461
	      export_dynamic_flag_spec_CXX='$wl-E'
14462
              ;;
14463
          esac
14464
        fi
14465
        case $host_cpu in
14466
          hppa*64*|ia64*)
14467
            hardcode_direct_CXX=no
14468
            hardcode_shlibpath_var_CXX=no
14469
            ;;
14470
          *)
14471
            hardcode_direct_CXX=yes
14472
            hardcode_direct_absolute_CXX=yes
14473
            hardcode_minus_L_CXX=yes # Not in the search PATH,
14474
					         # but as the default
14475
					         # location of the library.
14476
            ;;
14477
        esac
14478
 
14479
        case $cc_basename in
14480
          CC*)
14481
	    # FIXME: insert proper C++ library support
14482
	    ld_shlibs_CXX=no
14483
	    ;;
14484
          aCC*)
14485
	    case $host_cpu in
14486
	      hppa*64*)
14487
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14488
	        ;;
14489
	      ia64*)
14490
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14491
	        ;;
14492
	      *)
14493
	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14494
	        ;;
14495
	    esac
14496
	    # Commands to make compiler produce verbose output that lists
14497
	    # what "hidden" libraries, object files and flags are used when
14498
	    # linking a shared library.
14499
	    #
14500
	    # There doesn't appear to be a way to prevent this compiler from
14501
	    # explicitly linking system object files so we need to strip them
14502
	    # from the output so that they don't get included in the library
14503
	    # dependencies.
14504
	    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; func_echo_all "$list"'
14505
	    ;;
14506
          *)
14507
	    if test yes = "$GXX"; then
14508
	      if test no = "$with_gnu_ld"; then
14509
	        case $host_cpu in
14510
	          hppa*64*)
14511
	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14512
	            ;;
14513
	          ia64*)
14514
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14515
	            ;;
14516
	          *)
14517
	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14518
	            ;;
14519
	        esac
14520
	      fi
14521
	    else
14522
	      # FIXME: insert proper C++ library support
14523
	      ld_shlibs_CXX=no
14524
	    fi
14525
	    ;;
14526
        esac
14527
        ;;
14528
 
14529
      interix[3-9]*)
14530
	hardcode_direct_CXX=no
14531
	hardcode_shlibpath_var_CXX=no
14532
	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14533
	export_dynamic_flag_spec_CXX='$wl-E'
14534
	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14535
	# Instead, shared libraries are loaded at an image base (0x10000000 by
14536
	# default) and relocated if they conflict, which is a slow very memory
14537
	# consuming and fragmenting process.  To avoid this, we pick a random,
14538
	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14539
	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14540
	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'
14541
	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'
14542
	;;
14543
      irix5* | irix6*)
14544
        case $cc_basename in
14545
          CC*)
14546
	    # SGI C++
14547
	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14548
 
14549
	    # Archives containing C++ object files must be created using
14550
	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14551
	    # necessary to make sure instantiated templates are included
14552
	    # in the archive.
14553
	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14554
	    ;;
14555
          *)
14556
	    if test yes = "$GXX"; then
14557
	      if test no = "$with_gnu_ld"; then
14558
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14559
	      else
14560
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14561
	      fi
14562
	    fi
14563
	    link_all_deplibs_CXX=yes
14564
	    ;;
14565
        esac
14566
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14567
        hardcode_libdir_separator_CXX=:
14568
        inherit_rpath_CXX=yes
14569
        ;;
14570
 
14571
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14572
        case $cc_basename in
14573
          KCC*)
14574
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14575
 
14576
	    # KCC will only create a shared library if the output file
14577
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14578
	    # to its proper name (with version) after linking.
14579
	    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'
14580
	    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'
14581
	    # Commands to make compiler produce verbose output that lists
14582
	    # what "hidden" libraries, object files and flags are used when
14583
	    # linking a shared library.
14584
	    #
14585
	    # There doesn't appear to be a way to prevent this compiler from
14586
	    # explicitly linking system object files so we need to strip them
14587
	    # from the output so that they don't get included in the library
14588
	    # dependencies.
14589
	    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; func_echo_all "$list"'
14590
 
14591
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14592
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14593
 
14594
	    # Archives containing C++ object files must be created using
14595
	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14596
	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14597
	    ;;
14598
	  icpc* | ecpc* )
14599
	    # Intel C++
14600
	    with_gnu_ld=yes
14601
	    # version 8.0 and above of icpc choke on multiply defined symbols
14602
	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14603
	    # earlier do not add the objects themselves.
14604
	    case `$CC -V 2>&1` in
14605
	      *"Version 7."*)
14606
	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14607
		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'
14608
		;;
14609
	      *)  # Version 8.0 or newer
14610
	        tmp_idyn=
14611
	        case $host_cpu in
14612
		  ia64*) tmp_idyn=' -i_dynamic';;
14613
		esac
14614
	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14615
		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'
14616
		;;
14617
	    esac
14618
	    archive_cmds_need_lc_CXX=no
14619
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14620
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14621
	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14622
	    ;;
14623
          pgCC* | pgcpp*)
14624
            # Portland Group C++ compiler
14625
	    case `$CC -V` in
14626
	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14627
	      prelink_cmds_CXX='tpldir=Template.dir~
14628
               rm -rf $tpldir~
14629
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14630
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14631
	      old_archive_cmds_CXX='tpldir=Template.dir~
14632
                rm -rf $tpldir~
14633
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14634
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14635
                $RANLIB $oldlib'
14636
	      archive_cmds_CXX='tpldir=Template.dir~
14637
                rm -rf $tpldir~
14638
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14639
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14640
	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14641
                rm -rf $tpldir~
14642
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14643
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14644
	      ;;
14645
	    *) # Version 6 and above use weak symbols
14646
	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14647
	      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'
14648
	      ;;
14649
	    esac
14650
 
14651
	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14652
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14653
	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14654
            ;;
14655
	  cxx*)
14656
	    # Compaq C++
14657
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14658
	    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'
14659
 
14660
	    runpath_var=LD_RUN_PATH
14661
	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14662
	    hardcode_libdir_separator_CXX=:
14663
 
14664
	    # Commands to make compiler produce verbose output that lists
14665
	    # what "hidden" libraries, object files and flags are used when
14666
	    # linking a shared library.
14667
	    #
14668
	    # There doesn't appear to be a way to prevent this compiler from
14669
	    # explicitly linking system object files so we need to strip them
14670
	    # from the output so that they don't get included in the library
14671
	    # dependencies.
14672
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14673
	    ;;
14674
	  xl* | mpixl* | bgxl*)
14675
	    # IBM XL 8.0 on PPC, with GNU ld
14676
	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14677
	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14678
	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14679
	    if test yes = "$supports_anon_versioning"; then
14680
	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14681
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14682
                echo "local: *; };" >> $output_objdir/$libname.ver~
14683
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14684
	    fi
14685
	    ;;
14686
	  *)
14687
	    case `$CC -V 2>&1 | sed 5q` in
14688
	    *Sun\ C*)
14689
	      # Sun C++ 5.9
14690
	      no_undefined_flag_CXX=' -zdefs'
14691
	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14692
	      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'
14693
	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14694
	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14695
	      compiler_needs_object_CXX=yes
14696
 
14697
	      # Not sure whether something based on
14698
	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14699
	      # would be better.
14700
	      output_verbose_link_cmd='func_echo_all'
14701
 
14702
	      # Archives containing C++ object files must be created using
14703
	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14704
	      # necessary to make sure instantiated templates are included
14705
	      # in the archive.
14706
	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14707
	      ;;
14708
	    esac
14709
	    ;;
14710
	esac
14711
	;;
14712
 
14713
      lynxos*)
14714
        # FIXME: insert proper C++ library support
14715
	ld_shlibs_CXX=no
14716
	;;
14717
 
14718
      m88k*)
14719
        # FIXME: insert proper C++ library support
14720
        ld_shlibs_CXX=no
14721
	;;
14722
 
14723
      mvs*)
14724
        case $cc_basename in
14725
          cxx*)
14726
	    # FIXME: insert proper C++ library support
14727
	    ld_shlibs_CXX=no
14728
	    ;;
14729
	  *)
14730
	    # FIXME: insert proper C++ library support
14731
	    ld_shlibs_CXX=no
14732
	    ;;
14733
	esac
14734
	;;
14735
 
14736
      netbsd*)
14737
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14738
	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14739
	  wlarc=
14740
	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14741
	  hardcode_direct_CXX=yes
14742
	  hardcode_shlibpath_var_CXX=no
14743
	fi
14744
	# Workaround some broken pre-1.5 toolchains
14745
	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14746
	;;
14747
 
14748
      *nto* | *qnx*)
14749
        ld_shlibs_CXX=yes
14750
	;;
14751
 
14752
      openbsd* | bitrig*)
14753
	if test -f /usr/libexec/ld.so; then
14754
	  hardcode_direct_CXX=yes
14755
	  hardcode_shlibpath_var_CXX=no
14756
	  hardcode_direct_absolute_CXX=yes
14757
	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14758
	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14759
	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14760
	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14761
	    export_dynamic_flag_spec_CXX='$wl-E'
14762
	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14763
	  fi
14764
	  output_verbose_link_cmd=func_echo_all
14765
	else
14766
	  ld_shlibs_CXX=no
14767
	fi
14768
	;;
14769
 
14770
      osf3* | osf4* | osf5*)
14771
        case $cc_basename in
14772
          KCC*)
14773
	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14774
 
14775
	    # KCC will only create a shared library if the output file
14776
	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14777
	    # to its proper name (with version) after linking.
14778
	    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'
14779
 
14780
	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14781
	    hardcode_libdir_separator_CXX=:
14782
 
14783
	    # Archives containing C++ object files must be created using
14784
	    # the KAI C++ compiler.
14785
	    case $host in
14786
	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14787
	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14788
	    esac
14789
	    ;;
14790
          RCC*)
14791
	    # Rational C++ 2.4.1
14792
	    # FIXME: insert proper C++ library support
14793
	    ld_shlibs_CXX=no
14794
	    ;;
14795
          cxx*)
14796
	    case $host in
14797
	      osf3*)
14798
	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14799
	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14800
	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14801
		;;
14802
	      *)
14803
	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14804
	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14805
	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14806
                  echo "-hidden">> $lib.exp~
14807
                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14808
                  $RM $lib.exp'
14809
	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14810
		;;
14811
	    esac
14812
 
14813
	    hardcode_libdir_separator_CXX=:
14814
 
14815
	    # Commands to make compiler produce verbose output that lists
14816
	    # what "hidden" libraries, object files and flags are used when
14817
	    # linking a shared library.
14818
	    #
14819
	    # There doesn't appear to be a way to prevent this compiler from
14820
	    # explicitly linking system object files so we need to strip them
14821
	    # from the output so that they don't get included in the library
14822
	    # dependencies.
14823
	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14824
	    ;;
14825
	  *)
14826
	    if test yes,no = "$GXX,$with_gnu_ld"; then
14827
	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14828
	      case $host in
14829
	        osf3*)
14830
	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14831
		  ;;
14832
	        *)
14833
	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14834
		  ;;
14835
	      esac
14836
 
14837
	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14838
	      hardcode_libdir_separator_CXX=:
14839
 
14840
	      # Commands to make compiler produce verbose output that lists
14841
	      # what "hidden" libraries, object files and flags are used when
14842
	      # linking a shared library.
14843
	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14844
 
14845
	    else
14846
	      # FIXME: insert proper C++ library support
14847
	      ld_shlibs_CXX=no
14848
	    fi
14849
	    ;;
14850
        esac
14851
        ;;
14852
 
14853
      psos*)
14854
        # FIXME: insert proper C++ library support
14855
        ld_shlibs_CXX=no
14856
        ;;
14857
 
14858
      sunos4*)
14859
        case $cc_basename in
14860
          CC*)
14861
	    # Sun C++ 4.x
14862
	    # FIXME: insert proper C++ library support
14863
	    ld_shlibs_CXX=no
14864
	    ;;
14865
          lcc*)
14866
	    # Lucid
14867
	    # FIXME: insert proper C++ library support
14868
	    ld_shlibs_CXX=no
14869
	    ;;
14870
          *)
14871
	    # FIXME: insert proper C++ library support
14872
	    ld_shlibs_CXX=no
14873
	    ;;
14874
        esac
14875
        ;;
14876
 
14877
      solaris*)
14878
        case $cc_basename in
14879
          CC* | sunCC*)
14880
	    # Sun C++ 4.2, 5.x and Centerline C++
14881
            archive_cmds_need_lc_CXX=yes
14882
	    no_undefined_flag_CXX=' -zdefs'
14883
	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14884
	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14885
              $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'
14886
 
14887
	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14888
	    hardcode_shlibpath_var_CXX=no
14889
	    case $host_os in
14890
	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14891
	      *)
14892
		# The compiler driver will combine and reorder linker options,
14893
		# but understands '-z linker_flag'.
14894
	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14895
		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14896
	        ;;
14897
	    esac
14898
	    link_all_deplibs_CXX=yes
14899
 
14900
	    output_verbose_link_cmd='func_echo_all'
14901
 
14902
	    # Archives containing C++ object files must be created using
14903
	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14904
	    # necessary to make sure instantiated templates are included
14905
	    # in the archive.
14906
	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14907
	    ;;
14908
          gcx*)
14909
	    # Green Hills C++ Compiler
14910
	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14911
 
14912
	    # The C++ compiler must be used to create the archive.
14913
	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14914
	    ;;
14915
          *)
14916
	    # GNU C++ compiler with Solaris linker
14917
	    if test yes,no = "$GXX,$with_gnu_ld"; then
14918
	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14919
	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14920
	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14921
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14922
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14923
 
14924
	        # Commands to make compiler produce verbose output that lists
14925
	        # what "hidden" libraries, object files and flags are used when
14926
	        # linking a shared library.
14927
	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14928
	      else
14929
	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14930
	        # platform.
14931
	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14932
	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14933
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14934
 
14935
	        # Commands to make compiler produce verbose output that lists
14936
	        # what "hidden" libraries, object files and flags are used when
14937
	        # linking a shared library.
14938
	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14939
	      fi
14940
 
14941
	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14942
	      case $host_os in
14943
		solaris2.[0-5] | solaris2.[0-5].*) ;;
14944
		*)
14945
		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14946
		  ;;
14947
	      esac
14948
	    fi
14949
	    ;;
14950
        esac
14951
        ;;
14952
 
14953
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14954
      no_undefined_flag_CXX='$wl-z,text'
14955
      archive_cmds_need_lc_CXX=no
14956
      hardcode_shlibpath_var_CXX=no
14957
      runpath_var='LD_RUN_PATH'
14958
 
14959
      case $cc_basename in
14960
        CC*)
14961
	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14962
	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14963
	  ;;
14964
	*)
14965
	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966
	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967
	  ;;
14968
      esac
14969
      ;;
14970
 
14971
      sysv5* | sco3.2v5* | sco5v6*)
14972
	# Note: We CANNOT use -z defs as we might desire, because we do not
14973
	# link with -lc, and that would cause any symbols used from libc to
14974
	# always be unresolved, which means just about no library would
14975
	# ever link correctly.  If we're not using GNU ld we use -z text
14976
	# though, which does catch some bad symbols but isn't as heavy-handed
14977
	# as -z defs.
14978
	no_undefined_flag_CXX='$wl-z,text'
14979
	allow_undefined_flag_CXX='$wl-z,nodefs'
14980
	archive_cmds_need_lc_CXX=no
14981
	hardcode_shlibpath_var_CXX=no
14982
	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14983
	hardcode_libdir_separator_CXX=':'
14984
	link_all_deplibs_CXX=yes
14985
	export_dynamic_flag_spec_CXX='$wl-Bexport'
14986
	runpath_var='LD_RUN_PATH'
14987
 
14988
	case $cc_basename in
14989
          CC*)
14990
	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991
	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992
	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14993
              '"$old_archive_cmds_CXX"
14994
	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14995
              '"$reload_cmds_CXX"
14996
	    ;;
14997
	  *)
14998
	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999
	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000
	    ;;
15001
	esac
15002
      ;;
15003
 
15004
      tandem*)
15005
        case $cc_basename in
15006
          NCC*)
15007
	    # NonStop-UX NCC 3.20
15008
	    # FIXME: insert proper C++ library support
15009
	    ld_shlibs_CXX=no
15010
	    ;;
15011
          *)
15012
	    # FIXME: insert proper C++ library support
15013
	    ld_shlibs_CXX=no
15014
	    ;;
15015
        esac
15016
        ;;
15017
 
15018
      vxworks*)
15019
        # FIXME: insert proper C++ library support
15020
        ld_shlibs_CXX=no
15021
        ;;
15022
 
15023
      *)
15024
        # FIXME: insert proper C++ library support
15025
        ld_shlibs_CXX=no
15026
        ;;
15027
    esac
15028
 
15029
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15030
$as_echo "$ld_shlibs_CXX" >&6; }
15031
    test no = "$ld_shlibs_CXX" && can_build_shared=no
15032
 
15033
    GCC_CXX=$GXX
15034
    LD_CXX=$LD
15035
 
15036
    ## CAVEAT EMPTOR:
15037
    ## There is no encapsulation within the following macros, do not change
15038
    ## the running order or otherwise move them around unless you know exactly
15039
    ## what you are doing...
15040
    # Dependencies to place before and after the object being linked:
15041
predep_objects_CXX=
15042
postdep_objects_CXX=
15043
predeps_CXX=
15044
postdeps_CXX=
15045
compiler_lib_search_path_CXX=
15046
 
15047
cat > conftest.$ac_ext <<_LT_EOF
15048
class Foo
15049
{
15050
public:
15051
  Foo (void) { a = 0; }
15052
private:
15053
  int a;
15054
};
15055
_LT_EOF
15056
 
15057
 
15058
_lt_libdeps_save_CFLAGS=$CFLAGS
15059
case "$CC $CFLAGS " in #(
15060
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15061
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15062
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15063
esac
15064
 
15065
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15066
  (eval $ac_compile) 2>&5
15067
  ac_status=$?
15068
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15069
  test $ac_status = 0; }; then
15070
  # Parse the compiler output and extract the necessary
15071
  # objects, libraries and library flags.
15072
 
15073
  # Sentinel used to keep track of whether or not we are before
15074
  # the conftest object file.
15075
  pre_test_object_deps_done=no
15076
 
15077
  for p in `eval "$output_verbose_link_cmd"`; do
15078
    case $prev$p in
15079
 
15080
    -L* | -R* | -l* | */libclang_rt.*.a)
15081
       # Some compilers place space between "-{L,R}" and the path.
15082
       # Remove the space.
15083
       if test x-L = "$p" ||
15084
          test x-R = "$p"; then
15085
	 prev=$p
15086
	 continue
15087
       fi
15088
 
15089
       # Expand the sysroot to ease extracting the directories later.
15090
       if test -z "$prev"; then
15091
         case $p in
15092
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15093
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15094
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15095
         esac
15096
       fi
15097
       case $p in
15098
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15099
       esac
15100
       if test no = "$pre_test_object_deps_done"; then
15101
	 case $prev in
15102
	 -L | -R)
15103
	   # Internal compiler library paths should come after those
15104
	   # provided the user.  The postdeps already come after the
15105
	   # user supplied libs so there is no need to process them.
15106
	   if test -z "$compiler_lib_search_path_CXX"; then
15107
	     compiler_lib_search_path_CXX=$prev$p
15108
	   else
15109
	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15110
	   fi
15111
	   ;;
15112
	 # The "-l" case would never come before the object being
15113
	 # linked, so don't bother handling this case.
15114
	 esac
15115
       else
15116
	 if test -z "$postdeps_CXX"; then
15117
	   postdeps_CXX=$prev$p
15118
	 else
15119
	   postdeps_CXX="${postdeps_CXX} $prev$p"
15120
	 fi
15121
       fi
15122
       prev=
15123
       ;;
15124
 
15125
    *.lto.$objext) ;; # Ignore GCC LTO objects
15126
    *.$objext)
15127
       # This assumes that the test object file only shows up
15128
       # once in the compiler output.
15129
       if test "$p" = "conftest.$objext"; then
15130
	 pre_test_object_deps_done=yes
15131
	 continue
15132
       fi
15133
 
15134
       if test no = "$pre_test_object_deps_done"; then
15135
	 if test -z "$predep_objects_CXX"; then
15136
	   predep_objects_CXX=$p
15137
	 else
15138
	   predep_objects_CXX="$predep_objects_CXX $p"
15139
	 fi
15140
       else
15141
	 if test -z "$postdep_objects_CXX"; then
15142
	   postdep_objects_CXX=$p
15143
	 else
15144
	   postdep_objects_CXX="$postdep_objects_CXX $p"
15145
	 fi
15146
       fi
15147
       ;;
15148
 
15149
    *) ;; # Ignore the rest.
15150
 
15151
    esac
15152
  done
15153
 
15154
  # Clean up.
15155
  rm -f a.out a.exe
15156
else
15157
  echo "libtool.m4: error: problem compiling CXX test program"
15158
fi
15159
 
15160
$RM -f confest.$objext
15161
CFLAGS=$_lt_libdeps_save_CFLAGS
15162
 
15163
# PORTME: override above test on systems where it is broken
15164
case $host_os in
15165
interix[3-9]*)
15166
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15167
  # hack all around it, let's just trust "g++" to DTRT.
15168
  predep_objects_CXX=
15169
  postdep_objects_CXX=
15170
  postdeps_CXX=
15171
  ;;
15172
esac
15173
 
15174
 
15175
case " $postdeps_CXX " in
15176
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15177
esac
15178
 compiler_lib_search_dirs_CXX=
15179
if test -n "${compiler_lib_search_path_CXX}"; then
15180
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15181
fi
15182
 
15183
 
15184
 
15185
 
15186
 
15187
 
15188
 
15189
 
15190
 
15191
 
15192
 
15193
 
15194
 
15195
 
15196
 
15197
 
15198
 
15199
 
15200
 
15201
 
15202
 
15203
 
15204
 
15205
 
15206
 
15207
 
15208
 
15209
 
15210
 
15211
 
15212
 
15213
    lt_prog_compiler_wl_CXX=
15214
lt_prog_compiler_pic_CXX=
15215
lt_prog_compiler_static_CXX=
15216
 
15217
 
15218
  # C++ specific cases for pic, static, wl, etc.
15219
  if test yes = "$GXX"; then
15220
    lt_prog_compiler_wl_CXX='-Wl,'
15221
    lt_prog_compiler_static_CXX='-static'
15222
 
15223
    case $host_os in
15224
    aix*)
15225
      # All AIX code is PIC.
15226
      if test ia64 = "$host_cpu"; then
15227
	# AIX 5 now supports IA64 processor
15228
	lt_prog_compiler_static_CXX='-Bstatic'
15229
      fi
15230
      lt_prog_compiler_pic_CXX='-fPIC'
15231
      ;;
15232
 
15233
    amigaos*)
15234
      case $host_cpu in
15235
      powerpc)
15236
            # see comment about AmigaOS4 .so support
15237
            lt_prog_compiler_pic_CXX='-fPIC'
15238
        ;;
15239
      m68k)
15240
            # FIXME: we need at least 68020 code to build shared libraries, but
15241
            # adding the '-m68020' flag to GCC prevents building anything better,
15242
            # like '-m68040'.
15243
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15244
        ;;
15245
      esac
15246
      ;;
15247
 
15248
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15249
      # PIC is the default for these OSes.
15250
      ;;
15251
    mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
15252
      # This hack is so that the source file can tell whether it is being
15253
      # built for inclusion in a dll (and should export symbols for example).
15254
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15255
      # (--disable-auto-import) libraries
15256
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15257
      case $host_os in
15258
      os2*)
15259
	lt_prog_compiler_static_CXX='$wl-static'
15260
	;;
15261
      esac
15262
      ;;
15263
    darwin* | rhapsody*)
15264
      # PIC is the default on this platform
15265
      # Common symbols not allowed in MH_DYLIB files
15266
      lt_prog_compiler_pic_CXX='-fno-common'
15267
      ;;
15268
    *djgpp*)
15269
      # DJGPP does not support shared libraries at all
15270
      lt_prog_compiler_pic_CXX=
15271
      ;;
15272
    haiku*)
15273
      # PIC is the default for Haiku.
15274
      # The "-static" flag exists, but is broken.
15275
      lt_prog_compiler_static_CXX=
15276
      ;;
15277
    interix[3-9]*)
15278
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15279
      # Instead, we relocate shared libraries at runtime.
15280
      ;;
15281
    sysv4*MP*)
15282
      if test -d /usr/nec; then
15283
	lt_prog_compiler_pic_CXX=-Kconform_pic
15284
      fi
15285
      ;;
15286
    hpux*)
15287
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15288
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15289
      # sets the default TLS model and affects inlining.
15290
      case $host_cpu in
15291
      hppa*64*)
15292
	;;
15293
      *)
15294
	lt_prog_compiler_pic_CXX='-fPIC'
15295
	;;
15296
      esac
15297
      ;;
15298
    *qnx* | *nto*)
15299
      # QNX uses GNU C++, but need to define -shared option too, otherwise
15300
      # it will coredump.
15301
      lt_prog_compiler_pic_CXX='-fPIC -shared'
15302
      ;;
15303
    *)
15304
      lt_prog_compiler_pic_CXX='-fPIC'
15305
      ;;
15306
    esac
15307
  else
15308
    case $host_os in
15309
      aix[4-9]*)
15310
	# All AIX code is PIC.
15311
	if test ia64 = "$host_cpu"; then
15312
	  # AIX 5 now supports IA64 processor
15313
	  lt_prog_compiler_static_CXX='-Bstatic'
15314
	else
15315
	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15316
	fi
15317
	;;
15318
      chorus*)
15319
	case $cc_basename in
15320
	cxch68*)
15321
	  # Green Hills C++ Compiler
15322
	  # _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"
15323
	  ;;
15324
	esac
15325
	;;
15326
      mingw* | cygwin* | msys* | os2* | pw32* | cegcc*)
15327
	# This hack is so that the source file can tell whether it is being
15328
	# built for inclusion in a dll (and should export symbols for example).
15329
	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15330
	;;
15331
      dgux*)
15332
	case $cc_basename in
15333
	  ec++*)
15334
	    lt_prog_compiler_pic_CXX='-KPIC'
15335
	    ;;
15336
	  ghcx*)
15337
	    # Green Hills C++ Compiler
15338
	    lt_prog_compiler_pic_CXX='-pic'
15339
	    ;;
15340
	  *)
15341
	    ;;
15342
	esac
15343
	;;
15344
      freebsd* | dragonfly*)
15345
	# FreeBSD uses GNU C++
15346
	;;
15347
      hpux9* | hpux10* | hpux11*)
15348
	case $cc_basename in
15349
	  CC*)
15350
	    lt_prog_compiler_wl_CXX='-Wl,'
15351
	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15352
	    if test ia64 != "$host_cpu"; then
15353
	      lt_prog_compiler_pic_CXX='+Z'
15354
	    fi
15355
	    ;;
15356
	  aCC*)
15357
	    lt_prog_compiler_wl_CXX='-Wl,'
15358
	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15359
	    case $host_cpu in
15360
	    hppa*64*|ia64*)
15361
	      # +Z the default
15362
	      ;;
15363
	    *)
15364
	      lt_prog_compiler_pic_CXX='+Z'
15365
	      ;;
15366
	    esac
15367
	    ;;
15368
	  *)
15369
	    ;;
15370
	esac
15371
	;;
15372
      interix*)
15373
	# This is c89, which is MS Visual C++ (no shared libs)
15374
	# Anyone wants to do a port?
15375
	;;
15376
      irix5* | irix6* | nonstopux*)
15377
	case $cc_basename in
15378
	  CC*)
15379
	    lt_prog_compiler_wl_CXX='-Wl,'
15380
	    lt_prog_compiler_static_CXX='-non_shared'
15381
	    # CC pic flag -KPIC is the default.
15382
	    ;;
15383
	  *)
15384
	    ;;
15385
	esac
15386
	;;
15387
      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15388
	case $cc_basename in
15389
	  KCC*)
15390
	    # KAI C++ Compiler
15391
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15392
	    lt_prog_compiler_pic_CXX='-fPIC'
15393
	    ;;
15394
	  ecpc* )
15395
	    # old Intel C++ for x86_64, which still supported -KPIC.
15396
	    lt_prog_compiler_wl_CXX='-Wl,'
15397
	    lt_prog_compiler_pic_CXX='-KPIC'
15398
	    lt_prog_compiler_static_CXX='-static'
15399
	    ;;
15400
	  icpc* )
15401
	    # Intel C++, used to be incompatible with GCC.
15402
	    # ICC 10 doesn't accept -KPIC any more.
15403
	    lt_prog_compiler_wl_CXX='-Wl,'
15404
	    lt_prog_compiler_pic_CXX='-fPIC'
15405
	    lt_prog_compiler_static_CXX='-static'
15406
	    ;;
15407
	  pgCC* | pgcpp*)
15408
	    # Portland Group C++ compiler
15409
	    lt_prog_compiler_wl_CXX='-Wl,'
15410
	    lt_prog_compiler_pic_CXX='-fpic'
15411
	    lt_prog_compiler_static_CXX='-Bstatic'
15412
	    ;;
15413
	  cxx*)
15414
	    # Compaq C++
15415
	    # Make sure the PIC flag is empty.  It appears that all Alpha
15416
	    # Linux and Compaq Tru64 Unix objects are PIC.
15417
	    lt_prog_compiler_pic_CXX=
15418
	    lt_prog_compiler_static_CXX='-non_shared'
15419
	    ;;
15420
	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15421
	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15422
	    lt_prog_compiler_wl_CXX='-Wl,'
15423
	    lt_prog_compiler_pic_CXX='-qpic'
15424
	    lt_prog_compiler_static_CXX='-qstaticlink'
15425
	    ;;
15426
	  *)
15427
	    case `$CC -V 2>&1 | sed 5q` in
15428
	    *Sun\ C*)
15429
	      # Sun C++ 5.9
15430
	      lt_prog_compiler_pic_CXX='-KPIC'
15431
	      lt_prog_compiler_static_CXX='-Bstatic'
15432
	      lt_prog_compiler_wl_CXX='-Qoption ld '
15433
	      ;;
15434
	    esac
15435
	    ;;
15436
	esac
15437
	;;
15438
      lynxos*)
15439
	;;
15440
      m88k*)
15441
	;;
15442
      mvs*)
15443
	case $cc_basename in
15444
	  cxx*)
15445
	    lt_prog_compiler_pic_CXX='-W c,exportall'
15446
	    ;;
15447
	  *)
15448
	    ;;
15449
	esac
15450
	;;
15451
      netbsd*)
15452
	;;
15453
      *qnx* | *nto*)
15454
        # QNX uses GNU C++, but need to define -shared option too, otherwise
15455
        # it will coredump.
15456
        lt_prog_compiler_pic_CXX='-fPIC -shared'
15457
        ;;
15458
      osf3* | osf4* | osf5*)
15459
	case $cc_basename in
15460
	  KCC*)
15461
	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15462
	    ;;
15463
	  RCC*)
15464
	    # Rational C++ 2.4.1
15465
	    lt_prog_compiler_pic_CXX='-pic'
15466
	    ;;
15467
	  cxx*)
15468
	    # Digital/Compaq C++
15469
	    lt_prog_compiler_wl_CXX='-Wl,'
15470
	    # Make sure the PIC flag is empty.  It appears that all Alpha
15471
	    # Linux and Compaq Tru64 Unix objects are PIC.
15472
	    lt_prog_compiler_pic_CXX=
15473
	    lt_prog_compiler_static_CXX='-non_shared'
15474
	    ;;
15475
	  *)
15476
	    ;;
15477
	esac
15478
	;;
15479
      psos*)
15480
	;;
15481
      solaris*)
15482
	case $cc_basename in
15483
	  CC* | sunCC*)
15484
	    # Sun C++ 4.2, 5.x and Centerline C++
15485
	    lt_prog_compiler_pic_CXX='-KPIC'
15486
	    lt_prog_compiler_static_CXX='-Bstatic'
15487
	    lt_prog_compiler_wl_CXX='-Qoption ld '
15488
	    ;;
15489
	  gcx*)
15490
	    # Green Hills C++ Compiler
15491
	    lt_prog_compiler_pic_CXX='-PIC'
15492
	    ;;
15493
	  *)
15494
	    ;;
15495
	esac
15496
	;;
15497
      sunos4*)
15498
	case $cc_basename in
15499
	  CC*)
15500
	    # Sun C++ 4.x
15501
	    lt_prog_compiler_pic_CXX='-pic'
15502
	    lt_prog_compiler_static_CXX='-Bstatic'
15503
	    ;;
15504
	  lcc*)
15505
	    # Lucid
15506
	    lt_prog_compiler_pic_CXX='-pic'
15507
	    ;;
15508
	  *)
15509
	    ;;
15510
	esac
15511
	;;
15512
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15513
	case $cc_basename in
15514
	  CC*)
15515
	    lt_prog_compiler_wl_CXX='-Wl,'
15516
	    lt_prog_compiler_pic_CXX='-KPIC'
15517
	    lt_prog_compiler_static_CXX='-Bstatic'
15518
	    ;;
15519
	esac
15520
	;;
15521
      tandem*)
15522
	case $cc_basename in
15523
	  NCC*)
15524
	    # NonStop-UX NCC 3.20
15525
	    lt_prog_compiler_pic_CXX='-KPIC'
15526
	    ;;
15527
	  *)
15528
	    ;;
15529
	esac
15530
	;;
15531
      vxworks*)
15532
	;;
15533
      *)
15534
	lt_prog_compiler_can_build_shared_CXX=no
15535
	;;
15536
    esac
15537
  fi
15538
 
15539
case $host_os in
15540
  # For platforms that do not support PIC, -DPIC is meaningless:
15541
  *djgpp*)
15542
    lt_prog_compiler_pic_CXX=
15543
    ;;
15544
  *)
15545
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15546
    ;;
15547
esac
15548
 
15549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15550
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15551
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15552
  $as_echo_n "(cached) " >&6
15553
else
15554
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15555
fi
15556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15557
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15558
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15559
 
15560
#
15561
# Check to make sure the PIC flag actually works.
15562
#
15563
if test -n "$lt_prog_compiler_pic_CXX"; then
15564
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15565
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15566
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15567
  $as_echo_n "(cached) " >&6
15568
else
15569
  lt_cv_prog_compiler_pic_works_CXX=no
15570
   ac_outfile=conftest.$ac_objext
15571
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15572
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15573
   # Insert the option either (1) after the last *FLAGS variable, or
15574
   # (2) before a word containing "conftest.", or (3) at the end.
15575
   # Note that $ac_compile itself does not contain backslashes and begins
15576
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15577
   # The option is referenced via a variable to avoid confusing sed.
15578
   lt_compile=`echo "$ac_compile" | $SED \
15579
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15580
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15581
   -e 's:$: $lt_compiler_flag:'`
15582
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15583
   (eval "$lt_compile" 2>conftest.err)
15584
   ac_status=$?
15585
   cat conftest.err >&5
15586
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587
   if (exit $ac_status) && test -s "$ac_outfile"; then
15588
     # The compiler can only warn and ignore the option if not recognized
15589
     # So say no if there are warnings other than the usual output.
15590
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15591
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15592
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15593
       lt_cv_prog_compiler_pic_works_CXX=yes
15594
     fi
15595
   fi
15596
   $RM conftest*
15597
 
15598
fi
15599
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15600
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15601
 
15602
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15603
    case $lt_prog_compiler_pic_CXX in
15604
     "" | " "*) ;;
15605
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15606
     esac
15607
else
15608
    lt_prog_compiler_pic_CXX=
15609
     lt_prog_compiler_can_build_shared_CXX=no
15610
fi
15611
 
15612
fi
15613
 
15614
 
15615
 
15616
 
15617
 
15618
#
15619
# Check to make sure the static flag actually works.
15620
#
15621
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15623
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15624
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15625
  $as_echo_n "(cached) " >&6
15626
else
15627
  lt_cv_prog_compiler_static_works_CXX=no
15628
   save_LDFLAGS=$LDFLAGS
15629
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15630
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15631
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15632
     # The linker can only warn and ignore the option if not recognized
15633
     # So say no if there are warnings
15634
     if test -s conftest.err; then
15635
       # Append any errors to the config.log.
15636
       cat conftest.err 1>&5
15637
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15638
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15639
       if diff conftest.exp conftest.er2 >/dev/null; then
15640
         lt_cv_prog_compiler_static_works_CXX=yes
15641
       fi
15642
     else
15643
       lt_cv_prog_compiler_static_works_CXX=yes
15644
     fi
15645
   fi
15646
   $RM -r conftest*
15647
   LDFLAGS=$save_LDFLAGS
15648
 
15649
fi
15650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15651
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15652
 
15653
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15654
    :
15655
else
15656
    lt_prog_compiler_static_CXX=
15657
fi
15658
 
15659
 
15660
 
15661
 
15662
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15663
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15664
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15665
  $as_echo_n "(cached) " >&6
15666
else
15667
  lt_cv_prog_compiler_c_o_CXX=no
15668
   $RM -r conftest 2>/dev/null
15669
   mkdir conftest
15670
   cd conftest
15671
   mkdir out
15672
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15673
 
15674
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15675
   # Insert the option either (1) after the last *FLAGS variable, or
15676
   # (2) before a word containing "conftest.", or (3) at the end.
15677
   # Note that $ac_compile itself does not contain backslashes and begins
15678
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15679
   lt_compile=`echo "$ac_compile" | $SED \
15680
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15681
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682
   -e 's:$: $lt_compiler_flag:'`
15683
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15684
   (eval "$lt_compile" 2>out/conftest.err)
15685
   ac_status=$?
15686
   cat out/conftest.err >&5
15687
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15689
   then
15690
     # The compiler can only warn and ignore the option if not recognized
15691
     # So say no if there are warnings
15692
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15693
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15694
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15695
       lt_cv_prog_compiler_c_o_CXX=yes
15696
     fi
15697
   fi
15698
   chmod u+w . 2>&5
15699
   $RM conftest*
15700
   # SGI C++ compiler will create directory out/ii_files/ for
15701
   # template instantiation
15702
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15703
   $RM out/* && rmdir out
15704
   cd ..
15705
   $RM -r conftest
15706
   $RM conftest*
15707
 
15708
fi
15709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15710
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15711
 
15712
 
15713
 
15714
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15715
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15716
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15717
  $as_echo_n "(cached) " >&6
15718
else
15719
  lt_cv_prog_compiler_c_o_CXX=no
15720
   $RM -r conftest 2>/dev/null
15721
   mkdir conftest
15722
   cd conftest
15723
   mkdir out
15724
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15725
 
15726
   lt_compiler_flag="-o out/conftest2.$ac_objext"
15727
   # Insert the option either (1) after the last *FLAGS variable, or
15728
   # (2) before a word containing "conftest.", or (3) at the end.
15729
   # Note that $ac_compile itself does not contain backslashes and begins
15730
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15731
   lt_compile=`echo "$ac_compile" | $SED \
15732
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15733
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734
   -e 's:$: $lt_compiler_flag:'`
15735
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15736
   (eval "$lt_compile" 2>out/conftest.err)
15737
   ac_status=$?
15738
   cat out/conftest.err >&5
15739
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15741
   then
15742
     # The compiler can only warn and ignore the option if not recognized
15743
     # So say no if there are warnings
15744
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15745
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15746
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15747
       lt_cv_prog_compiler_c_o_CXX=yes
15748
     fi
15749
   fi
15750
   chmod u+w . 2>&5
15751
   $RM conftest*
15752
   # SGI C++ compiler will create directory out/ii_files/ for
15753
   # template instantiation
15754
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15755
   $RM out/* && rmdir out
15756
   cd ..
15757
   $RM -r conftest
15758
   $RM conftest*
15759
 
15760
fi
15761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15762
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15763
 
15764
 
15765
 
15766
 
15767
hard_links=nottested
15768
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15769
  # do not overwrite the value of need_locks provided by the user
15770
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15771
$as_echo_n "checking if we can lock with hard links... " >&6; }
15772
  hard_links=yes
15773
  $RM conftest*
15774
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15775
  touch conftest.a
15776
  ln conftest.a conftest.b 2>&5 || hard_links=no
15777
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15779
$as_echo "$hard_links" >&6; }
15780
  if test no = "$hard_links"; then
15781
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15782
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15783
    need_locks=warn
15784
  fi
15785
else
15786
  need_locks=no
15787
fi
15788
 
15789
 
15790
 
15791
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15792
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15793
 
15794
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15795
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15796
  case $host_os in
15797
  aix[4-9]*)
15798
    # If we're using GNU nm, then we don't want the "-C" option.
15799
    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15800
    # Without the "-l" option, or with the "-B" option, AIX nm treats
15801
    # weak defined symbols like other global defined symbols, whereas
15802
    # GNU nm marks them as "W".
15803
    # While the 'weak' keyword is ignored in the Export File, we need
15804
    # it in the Import File for the 'aix-soname' feature, so we have
15805
    # to replace the "-B" option with "-P" for AIX nm.
15806
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15807
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15808
    else
15809
      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15810
    fi
15811
    ;;
15812
  pw32*)
15813
    export_symbols_cmds_CXX=$ltdll_cmds
15814
    ;;
15815
  cygwin* | msys* | mingw* | cegcc*)
15816
    case $cc_basename in
15817
    cl*)
15818
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15819
      ;;
15820
    *)
15821
      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15822
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15823
      ;;
15824
    esac
15825
    ;;
15826
  *)
15827
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15828
    ;;
15829
  esac
15830
 
15831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15832
$as_echo "$ld_shlibs_CXX" >&6; }
15833
test no = "$ld_shlibs_CXX" && can_build_shared=no
15834
 
15835
with_gnu_ld_CXX=$with_gnu_ld
15836
 
15837
 
15838
 
15839
 
15840
 
15841
 
15842
#
15843
# Do we need to explicitly link libc?
15844
#
15845
case "x$archive_cmds_need_lc_CXX" in
15846
x|xyes)
15847
  # Assume -lc should be added
15848
  archive_cmds_need_lc_CXX=yes
15849
 
15850
  if test yes,yes = "$GCC,$enable_shared"; then
15851
    case $archive_cmds_CXX in
15852
    *'~'*)
15853
      # FIXME: we may have to deal with multi-command sequences.
15854
      ;;
15855
    '$CC '*)
15856
      # Test whether the compiler implicitly links with -lc since on some
15857
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15858
      # to ld, don't add -lc before -lgcc.
15859
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15860
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15861
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15862
  $as_echo_n "(cached) " >&6
15863
else
15864
  $RM conftest*
15865
	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15866
 
15867
	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15868
  (eval $ac_compile) 2>&5
15869
  ac_status=$?
15870
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15871
  test $ac_status = 0; } 2>conftest.err; then
15872
	  soname=conftest
15873
	  lib=conftest
15874
	  libobjs=conftest.$ac_objext
15875
	  deplibs=
15876
	  wl=$lt_prog_compiler_wl_CXX
15877
	  pic_flag=$lt_prog_compiler_pic_CXX
15878
	  compiler_flags=-v
15879
	  linker_flags=-v
15880
	  verstring=
15881
	  output_objdir=.
15882
	  libname=conftest
15883
	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15884
	  allow_undefined_flag_CXX=
15885
	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15886
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15887
  ac_status=$?
15888
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15889
  test $ac_status = 0; }
15890
	  then
15891
	    lt_cv_archive_cmds_need_lc_CXX=no
15892
	  else
15893
	    lt_cv_archive_cmds_need_lc_CXX=yes
15894
	  fi
15895
	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15896
	else
15897
	  cat conftest.err 1>&5
15898
	fi
15899
	$RM conftest*
15900
 
15901
fi
15902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15903
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15904
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15905
      ;;
15906
    esac
15907
  fi
15908
  ;;
15909
esac
15910
 
15911
 
15912
 
15913
 
15914
 
15915
 
15916
 
15917
 
15918
 
15919
 
15920
 
15921
 
15922
 
15923
 
15924
 
15925
 
15926
 
15927
 
15928
 
15929
 
15930
 
15931
 
15932
 
15933
 
15934
 
15935
 
15936
 
15937
 
15938
 
15939
 
15940
 
15941
 
15942
 
15943
 
15944
 
15945
 
15946
 
15947
 
15948
 
15949
 
15950
 
15951
 
15952
 
15953
 
15954
 
15955
 
15956
 
15957
 
15958
 
15959
 
15960
 
15961
 
15962
 
15963
 
15964
 
15965
 
15966
 
15967
 
15968
 
15969
 
15970
 
15971
 
15972
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15973
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15974
 
15975
library_names_spec=
15976
libname_spec='lib$name'
15977
soname_spec=
15978
shrext_cmds=.so
15979
postinstall_cmds=
15980
postuninstall_cmds=
15981
finish_cmds=
15982
finish_eval=
15983
shlibpath_var=
15984
shlibpath_overrides_runpath=unknown
15985
version_type=none
15986
dynamic_linker="$host_os ld.so"
15987
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15988
need_lib_prefix=unknown
15989
hardcode_into_libs=no
15990
 
15991
# when you set need_version to no, make sure it does not cause -set_version
15992
# flags to be left without arguments
15993
need_version=unknown
15994
 
15995
 
15996
 
15997
case $host_os in
15998
aix3*)
15999
  version_type=linux # correct to gnu/linux during the next big refactor
16000
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16001
  shlibpath_var=LIBPATH
16002
 
16003
  # AIX 3 has no versioning support, so we append a major version to the name.
16004
  soname_spec='$libname$release$shared_ext$major'
16005
  ;;
16006
 
16007
aix[4-9]*)
16008
  version_type=linux # correct to gnu/linux during the next big refactor
16009
  need_lib_prefix=no
16010
  need_version=no
16011
  hardcode_into_libs=yes
16012
  if test ia64 = "$host_cpu"; then
16013
    # AIX 5 supports IA64
16014
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16015
    shlibpath_var=LD_LIBRARY_PATH
16016
  else
16017
    # With GCC up to 2.95.x, collect2 would create an import file
16018
    # for dependence libraries.  The import file would start with
16019
    # the line '#! .'.  This would cause the generated library to
16020
    # depend on '.', always an invalid library.  This was fixed in
16021
    # development snapshots of GCC prior to 3.0.
16022
    case $host_os in
16023
      aix4 | aix4.[01] | aix4.[01].*)
16024
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16025
	   echo ' yes '
16026
	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16027
	:
16028
      else
16029
	can_build_shared=no
16030
      fi
16031
      ;;
16032
    esac
16033
    # Using Import Files as archive members, it is possible to support
16034
    # filename-based versioning of shared library archives on AIX. While
16035
    # this would work for both with and without runtime linking, it will
16036
    # prevent static linking of such archives. So we do filename-based
16037
    # shared library versioning with .so extension only, which is used
16038
    # when both runtime linking and shared linking is enabled.
16039
    # Unfortunately, runtime linking may impact performance, so we do
16040
    # not want this to be the default eventually. Also, we use the
16041
    # versioned .so libs for executables only if there is the -brtl
16042
    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16043
    # To allow for filename-based versioning support, we need to create
16044
    # libNAME.so.V as an archive file, containing:
16045
    # *) an Import File, referring to the versioned filename of the
16046
    #    archive as well as the shared archive member, telling the
16047
    #    bitwidth (32 or 64) of that shared object, and providing the
16048
    #    list of exported symbols of that shared object, eventually
16049
    #    decorated with the 'weak' keyword
16050
    # *) the shared object with the F_LOADONLY flag set, to really avoid
16051
    #    it being seen by the linker.
16052
    # At run time we better use the real file rather than another symlink,
16053
    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16054
 
16055
    case $with_aix_soname,$aix_use_runtimelinking in
16056
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16057
    # soname into executable. Probably we can add versioning support to
16058
    # collect2, so additional links can be useful in future.
16059
    aix,yes) # traditional libtool
16060
      dynamic_linker='AIX unversionable lib.so'
16061
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16062
      # instead of lib<name>.a to let people know that these are not
16063
      # typical AIX shared libraries.
16064
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16065
      ;;
16066
    aix,no) # traditional AIX only
16067
      dynamic_linker='AIX lib.a(lib.so.V)'
16068
      # We preserve .a as extension for shared libraries through AIX4.2
16069
      # and later when we are not doing run time linking.
16070
      library_names_spec='$libname$release.a $libname.a'
16071
      soname_spec='$libname$release$shared_ext$major'
16072
      ;;
16073
    svr4,*) # full svr4 only
16074
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16075
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16076
      # We do not specify a path in Import Files, so LIBPATH fires.
16077
      shlibpath_overrides_runpath=yes
16078
      ;;
16079
    *,yes) # both, prefer svr4
16080
      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16081
      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16082
      # unpreferred sharedlib libNAME.a needs extra handling
16083
      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16084
      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16085
      # We do not specify a path in Import Files, so LIBPATH fires.
16086
      shlibpath_overrides_runpath=yes
16087
      ;;
16088
    *,no) # both, prefer aix
16089
      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16090
      library_names_spec='$libname$release.a $libname.a'
16091
      soname_spec='$libname$release$shared_ext$major'
16092
      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16093
      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16094
      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16095
      ;;
16096
    esac
16097
    shlibpath_var=LIBPATH
16098
  fi
16099
  ;;
16100
 
16101
amigaos*)
16102
  case $host_cpu in
16103
  powerpc)
16104
    # Since July 2007 AmigaOS4 officially supports .so libraries.
16105
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16106
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16107
    ;;
16108
  m68k)
16109
    library_names_spec='$libname.ixlibrary $libname.a'
16110
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16111
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16112
    ;;
16113
  esac
16114
  ;;
16115
 
16116
beos*)
16117
  library_names_spec='$libname$shared_ext'
16118
  dynamic_linker="$host_os ld.so"
16119
  shlibpath_var=LIBRARY_PATH
16120
  ;;
16121
 
16122
bsdi[45]*)
16123
  version_type=linux # correct to gnu/linux during the next big refactor
16124
  need_version=no
16125
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16126
  soname_spec='$libname$release$shared_ext$major'
16127
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16128
  shlibpath_var=LD_LIBRARY_PATH
16129
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16130
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16131
  # the default ld.so.conf also contains /usr/contrib/lib and
16132
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16133
  # libtool to hard-code these into programs
16134
  ;;
16135
 
16136
cygwin* | msys* | mingw* | pw32* | cegcc*)
16137
  version_type=windows
16138
  shrext_cmds=.dll
16139
  need_version=no
16140
  need_lib_prefix=no
16141
 
16142
  case $GCC,$cc_basename in
16143
  yes,*)
16144
    # gcc
16145
    library_names_spec='$libname.dll.a'
16146
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16147
    postinstall_cmds='base_file=`basename \$file`~
16148
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16149
      dldir=$destdir/`dirname \$dlpath`~
16150
      test -d \$dldir || mkdir -p \$dldir~
16151
      $install_prog $dir/$dlname \$dldir/$dlname~
16152
      chmod a+x \$dldir/$dlname~
16153
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16154
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16155
      fi'
16156
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16157
      dlpath=$dir/\$dldll~
16158
       $RM \$dlpath'
16159
    shlibpath_overrides_runpath=yes
16160
 
16161
    case $host_os in
16162
    cygwin*)
16163
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16164
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16165
 
16166
      ;;
16167
    msys*)
16168
      # MSYS DLLs use 'msys-' prefix rather than 'lib'
16169
      soname_spec='`echo $libname | sed -e 's/^lib/msys-/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16170
 
16171
      ;;
16172
    mingw* | cegcc*)
16173
      # MinGW DLLs use traditional 'lib' prefix
16174
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16175
      ;;
16176
    pw32*)
16177
      # pw32 DLLs use 'pw' prefix rather than 'lib'
16178
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16179
      ;;
16180
    esac
16181
    dynamic_linker='Win32 ld.exe'
16182
    ;;
16183
 
16184
  *,cl*)
16185
    # Native MSVC
16186
    libname_spec='$name'
16187
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16188
    library_names_spec='$libname.dll.lib'
16189
 
16190
    case $build_os in
16191
    mingw*)
16192
      sys_lib_search_path_spec=
16193
      lt_save_ifs=$IFS
16194
      IFS=';'
16195
      for lt_path in $LIB
16196
      do
16197
        IFS=$lt_save_ifs
16198
        # Let DOS variable expansion print the short 8.3 style file name.
16199
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16200
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16201
      done
16202
      IFS=$lt_save_ifs
16203
      # Convert to MSYS style.
16204
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16205
      ;;
16206
    cygwin* | msys*)
16207
      # Convert to unix form, then to dos form, then back to unix form
16208
      # but this time dos style (no spaces!) so that the unix form looks
16209
      # like /cygdrive/c/PROGRA~1:/cygdr...
16210
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16211
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16212
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16213
      ;;
16214
    *)
16215
      sys_lib_search_path_spec=$LIB
16216
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16217
        # It is most probably a Windows format PATH.
16218
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16219
      else
16220
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16221
      fi
16222
      # FIXME: find the short name or the path components, as spaces are
16223
      # common. (e.g. "Program Files" -> "PROGRA~1")
16224
      ;;
16225
    esac
16226
 
16227
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16228
    postinstall_cmds='base_file=`basename \$file`~
16229
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16230
      dldir=$destdir/`dirname \$dlpath`~
16231
      test -d \$dldir || mkdir -p \$dldir~
16232
      $install_prog $dir/$dlname \$dldir/$dlname'
16233
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16234
      dlpath=$dir/\$dldll~
16235
       $RM \$dlpath'
16236
    shlibpath_overrides_runpath=yes
16237
    dynamic_linker='Win32 link.exe'
16238
    ;;
16239
 
16240
  *)
16241
    # Assume MSVC wrapper
16242
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16243
    dynamic_linker='Win32 ld.exe'
16244
    ;;
16245
  esac
16246
  # FIXME: first we should search . and the directory the executable is in
16247
  shlibpath_var=PATH
16248
  ;;
16249
 
16250
darwin* | rhapsody*)
16251
  dynamic_linker="$host_os dyld"
16252
  version_type=darwin
16253
  need_lib_prefix=no
16254
  need_version=no
16255
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16256
  soname_spec='$libname$release$major$shared_ext'
16257
  shlibpath_overrides_runpath=yes
16258
  shlibpath_var=DYLD_LIBRARY_PATH
16259
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16260
 
16261
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16262
  ;;
16263
 
16264
dgux*)
16265
  version_type=linux # correct to gnu/linux during the next big refactor
16266
  need_lib_prefix=no
16267
  need_version=no
16268
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16269
  soname_spec='$libname$release$shared_ext$major'
16270
  shlibpath_var=LD_LIBRARY_PATH
16271
  ;;
16272
 
16273
freebsd* | dragonfly*)
16274
  # DragonFly does not have aout.  When/if they implement a new
16275
  # versioning mechanism, adjust this.
16276
  if test -x /usr/bin/objformat; then
16277
    objformat=`/usr/bin/objformat`
16278
  else
16279
    case $host_os in
16280
    freebsd[23].*) objformat=aout ;;
16281
    *) objformat=elf ;;
16282
    esac
16283
  fi
16284
  version_type=freebsd-$objformat
16285
  case $version_type in
16286
    freebsd-elf*)
16287
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16288
      soname_spec='$libname$release$shared_ext$major'
16289
      need_version=no
16290
      need_lib_prefix=no
16291
      ;;
16292
    freebsd-*)
16293
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16294
      need_version=yes
16295
      ;;
16296
  esac
16297
  shlibpath_var=LD_LIBRARY_PATH
16298
  case $host_os in
16299
  freebsd2.*)
16300
    shlibpath_overrides_runpath=yes
16301
    ;;
16302
  freebsd3.[01]* | freebsdelf3.[01]*)
16303
    shlibpath_overrides_runpath=yes
16304
    hardcode_into_libs=yes
16305
    ;;
16306
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16307
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16308
    shlibpath_overrides_runpath=no
16309
    hardcode_into_libs=yes
16310
    ;;
16311
  *) # from 4.6 on, and DragonFly
16312
    shlibpath_overrides_runpath=yes
16313
    hardcode_into_libs=yes
16314
    ;;
16315
  esac
16316
  ;;
16317
 
16318
haiku*)
16319
  version_type=linux # correct to gnu/linux during the next big refactor
16320
  need_lib_prefix=no
16321
  need_version=no
16322
  dynamic_linker="$host_os runtime_loader"
16323
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16324
  soname_spec='$libname$release$shared_ext$major'
16325
  shlibpath_var=LIBRARY_PATH
16326
  shlibpath_overrides_runpath=no
16327
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16328
  hardcode_into_libs=yes
16329
  ;;
16330
 
16331
hpux9* | hpux10* | hpux11*)
16332
  # Give a soname corresponding to the major version so that dld.sl refuses to
16333
  # link against other versions.
16334
  version_type=sunos
16335
  need_lib_prefix=no
16336
  need_version=no
16337
  case $host_cpu in
16338
  ia64*)
16339
    shrext_cmds='.so'
16340
    hardcode_into_libs=yes
16341
    dynamic_linker="$host_os dld.so"
16342
    shlibpath_var=LD_LIBRARY_PATH
16343
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16344
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16345
    soname_spec='$libname$release$shared_ext$major'
16346
    if test 32 = "$HPUX_IA64_MODE"; then
16347
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16348
      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16349
    else
16350
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16351
      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16352
    fi
16353
    ;;
16354
  hppa*64*)
16355
    shrext_cmds='.sl'
16356
    hardcode_into_libs=yes
16357
    dynamic_linker="$host_os dld.sl"
16358
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16359
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16360
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16361
    soname_spec='$libname$release$shared_ext$major'
16362
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16363
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16364
    ;;
16365
  *)
16366
    shrext_cmds='.sl'
16367
    dynamic_linker="$host_os dld.sl"
16368
    shlibpath_var=SHLIB_PATH
16369
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16370
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371
    soname_spec='$libname$release$shared_ext$major'
16372
    ;;
16373
  esac
16374
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16375
  postinstall_cmds='chmod 555 $lib'
16376
  # or fails outright, so override atomically:
16377
  install_override_mode=555
16378
  ;;
16379
 
16380
interix[3-9]*)
16381
  version_type=linux # correct to gnu/linux during the next big refactor
16382
  need_lib_prefix=no
16383
  need_version=no
16384
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16385
  soname_spec='$libname$release$shared_ext$major'
16386
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16387
  shlibpath_var=LD_LIBRARY_PATH
16388
  shlibpath_overrides_runpath=no
16389
  hardcode_into_libs=yes
16390
  ;;
16391
 
16392
irix5* | irix6* | nonstopux*)
16393
  case $host_os in
16394
    nonstopux*) version_type=nonstopux ;;
16395
    *)
16396
	if test yes = "$lt_cv_prog_gnu_ld"; then
16397
		version_type=linux # correct to gnu/linux during the next big refactor
16398
	else
16399
		version_type=irix
16400
	fi ;;
16401
  esac
16402
  need_lib_prefix=no
16403
  need_version=no
16404
  soname_spec='$libname$release$shared_ext$major'
16405
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16406
  case $host_os in
16407
  irix5* | nonstopux*)
16408
    libsuff= shlibsuff=
16409
    ;;
16410
  *)
16411
    case $LD in # libtool.m4 will add one of these switches to LD
16412
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16413
      libsuff= shlibsuff= libmagic=32-bit;;
16414
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16415
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16416
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16417
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16418
    *) libsuff= shlibsuff= libmagic=never-match;;
16419
    esac
16420
    ;;
16421
  esac
16422
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16423
  shlibpath_overrides_runpath=no
16424
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16425
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16426
  hardcode_into_libs=yes
16427
  ;;
16428
 
16429
# No shared lib support for Linux oldld, aout, or coff.
16430
linux*oldld* | linux*aout* | linux*coff*)
16431
  dynamic_linker=no
16432
  ;;
16433
 
16434
linux*android*)
16435
  version_type=none # Android doesn't support versioned libraries.
16436
  need_lib_prefix=no
16437
  need_version=no
16438
  library_names_spec='$libname$release$shared_ext'
16439
  soname_spec='$libname$release$shared_ext'
16440
  finish_cmds=
16441
  shlibpath_var=LD_LIBRARY_PATH
16442
  shlibpath_overrides_runpath=yes
16443
 
16444
  # This implies no fast_install, which is unacceptable.
16445
  # Some rework will be needed to allow for fast_install
16446
  # before this can be enabled.
16447
  hardcode_into_libs=yes
16448
 
16449
  dynamic_linker='Android linker'
16450
  # Don't embed -rpath directories since the linker doesn't support them.
16451
  hardcode_libdir_flag_spec_CXX='-L$libdir'
16452
  ;;
16453
 
16454
# This must be glibc/ELF.
16455
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16456
  version_type=linux # correct to gnu/linux during the next big refactor
16457
  need_lib_prefix=no
16458
  need_version=no
16459
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16460
  soname_spec='$libname$release$shared_ext$major'
16461
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16462
  shlibpath_var=LD_LIBRARY_PATH
16463
  shlibpath_overrides_runpath=no
16464
 
16465
  # Some binutils ld are patched to set DT_RUNPATH
16466
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16467
  $as_echo_n "(cached) " >&6
16468
else
16469
  lt_cv_shlibpath_overrides_runpath=no
16470
    save_LDFLAGS=$LDFLAGS
16471
    save_libdir=$libdir
16472
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16473
	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16474
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475
/* end confdefs.h.  */
16476
 
16477
int
16478
main ()
16479
{
16480
 
16481
  ;
16482
  return 0;
16483
}
16484
_ACEOF
16485
if ac_fn_cxx_try_link "$LINENO"; then :
16486
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16487
  lt_cv_shlibpath_overrides_runpath=yes
16488
fi
16489
fi
16490
rm -f core conftest.err conftest.$ac_objext \
16491
    conftest$ac_exeext conftest.$ac_ext
16492
    LDFLAGS=$save_LDFLAGS
16493
    libdir=$save_libdir
16494
 
16495
fi
16496
 
16497
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16498
 
16499
  # This implies no fast_install, which is unacceptable.
16500
  # Some rework will be needed to allow for fast_install
16501
  # before this can be enabled.
16502
  hardcode_into_libs=yes
16503
 
16504
  # Ideally, we could use ldconfig to report *all* directores which are
16505
  # searched for libraries, however this is still not possible.  Aside from not
16506
  # being certain /sbin/ldconfig is available, command
16507
  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16508
  # even though it is searched at run-time.  Try to do the best guess by
16509
  # appending ld.so.conf contents (and includes) to the search path.
16510
  if test -f /etc/ld.so.conf; then
16511
    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;s/"//g;/^$/d' | tr '\n' ' '`
16512
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16513
  fi
16514
 
16515
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16516
  # powerpc, because MkLinux only supported shared libraries with the
16517
  # GNU dynamic linker.  Since this was broken with cross compilers,
16518
  # most powerpc-linux boxes support dynamic linking these days and
16519
  # people can always --disable-shared, the test was removed, and we
16520
  # assume the GNU/Linux dynamic linker is in use.
16521
  dynamic_linker='GNU/Linux ld.so'
16522
  ;;
16523
 
16524
netbsd*)
16525
  version_type=sunos
16526
  need_lib_prefix=no
16527
  need_version=no
16528
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16529
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16530
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16531
    dynamic_linker='NetBSD (a.out) ld.so'
16532
  else
16533
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16534
    soname_spec='$libname$release$shared_ext$major'
16535
    dynamic_linker='NetBSD ld.elf_so'
16536
  fi
16537
  shlibpath_var=LD_LIBRARY_PATH
16538
  shlibpath_overrides_runpath=yes
16539
  hardcode_into_libs=yes
16540
  ;;
16541
 
16542
newsos6)
16543
  version_type=linux # correct to gnu/linux during the next big refactor
16544
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16545
  shlibpath_var=LD_LIBRARY_PATH
16546
  shlibpath_overrides_runpath=yes
16547
  ;;
16548
 
16549
*nto* | *qnx*)
16550
  version_type=qnx
16551
  need_lib_prefix=no
16552
  need_version=no
16553
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16554
  soname_spec='$libname$release$shared_ext$major'
16555
  shlibpath_var=LD_LIBRARY_PATH
16556
  shlibpath_overrides_runpath=no
16557
  hardcode_into_libs=yes
16558
  dynamic_linker='ldqnx.so'
16559
  ;;
16560
 
16561
openbsd* | bitrig*)
16562
  version_type=sunos
16563
  sys_lib_dlsearch_path_spec=/usr/lib
16564
  need_lib_prefix=no
16565
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16566
    need_version=no
16567
  else
16568
    need_version=yes
16569
  fi
16570
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16571
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16572
  shlibpath_var=LD_LIBRARY_PATH
16573
  shlibpath_overrides_runpath=yes
16574
  ;;
16575
 
16576
os2*)
16577
  libname_spec='$name'
16578
  version_type=windows
16579
  shrext_cmds=.dll
16580
  need_version=no
16581
  need_lib_prefix=no
16582
  # OS/2 can only load a DLL with a base name of 8 characters or less.
16583
  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16584
    v=$($ECHO $release$versuffix | tr -d .-);
16585
    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16586
    $ECHO $n$v`$shared_ext'
16587
  library_names_spec='${libname}_dll.$libext'
16588
  dynamic_linker='OS/2 ld.exe'
16589
  shlibpath_var=BEGINLIBPATH
16590
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16591
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16592
  postinstall_cmds='base_file=`basename \$file`~
16593
    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16594
    dldir=$destdir/`dirname \$dlpath`~
16595
    test -d \$dldir || mkdir -p \$dldir~
16596
    $install_prog $dir/$dlname \$dldir/$dlname~
16597
    chmod a+x \$dldir/$dlname~
16598
    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16599
      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16600
    fi'
16601
  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16602
    dlpath=$dir/\$dldll~
16603
    $RM \$dlpath'
16604
  ;;
16605
 
16606
osf3* | osf4* | osf5*)
16607
  version_type=osf
16608
  need_lib_prefix=no
16609
  need_version=no
16610
  soname_spec='$libname$release$shared_ext$major'
16611
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16612
  shlibpath_var=LD_LIBRARY_PATH
16613
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16614
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16615
  ;;
16616
 
16617
rdos*)
16618
  dynamic_linker=no
16619
  ;;
16620
 
16621
solaris*)
16622
  version_type=linux # correct to gnu/linux during the next big refactor
16623
  need_lib_prefix=no
16624
  need_version=no
16625
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16626
  soname_spec='$libname$release$shared_ext$major'
16627
  shlibpath_var=LD_LIBRARY_PATH
16628
  shlibpath_overrides_runpath=yes
16629
  hardcode_into_libs=yes
16630
  # ldd complains unless libraries are executable
16631
  postinstall_cmds='chmod +x $lib'
16632
  ;;
16633
 
16634
sunos4*)
16635
  version_type=sunos
16636
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16637
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16638
  shlibpath_var=LD_LIBRARY_PATH
16639
  shlibpath_overrides_runpath=yes
16640
  if test yes = "$with_gnu_ld"; then
16641
    need_lib_prefix=no
16642
  fi
16643
  need_version=yes
16644
  ;;
16645
 
16646
sysv4 | sysv4.3*)
16647
  version_type=linux # correct to gnu/linux during the next big refactor
16648
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16649
  soname_spec='$libname$release$shared_ext$major'
16650
  shlibpath_var=LD_LIBRARY_PATH
16651
  case $host_vendor in
16652
    sni)
16653
      shlibpath_overrides_runpath=no
16654
      need_lib_prefix=no
16655
      runpath_var=LD_RUN_PATH
16656
      ;;
16657
    siemens)
16658
      need_lib_prefix=no
16659
      ;;
16660
    motorola)
16661
      need_lib_prefix=no
16662
      need_version=no
16663
      shlibpath_overrides_runpath=no
16664
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16665
      ;;
16666
  esac
16667
  ;;
16668
 
16669
sysv4*MP*)
16670
  if test -d /usr/nec; then
16671
    version_type=linux # correct to gnu/linux during the next big refactor
16672
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16673
    soname_spec='$libname$shared_ext.$major'
16674
    shlibpath_var=LD_LIBRARY_PATH
16675
  fi
16676
  ;;
16677
 
16678
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16679
  version_type=sco
16680
  need_lib_prefix=no
16681
  need_version=no
16682
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16683
  soname_spec='$libname$release$shared_ext$major'
16684
  shlibpath_var=LD_LIBRARY_PATH
16685
  shlibpath_overrides_runpath=yes
16686
  hardcode_into_libs=yes
16687
  if test yes = "$with_gnu_ld"; then
16688
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16689
  else
16690
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16691
    case $host_os in
16692
      sco3.2v5*)
16693
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16694
	;;
16695
    esac
16696
  fi
16697
  sys_lib_dlsearch_path_spec='/usr/lib'
16698
  ;;
16699
 
16700
tpf*)
16701
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16702
  version_type=linux # correct to gnu/linux during the next big refactor
16703
  need_lib_prefix=no
16704
  need_version=no
16705
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16706
  shlibpath_var=LD_LIBRARY_PATH
16707
  shlibpath_overrides_runpath=no
16708
  hardcode_into_libs=yes
16709
  ;;
16710
 
16711
uts4*)
16712
  version_type=linux # correct to gnu/linux during the next big refactor
16713
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16714
  soname_spec='$libname$release$shared_ext$major'
16715
  shlibpath_var=LD_LIBRARY_PATH
16716
  ;;
16717
 
16718
*)
16719
  dynamic_linker=no
16720
  ;;
16721
esac
16722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16723
$as_echo "$dynamic_linker" >&6; }
16724
test no = "$dynamic_linker" && can_build_shared=no
16725
 
16726
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16727
if test yes = "$GCC"; then
16728
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16729
fi
16730
 
16731
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16732
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16733
fi
16734
 
16735
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16736
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16737
fi
16738
 
16739
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16740
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16741
 
16742
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16743
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16744
 
16745
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16746
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16747
 
16748
 
16749
 
16750
 
16751
 
16752
 
16753
 
16754
 
16755
 
16756
 
16757
 
16758
 
16759
 
16760
 
16761
 
16762
 
16763
 
16764
 
16765
 
16766
 
16767
 
16768
 
16769
 
16770
 
16771
 
16772
 
16773
 
16774
 
16775
 
16776
 
16777
 
16778
 
16779
 
16780
 
16781
 
16782
 
16783
 
16784
 
16785
 
16786
 
16787
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16788
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16789
hardcode_action_CXX=
16790
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16791
   test -n "$runpath_var_CXX" ||
16792
   test yes = "$hardcode_automatic_CXX"; then
16793
 
16794
  # We can hardcode non-existent directories.
16795
  if test no != "$hardcode_direct_CXX" &&
16796
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16797
     # have to relink, otherwise we might link with an installed library
16798
     # when we should be linking with a yet-to-be-installed one
16799
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16800
     test no != "$hardcode_minus_L_CXX"; then
16801
    # Linking always hardcodes the temporary library directory.
16802
    hardcode_action_CXX=relink
16803
  else
16804
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16805
    hardcode_action_CXX=immediate
16806
  fi
16807
else
16808
  # We cannot hardcode anything, or else we can only hardcode existing
16809
  # directories.
16810
  hardcode_action_CXX=unsupported
16811
fi
16812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16813
$as_echo "$hardcode_action_CXX" >&6; }
16814
 
16815
if test relink = "$hardcode_action_CXX" ||
16816
   test yes = "$inherit_rpath_CXX"; then
16817
  # Fast installation is not supported
16818
  enable_fast_install=no
16819
elif test yes = "$shlibpath_overrides_runpath" ||
16820
     test no = "$enable_shared"; then
16821
  # Fast installation is not necessary
16822
  enable_fast_install=needless
16823
fi
16824
 
16825
 
16826
 
16827
 
16828
 
16829
 
16830
 
16831
  fi # test -n "$compiler"
16832
 
16833
  CC=$lt_save_CC
16834
  CFLAGS=$lt_save_CFLAGS
16835
  LDCXX=$LD
16836
  LD=$lt_save_LD
16837
  GCC=$lt_save_GCC
16838
  with_gnu_ld=$lt_save_with_gnu_ld
16839
  lt_cv_path_LDCXX=$lt_cv_path_LD
16840
  lt_cv_path_LD=$lt_save_path_LD
16841
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16842
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16843
fi # test yes != "$_lt_caught_CXX_error"
16844
 
16845
ac_ext=c
16846
ac_cpp='$CPP $CPPFLAGS'
16847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16850
 
16851
 
16852
 
16853
 
16854
 
16855
 
16856
ac_config_files="$ac_config_files Makefile vertlib/Makefile cmdlib/Makefile versionlib/Makefile acf_src/Makefile cdi_src/Makefile eagle_src/Makefile frb_src/Makefile gen_src/Makefile mentor_src/Makefile net_src/Makefile orcad_src/Makefile pads_src/Makefile protel_src/Makefile rep2_src/Makefile rep_src/Makefile"
16857
 
16858
cat >confcache <<\_ACEOF
16859
# This file is a shell script that caches the results of configure
16860
# tests run on this system so they can be shared between configure
16861
# scripts and configure runs, see configure's option --config-cache.
16862
# It is not useful on other systems.  If it contains results you don't
16863
# want to keep, you may remove or edit it.
16864
#
16865
# config.status only pays attention to the cache file if you give it
16866
# the --recheck option to rerun configure.
16867
#
16868
# `ac_cv_env_foo' variables (set or unset) will be overridden when
16869
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16870
# following values.
16871
 
16872
_ACEOF
16873
 
16874
# The following way of writing the cache mishandles newlines in values,
16875
# but we know of no workaround that is simple, portable, and efficient.
16876
# So, we kill variables containing newlines.
16877
# Ultrix sh set writes to stderr and can't be redirected directly,
16878
# and sets the high bit in the cache file unless we assign to the vars.
16879
(
16880
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16881
    eval ac_val=\$$ac_var
16882
    case $ac_val in #(
16883
    *${as_nl}*)
16884
      case $ac_var in #(
16885
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16886
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16887
      esac
16888
      case $ac_var in #(
16889
      _ | IFS | as_nl) ;; #(
16890
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16891
      *) { eval $ac_var=; unset $ac_var;} ;;
16892
      esac ;;
16893
    esac
16894
  done
16895
 
16896
  (set) 2>&1 |
16897
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16898
    *${as_nl}ac_space=\ *)
16899
      # `set' does not quote correctly, so add quotes: double-quote
16900
      # substitution turns \\\\ into \\, and sed turns \\ into \.
16901
      sed -n \
16902
	"s/'/'\\\\''/g;
16903
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16904
      ;; #(
16905
    *)
16906
      # `set' quotes correctly as required by POSIX, so do not add quotes.
16907
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16908
      ;;
16909
    esac |
16910
    sort
16911
) |
16912
  sed '
16913
     /^ac_cv_env_/b end
16914
     t clear
16915
     :clear
16916
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16917
     t end
16918
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16919
     :end' >>confcache
16920
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16921
  if test -w "$cache_file"; then
16922
    if test "x$cache_file" != "x/dev/null"; then
16923
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16924
$as_echo "$as_me: updating cache $cache_file" >&6;}
16925
      if test ! -f "$cache_file" || test -h "$cache_file"; then
16926
	cat confcache >"$cache_file"
16927
      else
16928
        case $cache_file in #(
16929
        */* | ?:*)
16930
	  mv -f confcache "$cache_file"$$ &&
16931
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16932
        *)
16933
	  mv -f confcache "$cache_file" ;;
16934
	esac
16935
      fi
16936
    fi
16937
  else
16938
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16939
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16940
  fi
16941
fi
16942
rm -f confcache
16943
 
16944
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16945
# Let make expand exec_prefix.
16946
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16947
 
16948
DEFS=-DHAVE_CONFIG_H
16949
 
16950
ac_libobjs=
16951
ac_ltlibobjs=
16952
U=
16953
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16954
  # 1. Remove the extension, and $U if already installed.
16955
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16956
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16957
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16958
  #    will be set to the directory where LIBOBJS objects are built.
16959
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16960
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16961
done
16962
LIBOBJS=$ac_libobjs
16963
 
16964
LTLIBOBJS=$ac_ltlibobjs
16965
 
16966
 
16967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16968
$as_echo_n "checking that generated files are newer than configure... " >&6; }
16969
   if test -n "$am_sleep_pid"; then
16970
     # Hide warnings about reused PIDs.
16971
     wait $am_sleep_pid 2>/dev/null
16972
   fi
16973
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16974
$as_echo "done" >&6; }
16975
 if test -n "$EXEEXT"; then
16976
  am__EXEEXT_TRUE=
16977
  am__EXEEXT_FALSE='#'
16978
else
16979
  am__EXEEXT_TRUE='#'
16980
  am__EXEEXT_FALSE=
16981
fi
16982
 
16983
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16984
  as_fn_error $? "conditional \"AMDEP\" was never defined.
16985
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986
fi
16987
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16988
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16989
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990
fi
16991
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16992
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16993
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16994
fi
16995
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16996
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16997
Usually this means the macro was only invoked conditionally." "$LINENO" 5
16998
fi
16999
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17000
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17001
Usually this means the macro was only invoked conditionally." "$LINENO" 5
17002
fi
17003
 
17004
: "${CONFIG_STATUS=./config.status}"
17005
ac_write_fail=0
17006
ac_clean_files_save=$ac_clean_files
17007
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17008
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17009
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17010
as_write_fail=0
17011
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17012
#! $SHELL
17013
# Generated by $as_me.
17014
# Run this file to recreate the current configuration.
17015
# Compiler output produced by configure, useful for debugging
17016
# configure, is in config.log if it exists.
17017
 
17018
debug=false
17019
ac_cs_recheck=false
17020
ac_cs_silent=false
17021
 
17022
SHELL=\${CONFIG_SHELL-$SHELL}
17023
export SHELL
17024
_ASEOF
17025
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17026
## -------------------- ##
17027
## M4sh Initialization. ##
17028
## -------------------- ##
17029
 
17030
# Be more Bourne compatible
17031
DUALCASE=1; export DUALCASE # for MKS sh
17032
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17033
  emulate sh
17034
  NULLCMD=:
17035
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17036
  # is contrary to our usage.  Disable this feature.
17037
  alias -g '${1+"$@"}'='"$@"'
17038
  setopt NO_GLOB_SUBST
17039
else
17040
  case `(set -o) 2>/dev/null` in #(
17041
  *posix*) :
17042
    set -o posix ;; #(
17043
  *) :
17044
     ;;
17045
esac
17046
fi
17047
 
17048
 
17049
as_nl='
17050
'
17051
export as_nl
17052
# Printing a long string crashes Solaris 7 /usr/bin/printf.
17053
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17054
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17055
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17056
# Prefer a ksh shell builtin over an external printf program on Solaris,
17057
# but without wasting forks for bash or zsh.
17058
if test -z "$BASH_VERSION$ZSH_VERSION" \
17059
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17060
  as_echo='print -r --'
17061
  as_echo_n='print -rn --'
17062
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17063
  as_echo='printf %s\n'
17064
  as_echo_n='printf %s'
17065
else
17066
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17067
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17068
    as_echo_n='/usr/ucb/echo -n'
17069
  else
17070
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17071
    as_echo_n_body='eval
17072
      arg=$1;
17073
      case $arg in #(
17074
      *"$as_nl"*)
17075
	expr "X$arg" : "X\\(.*\\)$as_nl";
17076
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17077
      esac;
17078
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17079
    '
17080
    export as_echo_n_body
17081
    as_echo_n='sh -c $as_echo_n_body as_echo'
17082
  fi
17083
  export as_echo_body
17084
  as_echo='sh -c $as_echo_body as_echo'
17085
fi
17086
 
17087
# The user is always right.
17088
if test "${PATH_SEPARATOR+set}" != set; then
17089
  PATH_SEPARATOR=:
17090
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17091
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17092
      PATH_SEPARATOR=';'
17093
  }
17094
fi
17095
 
17096
 
17097
# IFS
17098
# We need space, tab and new line, in precisely that order.  Quoting is
17099
# there to prevent editors from complaining about space-tab.
17100
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17101
# splitting by setting IFS to empty value.)
17102
IFS=" ""	$as_nl"
17103
 
17104
# Find who we are.  Look in the path if we contain no directory separator.
17105
as_myself=
17106
case $0 in #((
17107
  *[\\/]* ) as_myself=$0 ;;
17108
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17109
for as_dir in $PATH
17110
do
17111
  IFS=$as_save_IFS
17112
  test -z "$as_dir" && as_dir=.
17113
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17114
  done
17115
IFS=$as_save_IFS
17116
 
17117
     ;;
17118
esac
17119
# We did not find ourselves, most probably we were run as `sh COMMAND'
17120
# in which case we are not to be found in the path.
17121
if test "x$as_myself" = x; then
17122
  as_myself=$0
17123
fi
17124
if test ! -f "$as_myself"; then
17125
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17126
  exit 1
17127
fi
17128
 
17129
# Unset variables that we do not need and which cause bugs (e.g. in
17130
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17131
# suppresses any "Segmentation fault" message there.  '((' could
17132
# trigger a bug in pdksh 5.2.14.
17133
for as_var in BASH_ENV ENV MAIL MAILPATH
17134
do eval test x\${$as_var+set} = xset \
17135
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17136
done
17137
PS1='$ '
17138
PS2='> '
17139
PS4='+ '
17140
 
17141
# NLS nuisances.
17142
LC_ALL=C
17143
export LC_ALL
17144
LANGUAGE=C
17145
export LANGUAGE
17146
 
17147
# CDPATH.
17148
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17149
 
17150
 
17151
# as_fn_error STATUS ERROR [LINENO LOG_FD]
17152
# ----------------------------------------
17153
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17154
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17155
# script with STATUS, using 1 if that was 0.
17156
as_fn_error ()
17157
{
17158
  as_status=$1; test $as_status -eq 0 && as_status=1
17159
  if test "$4"; then
17160
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17161
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17162
  fi
17163
  $as_echo "$as_me: error: $2" >&2
17164
  as_fn_exit $as_status
17165
} # as_fn_error
17166
 
17167
 
17168
# as_fn_set_status STATUS
17169
# -----------------------
17170
# Set $? to STATUS, without forking.
17171
as_fn_set_status ()
17172
{
17173
  return $1
17174
} # as_fn_set_status
17175
 
17176
# as_fn_exit STATUS
17177
# -----------------
17178
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17179
as_fn_exit ()
17180
{
17181
  set +e
17182
  as_fn_set_status $1
17183
  exit $1
17184
} # as_fn_exit
17185
 
17186
# as_fn_unset VAR
17187
# ---------------
17188
# Portably unset VAR.
17189
as_fn_unset ()
17190
{
17191
  { eval $1=; unset $1;}
17192
}
17193
as_unset=as_fn_unset
17194
# as_fn_append VAR VALUE
17195
# ----------------------
17196
# Append the text in VALUE to the end of the definition contained in VAR. Take
17197
# advantage of any shell optimizations that allow amortized linear growth over
17198
# repeated appends, instead of the typical quadratic growth present in naive
17199
# implementations.
17200
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17201
  eval 'as_fn_append ()
17202
  {
17203
    eval $1+=\$2
17204
  }'
17205
else
17206
  as_fn_append ()
17207
  {
17208
    eval $1=\$$1\$2
17209
  }
17210
fi # as_fn_append
17211
 
17212
# as_fn_arith ARG...
17213
# ------------------
17214
# Perform arithmetic evaluation on the ARGs, and store the result in the
17215
# global $as_val. Take advantage of shells that can avoid forks. The arguments
17216
# must be portable across $(()) and expr.
17217
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17218
  eval 'as_fn_arith ()
17219
  {
17220
    as_val=$(( $* ))
17221
  }'
17222
else
17223
  as_fn_arith ()
17224
  {
17225
    as_val=`expr "$@" || test $? -eq 1`
17226
  }
17227
fi # as_fn_arith
17228
 
17229
 
17230
if expr a : '\(a\)' >/dev/null 2>&1 &&
17231
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17232
  as_expr=expr
17233
else
17234
  as_expr=false
17235
fi
17236
 
17237
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17238
  as_basename=basename
17239
else
17240
  as_basename=false
17241
fi
17242
 
17243
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17244
  as_dirname=dirname
17245
else
17246
  as_dirname=false
17247
fi
17248
 
17249
as_me=`$as_basename -- "$0" ||
17250
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17251
	 X"$0" : 'X\(//\)$' \| \
17252
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17253
$as_echo X/"$0" |
17254
    sed '/^.*\/\([^/][^/]*\)\/*$/{
17255
	    s//\1/
17256
	    q
17257
	  }
17258
	  /^X\/\(\/\/\)$/{
17259
	    s//\1/
17260
	    q
17261
	  }
17262
	  /^X\/\(\/\).*/{
17263
	    s//\1/
17264
	    q
17265
	  }
17266
	  s/.*/./; q'`
17267
 
17268
# Avoid depending upon Character Ranges.
17269
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17270
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17271
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17272
as_cr_digits='0123456789'
17273
as_cr_alnum=$as_cr_Letters$as_cr_digits
17274
 
17275
ECHO_C= ECHO_N= ECHO_T=
17276
case `echo -n x` in #(((((
17277
-n*)
17278
  case `echo 'xy\c'` in
17279
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17280
  xy)  ECHO_C='\c';;
17281
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17282
       ECHO_T='	';;
17283
  esac;;
17284
*)
17285
  ECHO_N='-n';;
17286
esac
17287
 
17288
rm -f conf$$ conf$$.exe conf$$.file
17289
if test -d conf$$.dir; then
17290
  rm -f conf$$.dir/conf$$.file
17291
else
17292
  rm -f conf$$.dir
17293
  mkdir conf$$.dir 2>/dev/null
17294
fi
17295
if (echo >conf$$.file) 2>/dev/null; then
17296
  if ln -s conf$$.file conf$$ 2>/dev/null; then
17297
    as_ln_s='ln -s'
17298
    # ... but there are two gotchas:
17299
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17300
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17301
    # In both cases, we have to default to `cp -pR'.
17302
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17303
      as_ln_s='cp -pR'
17304
  elif ln conf$$.file conf$$ 2>/dev/null; then
17305
    as_ln_s=ln
17306
  else
17307
    as_ln_s='cp -pR'
17308
  fi
17309
else
17310
  as_ln_s='cp -pR'
17311
fi
17312
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17313
rmdir conf$$.dir 2>/dev/null
17314
 
17315
 
17316
# as_fn_mkdir_p
17317
# -------------
17318
# Create "$as_dir" as a directory, including parents if necessary.
17319
as_fn_mkdir_p ()
17320
{
17321
 
17322
  case $as_dir in #(
17323
  -*) as_dir=./$as_dir;;
17324
  esac
17325
  test -d "$as_dir" || eval $as_mkdir_p || {
17326
    as_dirs=
17327
    while :; do
17328
      case $as_dir in #(
17329
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17330
      *) as_qdir=$as_dir;;
17331
      esac
17332
      as_dirs="'$as_qdir' $as_dirs"
17333
      as_dir=`$as_dirname -- "$as_dir" ||
17334
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17335
	 X"$as_dir" : 'X\(//\)[^/]' \| \
17336
	 X"$as_dir" : 'X\(//\)$' \| \
17337
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17338
$as_echo X"$as_dir" |
17339
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17340
	    s//\1/
17341
	    q
17342
	  }
17343
	  /^X\(\/\/\)[^/].*/{
17344
	    s//\1/
17345
	    q
17346
	  }
17347
	  /^X\(\/\/\)$/{
17348
	    s//\1/
17349
	    q
17350
	  }
17351
	  /^X\(\/\).*/{
17352
	    s//\1/
17353
	    q
17354
	  }
17355
	  s/.*/./; q'`
17356
      test -d "$as_dir" && break
17357
    done
17358
    test -z "$as_dirs" || eval "mkdir $as_dirs"
17359
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17360
 
17361
 
17362
} # as_fn_mkdir_p
17363
if mkdir -p . 2>/dev/null; then
17364
  as_mkdir_p='mkdir -p "$as_dir"'
17365
else
17366
  test -d ./-p && rmdir ./-p
17367
  as_mkdir_p=false
17368
fi
17369
 
17370
 
17371
# as_fn_executable_p FILE
17372
# -----------------------
17373
# Test if FILE is an executable regular file.
17374
as_fn_executable_p ()
17375
{
17376
  test -f "$1" && test -x "$1"
17377
} # as_fn_executable_p
17378
as_test_x='test -x'
17379
as_executable_p=as_fn_executable_p
17380
 
17381
# Sed expression to map a string onto a valid CPP name.
17382
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17383
 
17384
# Sed expression to map a string onto a valid variable name.
17385
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17386
 
17387
 
17388
exec 6>&1
17389
## ----------------------------------- ##
17390
## Main body of $CONFIG_STATUS script. ##
17391
## ----------------------------------- ##
17392
_ASEOF
17393
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17394
 
17395
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17396
# Save the log message, to keep $0 and so on meaningful, and to
17397
# report actual input values of CONFIG_FILES etc. instead of their
17398
# values after options handling.
17399
ac_log="
17400
This file was extended by metal $as_me 1.2, which was
17401
generated by GNU Autoconf 2.69.  Invocation command line was
17402
 
17403
  CONFIG_FILES    = $CONFIG_FILES
17404
  CONFIG_HEADERS  = $CONFIG_HEADERS
17405
  CONFIG_LINKS    = $CONFIG_LINKS
17406
  CONFIG_COMMANDS = $CONFIG_COMMANDS
17407
  $ $0 $@
17408
 
17409
on `(hostname || uname -n) 2>/dev/null | sed 1q`
17410
"
17411
 
17412
_ACEOF
17413
 
17414
case $ac_config_files in *"
17415
"*) set x $ac_config_files; shift; ac_config_files=$*;;
17416
esac
17417
 
17418
case $ac_config_headers in *"
17419
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17420
esac
17421
 
17422
 
17423
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17424
# Files that config.status was made for.
17425
config_files="$ac_config_files"
17426
config_headers="$ac_config_headers"
17427
config_commands="$ac_config_commands"
17428
 
17429
_ACEOF
17430
 
17431
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17432
ac_cs_usage="\
17433
\`$as_me' instantiates files and other configuration actions
17434
from templates according to the current configuration.  Unless the files
17435
and actions are specified as TAGs, all are instantiated by default.
17436
 
17437
Usage: $0 [OPTION]... [TAG]...
17438
 
17439
  -h, --help       print this help, then exit
17440
  -V, --version    print version number and configuration settings, then exit
17441
      --config     print configuration, then exit
17442
  -q, --quiet, --silent
17443
                   do not print progress messages
17444
  -d, --debug      don't remove temporary files
17445
      --recheck    update $as_me by reconfiguring in the same conditions
17446
      --file=FILE[:TEMPLATE]
17447
                   instantiate the configuration file FILE
17448
      --header=FILE[:TEMPLATE]
17449
                   instantiate the configuration header FILE
17450
 
17451
Configuration files:
17452
$config_files
17453
 
17454
Configuration headers:
17455
$config_headers
17456
 
17457
Configuration commands:
17458
$config_commands
17459
 
17460
Report bugs to <mike@hamble.online>."
17461
 
17462
_ACEOF
17463
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17464
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17465
ac_cs_version="\\
17466
metal config.status 1.2
17467
configured by $0, generated by GNU Autoconf 2.69,
17468
  with options \\"\$ac_cs_config\\"
17469
 
17470
Copyright (C) 2012 Free Software Foundation, Inc.
17471
This config.status script is free software; the Free Software Foundation
17472
gives unlimited permission to copy, distribute and modify it."
17473
 
17474
ac_pwd='$ac_pwd'
17475
srcdir='$srcdir'
17476
INSTALL='$INSTALL'
17477
MKDIR_P='$MKDIR_P'
17478
AWK='$AWK'
17479
test -n "\$AWK" || AWK=awk
17480
_ACEOF
17481
 
17482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17483
# The default lists apply if the user does not specify any file.
17484
ac_need_defaults=:
17485
while test $# != 0
17486
do
17487
  case $1 in
17488
  --*=?*)
17489
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17490
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17491
    ac_shift=:
17492
    ;;
17493
  --*=)
17494
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17495
    ac_optarg=
17496
    ac_shift=:
17497
    ;;
17498
  *)
17499
    ac_option=$1
17500
    ac_optarg=$2
17501
    ac_shift=shift
17502
    ;;
17503
  esac
17504
 
17505
  case $ac_option in
17506
  # Handling of the options.
17507
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17508
    ac_cs_recheck=: ;;
17509
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17510
    $as_echo "$ac_cs_version"; exit ;;
17511
  --config | --confi | --conf | --con | --co | --c )
17512
    $as_echo "$ac_cs_config"; exit ;;
17513
  --debug | --debu | --deb | --de | --d | -d )
17514
    debug=: ;;
17515
  --file | --fil | --fi | --f )
17516
    $ac_shift
17517
    case $ac_optarg in
17518
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17519
    '') as_fn_error $? "missing file argument" ;;
17520
    esac
17521
    as_fn_append CONFIG_FILES " '$ac_optarg'"
17522
    ac_need_defaults=false;;
17523
  --header | --heade | --head | --hea )
17524
    $ac_shift
17525
    case $ac_optarg in
17526
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17527
    esac
17528
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17529
    ac_need_defaults=false;;
17530
  --he | --h)
17531
    # Conflict between --help and --header
17532
    as_fn_error $? "ambiguous option: \`$1'
17533
Try \`$0 --help' for more information.";;
17534
  --help | --hel | -h )
17535
    $as_echo "$ac_cs_usage"; exit ;;
17536
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17537
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17538
    ac_cs_silent=: ;;
17539
 
17540
  # This is an error.
17541
  -*) as_fn_error $? "unrecognized option: \`$1'
17542
Try \`$0 --help' for more information." ;;
17543
 
17544
  *) as_fn_append ac_config_targets " $1"
17545
     ac_need_defaults=false ;;
17546
 
17547
  esac
17548
  shift
17549
done
17550
 
17551
ac_configure_extra_args=
17552
 
17553
if $ac_cs_silent; then
17554
  exec 6>/dev/null
17555
  ac_configure_extra_args="$ac_configure_extra_args --silent"
17556
fi
17557
 
17558
_ACEOF
17559
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17560
if \$ac_cs_recheck; then
17561
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17562
  shift
17563
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17564
  CONFIG_SHELL='$SHELL'
17565
  export CONFIG_SHELL
17566
  exec "\$@"
17567
fi
17568
 
17569
_ACEOF
17570
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17571
exec 5>>config.log
17572
{
17573
  echo
17574
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17575
## Running $as_me. ##
17576
_ASBOX
17577
  $as_echo "$ac_log"
17578
} >&5
17579
 
17580
_ACEOF
17581
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17582
#
17583
# INIT-COMMANDS
17584
#
17585
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17586
 
17587
 
17588
# The HP-UX ksh and POSIX shell print the target directory to stdout
17589
# if CDPATH is set.
17590
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17591
 
17592
sed_quote_subst='$sed_quote_subst'
17593
double_quote_subst='$double_quote_subst'
17594
delay_variable_subst='$delay_variable_subst'
17595
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17596
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17597
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17598
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17599
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17600
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17601
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17602
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17603
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17604
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17605
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17606
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17607
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17608
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17609
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17610
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17611
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17612
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17613
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17614
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17615
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17616
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17617
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17618
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17619
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17620
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17621
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17622
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17623
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17624
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17625
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17626
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17627
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17628
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17629
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17630
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17631
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17632
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17633
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17634
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17635
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17636
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17637
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17638
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17639
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17640
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17641
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17642
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17643
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17644
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17645
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17646
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17647
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17648
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17649
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17650
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17651
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17652
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17653
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17654
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17655
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17656
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17657
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17658
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17659
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17660
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17661
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17662
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17663
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17664
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17665
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17666
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17667
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17668
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17669
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17670
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17671
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17672
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17673
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17674
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17675
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17676
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17677
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17678
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17679
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17680
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17681
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17682
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17683
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17684
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17685
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17686
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17687
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17688
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17689
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17690
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17691
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17692
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17693
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17694
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17695
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17696
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17697
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17698
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17699
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17700
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17701
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17702
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17703
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17704
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17705
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17706
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17707
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17708
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17709
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17710
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17711
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17712
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17713
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17714
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17715
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17716
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17717
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17718
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17719
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17720
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17721
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17722
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17723
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17724
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17725
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17726
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17727
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17728
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17729
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17730
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17731
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17732
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17733
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17734
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17735
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17736
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17737
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17738
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17739
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17740
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17741
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17742
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17743
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17744
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17745
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17746
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17747
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17748
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17749
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17750
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17751
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17752
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17753
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17754
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17755
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17756
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17757
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17758
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17759
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17760
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17761
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17762
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17763
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17764
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17765
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17766
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17767
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17768
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17769
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17770
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17771
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17772
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17773
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17774
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17775
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17776
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17777
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17778
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17779
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17780
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17781
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17782
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17783
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17784
 
17785
LTCC='$LTCC'
17786
LTCFLAGS='$LTCFLAGS'
17787
compiler='$compiler_DEFAULT'
17788
 
17789
# A function that is used when there is no print builtin or printf.
17790
func_fallback_echo ()
17791
{
17792
  eval 'cat <<_LTECHO_EOF
17793
\$1
17794
_LTECHO_EOF'
17795
}
17796
 
17797
# Quote evaled strings.
17798
for var in SHELL \
17799
ECHO \
17800
PATH_SEPARATOR \
17801
SED \
17802
GREP \
17803
EGREP \
17804
FGREP \
17805
LD \
17806
NM \
17807
LN_S \
17808
lt_SP2NL \
17809
lt_NL2SP \
17810
reload_flag \
17811
OBJDUMP \
17812
deplibs_check_method \
17813
file_magic_cmd \
17814
file_magic_glob \
17815
want_nocaseglob \
17816
DLLTOOL \
17817
sharedlib_from_linklib_cmd \
17818
AR \
17819
AR_FLAGS \
17820
archiver_list_spec \
17821
STRIP \
17822
RANLIB \
17823
CC \
17824
CFLAGS \
17825
compiler \
17826
lt_cv_sys_global_symbol_pipe \
17827
lt_cv_sys_global_symbol_to_cdecl \
17828
lt_cv_sys_global_symbol_to_import \
17829
lt_cv_sys_global_symbol_to_c_name_address \
17830
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17831
lt_cv_nm_interface \
17832
nm_file_list_spec \
17833
lt_cv_truncate_bin \
17834
lt_prog_compiler_no_builtin_flag \
17835
lt_prog_compiler_pic \
17836
lt_prog_compiler_wl \
17837
lt_prog_compiler_static \
17838
lt_cv_prog_compiler_c_o \
17839
need_locks \
17840
MANIFEST_TOOL \
17841
DSYMUTIL \
17842
NMEDIT \
17843
LIPO \
17844
OTOOL \
17845
OTOOL64 \
17846
shrext_cmds \
17847
export_dynamic_flag_spec \
17848
whole_archive_flag_spec \
17849
compiler_needs_object \
17850
with_gnu_ld \
17851
allow_undefined_flag \
17852
no_undefined_flag \
17853
hardcode_libdir_flag_spec \
17854
hardcode_libdir_separator \
17855
exclude_expsyms \
17856
include_expsyms \
17857
file_list_spec \
17858
variables_saved_for_relink \
17859
libname_spec \
17860
library_names_spec \
17861
soname_spec \
17862
install_override_mode \
17863
finish_eval \
17864
old_striplib \
17865
striplib \
17866
compiler_lib_search_dirs \
17867
predep_objects \
17868
postdep_objects \
17869
predeps \
17870
postdeps \
17871
compiler_lib_search_path \
17872
LD_CXX \
17873
reload_flag_CXX \
17874
compiler_CXX \
17875
lt_prog_compiler_no_builtin_flag_CXX \
17876
lt_prog_compiler_pic_CXX \
17877
lt_prog_compiler_wl_CXX \
17878
lt_prog_compiler_static_CXX \
17879
lt_cv_prog_compiler_c_o_CXX \
17880
export_dynamic_flag_spec_CXX \
17881
whole_archive_flag_spec_CXX \
17882
compiler_needs_object_CXX \
17883
with_gnu_ld_CXX \
17884
allow_undefined_flag_CXX \
17885
no_undefined_flag_CXX \
17886
hardcode_libdir_flag_spec_CXX \
17887
hardcode_libdir_separator_CXX \
17888
exclude_expsyms_CXX \
17889
include_expsyms_CXX \
17890
file_list_spec_CXX \
17891
compiler_lib_search_dirs_CXX \
17892
predep_objects_CXX \
17893
postdep_objects_CXX \
17894
predeps_CXX \
17895
postdeps_CXX \
17896
compiler_lib_search_path_CXX; do
17897
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17898
    *[\\\\\\\`\\"\\\$]*)
17899
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17900
      ;;
17901
    *)
17902
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17903
      ;;
17904
    esac
17905
done
17906
 
17907
# Double-quote double-evaled strings.
17908
for var in reload_cmds \
17909
old_postinstall_cmds \
17910
old_postuninstall_cmds \
17911
old_archive_cmds \
17912
extract_expsyms_cmds \
17913
old_archive_from_new_cmds \
17914
old_archive_from_expsyms_cmds \
17915
archive_cmds \
17916
archive_expsym_cmds \
17917
module_cmds \
17918
module_expsym_cmds \
17919
export_symbols_cmds \
17920
prelink_cmds \
17921
postlink_cmds \
17922
postinstall_cmds \
17923
postuninstall_cmds \
17924
finish_cmds \
17925
sys_lib_search_path_spec \
17926
configure_time_dlsearch_path \
17927
configure_time_lt_sys_library_path \
17928
reload_cmds_CXX \
17929
old_archive_cmds_CXX \
17930
old_archive_from_new_cmds_CXX \
17931
old_archive_from_expsyms_cmds_CXX \
17932
archive_cmds_CXX \
17933
archive_expsym_cmds_CXX \
17934
module_cmds_CXX \
17935
module_expsym_cmds_CXX \
17936
export_symbols_cmds_CXX \
17937
prelink_cmds_CXX \
17938
postlink_cmds_CXX; do
17939
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17940
    *[\\\\\\\`\\"\\\$]*)
17941
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17942
      ;;
17943
    *)
17944
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17945
      ;;
17946
    esac
17947
done
17948
 
17949
ac_aux_dir='$ac_aux_dir'
17950
 
17951
# See if we are running on zsh, and set the options that allow our
17952
# commands through without removal of \ escapes INIT.
17953
if test -n "\${ZSH_VERSION+set}"; then
17954
   setopt NO_GLOB_SUBST
17955
fi
17956
 
17957
 
17958
    PACKAGE='$PACKAGE'
17959
    VERSION='$VERSION'
17960
    RM='$RM'
17961
    ofile='$ofile'
17962
 
17963
 
17964
 
17965
 
17966
 
17967
 
17968
_ACEOF
17969
 
17970
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17971
 
17972
# Handling of arguments.
17973
for ac_config_target in $ac_config_targets
17974
do
17975
  case $ac_config_target in
17976
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17977
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17978
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17979
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17980
    "vertlib/Makefile") CONFIG_FILES="$CONFIG_FILES vertlib/Makefile" ;;
17981
    "cmdlib/Makefile") CONFIG_FILES="$CONFIG_FILES cmdlib/Makefile" ;;
17982
    "versionlib/Makefile") CONFIG_FILES="$CONFIG_FILES versionlib/Makefile" ;;
17983
    "acf_src/Makefile") CONFIG_FILES="$CONFIG_FILES acf_src/Makefile" ;;
17984
    "cdi_src/Makefile") CONFIG_FILES="$CONFIG_FILES cdi_src/Makefile" ;;
17985
    "eagle_src/Makefile") CONFIG_FILES="$CONFIG_FILES eagle_src/Makefile" ;;
17986
    "frb_src/Makefile") CONFIG_FILES="$CONFIG_FILES frb_src/Makefile" ;;
17987
    "gen_src/Makefile") CONFIG_FILES="$CONFIG_FILES gen_src/Makefile" ;;
17988
    "mentor_src/Makefile") CONFIG_FILES="$CONFIG_FILES mentor_src/Makefile" ;;
17989
    "net_src/Makefile") CONFIG_FILES="$CONFIG_FILES net_src/Makefile" ;;
17990
    "orcad_src/Makefile") CONFIG_FILES="$CONFIG_FILES orcad_src/Makefile" ;;
17991
    "pads_src/Makefile") CONFIG_FILES="$CONFIG_FILES pads_src/Makefile" ;;
17992
    "protel_src/Makefile") CONFIG_FILES="$CONFIG_FILES protel_src/Makefile" ;;
17993
    "rep2_src/Makefile") CONFIG_FILES="$CONFIG_FILES rep2_src/Makefile" ;;
17994
    "rep_src/Makefile") CONFIG_FILES="$CONFIG_FILES rep_src/Makefile" ;;
17995
 
17996
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17997
  esac
17998
done
17999
 
18000
 
18001
# If the user did not use the arguments to specify the items to instantiate,
18002
# then the envvar interface is used.  Set only those that are not.
18003
# We use the long form for the default assignment because of an extremely
18004
# bizarre bug on SunOS 4.1.3.
18005
if $ac_need_defaults; then
18006
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18007
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18008
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18009
fi
18010
 
18011
# Have a temporary directory for convenience.  Make it in the build tree
18012
# simply because there is no reason against having it here, and in addition,
18013
# creating and moving files from /tmp can sometimes cause problems.
18014
# Hook for its removal unless debugging.
18015
# Note that there is a small window in which the directory will not be cleaned:
18016
# after its creation but before its name has been assigned to `$tmp'.
18017
$debug ||
18018
{
18019
  tmp= ac_tmp=
18020
  trap 'exit_status=$?
18021
  : "${ac_tmp:=$tmp}"
18022
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18023
' 0
18024
  trap 'as_fn_exit 1' 1 2 13 15
18025
}
18026
# Create a (secure) tmp directory for tmp files.
18027
 
18028
{
18029
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18030
  test -d "$tmp"
18031
}  ||
18032
{
18033
  tmp=./conf$$-$RANDOM
18034
  (umask 077 && mkdir "$tmp")
18035
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18036
ac_tmp=$tmp
18037
 
18038
# Set up the scripts for CONFIG_FILES section.
18039
# No need to generate them if there are no CONFIG_FILES.
18040
# This happens for instance with `./config.status config.h'.
18041
if test -n "$CONFIG_FILES"; then
18042
 
18043
 
18044
ac_cr=`echo X | tr X '\015'`
18045
# On cygwin, bash can eat \r inside `` if the user requested igncr.
18046
# But we know of no other shell where ac_cr would be empty at this
18047
# point, so we can use a bashism as a fallback.
18048
if test "x$ac_cr" = x; then
18049
  eval ac_cr=\$\'\\r\'
18050
fi
18051
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18052
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18053
  ac_cs_awk_cr='\\r'
18054
else
18055
  ac_cs_awk_cr=$ac_cr
18056
fi
18057
 
18058
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18059
_ACEOF
18060
 
18061
 
18062
{
18063
  echo "cat >conf$$subs.awk <<_ACEOF" &&
18064
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18065
  echo "_ACEOF"
18066
} >conf$$subs.sh ||
18067
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18068
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18069
ac_delim='%!_!# '
18070
for ac_last_try in false false false false false :; do
18071
  . ./conf$$subs.sh ||
18072
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18073
 
18074
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18075
  if test $ac_delim_n = $ac_delim_num; then
18076
    break
18077
  elif $ac_last_try; then
18078
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18079
  else
18080
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18081
  fi
18082
done
18083
rm -f conf$$subs.sh
18084
 
18085
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18086
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18087
_ACEOF
18088
sed -n '
18089
h
18090
s/^/S["/; s/!.*/"]=/
18091
p
18092
g
18093
s/^[^!]*!//
18094
:repl
18095
t repl
18096
s/'"$ac_delim"'$//
18097
t delim
18098
:nl
18099
h
18100
s/\(.\{148\}\)..*/\1/
18101
t more1
18102
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18103
p
18104
n
18105
b repl
18106
:more1
18107
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18108
p
18109
g
18110
s/.\{148\}//
18111
t nl
18112
:delim
18113
h
18114
s/\(.\{148\}\)..*/\1/
18115
t more2
18116
s/["\\]/\\&/g; s/^/"/; s/$/"/
18117
p
18118
b
18119
:more2
18120
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18121
p
18122
g
18123
s/.\{148\}//
18124
t delim
18125
' <conf$$subs.awk | sed '
18126
/^[^""]/{
18127
  N
18128
  s/\n//
18129
}
18130
' >>$CONFIG_STATUS || ac_write_fail=1
18131
rm -f conf$$subs.awk
18132
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18133
_ACAWK
18134
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18135
  for (key in S) S_is_set[key] = 1
18136
  FS = ""
18137
 
18138
}
18139
{
18140
  line = $ 0
18141
  nfields = split(line, field, "@")
18142
  substed = 0
18143
  len = length(field[1])
18144
  for (i = 2; i < nfields; i++) {
18145
    key = field[i]
18146
    keylen = length(key)
18147
    if (S_is_set[key]) {
18148
      value = S[key]
18149
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18150
      len += length(value) + length(field[++i])
18151
      substed = 1
18152
    } else
18153
      len += 1 + keylen
18154
  }
18155
 
18156
  print line
18157
}
18158
 
18159
_ACAWK
18160
_ACEOF
18161
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18162
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18163
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18164
else
18165
  cat
18166
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18167
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18168
_ACEOF
18169
 
18170
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18171
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18172
# trailing colons and then remove the whole line if VPATH becomes empty
18173
# (actually we leave an empty line to preserve line numbers).
18174
if test "x$srcdir" = x.; then
18175
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18176
h
18177
s///
18178
s/^/:/
18179
s/[	 ]*$/:/
18180
s/:\$(srcdir):/:/g
18181
s/:\${srcdir}:/:/g
18182
s/:@srcdir@:/:/g
18183
s/^:*//
18184
s/:*$//
18185
x
18186
s/\(=[	 ]*\).*/\1/
18187
G
18188
s/\n//
18189
s/^[^=]*=[	 ]*$//
18190
}'
18191
fi
18192
 
18193
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18194
fi # test -n "$CONFIG_FILES"
18195
 
18196
# Set up the scripts for CONFIG_HEADERS section.
18197
# No need to generate them if there are no CONFIG_HEADERS.
18198
# This happens for instance with `./config.status Makefile'.
18199
if test -n "$CONFIG_HEADERS"; then
18200
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18201
BEGIN {
18202
_ACEOF
18203
 
18204
# Transform confdefs.h into an awk script `defines.awk', embedded as
18205
# here-document in config.status, that substitutes the proper values into
18206
# config.h.in to produce config.h.
18207
 
18208
# Create a delimiter string that does not exist in confdefs.h, to ease
18209
# handling of long lines.
18210
ac_delim='%!_!# '
18211
for ac_last_try in false false :; do
18212
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18213
  if test -z "$ac_tt"; then
18214
    break
18215
  elif $ac_last_try; then
18216
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18217
  else
18218
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18219
  fi
18220
done
18221
 
18222
# For the awk script, D is an array of macro values keyed by name,
18223
# likewise P contains macro parameters if any.  Preserve backslash
18224
# newline sequences.
18225
 
18226
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18227
sed -n '
18228
s/.\{148\}/&'"$ac_delim"'/g
18229
t rset
18230
:rset
18231
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18232
t def
18233
d
18234
:def
18235
s/\\$//
18236
t bsnl
18237
s/["\\]/\\&/g
18238
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18239
D["\1"]=" \3"/p
18240
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18241
d
18242
:bsnl
18243
s/["\\]/\\&/g
18244
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18245
D["\1"]=" \3\\\\\\n"\\/p
18246
t cont
18247
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18248
t cont
18249
d
18250
:cont
18251
n
18252
s/.\{148\}/&'"$ac_delim"'/g
18253
t clear
18254
:clear
18255
s/\\$//
18256
t bsnlc
18257
s/["\\]/\\&/g; s/^/"/; s/$/"/p
18258
d
18259
:bsnlc
18260
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18261
b cont
18262
' <confdefs.h | sed '
18263
s/'"$ac_delim"'/"\\\
18264
"/g' >>$CONFIG_STATUS || ac_write_fail=1
18265
 
18266
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18267
  for (key in D) D_is_set[key] = 1
18268
  FS = ""
18269
}
18270
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18271
  line = \$ 0
18272
  split(line, arg, " ")
18273
  if (arg[1] == "#") {
18274
    defundef = arg[2]
18275
    mac1 = arg[3]
18276
  } else {
18277
    defundef = substr(arg[1], 2)
18278
    mac1 = arg[2]
18279
  }
18280
  split(mac1, mac2, "(") #)
18281
  macro = mac2[1]
18282
  prefix = substr(line, 1, index(line, defundef) - 1)
18283
  if (D_is_set[macro]) {
18284
    # Preserve the white space surrounding the "#".
18285
    print prefix "define", macro P[macro] D[macro]
18286
    next
18287
  } else {
18288
    # Replace #undef with comments.  This is necessary, for example,
18289
    # in the case of _POSIX_SOURCE, which is predefined and required
18290
    # on some systems where configure will not decide to define it.
18291
    if (defundef == "undef") {
18292
      print "/*", prefix defundef, macro, "*/"
18293
      next
18294
    }
18295
  }
18296
}
18297
{ print }
18298
_ACAWK
18299
_ACEOF
18300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18301
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18302
fi # test -n "$CONFIG_HEADERS"
18303
 
18304
 
18305
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18306
shift
18307
for ac_tag
18308
do
18309
  case $ac_tag in
18310
  :[FHLC]) ac_mode=$ac_tag; continue;;
18311
  esac
18312
  case $ac_mode$ac_tag in
18313
  :[FHL]*:*);;
18314
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18315
  :[FH]-) ac_tag=-:-;;
18316
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18317
  esac
18318
  ac_save_IFS=$IFS
18319
  IFS=:
18320
  set x $ac_tag
18321
  IFS=$ac_save_IFS
18322
  shift
18323
  ac_file=$1
18324
  shift
18325
 
18326
  case $ac_mode in
18327
  :L) ac_source=$1;;
18328
  :[FH])
18329
    ac_file_inputs=
18330
    for ac_f
18331
    do
18332
      case $ac_f in
18333
      -) ac_f="$ac_tmp/stdin";;
18334
      *) # Look for the file first in the build tree, then in the source tree
18335
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18336
	 # because $ac_f cannot contain `:'.
18337
	 test -f "$ac_f" ||
18338
	   case $ac_f in
18339
	   [\\/$]*) false;;
18340
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18341
	   esac ||
18342
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18343
      esac
18344
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18345
      as_fn_append ac_file_inputs " '$ac_f'"
18346
    done
18347
 
18348
    # Let's still pretend it is `configure' which instantiates (i.e., don't
18349
    # use $as_me), people would be surprised to read:
18350
    #    /* config.h.  Generated by config.status.  */
18351
    configure_input='Generated from '`
18352
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18353
	`' by configure.'
18354
    if test x"$ac_file" != x-; then
18355
      configure_input="$ac_file.  $configure_input"
18356
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18357
$as_echo "$as_me: creating $ac_file" >&6;}
18358
    fi
18359
    # Neutralize special characters interpreted by sed in replacement strings.
18360
    case $configure_input in #(
18361
    *\&* | *\|* | *\\* )
18362
       ac_sed_conf_input=`$as_echo "$configure_input" |
18363
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18364
    *) ac_sed_conf_input=$configure_input;;
18365
    esac
18366
 
18367
    case $ac_tag in
18368
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18369
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18370
    esac
18371
    ;;
18372
  esac
18373
 
18374
  ac_dir=`$as_dirname -- "$ac_file" ||
18375
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18376
	 X"$ac_file" : 'X\(//\)[^/]' \| \
18377
	 X"$ac_file" : 'X\(//\)$' \| \
18378
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18379
$as_echo X"$ac_file" |
18380
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18381
	    s//\1/
18382
	    q
18383
	  }
18384
	  /^X\(\/\/\)[^/].*/{
18385
	    s//\1/
18386
	    q
18387
	  }
18388
	  /^X\(\/\/\)$/{
18389
	    s//\1/
18390
	    q
18391
	  }
18392
	  /^X\(\/\).*/{
18393
	    s//\1/
18394
	    q
18395
	  }
18396
	  s/.*/./; q'`
18397
  as_dir="$ac_dir"; as_fn_mkdir_p
18398
  ac_builddir=.
18399
 
18400
case "$ac_dir" in
18401
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18402
*)
18403
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18404
  # A ".." for each directory in $ac_dir_suffix.
18405
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18406
  case $ac_top_builddir_sub in
18407
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18408
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18409
  esac ;;
18410
esac
18411
ac_abs_top_builddir=$ac_pwd
18412
ac_abs_builddir=$ac_pwd$ac_dir_suffix
18413
# for backward compatibility:
18414
ac_top_builddir=$ac_top_build_prefix
18415
 
18416
case $srcdir in
18417
  .)  # We are building in place.
18418
    ac_srcdir=.
18419
    ac_top_srcdir=$ac_top_builddir_sub
18420
    ac_abs_top_srcdir=$ac_pwd ;;
18421
  [\\/]* | ?:[\\/]* )  # Absolute name.
18422
    ac_srcdir=$srcdir$ac_dir_suffix;
18423
    ac_top_srcdir=$srcdir
18424
    ac_abs_top_srcdir=$srcdir ;;
18425
  *) # Relative name.
18426
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18427
    ac_top_srcdir=$ac_top_build_prefix$srcdir
18428
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18429
esac
18430
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18431
 
18432
 
18433
  case $ac_mode in
18434
  :F)
18435
  #
18436
  # CONFIG_FILE
18437
  #
18438
 
18439
  case $INSTALL in
18440
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18441
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18442
  esac
18443
  ac_MKDIR_P=$MKDIR_P
18444
  case $MKDIR_P in
18445
  [\\/$]* | ?:[\\/]* ) ;;
18446
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18447
  esac
18448
_ACEOF
18449
 
18450
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18451
# If the template does not know about datarootdir, expand it.
18452
# FIXME: This hack should be removed a few years after 2.60.
18453
ac_datarootdir_hack=; ac_datarootdir_seen=
18454
ac_sed_dataroot='
18455
/datarootdir/ {
18456
  p
18457
  q
18458
}
18459
/@datadir@/p
18460
/@docdir@/p
18461
/@infodir@/p
18462
/@localedir@/p
18463
/@mandir@/p'
18464
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18465
*datarootdir*) ac_datarootdir_seen=yes;;
18466
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18467
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18468
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18469
_ACEOF
18470
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18471
  ac_datarootdir_hack='
18472
  s&@datadir@&$datadir&g
18473
  s&@docdir@&$docdir&g
18474
  s&@infodir@&$infodir&g
18475
  s&@localedir@&$localedir&g
18476
  s&@mandir@&$mandir&g
18477
  s&\\\${datarootdir}&$datarootdir&g' ;;
18478
esac
18479
_ACEOF
18480
 
18481
# Neutralize VPATH when `$srcdir' = `.'.
18482
# Shell code in configure.ac might set extrasub.
18483
# FIXME: do we really want to maintain this feature?
18484
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485
ac_sed_extra="$ac_vpsub
18486
$extrasub
18487
_ACEOF
18488
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18489
:t
18490
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18491
s|@configure_input@|$ac_sed_conf_input|;t t
18492
s&@top_builddir@&$ac_top_builddir_sub&;t t
18493
s&@top_build_prefix@&$ac_top_build_prefix&;t t
18494
s&@srcdir@&$ac_srcdir&;t t
18495
s&@abs_srcdir@&$ac_abs_srcdir&;t t
18496
s&@top_srcdir@&$ac_top_srcdir&;t t
18497
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18498
s&@builddir@&$ac_builddir&;t t
18499
s&@abs_builddir@&$ac_abs_builddir&;t t
18500
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18501
s&@INSTALL@&$ac_INSTALL&;t t
18502
s&@MKDIR_P@&$ac_MKDIR_P&;t t
18503
$ac_datarootdir_hack
18504
"
18505
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18506
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18507
 
18508
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18509
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18510
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18511
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18512
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18513
which seems to be undefined.  Please make sure it is defined" >&5
18514
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18515
which seems to be undefined.  Please make sure it is defined" >&2;}
18516
 
18517
  rm -f "$ac_tmp/stdin"
18518
  case $ac_file in
18519
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18520
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18521
  esac \
18522
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18523
 ;;
18524
  :H)
18525
  #
18526
  # CONFIG_HEADER
18527
  #
18528
  if test x"$ac_file" != x-; then
18529
    {
18530
      $as_echo "/* $configure_input  */" \
18531
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18532
    } >"$ac_tmp/config.h" \
18533
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18534
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18535
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18536
$as_echo "$as_me: $ac_file is unchanged" >&6;}
18537
    else
18538
      rm -f "$ac_file"
18539
      mv "$ac_tmp/config.h" "$ac_file" \
18540
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18541
    fi
18542
  else
18543
    $as_echo "/* $configure_input  */" \
18544
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18545
      || as_fn_error $? "could not create -" "$LINENO" 5
18546
  fi
18547
# Compute "$ac_file"'s index in $config_headers.
18548
_am_arg="$ac_file"
18549
_am_stamp_count=1
18550
for _am_header in $config_headers :; do
18551
  case $_am_header in
18552
    $_am_arg | $_am_arg:* )
18553
      break ;;
18554
    * )
18555
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18556
  esac
18557
done
18558
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18559
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18561
	 X"$_am_arg" : 'X\(//\)$' \| \
18562
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18563
$as_echo X"$_am_arg" |
18564
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18565
	    s//\1/
18566
	    q
18567
	  }
18568
	  /^X\(\/\/\)[^/].*/{
18569
	    s//\1/
18570
	    q
18571
	  }
18572
	  /^X\(\/\/\)$/{
18573
	    s//\1/
18574
	    q
18575
	  }
18576
	  /^X\(\/\).*/{
18577
	    s//\1/
18578
	    q
18579
	  }
18580
	  s/.*/./; q'`/stamp-h$_am_stamp_count
18581
 ;;
18582
 
18583
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18584
$as_echo "$as_me: executing $ac_file commands" >&6;}
18585
 ;;
18586
  esac
18587
 
18588
 
18589
  case $ac_file$ac_mode in
18590
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18591
  # Older Autoconf quotes --file arguments for eval, but not when files
18592
  # are listed without --file.  Let's play safe and only enable the eval
18593
  # if we detect the quoting.
18594
  case $CONFIG_FILES in
18595
  *\'*) eval set x "$CONFIG_FILES" ;;
18596
  *)   set x $CONFIG_FILES ;;
18597
  esac
18598
  shift
18599
  for mf
18600
  do
18601
    # Strip MF so we end up with the name of the file.
18602
    mf=`echo "$mf" | sed -e 's/:.*$//'`
18603
    # Check whether this is an Automake generated Makefile or not.
18604
    # We used to match only the files named 'Makefile.in', but
18605
    # some people rename them; so instead we look at the file content.
18606
    # Grep'ing the first line is not enough: some people post-process
18607
    # each Makefile.in and add a new line on top of each file to say so.
18608
    # Grep'ing the whole file is not good either: AIX grep has a line
18609
    # limit of 2048, but all sed's we know have understand at least 4000.
18610
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18611
      dirpart=`$as_dirname -- "$mf" ||
18612
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18613
	 X"$mf" : 'X\(//\)[^/]' \| \
18614
	 X"$mf" : 'X\(//\)$' \| \
18615
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18616
$as_echo X"$mf" |
18617
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18618
	    s//\1/
18619
	    q
18620
	  }
18621
	  /^X\(\/\/\)[^/].*/{
18622
	    s//\1/
18623
	    q
18624
	  }
18625
	  /^X\(\/\/\)$/{
18626
	    s//\1/
18627
	    q
18628
	  }
18629
	  /^X\(\/\).*/{
18630
	    s//\1/
18631
	    q
18632
	  }
18633
	  s/.*/./; q'`
18634
    else
18635
      continue
18636
    fi
18637
    # Extract the definition of DEPDIR, am__include, and am__quote
18638
    # from the Makefile without running 'make'.
18639
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18640
    test -z "$DEPDIR" && continue
18641
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18642
    test -z "$am__include" && continue
18643
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18644
    # Find all dependency output files, they are included files with
18645
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18646
    # simplest approach to changing $(DEPDIR) to its actual value in the
18647
    # expansion.
18648
    for file in `sed -n "
18649
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18650
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18651
      # Make sure the directory exists.
18652
      test -f "$dirpart/$file" && continue
18653
      fdir=`$as_dirname -- "$file" ||
18654
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655
	 X"$file" : 'X\(//\)[^/]' \| \
18656
	 X"$file" : 'X\(//\)$' \| \
18657
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18658
$as_echo X"$file" |
18659
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18660
	    s//\1/
18661
	    q
18662
	  }
18663
	  /^X\(\/\/\)[^/].*/{
18664
	    s//\1/
18665
	    q
18666
	  }
18667
	  /^X\(\/\/\)$/{
18668
	    s//\1/
18669
	    q
18670
	  }
18671
	  /^X\(\/\).*/{
18672
	    s//\1/
18673
	    q
18674
	  }
18675
	  s/.*/./; q'`
18676
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18677
      # echo "creating $dirpart/$file"
18678
      echo '# dummy' > "$dirpart/$file"
18679
    done
18680
  done
18681
}
18682
 ;;
18683
    "libtool":C)
18684
 
18685
    # See if we are running on zsh, and set the options that allow our
18686
    # commands through without removal of \ escapes.
18687
    if test -n "${ZSH_VERSION+set}"; then
18688
      setopt NO_GLOB_SUBST
18689
    fi
18690
 
18691
    cfgfile=${ofile}T
18692
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18693
    $RM "$cfgfile"
18694
 
18695
    cat <<_LT_EOF >> "$cfgfile"
18696
#! $SHELL
18697
# Generated automatically by $as_me ($PACKAGE) $VERSION
18698
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18699
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18700
 
18701
# Provide generalized library-building support services.
18702
# Written by Gordon Matzigkeit, 1996
18703
 
18704
# Copyright (C) 2014 Free Software Foundation, Inc.
18705
# This is free software; see the source for copying conditions.  There is NO
18706
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18707
 
18708
# GNU Libtool is free software; you can redistribute it and/or modify
18709
# it under the terms of the GNU General Public License as published by
18710
# the Free Software Foundation; either version 2 of of the License, or
18711
# (at your option) any later version.
18712
#
18713
# As a special exception to the GNU General Public License, if you
18714
# distribute this file as part of a program or library that is built
18715
# using GNU Libtool, you may include this file under the  same
18716
# distribution terms that you use for the rest of that program.
18717
#
18718
# GNU Libtool is distributed in the hope that it will be useful, but
18719
# WITHOUT ANY WARRANTY; without even the implied warranty of
18720
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18721
# GNU General Public License for more details.
18722
#
18723
# You should have received a copy of the GNU General Public License
18724
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
18725
 
18726
 
18727
# The names of the tagged configurations supported by this script.
18728
available_tags='CXX '
18729
 
18730
# Configured defaults for sys_lib_dlsearch_path munging.
18731
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18732
 
18733
# ### BEGIN LIBTOOL CONFIG
18734
 
18735
# Which release of libtool.m4 was used?
18736
macro_version=$macro_version
18737
macro_revision=$macro_revision
18738
 
18739
# Whether or not to build shared libraries.
18740
build_libtool_libs=$enable_shared
18741
 
18742
# Whether or not to build static libraries.
18743
build_old_libs=$enable_static
18744
 
18745
# What type of objects to build.
18746
pic_mode=$pic_mode
18747
 
18748
# Whether or not to optimize for fast installation.
18749
fast_install=$enable_fast_install
18750
 
18751
# Shared archive member basename,for filename based shared library versioning on AIX.
18752
shared_archive_member_spec=$shared_archive_member_spec
18753
 
18754
# Shell to use when invoking shell scripts.
18755
SHELL=$lt_SHELL
18756
 
18757
# An echo program that protects backslashes.
18758
ECHO=$lt_ECHO
18759
 
18760
# The PATH separator for the build system.
18761
PATH_SEPARATOR=$lt_PATH_SEPARATOR
18762
 
18763
# The host system.
18764
host_alias=$host_alias
18765
host=$host
18766
host_os=$host_os
18767
 
18768
# The build system.
18769
build_alias=$build_alias
18770
build=$build
18771
build_os=$build_os
18772
 
18773
# A sed program that does not truncate output.
18774
SED=$lt_SED
18775
 
18776
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18777
Xsed="\$SED -e 1s/^X//"
18778
 
18779
# A grep program that handles long lines.
18780
GREP=$lt_GREP
18781
 
18782
# An ERE matcher.
18783
EGREP=$lt_EGREP
18784
 
18785
# A literal string matcher.
18786
FGREP=$lt_FGREP
18787
 
18788
# A BSD- or MS-compatible name lister.
18789
NM=$lt_NM
18790
 
18791
# Whether we need soft or hard links.
18792
LN_S=$lt_LN_S
18793
 
18794
# What is the maximum length of a command?
18795
max_cmd_len=$max_cmd_len
18796
 
18797
# Object file suffix (normally "o").
18798
objext=$ac_objext
18799
 
18800
# Executable file suffix (normally "").
18801
exeext=$exeext
18802
 
18803
# whether the shell understands "unset".
18804
lt_unset=$lt_unset
18805
 
18806
# turn spaces into newlines.
18807
SP2NL=$lt_lt_SP2NL
18808
 
18809
# turn newlines into spaces.
18810
NL2SP=$lt_lt_NL2SP
18811
 
18812
# convert \$build file names to \$host format.
18813
to_host_file_cmd=$lt_cv_to_host_file_cmd
18814
 
18815
# convert \$build files to toolchain format.
18816
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18817
 
18818
# An object symbol dumper.
18819
OBJDUMP=$lt_OBJDUMP
18820
 
18821
# Method to check whether dependent libraries are shared objects.
18822
deplibs_check_method=$lt_deplibs_check_method
18823
 
18824
# Command to use when deplibs_check_method = "file_magic".
18825
file_magic_cmd=$lt_file_magic_cmd
18826
 
18827
# How to find potential files when deplibs_check_method = "file_magic".
18828
file_magic_glob=$lt_file_magic_glob
18829
 
18830
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18831
want_nocaseglob=$lt_want_nocaseglob
18832
 
18833
# DLL creation program.
18834
DLLTOOL=$lt_DLLTOOL
18835
 
18836
# Command to associate shared and link libraries.
18837
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18838
 
18839
# The archiver.
18840
AR=$lt_AR
18841
 
18842
# Flags to create an archive.
18843
AR_FLAGS=$lt_AR_FLAGS
18844
 
18845
# How to feed a file listing to the archiver.
18846
archiver_list_spec=$lt_archiver_list_spec
18847
 
18848
# A symbol stripping program.
18849
STRIP=$lt_STRIP
18850
 
18851
# Commands used to install an old-style archive.
18852
RANLIB=$lt_RANLIB
18853
old_postinstall_cmds=$lt_old_postinstall_cmds
18854
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18855
 
18856
# Whether to use a lock for old archive extraction.
18857
lock_old_archive_extraction=$lock_old_archive_extraction
18858
 
18859
# A C compiler.
18860
LTCC=$lt_CC
18861
 
18862
# LTCC compiler flags.
18863
LTCFLAGS=$lt_CFLAGS
18864
 
18865
# Take the output of nm and produce a listing of raw symbols and C names.
18866
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18867
 
18868
# Transform the output of nm in a proper C declaration.
18869
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18870
 
18871
# Transform the output of nm into a list of symbols to manually relocate.
18872
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18873
 
18874
# Transform the output of nm in a C name address pair.
18875
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18876
 
18877
# Transform the output of nm in a C name address pair when lib prefix is needed.
18878
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18879
 
18880
# The name lister interface.
18881
nm_interface=$lt_lt_cv_nm_interface
18882
 
18883
# Specify filename containing input files for \$NM.
18884
nm_file_list_spec=$lt_nm_file_list_spec
18885
 
18886
# The root where to search for dependent libraries,and where our libraries should be installed.
18887
lt_sysroot=$lt_sysroot
18888
 
18889
# Command to truncate a binary pipe.
18890
lt_truncate_bin=$lt_lt_cv_truncate_bin
18891
 
18892
# The name of the directory that contains temporary libtool files.
18893
objdir=$objdir
18894
 
18895
# Used to examine libraries when file_magic_cmd begins with "file".
18896
MAGIC_CMD=$MAGIC_CMD
18897
 
18898
# Must we lock files when doing compilation?
18899
need_locks=$lt_need_locks
18900
 
18901
# Manifest tool.
18902
MANIFEST_TOOL=$lt_MANIFEST_TOOL
18903
 
18904
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18905
DSYMUTIL=$lt_DSYMUTIL
18906
 
18907
# Tool to change global to local symbols on Mac OS X.
18908
NMEDIT=$lt_NMEDIT
18909
 
18910
# Tool to manipulate fat objects and archives on Mac OS X.
18911
LIPO=$lt_LIPO
18912
 
18913
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18914
OTOOL=$lt_OTOOL
18915
 
18916
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18917
OTOOL64=$lt_OTOOL64
18918
 
18919
# Old archive suffix (normally "a").
18920
libext=$libext
18921
 
18922
# Shared library suffix (normally ".so").
18923
shrext_cmds=$lt_shrext_cmds
18924
 
18925
# The commands to extract the exported symbol list from a shared archive.
18926
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18927
 
18928
# Variables whose values should be saved in libtool wrapper scripts and
18929
# restored at link time.
18930
variables_saved_for_relink=$lt_variables_saved_for_relink
18931
 
18932
# Do we need the "lib" prefix for modules?
18933
need_lib_prefix=$need_lib_prefix
18934
 
18935
# Do we need a version for libraries?
18936
need_version=$need_version
18937
 
18938
# Library versioning type.
18939
version_type=$version_type
18940
 
18941
# Shared library runtime path variable.
18942
runpath_var=$runpath_var
18943
 
18944
# Shared library path variable.
18945
shlibpath_var=$shlibpath_var
18946
 
18947
# Is shlibpath searched before the hard-coded library search path?
18948
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18949
 
18950
# Format of library name prefix.
18951
libname_spec=$lt_libname_spec
18952
 
18953
# List of archive names.  First name is the real one, the rest are links.
18954
# The last name is the one that the linker finds with -lNAME
18955
library_names_spec=$lt_library_names_spec
18956
 
18957
# The coded name of the library, if different from the real name.
18958
soname_spec=$lt_soname_spec
18959
 
18960
# Permission mode override for installation of shared libraries.
18961
install_override_mode=$lt_install_override_mode
18962
 
18963
# Command to use after installation of a shared archive.
18964
postinstall_cmds=$lt_postinstall_cmds
18965
 
18966
# Command to use after uninstallation of a shared archive.
18967
postuninstall_cmds=$lt_postuninstall_cmds
18968
 
18969
# Commands used to finish a libtool library installation in a directory.
18970
finish_cmds=$lt_finish_cmds
18971
 
18972
# As "finish_cmds", except a single script fragment to be evaled but
18973
# not shown.
18974
finish_eval=$lt_finish_eval
18975
 
18976
# Whether we should hardcode library paths into libraries.
18977
hardcode_into_libs=$hardcode_into_libs
18978
 
18979
# Compile-time system search path for libraries.
18980
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18981
 
18982
# Detected run-time system search path for libraries.
18983
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18984
 
18985
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18986
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18987
 
18988
# Whether dlopen is supported.
18989
dlopen_support=$enable_dlopen
18990
 
18991
# Whether dlopen of programs is supported.
18992
dlopen_self=$enable_dlopen_self
18993
 
18994
# Whether dlopen of statically linked programs is supported.
18995
dlopen_self_static=$enable_dlopen_self_static
18996
 
18997
# Commands to strip libraries.
18998
old_striplib=$lt_old_striplib
18999
striplib=$lt_striplib
19000
 
19001
 
19002
# The linker used to build libraries.
19003
LD=$lt_LD
19004
 
19005
# How to create reloadable object files.
19006
reload_flag=$lt_reload_flag
19007
reload_cmds=$lt_reload_cmds
19008
 
19009
# Commands used to build an old-style archive.
19010
old_archive_cmds=$lt_old_archive_cmds
19011
 
19012
# A language specific compiler.
19013
CC=$lt_compiler
19014
 
19015
# Is the compiler the GNU compiler?
19016
with_gcc=$GCC
19017
 
19018
# Compiler flag to turn off builtin functions.
19019
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19020
 
19021
# Additional compiler flags for building library objects.
19022
pic_flag=$lt_lt_prog_compiler_pic
19023
 
19024
# How to pass a linker flag through the compiler.
19025
wl=$lt_lt_prog_compiler_wl
19026
 
19027
# Compiler flag to prevent dynamic linking.
19028
link_static_flag=$lt_lt_prog_compiler_static
19029
 
19030
# Does compiler simultaneously support -c and -o options?
19031
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19032
 
19033
# Whether or not to add -lc for building shared libraries.
19034
build_libtool_need_lc=$archive_cmds_need_lc
19035
 
19036
# Whether or not to disallow shared libs when runtime libs are static.
19037
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19038
 
19039
# Compiler flag to allow reflexive dlopens.
19040
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19041
 
19042
# Compiler flag to generate shared objects directly from archives.
19043
whole_archive_flag_spec=$lt_whole_archive_flag_spec
19044
 
19045
# Whether the compiler copes with passing no objects directly.
19046
compiler_needs_object=$lt_compiler_needs_object
19047
 
19048
# Create an old-style archive from a shared archive.
19049
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19050
 
19051
# Create a temporary old-style archive to link instead of a shared archive.
19052
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19053
 
19054
# Commands used to build a shared archive.
19055
archive_cmds=$lt_archive_cmds
19056
archive_expsym_cmds=$lt_archive_expsym_cmds
19057
 
19058
# Commands used to build a loadable module if different from building
19059
# a shared archive.
19060
module_cmds=$lt_module_cmds
19061
module_expsym_cmds=$lt_module_expsym_cmds
19062
 
19063
# Whether we are building with GNU ld or not.
19064
with_gnu_ld=$lt_with_gnu_ld
19065
 
19066
# Flag that allows shared libraries with undefined symbols to be built.
19067
allow_undefined_flag=$lt_allow_undefined_flag
19068
 
19069
# Flag that enforces no undefined symbols.
19070
no_undefined_flag=$lt_no_undefined_flag
19071
 
19072
# Flag to hardcode \$libdir into a binary during linking.
19073
# This must work even if \$libdir does not exist
19074
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19075
 
19076
# Whether we need a single "-rpath" flag with a separated argument.
19077
hardcode_libdir_separator=$lt_hardcode_libdir_separator
19078
 
19079
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19080
# DIR into the resulting binary.
19081
hardcode_direct=$hardcode_direct
19082
 
19083
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19084
# DIR into the resulting binary and the resulting library dependency is
19085
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19086
# library is relocated.
19087
hardcode_direct_absolute=$hardcode_direct_absolute
19088
 
19089
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19090
# into the resulting binary.
19091
hardcode_minus_L=$hardcode_minus_L
19092
 
19093
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19094
# into the resulting binary.
19095
hardcode_shlibpath_var=$hardcode_shlibpath_var
19096
 
19097
# Set to "yes" if building a shared library automatically hardcodes DIR
19098
# into the library and all subsequent libraries and executables linked
19099
# against it.
19100
hardcode_automatic=$hardcode_automatic
19101
 
19102
# Set to yes if linker adds runtime paths of dependent libraries
19103
# to runtime path list.
19104
inherit_rpath=$inherit_rpath
19105
 
19106
# Whether libtool must link a program against all its dependency libraries.
19107
link_all_deplibs=$link_all_deplibs
19108
 
19109
# Set to "yes" if exported symbols are required.
19110
always_export_symbols=$always_export_symbols
19111
 
19112
# The commands to list exported symbols.
19113
export_symbols_cmds=$lt_export_symbols_cmds
19114
 
19115
# Symbols that should not be listed in the preloaded symbols.
19116
exclude_expsyms=$lt_exclude_expsyms
19117
 
19118
# Symbols that must always be exported.
19119
include_expsyms=$lt_include_expsyms
19120
 
19121
# Commands necessary for linking programs (against libraries) with templates.
19122
prelink_cmds=$lt_prelink_cmds
19123
 
19124
# Commands necessary for finishing linking programs.
19125
postlink_cmds=$lt_postlink_cmds
19126
 
19127
# Specify filename containing input files.
19128
file_list_spec=$lt_file_list_spec
19129
 
19130
# How to hardcode a shared library path into an executable.
19131
hardcode_action=$hardcode_action
19132
 
19133
# The directories searched by this compiler when creating a shared library.
19134
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19135
 
19136
# Dependencies to place before and after the objects being linked to
19137
# create a shared library.
19138
predep_objects=$lt_predep_objects
19139
postdep_objects=$lt_postdep_objects
19140
predeps=$lt_predeps
19141
postdeps=$lt_postdeps
19142
 
19143
# The library search path used internally by the compiler when linking
19144
# a shared library.
19145
compiler_lib_search_path=$lt_compiler_lib_search_path
19146
 
19147
# ### END LIBTOOL CONFIG
19148
 
19149
_LT_EOF
19150
 
19151
    cat <<'_LT_EOF' >> "$cfgfile"
19152
 
19153
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19154
 
19155
# func_munge_path_list VARIABLE PATH
19156
# -----------------------------------
19157
# VARIABLE is name of variable containing _space_ separated list of
19158
# directories to be munged by the contents of PATH, which is string
19159
# having a format:
19160
# "DIR[:DIR]:"
19161
#       string "DIR[ DIR]" will be prepended to VARIABLE
19162
# ":DIR[:DIR]"
19163
#       string "DIR[ DIR]" will be appended to VARIABLE
19164
# "DIRP[:DIRP]::[DIRA:]DIRA"
19165
#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19166
#       "DIRA[ DIRA]" will be appended to VARIABLE
19167
# "DIR[:DIR]"
19168
#       VARIABLE will be replaced by "DIR[ DIR]"
19169
func_munge_path_list ()
19170
{
19171
    case x$2 in
19172
    x)
19173
        ;;
19174
    *:)
19175
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19176
        ;;
19177
    x:*)
19178
        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19179
        ;;
19180
    *::*)
19181
        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19182
        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19183
        ;;
19184
    *)
19185
        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19186
        ;;
19187
    esac
19188
}
19189
 
19190
 
19191
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19192
func_cc_basename ()
19193
{
19194
    for cc_temp in $*""; do
19195
      case $cc_temp in
19196
        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19197
        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19198
        \-*) ;;
19199
        *) break;;
19200
      esac
19201
    done
19202
    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19203
}
19204
 
19205
 
19206
# ### END FUNCTIONS SHARED WITH CONFIGURE
19207
 
19208
_LT_EOF
19209
 
19210
  case $host_os in
19211
  aix3*)
19212
    cat <<\_LT_EOF >> "$cfgfile"
19213
# AIX sometimes has problems with the GCC collect2 program.  For some
19214
# reason, if we set the COLLECT_NAMES environment variable, the problems
19215
# vanish in a puff of smoke.
19216
if test set != "${COLLECT_NAMES+set}"; then
19217
  COLLECT_NAMES=
19218
  export COLLECT_NAMES
19219
fi
19220
_LT_EOF
19221
    ;;
19222
  esac
19223
 
19224
 
19225
ltmain=$ac_aux_dir/ltmain.sh
19226
 
19227
 
19228
  # We use sed instead of cat because bash on DJGPP gets confused if
19229
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19230
  # text mode, it properly converts lines to CR/LF.  This bash problem
19231
  # is reportedly fixed, but why not run on old versions too?
19232
  sed '$q' "$ltmain" >> "$cfgfile" \
19233
     || (rm -f "$cfgfile"; exit 1)
19234
 
19235
   mv -f "$cfgfile" "$ofile" ||
19236
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19237
  chmod +x "$ofile"
19238
 
19239
 
19240
    cat <<_LT_EOF >> "$ofile"
19241
 
19242
# ### BEGIN LIBTOOL TAG CONFIG: CXX
19243
 
19244
# The linker used to build libraries.
19245
LD=$lt_LD_CXX
19246
 
19247
# How to create reloadable object files.
19248
reload_flag=$lt_reload_flag_CXX
19249
reload_cmds=$lt_reload_cmds_CXX
19250
 
19251
# Commands used to build an old-style archive.
19252
old_archive_cmds=$lt_old_archive_cmds_CXX
19253
 
19254
# A language specific compiler.
19255
CC=$lt_compiler_CXX
19256
 
19257
# Is the compiler the GNU compiler?
19258
with_gcc=$GCC_CXX
19259
 
19260
# Compiler flag to turn off builtin functions.
19261
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19262
 
19263
# Additional compiler flags for building library objects.
19264
pic_flag=$lt_lt_prog_compiler_pic_CXX
19265
 
19266
# How to pass a linker flag through the compiler.
19267
wl=$lt_lt_prog_compiler_wl_CXX
19268
 
19269
# Compiler flag to prevent dynamic linking.
19270
link_static_flag=$lt_lt_prog_compiler_static_CXX
19271
 
19272
# Does compiler simultaneously support -c and -o options?
19273
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19274
 
19275
# Whether or not to add -lc for building shared libraries.
19276
build_libtool_need_lc=$archive_cmds_need_lc_CXX
19277
 
19278
# Whether or not to disallow shared libs when runtime libs are static.
19279
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19280
 
19281
# Compiler flag to allow reflexive dlopens.
19282
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19283
 
19284
# Compiler flag to generate shared objects directly from archives.
19285
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19286
 
19287
# Whether the compiler copes with passing no objects directly.
19288
compiler_needs_object=$lt_compiler_needs_object_CXX
19289
 
19290
# Create an old-style archive from a shared archive.
19291
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19292
 
19293
# Create a temporary old-style archive to link instead of a shared archive.
19294
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19295
 
19296
# Commands used to build a shared archive.
19297
archive_cmds=$lt_archive_cmds_CXX
19298
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19299
 
19300
# Commands used to build a loadable module if different from building
19301
# a shared archive.
19302
module_cmds=$lt_module_cmds_CXX
19303
module_expsym_cmds=$lt_module_expsym_cmds_CXX
19304
 
19305
# Whether we are building with GNU ld or not.
19306
with_gnu_ld=$lt_with_gnu_ld_CXX
19307
 
19308
# Flag that allows shared libraries with undefined symbols to be built.
19309
allow_undefined_flag=$lt_allow_undefined_flag_CXX
19310
 
19311
# Flag that enforces no undefined symbols.
19312
no_undefined_flag=$lt_no_undefined_flag_CXX
19313
 
19314
# Flag to hardcode \$libdir into a binary during linking.
19315
# This must work even if \$libdir does not exist
19316
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19317
 
19318
# Whether we need a single "-rpath" flag with a separated argument.
19319
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19320
 
19321
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19322
# DIR into the resulting binary.
19323
hardcode_direct=$hardcode_direct_CXX
19324
 
19325
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19326
# DIR into the resulting binary and the resulting library dependency is
19327
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19328
# library is relocated.
19329
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19330
 
19331
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19332
# into the resulting binary.
19333
hardcode_minus_L=$hardcode_minus_L_CXX
19334
 
19335
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19336
# into the resulting binary.
19337
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19338
 
19339
# Set to "yes" if building a shared library automatically hardcodes DIR
19340
# into the library and all subsequent libraries and executables linked
19341
# against it.
19342
hardcode_automatic=$hardcode_automatic_CXX
19343
 
19344
# Set to yes if linker adds runtime paths of dependent libraries
19345
# to runtime path list.
19346
inherit_rpath=$inherit_rpath_CXX
19347
 
19348
# Whether libtool must link a program against all its dependency libraries.
19349
link_all_deplibs=$link_all_deplibs_CXX
19350
 
19351
# Set to "yes" if exported symbols are required.
19352
always_export_symbols=$always_export_symbols_CXX
19353
 
19354
# The commands to list exported symbols.
19355
export_symbols_cmds=$lt_export_symbols_cmds_CXX
19356
 
19357
# Symbols that should not be listed in the preloaded symbols.
19358
exclude_expsyms=$lt_exclude_expsyms_CXX
19359
 
19360
# Symbols that must always be exported.
19361
include_expsyms=$lt_include_expsyms_CXX
19362
 
19363
# Commands necessary for linking programs (against libraries) with templates.
19364
prelink_cmds=$lt_prelink_cmds_CXX
19365
 
19366
# Commands necessary for finishing linking programs.
19367
postlink_cmds=$lt_postlink_cmds_CXX
19368
 
19369
# Specify filename containing input files.
19370
file_list_spec=$lt_file_list_spec_CXX
19371
 
19372
# How to hardcode a shared library path into an executable.
19373
hardcode_action=$hardcode_action_CXX
19374
 
19375
# The directories searched by this compiler when creating a shared library.
19376
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19377
 
19378
# Dependencies to place before and after the objects being linked to
19379
# create a shared library.
19380
predep_objects=$lt_predep_objects_CXX
19381
postdep_objects=$lt_postdep_objects_CXX
19382
predeps=$lt_predeps_CXX
19383
postdeps=$lt_postdeps_CXX
19384
 
19385
# The library search path used internally by the compiler when linking
19386
# a shared library.
19387
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19388
 
19389
# ### END LIBTOOL TAG CONFIG: CXX
19390
_LT_EOF
19391
 
19392
 ;;
19393
 
19394
  esac
19395
done # for ac_tag
19396
 
19397
 
19398
as_fn_exit 0
19399
_ACEOF
19400
ac_clean_files=$ac_clean_files_save
19401
 
19402
test $ac_write_fail = 0 ||
19403
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19404
 
19405
 
19406
# configure is writing to config.log, and then calls config.status.
19407
# config.status does its own redirection, appending to config.log.
19408
# Unfortunately, on DOS this fails, as config.log is still kept open
19409
# by configure, so config.status won't be able to write to it; its
19410
# output is simply discarded.  So we exec the FD to /dev/null,
19411
# effectively closing config.log, so it can be properly (re)opened and
19412
# appended to by config.status.  When coming back to configure, we
19413
# need to make the FD available again.
19414
if test "$no_create" != yes; then
19415
  ac_cs_success=:
19416
  ac_config_status_args=
19417
  test "$silent" = yes &&
19418
    ac_config_status_args="$ac_config_status_args --quiet"
19419
  exec 5>/dev/null
19420
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19421
  exec 5>>config.log
19422
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19423
  # would make configure fail if this is the last instruction.
19424
  $ac_cs_success || as_fn_exit 1
19425
fi
19426
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19427
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19428
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19429
fi
19430
 
19431