~daniele-bigoni/pyorthpol/pyorthpol-python3

« back to all changes in this revision

Viewing changes to PyORTHPOL/ORTHPOLxx/configure

  • Committer: Daniele Bigoni
  • Date: 2014-12-16 10:43:03 UTC
  • Revision ID: dabi@dtu.dk-20141216104303-ba4utrt7ln5g39lq
started with launchpad

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.68 for ORTHPOLxx 1.0.
 
4
#
 
5
# Report bugs to <dabi@imm.dtu.dk>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
as_myself=
 
95
case $0 in #((
 
96
  *[\\/]* ) as_myself=$0 ;;
 
97
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
98
for as_dir in $PATH
 
99
do
 
100
  IFS=$as_save_IFS
 
101
  test -z "$as_dir" && as_dir=.
 
102
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
103
  done
 
104
IFS=$as_save_IFS
 
105
 
 
106
     ;;
 
107
esac
 
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
109
# in which case we are not to be found in the path.
 
110
if test "x$as_myself" = x; then
 
111
  as_myself=$0
 
112
fi
 
113
if test ! -f "$as_myself"; then
 
114
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
115
  exit 1
 
116
fi
 
117
 
 
118
# Unset variables that we do not need and which cause bugs (e.g. in
 
119
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
120
# suppresses any "Segmentation fault" message there.  '((' could
 
121
# trigger a bug in pdksh 5.2.14.
 
122
for as_var in BASH_ENV ENV MAIL MAILPATH
 
123
do eval test x\${$as_var+set} = xset \
 
124
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# CDPATH.
 
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
138
 
 
139
if test "x$CONFIG_SHELL" = x; then
 
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
141
  emulate sh
 
142
  NULLCMD=:
 
143
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
144
  # is contrary to our usage.  Disable this feature.
 
145
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
146
  setopt NO_GLOB_SUBST
 
147
else
 
148
  case \`(set -o) 2>/dev/null\` in #(
 
149
  *posix*) :
 
150
    set -o posix ;; #(
 
151
  *) :
 
152
     ;;
 
153
esac
 
154
fi
 
155
"
 
156
  as_required="as_fn_return () { (exit \$1); }
 
157
as_fn_success () { as_fn_return 0; }
 
158
as_fn_failure () { as_fn_return 1; }
 
159
as_fn_ret_success () { return 0; }
 
160
as_fn_ret_failure () { return 1; }
 
161
 
 
162
exitcode=0
 
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
168
 
 
169
else
 
170
  exitcode=1; echo positional parameters were not saved.
 
171
fi
 
172
test x\$exitcode = x0 || exit 1"
 
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
176
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
177
 
 
178
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
179
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
180
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
181
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
182
    PATH=/empty FPATH=/empty; export PATH FPATH
 
183
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
184
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
185
test \$(( 1 + 1 )) = 2 || exit 1"
 
186
  if (eval "$as_required") 2>/dev/null; then :
 
187
  as_have_required=yes
 
188
else
 
189
  as_have_required=no
 
190
fi
 
191
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
192
 
 
193
else
 
194
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
195
as_found=false
 
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
197
do
 
198
  IFS=$as_save_IFS
 
199
  test -z "$as_dir" && as_dir=.
 
200
  as_found=:
 
201
  case $as_dir in #(
 
202
         /*)
 
203
           for as_base in sh bash ksh sh5; do
 
204
             # Try only shells that exist, to save several forks.
 
205
             as_shell=$as_dir/$as_base
 
206
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
207
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$as_shell as_have_required=yes
 
209
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
210
  break 2
 
211
fi
 
212
fi
 
213
           done;;
 
214
       esac
 
215
  as_found=false
 
216
done
 
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
218
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
219
  CONFIG_SHELL=$SHELL as_have_required=yes
 
220
fi; }
 
221
IFS=$as_save_IFS
 
222
 
 
223
 
 
224
      if test "x$CONFIG_SHELL" != x; then :
 
225
  # We cannot yet assume a decent shell, so we have to provide a
 
226
        # neutralization value for shells without unset; and this also
 
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
 
229
        BASH_ENV=/dev/null
 
230
        ENV=/dev/null
 
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
232
        export CONFIG_SHELL
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
 
240
fi
 
241
 
 
242
    if test x$as_have_required = xno; then :
 
243
  $as_echo "$0: This script requires a shell more modern than all"
 
244
  $as_echo "$0: the shells that I found on your system."
 
245
  if test x${ZSH_VERSION+set} = xset ; then
 
246
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
247
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
248
  else
 
249
    $as_echo "$0: Please tell bug-autoconf@gnu.org and dabi@imm.dtu.dk
 
250
$0: about your system, including any error possibly output
 
251
$0: before this message. Then install a modern shell, or
 
252
$0: manually run the script under such a shell if you do
 
253
$0: have one."
 
254
  fi
 
255
  exit 1
 
256
fi
 
257
fi
 
258
fi
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
export SHELL
 
261
# Unset more variables known to interfere with behavior of common tools.
 
262
CLICOLOR_FORCE= GREP_OPTIONS=
 
263
unset CLICOLOR_FORCE GREP_OPTIONS
 
264
 
 
265
## --------------------- ##
 
266
## M4sh Shell Functions. ##
 
267
## --------------------- ##
 
268
# as_fn_unset VAR
 
269
# ---------------
 
270
# Portably unset VAR.
 
271
as_fn_unset ()
 
272
{
 
273
  { eval $1=; unset $1;}
 
274
}
 
275
as_unset=as_fn_unset
 
276
 
 
277
# as_fn_set_status STATUS
 
278
# -----------------------
 
279
# Set $? to STATUS, without forking.
 
280
as_fn_set_status ()
 
281
{
 
282
  return $1
 
283
} # as_fn_set_status
 
284
 
 
285
# as_fn_exit STATUS
 
286
# -----------------
 
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
288
as_fn_exit ()
 
289
{
 
290
  set +e
 
291
  as_fn_set_status $1
 
292
  exit $1
 
293
} # as_fn_exit
 
294
 
 
295
# as_fn_mkdir_p
 
296
# -------------
 
297
# Create "$as_dir" as a directory, including parents if necessary.
 
298
as_fn_mkdir_p ()
 
299
{
 
300
 
 
301
  case $as_dir in #(
 
302
  -*) as_dir=./$as_dir;;
 
303
  esac
 
304
  test -d "$as_dir" || eval $as_mkdir_p || {
 
305
    as_dirs=
 
306
    while :; do
 
307
      case $as_dir in #(
 
308
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
309
      *) as_qdir=$as_dir;;
 
310
      esac
 
311
      as_dirs="'$as_qdir' $as_dirs"
 
312
      as_dir=`$as_dirname -- "$as_dir" ||
 
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
314
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
315
         X"$as_dir" : 'X\(//\)$' \| \
 
316
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
317
$as_echo X"$as_dir" |
 
318
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
319
            s//\1/
 
320
            q
 
321
          }
 
322
          /^X\(\/\/\)[^/].*/{
 
323
            s//\1/
 
324
            q
 
325
          }
 
326
          /^X\(\/\/\)$/{
 
327
            s//\1/
 
328
            q
 
329
          }
 
330
          /^X\(\/\).*/{
 
331
            s//\1/
 
332
            q
 
333
          }
 
334
          s/.*/./; q'`
 
335
      test -d "$as_dir" && break
 
336
    done
 
337
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
338
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
339
 
 
340
 
 
341
} # as_fn_mkdir_p
 
342
# as_fn_append VAR VALUE
 
343
# ----------------------
 
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
345
# advantage of any shell optimizations that allow amortized linear growth over
 
346
# repeated appends, instead of the typical quadratic growth present in naive
 
347
# implementations.
 
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
349
  eval 'as_fn_append ()
 
350
  {
 
351
    eval $1+=\$2
 
352
  }'
 
353
else
 
354
  as_fn_append ()
 
355
  {
 
356
    eval $1=\$$1\$2
 
357
  }
 
358
fi # as_fn_append
 
359
 
 
360
# as_fn_arith ARG...
 
361
# ------------------
 
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
364
# must be portable across $(()) and expr.
 
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
366
  eval 'as_fn_arith ()
 
367
  {
 
368
    as_val=$(( $* ))
 
369
  }'
 
370
else
 
371
  as_fn_arith ()
 
372
  {
 
373
    as_val=`expr "$@" || test $? -eq 1`
 
374
  }
 
375
fi # as_fn_arith
 
376
 
 
377
 
 
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
379
# ----------------------------------------
 
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
382
# script with STATUS, using 1 if that was 0.
 
383
as_fn_error ()
 
384
{
 
385
  as_status=$1; test $as_status -eq 0 && as_status=1
 
386
  if test "$4"; then
 
387
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
388
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
389
  fi
 
390
  $as_echo "$as_me: error: $2" >&2
 
391
  as_fn_exit $as_status
 
392
} # as_fn_error
 
393
 
 
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
395
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
396
  as_expr=expr
 
397
else
 
398
  as_expr=false
 
399
fi
 
400
 
 
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
402
  as_basename=basename
 
403
else
 
404
  as_basename=false
 
405
fi
 
406
 
 
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
408
  as_dirname=dirname
 
409
else
 
410
  as_dirname=false
 
411
fi
 
412
 
 
413
as_me=`$as_basename -- "$0" ||
 
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
415
         X"$0" : 'X\(//\)$' \| \
 
416
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
417
$as_echo X/"$0" |
 
418
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
419
            s//\1/
 
420
            q
 
421
          }
 
422
          /^X\/\(\/\/\)$/{
 
423
            s//\1/
 
424
            q
 
425
          }
 
426
          /^X\/\(\/\).*/{
 
427
            s//\1/
 
428
            q
 
429
          }
 
430
          s/.*/./; q'`
 
431
 
 
432
# Avoid depending upon Character Ranges.
 
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
436
as_cr_digits='0123456789'
 
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
438
 
 
439
 
 
440
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
441
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
442
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
443
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
444
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
445
  sed -n '
 
446
    p
 
447
    /[$]LINENO/=
 
448
  ' <$as_myself |
 
449
    sed '
 
450
      s/[$]LINENO.*/&-/
 
451
      t lineno
 
452
      b
 
453
      :lineno
 
454
      N
 
455
      :loop
 
456
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
457
      t loop
 
458
      s/-\n.*//
 
459
    ' >$as_me.lineno &&
 
460
  chmod +x "$as_me.lineno" ||
 
461
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
462
 
 
463
  # Don't try to exec as it changes $[0], causing all sort of problems
 
464
  # (the dirname of $[0] is not the place where we might find the
 
465
  # original and so on.  Autoconf is especially sensitive to this).
 
466
  . "./$as_me.lineno"
 
467
  # Exit status is that of the last command.
 
468
  exit
 
469
}
 
470
 
 
471
ECHO_C= ECHO_N= ECHO_T=
 
472
case `echo -n x` in #(((((
 
473
-n*)
 
474
  case `echo 'xy\c'` in
 
475
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
476
  xy)  ECHO_C='\c';;
 
477
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
478
       ECHO_T=' ';;
 
479
  esac;;
 
480
*)
 
481
  ECHO_N='-n';;
 
482
esac
 
483
 
 
484
rm -f conf$$ conf$$.exe conf$$.file
 
485
if test -d conf$$.dir; then
 
486
  rm -f conf$$.dir/conf$$.file
 
487
else
 
488
  rm -f conf$$.dir
 
489
  mkdir conf$$.dir 2>/dev/null
 
490
fi
 
491
if (echo >conf$$.file) 2>/dev/null; then
 
492
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
493
    as_ln_s='ln -s'
 
494
    # ... but there are two gotchas:
 
495
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
496
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
497
    # In both cases, we have to default to `cp -p'.
 
498
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
499
      as_ln_s='cp -p'
 
500
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
501
    as_ln_s=ln
 
502
  else
 
503
    as_ln_s='cp -p'
 
504
  fi
 
505
else
 
506
  as_ln_s='cp -p'
 
507
fi
 
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
509
rmdir conf$$.dir 2>/dev/null
 
510
 
 
511
if mkdir -p . 2>/dev/null; then
 
512
  as_mkdir_p='mkdir -p "$as_dir"'
 
513
else
 
514
  test -d ./-p && rmdir ./-p
 
515
  as_mkdir_p=false
 
516
fi
 
517
 
 
518
if test -x / >/dev/null 2>&1; then
 
519
  as_test_x='test -x'
 
520
else
 
521
  if ls -dL / >/dev/null 2>&1; then
 
522
    as_ls_L_option=L
 
523
  else
 
524
    as_ls_L_option=
 
525
  fi
 
526
  as_test_x='
 
527
    eval sh -c '\''
 
528
      if test -d "$1"; then
 
529
        test -d "$1/.";
 
530
      else
 
531
        case $1 in #(
 
532
        -*)set "./$1";;
 
533
        esac;
 
534
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
535
        ???[sx]*):;;*)false;;esac;fi
 
536
    '\'' sh
 
537
  '
 
538
fi
 
539
as_executable_p=$as_test_x
 
540
 
 
541
# Sed expression to map a string onto a valid CPP name.
 
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
543
 
 
544
# Sed expression to map a string onto a valid variable name.
 
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
SHELL=${CONFIG_SHELL-/bin/sh}
 
548
 
 
549
 
 
550
test -n "$DJDIR" || exec 7<&0 </dev/null
 
551
exec 6>&1
 
552
 
 
553
# Name of the host.
 
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
555
# so uname gets run too.
 
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
557
 
 
558
#
 
559
# Initializations.
 
560
#
 
561
ac_default_prefix=/usr/local
 
562
ac_clean_files=
 
563
ac_config_libobj_dir=.
 
564
LIBOBJS=
 
565
cross_compiling=no
 
566
subdirs=
 
567
MFLAGS=
 
568
MAKEFLAGS=
 
569
 
 
570
# Identity of this package.
 
571
PACKAGE_NAME='ORTHPOLxx'
 
572
PACKAGE_TARNAME='orthpolxx'
 
573
PACKAGE_VERSION='1.0'
 
574
PACKAGE_STRING='ORTHPOLxx 1.0'
 
575
PACKAGE_BUGREPORT='dabi@imm.dtu.dk'
 
576
PACKAGE_URL=''
 
577
 
 
578
# Factoring default headers for most tests.
 
579
ac_includes_default="\
 
580
#include <stdio.h>
 
581
#ifdef HAVE_SYS_TYPES_H
 
582
# include <sys/types.h>
 
583
#endif
 
584
#ifdef HAVE_SYS_STAT_H
 
585
# include <sys/stat.h>
 
586
#endif
 
587
#ifdef STDC_HEADERS
 
588
# include <stdlib.h>
 
589
# include <stddef.h>
 
590
#else
 
591
# ifdef HAVE_STDLIB_H
 
592
#  include <stdlib.h>
 
593
# endif
 
594
#endif
 
595
#ifdef HAVE_STRING_H
 
596
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
597
#  include <memory.h>
 
598
# endif
 
599
# include <string.h>
 
600
#endif
 
601
#ifdef HAVE_STRINGS_H
 
602
# include <strings.h>
 
603
#endif
 
604
#ifdef HAVE_INTTYPES_H
 
605
# include <inttypes.h>
 
606
#endif
 
607
#ifdef HAVE_STDINT_H
 
608
# include <stdint.h>
 
609
#endif
 
610
#ifdef HAVE_UNISTD_H
 
611
# include <unistd.h>
 
612
#endif"
 
613
 
 
614
ac_subst_vars='am__EXEEXT_FALSE
 
615
am__EXEEXT_TRUE
 
616
LTLIBOBJS
 
617
LIBOBJS
 
618
ac_ct_F77
 
619
FFLAGS
 
620
F77
 
621
CXXCPP
 
622
am__fastdepCXX_FALSE
 
623
am__fastdepCXX_TRUE
 
624
CXXDEPMODE
 
625
ac_ct_CXX
 
626
CXXFLAGS
 
627
CXX
 
628
CPP
 
629
OTOOL64
 
630
OTOOL
 
631
LIPO
 
632
NMEDIT
 
633
DSYMUTIL
 
634
MANIFEST_TOOL
 
635
RANLIB
 
636
ac_ct_AR
 
637
AR
 
638
DLLTOOL
 
639
OBJDUMP
 
640
LN_S
 
641
NM
 
642
ac_ct_DUMPBIN
 
643
DUMPBIN
 
644
LD
 
645
FGREP
 
646
EGREP
 
647
GREP
 
648
SED
 
649
am__fastdepCC_FALSE
 
650
am__fastdepCC_TRUE
 
651
CCDEPMODE
 
652
am__nodep
 
653
AMDEPBACKSLASH
 
654
AMDEP_FALSE
 
655
AMDEP_TRUE
 
656
am__quote
 
657
am__include
 
658
DEPDIR
 
659
OBJEXT
 
660
EXEEXT
 
661
ac_ct_CC
 
662
CPPFLAGS
 
663
LDFLAGS
 
664
CFLAGS
 
665
CC
 
666
host_os
 
667
host_vendor
 
668
host_cpu
 
669
host
 
670
build_os
 
671
build_vendor
 
672
build_cpu
 
673
build
 
674
LIBTOOL
 
675
am__untar
 
676
am__tar
 
677
AMTAR
 
678
am__leading_dot
 
679
SET_MAKE
 
680
AWK
 
681
mkdir_p
 
682
MKDIR_P
 
683
INSTALL_STRIP_PROGRAM
 
684
STRIP
 
685
install_sh
 
686
MAKEINFO
 
687
AUTOHEADER
 
688
AUTOMAKE
 
689
AUTOCONF
 
690
ACLOCAL
 
691
VERSION
 
692
PACKAGE
 
693
CYGPATH_W
 
694
am__isrc
 
695
INSTALL_DATA
 
696
INSTALL_SCRIPT
 
697
INSTALL_PROGRAM
 
698
target_alias
 
699
host_alias
 
700
build_alias
 
701
LIBS
 
702
ECHO_T
 
703
ECHO_N
 
704
ECHO_C
 
705
DEFS
 
706
mandir
 
707
localedir
 
708
libdir
 
709
psdir
 
710
pdfdir
 
711
dvidir
 
712
htmldir
 
713
infodir
 
714
docdir
 
715
oldincludedir
 
716
includedir
 
717
localstatedir
 
718
sharedstatedir
 
719
sysconfdir
 
720
datadir
 
721
datarootdir
 
722
libexecdir
 
723
sbindir
 
724
bindir
 
725
program_transform_name
 
726
prefix
 
727
exec_prefix
 
728
PACKAGE_URL
 
729
PACKAGE_BUGREPORT
 
730
PACKAGE_STRING
 
731
PACKAGE_VERSION
 
732
PACKAGE_TARNAME
 
733
PACKAGE_NAME
 
734
PATH_SEPARATOR
 
735
SHELL'
 
736
ac_subst_files=''
 
737
ac_user_opts='
 
738
enable_option_checking
 
739
enable_shared
 
740
enable_static
 
741
with_pic
 
742
enable_fast_install
 
743
enable_dependency_tracking
 
744
with_gnu_ld
 
745
with_sysroot
 
746
enable_libtool_lock
 
747
'
 
748
      ac_precious_vars='build_alias
 
749
host_alias
 
750
target_alias
 
751
CC
 
752
CFLAGS
 
753
LDFLAGS
 
754
LIBS
 
755
CPPFLAGS
 
756
CPP
 
757
CXX
 
758
CXXFLAGS
 
759
CCC
 
760
CXXCPP
 
761
F77
 
762
FFLAGS'
 
763
 
 
764
 
 
765
# Initialize some variables set by options.
 
766
ac_init_help=
 
767
ac_init_version=false
 
768
ac_unrecognized_opts=
 
769
ac_unrecognized_sep=
 
770
# The variables have the same names as the options, with
 
771
# dashes changed to underlines.
 
772
cache_file=/dev/null
 
773
exec_prefix=NONE
 
774
no_create=
 
775
no_recursion=
 
776
prefix=NONE
 
777
program_prefix=NONE
 
778
program_suffix=NONE
 
779
program_transform_name=s,x,x,
 
780
silent=
 
781
site=
 
782
srcdir=
 
783
verbose=
 
784
x_includes=NONE
 
785
x_libraries=NONE
 
786
 
 
787
# Installation directory options.
 
788
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
789
# and all the variables that are supposed to be based on exec_prefix
 
790
# by default will actually change.
 
791
# Use braces instead of parens because sh, perl, etc. also accept them.
 
792
# (The list follows the same order as the GNU Coding Standards.)
 
793
bindir='${exec_prefix}/bin'
 
794
sbindir='${exec_prefix}/sbin'
 
795
libexecdir='${exec_prefix}/libexec'
 
796
datarootdir='${prefix}/share'
 
797
datadir='${datarootdir}'
 
798
sysconfdir='${prefix}/etc'
 
799
sharedstatedir='${prefix}/com'
 
800
localstatedir='${prefix}/var'
 
801
includedir='${prefix}/include'
 
802
oldincludedir='/usr/include'
 
803
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
804
infodir='${datarootdir}/info'
 
805
htmldir='${docdir}'
 
806
dvidir='${docdir}'
 
807
pdfdir='${docdir}'
 
808
psdir='${docdir}'
 
809
libdir='${exec_prefix}/lib'
 
810
localedir='${datarootdir}/locale'
 
811
mandir='${datarootdir}/man'
 
812
 
 
813
ac_prev=
 
814
ac_dashdash=
 
815
for ac_option
 
816
do
 
817
  # If the previous option needs an argument, assign it.
 
818
  if test -n "$ac_prev"; then
 
819
    eval $ac_prev=\$ac_option
 
820
    ac_prev=
 
821
    continue
 
822
  fi
 
823
 
 
824
  case $ac_option in
 
825
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
826
  *=)   ac_optarg= ;;
 
827
  *)    ac_optarg=yes ;;
 
828
  esac
 
829
 
 
830
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
831
 
 
832
  case $ac_dashdash$ac_option in
 
833
  --)
 
834
    ac_dashdash=yes ;;
 
835
 
 
836
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
837
    ac_prev=bindir ;;
 
838
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
839
    bindir=$ac_optarg ;;
 
840
 
 
841
  -build | --build | --buil | --bui | --bu)
 
842
    ac_prev=build_alias ;;
 
843
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
844
    build_alias=$ac_optarg ;;
 
845
 
 
846
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
847
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
848
    ac_prev=cache_file ;;
 
849
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
850
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
851
    cache_file=$ac_optarg ;;
 
852
 
 
853
  --config-cache | -C)
 
854
    cache_file=config.cache ;;
 
855
 
 
856
  -datadir | --datadir | --datadi | --datad)
 
857
    ac_prev=datadir ;;
 
858
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
859
    datadir=$ac_optarg ;;
 
860
 
 
861
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
862
  | --dataroo | --dataro | --datar)
 
863
    ac_prev=datarootdir ;;
 
864
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
865
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
866
    datarootdir=$ac_optarg ;;
 
867
 
 
868
  -disable-* | --disable-*)
 
869
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
870
    # Reject names that are not valid shell variable names.
 
871
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
872
      as_fn_error $? "invalid feature name: $ac_useropt"
 
873
    ac_useropt_orig=$ac_useropt
 
874
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
875
    case $ac_user_opts in
 
876
      *"
 
877
"enable_$ac_useropt"
 
878
"*) ;;
 
879
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
880
         ac_unrecognized_sep=', ';;
 
881
    esac
 
882
    eval enable_$ac_useropt=no ;;
 
883
 
 
884
  -docdir | --docdir | --docdi | --doc | --do)
 
885
    ac_prev=docdir ;;
 
886
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
887
    docdir=$ac_optarg ;;
 
888
 
 
889
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
890
    ac_prev=dvidir ;;
 
891
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
892
    dvidir=$ac_optarg ;;
 
893
 
 
894
  -enable-* | --enable-*)
 
895
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
896
    # Reject names that are not valid shell variable names.
 
897
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
898
      as_fn_error $? "invalid feature name: $ac_useropt"
 
899
    ac_useropt_orig=$ac_useropt
 
900
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
901
    case $ac_user_opts in
 
902
      *"
 
903
"enable_$ac_useropt"
 
904
"*) ;;
 
905
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
906
         ac_unrecognized_sep=', ';;
 
907
    esac
 
908
    eval enable_$ac_useropt=\$ac_optarg ;;
 
909
 
 
910
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
911
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
912
  | --exec | --exe | --ex)
 
913
    ac_prev=exec_prefix ;;
 
914
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
915
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
916
  | --exec=* | --exe=* | --ex=*)
 
917
    exec_prefix=$ac_optarg ;;
 
918
 
 
919
  -gas | --gas | --ga | --g)
 
920
    # Obsolete; use --with-gas.
 
921
    with_gas=yes ;;
 
922
 
 
923
  -help | --help | --hel | --he | -h)
 
924
    ac_init_help=long ;;
 
925
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
926
    ac_init_help=recursive ;;
 
927
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
928
    ac_init_help=short ;;
 
929
 
 
930
  -host | --host | --hos | --ho)
 
931
    ac_prev=host_alias ;;
 
932
  -host=* | --host=* | --hos=* | --ho=*)
 
933
    host_alias=$ac_optarg ;;
 
934
 
 
935
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
936
    ac_prev=htmldir ;;
 
937
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
938
  | --ht=*)
 
939
    htmldir=$ac_optarg ;;
 
940
 
 
941
  -includedir | --includedir | --includedi | --included | --include \
 
942
  | --includ | --inclu | --incl | --inc)
 
943
    ac_prev=includedir ;;
 
944
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
945
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
946
    includedir=$ac_optarg ;;
 
947
 
 
948
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
949
    ac_prev=infodir ;;
 
950
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
951
    infodir=$ac_optarg ;;
 
952
 
 
953
  -libdir | --libdir | --libdi | --libd)
 
954
    ac_prev=libdir ;;
 
955
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
956
    libdir=$ac_optarg ;;
 
957
 
 
958
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
959
  | --libexe | --libex | --libe)
 
960
    ac_prev=libexecdir ;;
 
961
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
962
  | --libexe=* | --libex=* | --libe=*)
 
963
    libexecdir=$ac_optarg ;;
 
964
 
 
965
  -localedir | --localedir | --localedi | --localed | --locale)
 
966
    ac_prev=localedir ;;
 
967
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
968
    localedir=$ac_optarg ;;
 
969
 
 
970
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
971
  | --localstate | --localstat | --localsta | --localst | --locals)
 
972
    ac_prev=localstatedir ;;
 
973
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
974
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
975
    localstatedir=$ac_optarg ;;
 
976
 
 
977
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
978
    ac_prev=mandir ;;
 
979
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
980
    mandir=$ac_optarg ;;
 
981
 
 
982
  -nfp | --nfp | --nf)
 
983
    # Obsolete; use --without-fp.
 
984
    with_fp=no ;;
 
985
 
 
986
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
987
  | --no-cr | --no-c | -n)
 
988
    no_create=yes ;;
 
989
 
 
990
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
991
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
992
    no_recursion=yes ;;
 
993
 
 
994
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
995
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
996
  | --oldin | --oldi | --old | --ol | --o)
 
997
    ac_prev=oldincludedir ;;
 
998
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
999
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1000
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1001
    oldincludedir=$ac_optarg ;;
 
1002
 
 
1003
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1004
    ac_prev=prefix ;;
 
1005
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1006
    prefix=$ac_optarg ;;
 
1007
 
 
1008
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1009
  | --program-pre | --program-pr | --program-p)
 
1010
    ac_prev=program_prefix ;;
 
1011
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1012
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1013
    program_prefix=$ac_optarg ;;
 
1014
 
 
1015
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1016
  | --program-suf | --program-su | --program-s)
 
1017
    ac_prev=program_suffix ;;
 
1018
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1019
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1020
    program_suffix=$ac_optarg ;;
 
1021
 
 
1022
  -program-transform-name | --program-transform-name \
 
1023
  | --program-transform-nam | --program-transform-na \
 
1024
  | --program-transform-n | --program-transform- \
 
1025
  | --program-transform | --program-transfor \
 
1026
  | --program-transfo | --program-transf \
 
1027
  | --program-trans | --program-tran \
 
1028
  | --progr-tra | --program-tr | --program-t)
 
1029
    ac_prev=program_transform_name ;;
 
1030
  -program-transform-name=* | --program-transform-name=* \
 
1031
  | --program-transform-nam=* | --program-transform-na=* \
 
1032
  | --program-transform-n=* | --program-transform-=* \
 
1033
  | --program-transform=* | --program-transfor=* \
 
1034
  | --program-transfo=* | --program-transf=* \
 
1035
  | --program-trans=* | --program-tran=* \
 
1036
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1037
    program_transform_name=$ac_optarg ;;
 
1038
 
 
1039
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1040
    ac_prev=pdfdir ;;
 
1041
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1042
    pdfdir=$ac_optarg ;;
 
1043
 
 
1044
  -psdir | --psdir | --psdi | --psd | --ps)
 
1045
    ac_prev=psdir ;;
 
1046
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1047
    psdir=$ac_optarg ;;
 
1048
 
 
1049
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1050
  | -silent | --silent | --silen | --sile | --sil)
 
1051
    silent=yes ;;
 
1052
 
 
1053
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1054
    ac_prev=sbindir ;;
 
1055
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1056
  | --sbi=* | --sb=*)
 
1057
    sbindir=$ac_optarg ;;
 
1058
 
 
1059
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1060
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1061
  | --sharedst | --shareds | --shared | --share | --shar \
 
1062
  | --sha | --sh)
 
1063
    ac_prev=sharedstatedir ;;
 
1064
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1065
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1066
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1067
  | --sha=* | --sh=*)
 
1068
    sharedstatedir=$ac_optarg ;;
 
1069
 
 
1070
  -site | --site | --sit)
 
1071
    ac_prev=site ;;
 
1072
  -site=* | --site=* | --sit=*)
 
1073
    site=$ac_optarg ;;
 
1074
 
 
1075
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1076
    ac_prev=srcdir ;;
 
1077
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1078
    srcdir=$ac_optarg ;;
 
1079
 
 
1080
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1081
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1082
    ac_prev=sysconfdir ;;
 
1083
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1084
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1085
    sysconfdir=$ac_optarg ;;
 
1086
 
 
1087
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1088
    ac_prev=target_alias ;;
 
1089
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1090
    target_alias=$ac_optarg ;;
 
1091
 
 
1092
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1093
    verbose=yes ;;
 
1094
 
 
1095
  -version | --version | --versio | --versi | --vers | -V)
 
1096
    ac_init_version=: ;;
 
1097
 
 
1098
  -with-* | --with-*)
 
1099
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1100
    # Reject names that are not valid shell variable names.
 
1101
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1102
      as_fn_error $? "invalid package name: $ac_useropt"
 
1103
    ac_useropt_orig=$ac_useropt
 
1104
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1105
    case $ac_user_opts in
 
1106
      *"
 
1107
"with_$ac_useropt"
 
1108
"*) ;;
 
1109
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1110
         ac_unrecognized_sep=', ';;
 
1111
    esac
 
1112
    eval with_$ac_useropt=\$ac_optarg ;;
 
1113
 
 
1114
  -without-* | --without-*)
 
1115
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1116
    # Reject names that are not valid shell variable names.
 
1117
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1118
      as_fn_error $? "invalid package name: $ac_useropt"
 
1119
    ac_useropt_orig=$ac_useropt
 
1120
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1121
    case $ac_user_opts in
 
1122
      *"
 
1123
"with_$ac_useropt"
 
1124
"*) ;;
 
1125
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1126
         ac_unrecognized_sep=', ';;
 
1127
    esac
 
1128
    eval with_$ac_useropt=no ;;
 
1129
 
 
1130
  --x)
 
1131
    # Obsolete; use --with-x.
 
1132
    with_x=yes ;;
 
1133
 
 
1134
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1135
  | --x-incl | --x-inc | --x-in | --x-i)
 
1136
    ac_prev=x_includes ;;
 
1137
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1138
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1139
    x_includes=$ac_optarg ;;
 
1140
 
 
1141
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1142
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1143
    ac_prev=x_libraries ;;
 
1144
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1145
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1146
    x_libraries=$ac_optarg ;;
 
1147
 
 
1148
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1149
Try \`$0 --help' for more information"
 
1150
    ;;
 
1151
 
 
1152
  *=*)
 
1153
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1154
    # Reject names that are not valid shell variable names.
 
1155
    case $ac_envvar in #(
 
1156
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1157
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1158
    esac
 
1159
    eval $ac_envvar=\$ac_optarg
 
1160
    export $ac_envvar ;;
 
1161
 
 
1162
  *)
 
1163
    # FIXME: should be removed in autoconf 3.0.
 
1164
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1165
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1166
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1167
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1168
    ;;
 
1169
 
 
1170
  esac
 
1171
done
 
1172
 
 
1173
if test -n "$ac_prev"; then
 
1174
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1175
  as_fn_error $? "missing argument to $ac_option"
 
1176
fi
 
1177
 
 
1178
if test -n "$ac_unrecognized_opts"; then
 
1179
  case $enable_option_checking in
 
1180
    no) ;;
 
1181
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1182
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1183
  esac
 
1184
fi
 
1185
 
 
1186
# Check all directory arguments for consistency.
 
1187
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1188
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1189
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1190
                libdir localedir mandir
 
1191
do
 
1192
  eval ac_val=\$$ac_var
 
1193
  # Remove trailing slashes.
 
1194
  case $ac_val in
 
1195
    */ )
 
1196
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1197
      eval $ac_var=\$ac_val;;
 
1198
  esac
 
1199
  # Be sure to have absolute directory names.
 
1200
  case $ac_val in
 
1201
    [\\/$]* | ?:[\\/]* )  continue;;
 
1202
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1203
  esac
 
1204
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1205
done
 
1206
 
 
1207
# There might be people who depend on the old broken behavior: `$host'
 
1208
# used to hold the argument of --host etc.
 
1209
# FIXME: To remove some day.
 
1210
build=$build_alias
 
1211
host=$host_alias
 
1212
target=$target_alias
 
1213
 
 
1214
# FIXME: To remove some day.
 
1215
if test "x$host_alias" != x; then
 
1216
  if test "x$build_alias" = x; then
 
1217
    cross_compiling=maybe
 
1218
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1219
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1220
  elif test "x$build_alias" != "x$host_alias"; then
 
1221
    cross_compiling=yes
 
1222
  fi
 
1223
fi
 
1224
 
 
1225
ac_tool_prefix=
 
1226
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1227
 
 
1228
test "$silent" = yes && exec 6>/dev/null
 
1229
 
 
1230
 
 
1231
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1232
ac_ls_di=`ls -di .` &&
 
1233
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1234
  as_fn_error $? "working directory cannot be determined"
 
1235
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1236
  as_fn_error $? "pwd does not report name of working directory"
 
1237
 
 
1238
 
 
1239
# Find the source files, if location was not specified.
 
1240
if test -z "$srcdir"; then
 
1241
  ac_srcdir_defaulted=yes
 
1242
  # Try the directory containing this script, then the parent directory.
 
1243
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1244
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1245
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1246
         X"$as_myself" : 'X\(//\)$' \| \
 
1247
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1248
$as_echo X"$as_myself" |
 
1249
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1250
            s//\1/
 
1251
            q
 
1252
          }
 
1253
          /^X\(\/\/\)[^/].*/{
 
1254
            s//\1/
 
1255
            q
 
1256
          }
 
1257
          /^X\(\/\/\)$/{
 
1258
            s//\1/
 
1259
            q
 
1260
          }
 
1261
          /^X\(\/\).*/{
 
1262
            s//\1/
 
1263
            q
 
1264
          }
 
1265
          s/.*/./; q'`
 
1266
  srcdir=$ac_confdir
 
1267
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1268
    srcdir=..
 
1269
  fi
 
1270
else
 
1271
  ac_srcdir_defaulted=no
 
1272
fi
 
1273
if test ! -r "$srcdir/$ac_unique_file"; then
 
1274
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1275
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1276
fi
 
1277
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1278
ac_abs_confdir=`(
 
1279
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1280
        pwd)`
 
1281
# When building in place, set srcdir=.
 
1282
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1283
  srcdir=.
 
1284
fi
 
1285
# Remove unnecessary trailing slashes from srcdir.
 
1286
# Double slashes in file names in object file debugging info
 
1287
# mess up M-x gdb in Emacs.
 
1288
case $srcdir in
 
1289
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1290
esac
 
1291
for ac_var in $ac_precious_vars; do
 
1292
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1293
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1294
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1295
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1296
done
 
1297
 
 
1298
#
 
1299
# Report the --help message.
 
1300
#
 
1301
if test "$ac_init_help" = "long"; then
 
1302
  # Omit some internal or obsolete options to make the list less imposing.
 
1303
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1304
  cat <<_ACEOF
 
1305
\`configure' configures ORTHPOLxx 1.0 to adapt to many kinds of systems.
 
1306
 
 
1307
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1308
 
 
1309
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1310
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1311
 
 
1312
Defaults for the options are specified in brackets.
 
1313
 
 
1314
Configuration:
 
1315
  -h, --help              display this help and exit
 
1316
      --help=short        display options specific to this package
 
1317
      --help=recursive    display the short help of all the included packages
 
1318
  -V, --version           display version information and exit
 
1319
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1320
      --cache-file=FILE   cache test results in FILE [disabled]
 
1321
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1322
  -n, --no-create         do not create output files
 
1323
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1324
 
 
1325
Installation directories:
 
1326
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1327
                          [$ac_default_prefix]
 
1328
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1329
                          [PREFIX]
 
1330
 
 
1331
By default, \`make install' will install all the files in
 
1332
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1333
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1334
for instance \`--prefix=\$HOME'.
 
1335
 
 
1336
For better control, use the options below.
 
1337
 
 
1338
Fine tuning of the installation directories:
 
1339
  --bindir=DIR            user executables [EPREFIX/bin]
 
1340
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1341
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1342
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1343
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1344
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1345
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1346
  --includedir=DIR        C header files [PREFIX/include]
 
1347
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1348
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1349
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1350
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1351
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1352
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1353
  --docdir=DIR            documentation root [DATAROOTDIR/doc/orthpolxx]
 
1354
  --htmldir=DIR           html documentation [DOCDIR]
 
1355
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1356
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1357
  --psdir=DIR             ps documentation [DOCDIR]
 
1358
_ACEOF
 
1359
 
 
1360
  cat <<\_ACEOF
 
1361
 
 
1362
Program names:
 
1363
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1364
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1365
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1366
 
 
1367
System types:
 
1368
  --build=BUILD     configure for building on BUILD [guessed]
 
1369
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1370
_ACEOF
 
1371
fi
 
1372
 
 
1373
if test -n "$ac_init_help"; then
 
1374
  case $ac_init_help in
 
1375
     short | recursive ) echo "Configuration of ORTHPOLxx 1.0:";;
 
1376
   esac
 
1377
  cat <<\_ACEOF
 
1378
 
 
1379
Optional Features:
 
1380
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1381
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1382
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1383
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1384
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1385
  --enable-fast-install[=PKGS]
 
1386
                          optimize for fast installation [default=yes]
 
1387
  --disable-dependency-tracking  speeds up one-time build
 
1388
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1389
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1390
 
 
1391
Optional Packages:
 
1392
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1393
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1394
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
 
1395
                          both]
 
1396
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1397
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1398
                        (or the compiler's sysroot if not specified).
 
1399
 
 
1400
Some influential environment variables:
 
1401
  CC          C compiler command
 
1402
  CFLAGS      C compiler flags
 
1403
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1404
              nonstandard directory <lib dir>
 
1405
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1406
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1407
              you have headers in a nonstandard directory <include dir>
 
1408
  CPP         C preprocessor
 
1409
  CXX         C++ compiler command
 
1410
  CXXFLAGS    C++ compiler flags
 
1411
  CXXCPP      C++ preprocessor
 
1412
  F77         Fortran 77 compiler command
 
1413
  FFLAGS      Fortran 77 compiler flags
 
1414
 
 
1415
Use these variables to override the choices made by `configure' or to help
 
1416
it to find libraries and programs with nonstandard names/locations.
 
1417
 
 
1418
Report bugs to <dabi@imm.dtu.dk>.
 
1419
_ACEOF
 
1420
ac_status=$?
 
1421
fi
 
1422
 
 
1423
if test "$ac_init_help" = "recursive"; then
 
1424
  # If there are subdirs, report their specific --help.
 
1425
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1426
    test -d "$ac_dir" ||
 
1427
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1428
      continue
 
1429
    ac_builddir=.
 
1430
 
 
1431
case "$ac_dir" in
 
1432
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1433
*)
 
1434
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1435
  # A ".." for each directory in $ac_dir_suffix.
 
1436
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1437
  case $ac_top_builddir_sub in
 
1438
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1439
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1440
  esac ;;
 
1441
esac
 
1442
ac_abs_top_builddir=$ac_pwd
 
1443
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1444
# for backward compatibility:
 
1445
ac_top_builddir=$ac_top_build_prefix
 
1446
 
 
1447
case $srcdir in
 
1448
  .)  # We are building in place.
 
1449
    ac_srcdir=.
 
1450
    ac_top_srcdir=$ac_top_builddir_sub
 
1451
    ac_abs_top_srcdir=$ac_pwd ;;
 
1452
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1453
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1454
    ac_top_srcdir=$srcdir
 
1455
    ac_abs_top_srcdir=$srcdir ;;
 
1456
  *) # Relative name.
 
1457
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1458
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1459
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1460
esac
 
1461
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1462
 
 
1463
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1464
    # Check for guested configure.
 
1465
    if test -f "$ac_srcdir/configure.gnu"; then
 
1466
      echo &&
 
1467
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1468
    elif test -f "$ac_srcdir/configure"; then
 
1469
      echo &&
 
1470
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1471
    else
 
1472
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1473
    fi || ac_status=$?
 
1474
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1475
  done
 
1476
fi
 
1477
 
 
1478
test -n "$ac_init_help" && exit $ac_status
 
1479
if $ac_init_version; then
 
1480
  cat <<\_ACEOF
 
1481
ORTHPOLxx configure 1.0
 
1482
generated by GNU Autoconf 2.68
 
1483
 
 
1484
Copyright (C) 2010 Free Software Foundation, Inc.
 
1485
This configure script is free software; the Free Software Foundation
 
1486
gives unlimited permission to copy, distribute and modify it.
 
1487
_ACEOF
 
1488
  exit
 
1489
fi
 
1490
 
 
1491
## ------------------------ ##
 
1492
## Autoconf initialization. ##
 
1493
## ------------------------ ##
 
1494
 
 
1495
# ac_fn_c_try_compile LINENO
 
1496
# --------------------------
 
1497
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1498
ac_fn_c_try_compile ()
 
1499
{
 
1500
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1501
  rm -f conftest.$ac_objext
 
1502
  if { { ac_try="$ac_compile"
 
1503
case "(($ac_try" in
 
1504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1505
  *) ac_try_echo=$ac_try;;
 
1506
esac
 
1507
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1508
$as_echo "$ac_try_echo"; } >&5
 
1509
  (eval "$ac_compile") 2>conftest.err
 
1510
  ac_status=$?
 
1511
  if test -s conftest.err; then
 
1512
    grep -v '^ *+' conftest.err >conftest.er1
 
1513
    cat conftest.er1 >&5
 
1514
    mv -f conftest.er1 conftest.err
 
1515
  fi
 
1516
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1517
  test $ac_status = 0; } && {
 
1518
         test -z "$ac_c_werror_flag" ||
 
1519
         test ! -s conftest.err
 
1520
       } && test -s conftest.$ac_objext; then :
 
1521
  ac_retval=0
 
1522
else
 
1523
  $as_echo "$as_me: failed program was:" >&5
 
1524
sed 's/^/| /' conftest.$ac_ext >&5
 
1525
 
 
1526
        ac_retval=1
 
1527
fi
 
1528
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1529
  as_fn_set_status $ac_retval
 
1530
 
 
1531
} # ac_fn_c_try_compile
 
1532
 
 
1533
# ac_fn_c_try_link LINENO
 
1534
# -----------------------
 
1535
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1536
ac_fn_c_try_link ()
 
1537
{
 
1538
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1539
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1540
  if { { ac_try="$ac_link"
 
1541
case "(($ac_try" in
 
1542
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1543
  *) ac_try_echo=$ac_try;;
 
1544
esac
 
1545
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1546
$as_echo "$ac_try_echo"; } >&5
 
1547
  (eval "$ac_link") 2>conftest.err
 
1548
  ac_status=$?
 
1549
  if test -s conftest.err; then
 
1550
    grep -v '^ *+' conftest.err >conftest.er1
 
1551
    cat conftest.er1 >&5
 
1552
    mv -f conftest.er1 conftest.err
 
1553
  fi
 
1554
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1555
  test $ac_status = 0; } && {
 
1556
         test -z "$ac_c_werror_flag" ||
 
1557
         test ! -s conftest.err
 
1558
       } && test -s conftest$ac_exeext && {
 
1559
         test "$cross_compiling" = yes ||
 
1560
         $as_test_x conftest$ac_exeext
 
1561
       }; then :
 
1562
  ac_retval=0
 
1563
else
 
1564
  $as_echo "$as_me: failed program was:" >&5
 
1565
sed 's/^/| /' conftest.$ac_ext >&5
 
1566
 
 
1567
        ac_retval=1
 
1568
fi
 
1569
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1570
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1571
  # interfere with the next link command; also delete a directory that is
 
1572
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1573
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1574
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1575
  as_fn_set_status $ac_retval
 
1576
 
 
1577
} # ac_fn_c_try_link
 
1578
 
 
1579
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1580
# -------------------------------------------------------
 
1581
# Tests whether HEADER exists and can be compiled using the include files in
 
1582
# INCLUDES, setting the cache variable VAR accordingly.
 
1583
ac_fn_c_check_header_compile ()
 
1584
{
 
1585
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1586
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1587
$as_echo_n "checking for $2... " >&6; }
 
1588
if eval \${$3+:} false; then :
 
1589
  $as_echo_n "(cached) " >&6
 
1590
else
 
1591
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1592
/* end confdefs.h.  */
 
1593
$4
 
1594
#include <$2>
 
1595
_ACEOF
 
1596
if ac_fn_c_try_compile "$LINENO"; then :
 
1597
  eval "$3=yes"
 
1598
else
 
1599
  eval "$3=no"
 
1600
fi
 
1601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1602
fi
 
1603
eval ac_res=\$$3
 
1604
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1605
$as_echo "$ac_res" >&6; }
 
1606
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1607
 
 
1608
} # ac_fn_c_check_header_compile
 
1609
 
 
1610
# ac_fn_c_try_cpp LINENO
 
1611
# ----------------------
 
1612
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1613
ac_fn_c_try_cpp ()
 
1614
{
 
1615
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1616
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1617
case "(($ac_try" in
 
1618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1619
  *) ac_try_echo=$ac_try;;
 
1620
esac
 
1621
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1622
$as_echo "$ac_try_echo"; } >&5
 
1623
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1624
  ac_status=$?
 
1625
  if test -s conftest.err; then
 
1626
    grep -v '^ *+' conftest.err >conftest.er1
 
1627
    cat conftest.er1 >&5
 
1628
    mv -f conftest.er1 conftest.err
 
1629
  fi
 
1630
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1631
  test $ac_status = 0; } > conftest.i && {
 
1632
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1633
         test ! -s conftest.err
 
1634
       }; then :
 
1635
  ac_retval=0
 
1636
else
 
1637
  $as_echo "$as_me: failed program was:" >&5
 
1638
sed 's/^/| /' conftest.$ac_ext >&5
 
1639
 
 
1640
    ac_retval=1
 
1641
fi
 
1642
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1643
  as_fn_set_status $ac_retval
 
1644
 
 
1645
} # ac_fn_c_try_cpp
 
1646
 
 
1647
# ac_fn_c_try_run LINENO
 
1648
# ----------------------
 
1649
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1650
# that executables *can* be run.
 
1651
ac_fn_c_try_run ()
 
1652
{
 
1653
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1654
  if { { ac_try="$ac_link"
 
1655
case "(($ac_try" in
 
1656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1657
  *) ac_try_echo=$ac_try;;
 
1658
esac
 
1659
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1660
$as_echo "$ac_try_echo"; } >&5
 
1661
  (eval "$ac_link") 2>&5
 
1662
  ac_status=$?
 
1663
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1664
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1665
  { { case "(($ac_try" in
 
1666
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1667
  *) ac_try_echo=$ac_try;;
 
1668
esac
 
1669
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1670
$as_echo "$ac_try_echo"; } >&5
 
1671
  (eval "$ac_try") 2>&5
 
1672
  ac_status=$?
 
1673
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1674
  test $ac_status = 0; }; }; then :
 
1675
  ac_retval=0
 
1676
else
 
1677
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1678
       $as_echo "$as_me: failed program was:" >&5
 
1679
sed 's/^/| /' conftest.$ac_ext >&5
 
1680
 
 
1681
       ac_retval=$ac_status
 
1682
fi
 
1683
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1684
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1685
  as_fn_set_status $ac_retval
 
1686
 
 
1687
} # ac_fn_c_try_run
 
1688
 
 
1689
# ac_fn_c_check_func LINENO FUNC VAR
 
1690
# ----------------------------------
 
1691
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1692
ac_fn_c_check_func ()
 
1693
{
 
1694
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1695
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1696
$as_echo_n "checking for $2... " >&6; }
 
1697
if eval \${$3+:} false; then :
 
1698
  $as_echo_n "(cached) " >&6
 
1699
else
 
1700
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1701
/* end confdefs.h.  */
 
1702
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1703
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1704
#define $2 innocuous_$2
 
1705
 
 
1706
/* System header to define __stub macros and hopefully few prototypes,
 
1707
    which can conflict with char $2 (); below.
 
1708
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1709
    <limits.h> exists even on freestanding compilers.  */
 
1710
 
 
1711
#ifdef __STDC__
 
1712
# include <limits.h>
 
1713
#else
 
1714
# include <assert.h>
 
1715
#endif
 
1716
 
 
1717
#undef $2
 
1718
 
 
1719
/* Override any GCC internal prototype to avoid an error.
 
1720
   Use char because int might match the return type of a GCC
 
1721
   builtin and then its argument prototype would still apply.  */
 
1722
#ifdef __cplusplus
 
1723
extern "C"
 
1724
#endif
 
1725
char $2 ();
 
1726
/* The GNU C library defines this for functions which it implements
 
1727
    to always fail with ENOSYS.  Some functions are actually named
 
1728
    something starting with __ and the normal name is an alias.  */
 
1729
#if defined __stub_$2 || defined __stub___$2
 
1730
choke me
 
1731
#endif
 
1732
 
 
1733
int
 
1734
main ()
 
1735
{
 
1736
return $2 ();
 
1737
  ;
 
1738
  return 0;
 
1739
}
 
1740
_ACEOF
 
1741
if ac_fn_c_try_link "$LINENO"; then :
 
1742
  eval "$3=yes"
 
1743
else
 
1744
  eval "$3=no"
 
1745
fi
 
1746
rm -f core conftest.err conftest.$ac_objext \
 
1747
    conftest$ac_exeext conftest.$ac_ext
 
1748
fi
 
1749
eval ac_res=\$$3
 
1750
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1751
$as_echo "$ac_res" >&6; }
 
1752
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1753
 
 
1754
} # ac_fn_c_check_func
 
1755
 
 
1756
# ac_fn_cxx_try_compile LINENO
 
1757
# ----------------------------
 
1758
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1759
ac_fn_cxx_try_compile ()
 
1760
{
 
1761
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1762
  rm -f conftest.$ac_objext
 
1763
  if { { ac_try="$ac_compile"
 
1764
case "(($ac_try" in
 
1765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1766
  *) ac_try_echo=$ac_try;;
 
1767
esac
 
1768
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1769
$as_echo "$ac_try_echo"; } >&5
 
1770
  (eval "$ac_compile") 2>conftest.err
 
1771
  ac_status=$?
 
1772
  if test -s conftest.err; then
 
1773
    grep -v '^ *+' conftest.err >conftest.er1
 
1774
    cat conftest.er1 >&5
 
1775
    mv -f conftest.er1 conftest.err
 
1776
  fi
 
1777
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1778
  test $ac_status = 0; } && {
 
1779
         test -z "$ac_cxx_werror_flag" ||
 
1780
         test ! -s conftest.err
 
1781
       } && test -s conftest.$ac_objext; then :
 
1782
  ac_retval=0
 
1783
else
 
1784
  $as_echo "$as_me: failed program was:" >&5
 
1785
sed 's/^/| /' conftest.$ac_ext >&5
 
1786
 
 
1787
        ac_retval=1
 
1788
fi
 
1789
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1790
  as_fn_set_status $ac_retval
 
1791
 
 
1792
} # ac_fn_cxx_try_compile
 
1793
 
 
1794
# ac_fn_cxx_try_cpp LINENO
 
1795
# ------------------------
 
1796
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1797
ac_fn_cxx_try_cpp ()
 
1798
{
 
1799
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1800
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1801
case "(($ac_try" in
 
1802
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1803
  *) ac_try_echo=$ac_try;;
 
1804
esac
 
1805
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1806
$as_echo "$ac_try_echo"; } >&5
 
1807
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1808
  ac_status=$?
 
1809
  if test -s conftest.err; then
 
1810
    grep -v '^ *+' conftest.err >conftest.er1
 
1811
    cat conftest.er1 >&5
 
1812
    mv -f conftest.er1 conftest.err
 
1813
  fi
 
1814
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1815
  test $ac_status = 0; } > conftest.i && {
 
1816
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
1817
         test ! -s conftest.err
 
1818
       }; then :
 
1819
  ac_retval=0
 
1820
else
 
1821
  $as_echo "$as_me: failed program was:" >&5
 
1822
sed 's/^/| /' conftest.$ac_ext >&5
 
1823
 
 
1824
    ac_retval=1
 
1825
fi
 
1826
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1827
  as_fn_set_status $ac_retval
 
1828
 
 
1829
} # ac_fn_cxx_try_cpp
 
1830
 
 
1831
# ac_fn_cxx_try_link LINENO
 
1832
# -------------------------
 
1833
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1834
ac_fn_cxx_try_link ()
 
1835
{
 
1836
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1837
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1838
  if { { ac_try="$ac_link"
 
1839
case "(($ac_try" in
 
1840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1841
  *) ac_try_echo=$ac_try;;
 
1842
esac
 
1843
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1844
$as_echo "$ac_try_echo"; } >&5
 
1845
  (eval "$ac_link") 2>conftest.err
 
1846
  ac_status=$?
 
1847
  if test -s conftest.err; then
 
1848
    grep -v '^ *+' conftest.err >conftest.er1
 
1849
    cat conftest.er1 >&5
 
1850
    mv -f conftest.er1 conftest.err
 
1851
  fi
 
1852
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1853
  test $ac_status = 0; } && {
 
1854
         test -z "$ac_cxx_werror_flag" ||
 
1855
         test ! -s conftest.err
 
1856
       } && test -s conftest$ac_exeext && {
 
1857
         test "$cross_compiling" = yes ||
 
1858
         $as_test_x conftest$ac_exeext
 
1859
       }; then :
 
1860
  ac_retval=0
 
1861
else
 
1862
  $as_echo "$as_me: failed program was:" >&5
 
1863
sed 's/^/| /' conftest.$ac_ext >&5
 
1864
 
 
1865
        ac_retval=1
 
1866
fi
 
1867
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1868
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1869
  # interfere with the next link command; also delete a directory that is
 
1870
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1871
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1872
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1873
  as_fn_set_status $ac_retval
 
1874
 
 
1875
} # ac_fn_cxx_try_link
 
1876
 
 
1877
# ac_fn_f77_try_compile LINENO
 
1878
# ----------------------------
 
1879
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1880
ac_fn_f77_try_compile ()
 
1881
{
 
1882
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1883
  rm -f conftest.$ac_objext
 
1884
  if { { ac_try="$ac_compile"
 
1885
case "(($ac_try" in
 
1886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1887
  *) ac_try_echo=$ac_try;;
 
1888
esac
 
1889
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1890
$as_echo "$ac_try_echo"; } >&5
 
1891
  (eval "$ac_compile") 2>conftest.err
 
1892
  ac_status=$?
 
1893
  if test -s conftest.err; then
 
1894
    grep -v '^ *+' conftest.err >conftest.er1
 
1895
    cat conftest.er1 >&5
 
1896
    mv -f conftest.er1 conftest.err
 
1897
  fi
 
1898
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1899
  test $ac_status = 0; } && {
 
1900
         test -z "$ac_f77_werror_flag" ||
 
1901
         test ! -s conftest.err
 
1902
       } && test -s conftest.$ac_objext; then :
 
1903
  ac_retval=0
 
1904
else
 
1905
  $as_echo "$as_me: failed program was:" >&5
 
1906
sed 's/^/| /' conftest.$ac_ext >&5
 
1907
 
 
1908
        ac_retval=1
 
1909
fi
 
1910
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1911
  as_fn_set_status $ac_retval
 
1912
 
 
1913
} # ac_fn_f77_try_compile
 
1914
 
 
1915
# ac_fn_f77_try_link LINENO
 
1916
# -------------------------
 
1917
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1918
ac_fn_f77_try_link ()
 
1919
{
 
1920
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1921
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1922
  if { { ac_try="$ac_link"
 
1923
case "(($ac_try" in
 
1924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1925
  *) ac_try_echo=$ac_try;;
 
1926
esac
 
1927
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1928
$as_echo "$ac_try_echo"; } >&5
 
1929
  (eval "$ac_link") 2>conftest.err
 
1930
  ac_status=$?
 
1931
  if test -s conftest.err; then
 
1932
    grep -v '^ *+' conftest.err >conftest.er1
 
1933
    cat conftest.er1 >&5
 
1934
    mv -f conftest.er1 conftest.err
 
1935
  fi
 
1936
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1937
  test $ac_status = 0; } && {
 
1938
         test -z "$ac_f77_werror_flag" ||
 
1939
         test ! -s conftest.err
 
1940
       } && test -s conftest$ac_exeext && {
 
1941
         test "$cross_compiling" = yes ||
 
1942
         $as_test_x conftest$ac_exeext
 
1943
       }; then :
 
1944
  ac_retval=0
 
1945
else
 
1946
  $as_echo "$as_me: failed program was:" >&5
 
1947
sed 's/^/| /' conftest.$ac_ext >&5
 
1948
 
 
1949
        ac_retval=1
 
1950
fi
 
1951
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1952
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1953
  # interfere with the next link command; also delete a directory that is
 
1954
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1955
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1956
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1957
  as_fn_set_status $ac_retval
 
1958
 
 
1959
} # ac_fn_f77_try_link
 
1960
 
 
1961
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1962
# -------------------------------------------------------
 
1963
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1964
# the include files in INCLUDES and setting the cache variable VAR
 
1965
# accordingly.
 
1966
ac_fn_c_check_header_mongrel ()
 
1967
{
 
1968
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1969
  if eval \${$3+:} false; then :
 
1970
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1971
$as_echo_n "checking for $2... " >&6; }
 
1972
if eval \${$3+:} false; then :
 
1973
  $as_echo_n "(cached) " >&6
 
1974
fi
 
1975
eval ac_res=\$$3
 
1976
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1977
$as_echo "$ac_res" >&6; }
 
1978
else
 
1979
  # Is the header compilable?
 
1980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1981
$as_echo_n "checking $2 usability... " >&6; }
 
1982
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1983
/* end confdefs.h.  */
 
1984
$4
 
1985
#include <$2>
 
1986
_ACEOF
 
1987
if ac_fn_c_try_compile "$LINENO"; then :
 
1988
  ac_header_compiler=yes
 
1989
else
 
1990
  ac_header_compiler=no
 
1991
fi
 
1992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1994
$as_echo "$ac_header_compiler" >&6; }
 
1995
 
 
1996
# Is the header present?
 
1997
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1998
$as_echo_n "checking $2 presence... " >&6; }
 
1999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2000
/* end confdefs.h.  */
 
2001
#include <$2>
 
2002
_ACEOF
 
2003
if ac_fn_c_try_cpp "$LINENO"; then :
 
2004
  ac_header_preproc=yes
 
2005
else
 
2006
  ac_header_preproc=no
 
2007
fi
 
2008
rm -f conftest.err conftest.i conftest.$ac_ext
 
2009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
2010
$as_echo "$ac_header_preproc" >&6; }
 
2011
 
 
2012
# So?  What about this header?
 
2013
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
2014
  yes:no: )
 
2015
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
2016
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
2017
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2018
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2019
    ;;
 
2020
  no:yes:* )
 
2021
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
2022
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
2023
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
2024
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
2025
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
2026
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
2027
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
2028
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
2029
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
2030
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
2031
( $as_echo "## ------------------------------ ##
 
2032
## Report this to dabi@imm.dtu.dk ##
 
2033
## ------------------------------ ##"
 
2034
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
2035
    ;;
 
2036
esac
 
2037
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2038
$as_echo_n "checking for $2... " >&6; }
 
2039
if eval \${$3+:} false; then :
 
2040
  $as_echo_n "(cached) " >&6
 
2041
else
 
2042
  eval "$3=\$ac_header_compiler"
 
2043
fi
 
2044
eval ac_res=\$$3
 
2045
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2046
$as_echo "$ac_res" >&6; }
 
2047
fi
 
2048
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2049
 
 
2050
} # ac_fn_c_check_header_mongrel
 
2051
 
 
2052
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
2053
# -------------------------------------------
 
2054
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
2055
# variable VAR accordingly.
 
2056
ac_fn_c_check_type ()
 
2057
{
 
2058
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2059
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
2060
$as_echo_n "checking for $2... " >&6; }
 
2061
if eval \${$3+:} false; then :
 
2062
  $as_echo_n "(cached) " >&6
 
2063
else
 
2064
  eval "$3=no"
 
2065
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2066
/* end confdefs.h.  */
 
2067
$4
 
2068
int
 
2069
main ()
 
2070
{
 
2071
if (sizeof ($2))
 
2072
         return 0;
 
2073
  ;
 
2074
  return 0;
 
2075
}
 
2076
_ACEOF
 
2077
if ac_fn_c_try_compile "$LINENO"; then :
 
2078
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2079
/* end confdefs.h.  */
 
2080
$4
 
2081
int
 
2082
main ()
 
2083
{
 
2084
if (sizeof (($2)))
 
2085
            return 0;
 
2086
  ;
 
2087
  return 0;
 
2088
}
 
2089
_ACEOF
 
2090
if ac_fn_c_try_compile "$LINENO"; then :
 
2091
 
 
2092
else
 
2093
  eval "$3=yes"
 
2094
fi
 
2095
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2096
fi
 
2097
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2098
fi
 
2099
eval ac_res=\$$3
 
2100
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2101
$as_echo "$ac_res" >&6; }
 
2102
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
2103
 
 
2104
} # ac_fn_c_check_type
 
2105
cat >config.log <<_ACEOF
 
2106
This file contains any messages produced by compilers while
 
2107
running configure, to aid debugging if configure makes a mistake.
 
2108
 
 
2109
It was created by ORTHPOLxx $as_me 1.0, which was
 
2110
generated by GNU Autoconf 2.68.  Invocation command line was
 
2111
 
 
2112
  $ $0 $@
 
2113
 
 
2114
_ACEOF
 
2115
exec 5>>config.log
 
2116
{
 
2117
cat <<_ASUNAME
 
2118
## --------- ##
 
2119
## Platform. ##
 
2120
## --------- ##
 
2121
 
 
2122
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2123
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2124
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2125
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2126
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2127
 
 
2128
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2129
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2130
 
 
2131
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2132
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2133
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2134
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2135
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2136
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2137
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2138
 
 
2139
_ASUNAME
 
2140
 
 
2141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2142
for as_dir in $PATH
 
2143
do
 
2144
  IFS=$as_save_IFS
 
2145
  test -z "$as_dir" && as_dir=.
 
2146
    $as_echo "PATH: $as_dir"
 
2147
  done
 
2148
IFS=$as_save_IFS
 
2149
 
 
2150
} >&5
 
2151
 
 
2152
cat >&5 <<_ACEOF
 
2153
 
 
2154
 
 
2155
## ----------- ##
 
2156
## Core tests. ##
 
2157
## ----------- ##
 
2158
 
 
2159
_ACEOF
 
2160
 
 
2161
 
 
2162
# Keep a trace of the command line.
 
2163
# Strip out --no-create and --no-recursion so they do not pile up.
 
2164
# Strip out --silent because we don't want to record it for future runs.
 
2165
# Also quote any args containing shell meta-characters.
 
2166
# Make two passes to allow for proper duplicate-argument suppression.
 
2167
ac_configure_args=
 
2168
ac_configure_args0=
 
2169
ac_configure_args1=
 
2170
ac_must_keep_next=false
 
2171
for ac_pass in 1 2
 
2172
do
 
2173
  for ac_arg
 
2174
  do
 
2175
    case $ac_arg in
 
2176
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2177
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2178
    | -silent | --silent | --silen | --sile | --sil)
 
2179
      continue ;;
 
2180
    *\'*)
 
2181
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2182
    esac
 
2183
    case $ac_pass in
 
2184
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2185
    2)
 
2186
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2187
      if test $ac_must_keep_next = true; then
 
2188
        ac_must_keep_next=false # Got value, back to normal.
 
2189
      else
 
2190
        case $ac_arg in
 
2191
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2192
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2193
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2194
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2195
            case "$ac_configure_args0 " in
 
2196
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2197
            esac
 
2198
            ;;
 
2199
          -* ) ac_must_keep_next=true ;;
 
2200
        esac
 
2201
      fi
 
2202
      as_fn_append ac_configure_args " '$ac_arg'"
 
2203
      ;;
 
2204
    esac
 
2205
  done
 
2206
done
 
2207
{ ac_configure_args0=; unset ac_configure_args0;}
 
2208
{ ac_configure_args1=; unset ac_configure_args1;}
 
2209
 
 
2210
# When interrupted or exit'd, cleanup temporary files, and complete
 
2211
# config.log.  We remove comments because anyway the quotes in there
 
2212
# would cause problems or look ugly.
 
2213
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2214
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2215
trap 'exit_status=$?
 
2216
  # Save into config.log some information that might help in debugging.
 
2217
  {
 
2218
    echo
 
2219
 
 
2220
    $as_echo "## ---------------- ##
 
2221
## Cache variables. ##
 
2222
## ---------------- ##"
 
2223
    echo
 
2224
    # The following way of writing the cache mishandles newlines in values,
 
2225
(
 
2226
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2227
    eval ac_val=\$$ac_var
 
2228
    case $ac_val in #(
 
2229
    *${as_nl}*)
 
2230
      case $ac_var in #(
 
2231
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2232
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2233
      esac
 
2234
      case $ac_var in #(
 
2235
      _ | IFS | as_nl) ;; #(
 
2236
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2237
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2238
      esac ;;
 
2239
    esac
 
2240
  done
 
2241
  (set) 2>&1 |
 
2242
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2243
    *${as_nl}ac_space=\ *)
 
2244
      sed -n \
 
2245
        "s/'\''/'\''\\\\'\'''\''/g;
 
2246
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2247
      ;; #(
 
2248
    *)
 
2249
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2250
      ;;
 
2251
    esac |
 
2252
    sort
 
2253
)
 
2254
    echo
 
2255
 
 
2256
    $as_echo "## ----------------- ##
 
2257
## Output variables. ##
 
2258
## ----------------- ##"
 
2259
    echo
 
2260
    for ac_var in $ac_subst_vars
 
2261
    do
 
2262
      eval ac_val=\$$ac_var
 
2263
      case $ac_val in
 
2264
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2265
      esac
 
2266
      $as_echo "$ac_var='\''$ac_val'\''"
 
2267
    done | sort
 
2268
    echo
 
2269
 
 
2270
    if test -n "$ac_subst_files"; then
 
2271
      $as_echo "## ------------------- ##
 
2272
## File substitutions. ##
 
2273
## ------------------- ##"
 
2274
      echo
 
2275
      for ac_var in $ac_subst_files
 
2276
      do
 
2277
        eval ac_val=\$$ac_var
 
2278
        case $ac_val in
 
2279
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2280
        esac
 
2281
        $as_echo "$ac_var='\''$ac_val'\''"
 
2282
      done | sort
 
2283
      echo
 
2284
    fi
 
2285
 
 
2286
    if test -s confdefs.h; then
 
2287
      $as_echo "## ----------- ##
 
2288
## confdefs.h. ##
 
2289
## ----------- ##"
 
2290
      echo
 
2291
      cat confdefs.h
 
2292
      echo
 
2293
    fi
 
2294
    test "$ac_signal" != 0 &&
 
2295
      $as_echo "$as_me: caught signal $ac_signal"
 
2296
    $as_echo "$as_me: exit $exit_status"
 
2297
  } >&5
 
2298
  rm -f core *.core core.conftest.* &&
 
2299
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2300
    exit $exit_status
 
2301
' 0
 
2302
for ac_signal in 1 2 13 15; do
 
2303
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2304
done
 
2305
ac_signal=0
 
2306
 
 
2307
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2308
rm -f -r conftest* confdefs.h
 
2309
 
 
2310
$as_echo "/* confdefs.h */" > confdefs.h
 
2311
 
 
2312
# Predefined preprocessor variables.
 
2313
 
 
2314
cat >>confdefs.h <<_ACEOF
 
2315
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2316
_ACEOF
 
2317
 
 
2318
cat >>confdefs.h <<_ACEOF
 
2319
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2320
_ACEOF
 
2321
 
 
2322
cat >>confdefs.h <<_ACEOF
 
2323
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2324
_ACEOF
 
2325
 
 
2326
cat >>confdefs.h <<_ACEOF
 
2327
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2328
_ACEOF
 
2329
 
 
2330
cat >>confdefs.h <<_ACEOF
 
2331
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2332
_ACEOF
 
2333
 
 
2334
cat >>confdefs.h <<_ACEOF
 
2335
#define PACKAGE_URL "$PACKAGE_URL"
 
2336
_ACEOF
 
2337
 
 
2338
 
 
2339
# Let the site file select an alternate cache file if it wants to.
 
2340
# Prefer an explicitly selected file to automatically selected ones.
 
2341
ac_site_file1=NONE
 
2342
ac_site_file2=NONE
 
2343
if test -n "$CONFIG_SITE"; then
 
2344
  # We do not want a PATH search for config.site.
 
2345
  case $CONFIG_SITE in #((
 
2346
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2347
    */*) ac_site_file1=$CONFIG_SITE;;
 
2348
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2349
  esac
 
2350
elif test "x$prefix" != xNONE; then
 
2351
  ac_site_file1=$prefix/share/config.site
 
2352
  ac_site_file2=$prefix/etc/config.site
 
2353
else
 
2354
  ac_site_file1=$ac_default_prefix/share/config.site
 
2355
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2356
fi
 
2357
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2358
do
 
2359
  test "x$ac_site_file" = xNONE && continue
 
2360
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2361
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2362
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2363
    sed 's/^/| /' "$ac_site_file" >&5
 
2364
    . "$ac_site_file" \
 
2365
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2366
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2367
as_fn_error $? "failed to load site script $ac_site_file
 
2368
See \`config.log' for more details" "$LINENO" 5; }
 
2369
  fi
 
2370
done
 
2371
 
 
2372
if test -r "$cache_file"; then
 
2373
  # Some versions of bash will fail to source /dev/null (special files
 
2374
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2375
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2376
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2377
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2378
    case $cache_file in
 
2379
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2380
      *)                      . "./$cache_file";;
 
2381
    esac
 
2382
  fi
 
2383
else
 
2384
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2385
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2386
  >$cache_file
 
2387
fi
 
2388
 
 
2389
# Check that the precious variables saved in the cache have kept the same
 
2390
# value.
 
2391
ac_cache_corrupted=false
 
2392
for ac_var in $ac_precious_vars; do
 
2393
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2394
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2395
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2396
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2397
  case $ac_old_set,$ac_new_set in
 
2398
    set,)
 
2399
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2400
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2401
      ac_cache_corrupted=: ;;
 
2402
    ,set)
 
2403
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2404
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2405
      ac_cache_corrupted=: ;;
 
2406
    ,);;
 
2407
    *)
 
2408
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2409
        # differences in whitespace do not lead to failure.
 
2410
        ac_old_val_w=`echo x $ac_old_val`
 
2411
        ac_new_val_w=`echo x $ac_new_val`
 
2412
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2413
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2414
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2415
          ac_cache_corrupted=:
 
2416
        else
 
2417
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2418
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2419
          eval $ac_var=\$ac_old_val
 
2420
        fi
 
2421
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2422
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2423
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2424
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2425
      fi;;
 
2426
  esac
 
2427
  # Pass precious variables to config.status.
 
2428
  if test "$ac_new_set" = set; then
 
2429
    case $ac_new_val in
 
2430
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2431
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2432
    esac
 
2433
    case " $ac_configure_args " in
 
2434
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2435
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2436
    esac
 
2437
  fi
 
2438
done
 
2439
if $ac_cache_corrupted; then
 
2440
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2441
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2442
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2443
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2444
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2445
fi
 
2446
## -------------------- ##
 
2447
## Main body of script. ##
 
2448
## -------------------- ##
 
2449
 
 
2450
ac_ext=c
 
2451
ac_cpp='$CPP $CPPFLAGS'
 
2452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2455
 
 
2456
 
 
2457
am__api_version='1.11'
 
2458
 
 
2459
ac_aux_dir=
 
2460
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2461
  if test -f "$ac_dir/install-sh"; then
 
2462
    ac_aux_dir=$ac_dir
 
2463
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2464
    break
 
2465
  elif test -f "$ac_dir/install.sh"; then
 
2466
    ac_aux_dir=$ac_dir
 
2467
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2468
    break
 
2469
  elif test -f "$ac_dir/shtool"; then
 
2470
    ac_aux_dir=$ac_dir
 
2471
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2472
    break
 
2473
  fi
 
2474
done
 
2475
if test -z "$ac_aux_dir"; then
 
2476
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2477
fi
 
2478
 
 
2479
# These three variables are undocumented and unsupported,
 
2480
# and are intended to be withdrawn in a future Autoconf release.
 
2481
# They can cause serious problems if a builder's source tree is in a directory
 
2482
# whose full name contains unusual characters.
 
2483
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2484
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2485
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2486
 
 
2487
 
 
2488
# Find a good install program.  We prefer a C program (faster),
 
2489
# so one script is as good as another.  But avoid the broken or
 
2490
# incompatible versions:
 
2491
# SysV /etc/install, /usr/sbin/install
 
2492
# SunOS /usr/etc/install
 
2493
# IRIX /sbin/install
 
2494
# AIX /bin/install
 
2495
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2496
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2497
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2498
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2499
# OS/2's system install, which has a completely different semantic
 
2500
# ./install, which can be erroneously created by make from ./install.sh.
 
2501
# Reject install programs that cannot install multiple files.
 
2502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2503
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2504
if test -z "$INSTALL"; then
 
2505
if ${ac_cv_path_install+:} false; then :
 
2506
  $as_echo_n "(cached) " >&6
 
2507
else
 
2508
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2509
for as_dir in $PATH
 
2510
do
 
2511
  IFS=$as_save_IFS
 
2512
  test -z "$as_dir" && as_dir=.
 
2513
    # Account for people who put trailing slashes in PATH elements.
 
2514
case $as_dir/ in #((
 
2515
  ./ | .// | /[cC]/* | \
 
2516
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2517
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2518
  /usr/ucb/* ) ;;
 
2519
  *)
 
2520
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2521
    # Don't use installbsd from OSF since it installs stuff as root
 
2522
    # by default.
 
2523
    for ac_prog in ginstall scoinst install; do
 
2524
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2525
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2526
          if test $ac_prog = install &&
 
2527
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2528
            # AIX install.  It has an incompatible calling convention.
 
2529
            :
 
2530
          elif test $ac_prog = install &&
 
2531
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2532
            # program-specific install script used by HP pwplus--don't use.
 
2533
            :
 
2534
          else
 
2535
            rm -rf conftest.one conftest.two conftest.dir
 
2536
            echo one > conftest.one
 
2537
            echo two > conftest.two
 
2538
            mkdir conftest.dir
 
2539
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2540
              test -s conftest.one && test -s conftest.two &&
 
2541
              test -s conftest.dir/conftest.one &&
 
2542
              test -s conftest.dir/conftest.two
 
2543
            then
 
2544
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2545
              break 3
 
2546
            fi
 
2547
          fi
 
2548
        fi
 
2549
      done
 
2550
    done
 
2551
    ;;
 
2552
esac
 
2553
 
 
2554
  done
 
2555
IFS=$as_save_IFS
 
2556
 
 
2557
rm -rf conftest.one conftest.two conftest.dir
 
2558
 
 
2559
fi
 
2560
  if test "${ac_cv_path_install+set}" = set; then
 
2561
    INSTALL=$ac_cv_path_install
 
2562
  else
 
2563
    # As a last resort, use the slow shell script.  Don't cache a
 
2564
    # value for INSTALL within a source directory, because that will
 
2565
    # break other packages using the cache if that directory is
 
2566
    # removed, or if the value is a relative name.
 
2567
    INSTALL=$ac_install_sh
 
2568
  fi
 
2569
fi
 
2570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2571
$as_echo "$INSTALL" >&6; }
 
2572
 
 
2573
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2574
# It thinks the first close brace ends the variable substitution.
 
2575
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2576
 
 
2577
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2578
 
 
2579
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2580
 
 
2581
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2582
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2583
# Just in case
 
2584
sleep 1
 
2585
echo timestamp > conftest.file
 
2586
# Reject unsafe characters in $srcdir or the absolute working directory
 
2587
# name.  Accept space and tab only in the latter.
 
2588
am_lf='
 
2589
'
 
2590
case `pwd` in
 
2591
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2592
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2593
esac
 
2594
case $srcdir in
 
2595
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2596
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2597
esac
 
2598
 
 
2599
# Do `set' in a subshell so we don't clobber the current shell's
 
2600
# arguments.  Must try -L first in case configure is actually a
 
2601
# symlink; some systems play weird games with the mod time of symlinks
 
2602
# (eg FreeBSD returns the mod time of the symlink's containing
 
2603
# directory).
 
2604
if (
 
2605
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2606
   if test "$*" = "X"; then
 
2607
      # -L didn't work.
 
2608
      set X `ls -t "$srcdir/configure" conftest.file`
 
2609
   fi
 
2610
   rm -f conftest.file
 
2611
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2612
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2613
 
 
2614
      # If neither matched, then we have a broken ls.  This can happen
 
2615
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2616
      # broken ls alias from the environment.  This has actually
 
2617
      # happened.  Such a system could not be considered "sane".
 
2618
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2619
alias in your environment" "$LINENO" 5
 
2620
   fi
 
2621
 
 
2622
   test "$2" = conftest.file
 
2623
   )
 
2624
then
 
2625
   # Ok.
 
2626
   :
 
2627
else
 
2628
   as_fn_error $? "newly created file is older than distributed files!
 
2629
Check your system clock" "$LINENO" 5
 
2630
fi
 
2631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2632
$as_echo "yes" >&6; }
 
2633
test "$program_prefix" != NONE &&
 
2634
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2635
# Use a double $ so make ignores it.
 
2636
test "$program_suffix" != NONE &&
 
2637
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2638
# Double any \ or $.
 
2639
# By default was `s,x,x', remove it if useless.
 
2640
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2641
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2642
 
 
2643
# expand $ac_aux_dir to an absolute path
 
2644
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2645
 
 
2646
if test x"${MISSING+set}" != xset; then
 
2647
  case $am_aux_dir in
 
2648
  *\ * | *\     *)
 
2649
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2650
  *)
 
2651
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2652
  esac
 
2653
fi
 
2654
# Use eval to expand $SHELL
 
2655
if eval "$MISSING --run true"; then
 
2656
  am_missing_run="$MISSING --run "
 
2657
else
 
2658
  am_missing_run=
 
2659
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2660
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2661
fi
 
2662
 
 
2663
if test x"${install_sh}" != xset; then
 
2664
  case $am_aux_dir in
 
2665
  *\ * | *\     *)
 
2666
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2667
  *)
 
2668
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2669
  esac
 
2670
fi
 
2671
 
 
2672
# Installed binaries are usually stripped using `strip' when the user
 
2673
# run `make install-strip'.  However `strip' might not be the right
 
2674
# tool to use in cross-compilation environments, therefore Automake
 
2675
# will honor the `STRIP' environment variable to overrule this program.
 
2676
if test "$cross_compiling" != no; then
 
2677
  if test -n "$ac_tool_prefix"; then
 
2678
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2679
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2681
$as_echo_n "checking for $ac_word... " >&6; }
 
2682
if ${ac_cv_prog_STRIP+:} false; then :
 
2683
  $as_echo_n "(cached) " >&6
 
2684
else
 
2685
  if test -n "$STRIP"; then
 
2686
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2687
else
 
2688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2689
for as_dir in $PATH
 
2690
do
 
2691
  IFS=$as_save_IFS
 
2692
  test -z "$as_dir" && as_dir=.
 
2693
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2694
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2695
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2696
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2697
    break 2
 
2698
  fi
 
2699
done
 
2700
  done
 
2701
IFS=$as_save_IFS
 
2702
 
 
2703
fi
 
2704
fi
 
2705
STRIP=$ac_cv_prog_STRIP
 
2706
if test -n "$STRIP"; then
 
2707
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2708
$as_echo "$STRIP" >&6; }
 
2709
else
 
2710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2711
$as_echo "no" >&6; }
 
2712
fi
 
2713
 
 
2714
 
 
2715
fi
 
2716
if test -z "$ac_cv_prog_STRIP"; then
 
2717
  ac_ct_STRIP=$STRIP
 
2718
  # Extract the first word of "strip", so it can be a program name with args.
 
2719
set dummy strip; ac_word=$2
 
2720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2721
$as_echo_n "checking for $ac_word... " >&6; }
 
2722
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2723
  $as_echo_n "(cached) " >&6
 
2724
else
 
2725
  if test -n "$ac_ct_STRIP"; then
 
2726
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2727
else
 
2728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2729
for as_dir in $PATH
 
2730
do
 
2731
  IFS=$as_save_IFS
 
2732
  test -z "$as_dir" && as_dir=.
 
2733
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2734
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2735
    ac_cv_prog_ac_ct_STRIP="strip"
 
2736
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2737
    break 2
 
2738
  fi
 
2739
done
 
2740
  done
 
2741
IFS=$as_save_IFS
 
2742
 
 
2743
fi
 
2744
fi
 
2745
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2746
if test -n "$ac_ct_STRIP"; then
 
2747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2748
$as_echo "$ac_ct_STRIP" >&6; }
 
2749
else
 
2750
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2751
$as_echo "no" >&6; }
 
2752
fi
 
2753
 
 
2754
  if test "x$ac_ct_STRIP" = x; then
 
2755
    STRIP=":"
 
2756
  else
 
2757
    case $cross_compiling:$ac_tool_warned in
 
2758
yes:)
 
2759
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2760
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2761
ac_tool_warned=yes ;;
 
2762
esac
 
2763
    STRIP=$ac_ct_STRIP
 
2764
  fi
 
2765
else
 
2766
  STRIP="$ac_cv_prog_STRIP"
 
2767
fi
 
2768
 
 
2769
fi
 
2770
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2771
 
 
2772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2773
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2774
if test -z "$MKDIR_P"; then
 
2775
  if ${ac_cv_path_mkdir+:} false; then :
 
2776
  $as_echo_n "(cached) " >&6
 
2777
else
 
2778
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2779
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2780
do
 
2781
  IFS=$as_save_IFS
 
2782
  test -z "$as_dir" && as_dir=.
 
2783
    for ac_prog in mkdir gmkdir; do
 
2784
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2785
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2786
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2787
             'mkdir (GNU coreutils) '* | \
 
2788
             'mkdir (coreutils) '* | \
 
2789
             'mkdir (fileutils) '4.1*)
 
2790
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2791
               break 3;;
 
2792
           esac
 
2793
         done
 
2794
       done
 
2795
  done
 
2796
IFS=$as_save_IFS
 
2797
 
 
2798
fi
 
2799
 
 
2800
  test -d ./--version && rmdir ./--version
 
2801
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2802
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2803
  else
 
2804
    # As a last resort, use the slow shell script.  Don't cache a
 
2805
    # value for MKDIR_P within a source directory, because that will
 
2806
    # break other packages using the cache if that directory is
 
2807
    # removed, or if the value is a relative name.
 
2808
    MKDIR_P="$ac_install_sh -d"
 
2809
  fi
 
2810
fi
 
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2812
$as_echo "$MKDIR_P" >&6; }
 
2813
 
 
2814
mkdir_p="$MKDIR_P"
 
2815
case $mkdir_p in
 
2816
  [\\/$]* | ?:[\\/]*) ;;
 
2817
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2818
esac
 
2819
 
 
2820
for ac_prog in gawk mawk nawk awk
 
2821
do
 
2822
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2823
set dummy $ac_prog; ac_word=$2
 
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2825
$as_echo_n "checking for $ac_word... " >&6; }
 
2826
if ${ac_cv_prog_AWK+:} false; then :
 
2827
  $as_echo_n "(cached) " >&6
 
2828
else
 
2829
  if test -n "$AWK"; then
 
2830
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2831
else
 
2832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2833
for as_dir in $PATH
 
2834
do
 
2835
  IFS=$as_save_IFS
 
2836
  test -z "$as_dir" && as_dir=.
 
2837
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2838
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2839
    ac_cv_prog_AWK="$ac_prog"
 
2840
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2841
    break 2
 
2842
  fi
 
2843
done
 
2844
  done
 
2845
IFS=$as_save_IFS
 
2846
 
 
2847
fi
 
2848
fi
 
2849
AWK=$ac_cv_prog_AWK
 
2850
if test -n "$AWK"; then
 
2851
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2852
$as_echo "$AWK" >&6; }
 
2853
else
 
2854
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2855
$as_echo "no" >&6; }
 
2856
fi
 
2857
 
 
2858
 
 
2859
  test -n "$AWK" && break
 
2860
done
 
2861
 
 
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2863
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2864
set x ${MAKE-make}
 
2865
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2866
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2867
  $as_echo_n "(cached) " >&6
 
2868
else
 
2869
  cat >conftest.make <<\_ACEOF
 
2870
SHELL = /bin/sh
 
2871
all:
 
2872
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2873
_ACEOF
 
2874
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2875
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2876
  *@@@%%%=?*=@@@%%%*)
 
2877
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2878
  *)
 
2879
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2880
esac
 
2881
rm -f conftest.make
 
2882
fi
 
2883
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2884
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2885
$as_echo "yes" >&6; }
 
2886
  SET_MAKE=
 
2887
else
 
2888
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2889
$as_echo "no" >&6; }
 
2890
  SET_MAKE="MAKE=${MAKE-make}"
 
2891
fi
 
2892
 
 
2893
rm -rf .tst 2>/dev/null
 
2894
mkdir .tst 2>/dev/null
 
2895
if test -d .tst; then
 
2896
  am__leading_dot=.
 
2897
else
 
2898
  am__leading_dot=_
 
2899
fi
 
2900
rmdir .tst 2>/dev/null
 
2901
 
 
2902
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2903
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2904
  # is not polluted with repeated "-I."
 
2905
  am__isrc=' -I$(srcdir)'
 
2906
  # test to see if srcdir already configured
 
2907
  if test -f $srcdir/config.status; then
 
2908
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2909
  fi
 
2910
fi
 
2911
 
 
2912
# test whether we have cygpath
 
2913
if test -z "$CYGPATH_W"; then
 
2914
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2915
    CYGPATH_W='cygpath -w'
 
2916
  else
 
2917
    CYGPATH_W=echo
 
2918
  fi
 
2919
fi
 
2920
 
 
2921
 
 
2922
# Define the identity of the package.
 
2923
 PACKAGE=ORTHPOLxx
 
2924
 VERSION=1.0
 
2925
 
 
2926
 
 
2927
cat >>confdefs.h <<_ACEOF
 
2928
#define PACKAGE "$PACKAGE"
 
2929
_ACEOF
 
2930
 
 
2931
 
 
2932
cat >>confdefs.h <<_ACEOF
 
2933
#define VERSION "$VERSION"
 
2934
_ACEOF
 
2935
 
 
2936
# Some tools Automake needs.
 
2937
 
 
2938
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2939
 
 
2940
 
 
2941
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2942
 
 
2943
 
 
2944
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2945
 
 
2946
 
 
2947
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2948
 
 
2949
 
 
2950
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2951
 
 
2952
# We need awk for the "check" target.  The system "awk" is bad on
 
2953
# some platforms.
 
2954
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2955
# in the wild :-(  We should find a proper way to deprecate it ...
 
2956
AMTAR='$${TAR-tar}'
 
2957
 
 
2958
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2959
 
 
2960
 
 
2961
 
 
2962
 
 
2963
 
 
2964
ac_config_headers="$ac_config_headers config.h"
 
2965
 
 
2966
case `pwd` in
 
2967
  *\ * | *\     *)
 
2968
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2969
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2970
esac
 
2971
 
 
2972
 
 
2973
 
 
2974
macro_version='2.4.2'
 
2975
macro_revision='1.3337'
 
2976
 
 
2977
 
 
2978
 
 
2979
 
 
2980
 
 
2981
 
 
2982
 
 
2983
 
 
2984
 
 
2985
 
 
2986
 
 
2987
 
 
2988
 
 
2989
ltmain="$ac_aux_dir/ltmain.sh"
 
2990
 
 
2991
# Make sure we can run config.sub.
 
2992
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2993
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2994
 
 
2995
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2996
$as_echo_n "checking build system type... " >&6; }
 
2997
if ${ac_cv_build+:} false; then :
 
2998
  $as_echo_n "(cached) " >&6
 
2999
else
 
3000
  ac_build_alias=$build_alias
 
3001
test "x$ac_build_alias" = x &&
 
3002
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3003
test "x$ac_build_alias" = x &&
 
3004
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
3005
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3006
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
3007
 
 
3008
fi
 
3009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
3010
$as_echo "$ac_cv_build" >&6; }
 
3011
case $ac_cv_build in
 
3012
*-*-*) ;;
 
3013
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
3014
esac
 
3015
build=$ac_cv_build
 
3016
ac_save_IFS=$IFS; IFS='-'
 
3017
set x $ac_cv_build
 
3018
shift
 
3019
build_cpu=$1
 
3020
build_vendor=$2
 
3021
shift; shift
 
3022
# Remember, the first character of IFS is used to create $*,
 
3023
# except with old shells:
 
3024
build_os=$*
 
3025
IFS=$ac_save_IFS
 
3026
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3027
 
 
3028
 
 
3029
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
3030
$as_echo_n "checking host system type... " >&6; }
 
3031
if ${ac_cv_host+:} false; then :
 
3032
  $as_echo_n "(cached) " >&6
 
3033
else
 
3034
  if test "x$host_alias" = x; then
 
3035
  ac_cv_host=$ac_cv_build
 
3036
else
 
3037
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3038
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
3039
fi
 
3040
 
 
3041
fi
 
3042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
3043
$as_echo "$ac_cv_host" >&6; }
 
3044
case $ac_cv_host in
 
3045
*-*-*) ;;
 
3046
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
3047
esac
 
3048
host=$ac_cv_host
 
3049
ac_save_IFS=$IFS; IFS='-'
 
3050
set x $ac_cv_host
 
3051
shift
 
3052
host_cpu=$1
 
3053
host_vendor=$2
 
3054
shift; shift
 
3055
# Remember, the first character of IFS is used to create $*,
 
3056
# except with old shells:
 
3057
host_os=$*
 
3058
IFS=$ac_save_IFS
 
3059
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3060
 
 
3061
 
 
3062
# Backslashify metacharacters that are still active within
 
3063
# double-quoted strings.
 
3064
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
3065
 
 
3066
# Same as above, but do not quote variable references.
 
3067
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
3068
 
 
3069
# Sed substitution to delay expansion of an escaped shell variable in a
 
3070
# double_quote_subst'ed string.
 
3071
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
3072
 
 
3073
# Sed substitution to delay expansion of an escaped single quote.
 
3074
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
3075
 
 
3076
# Sed substitution to avoid accidental globbing in evaled expressions
 
3077
no_glob_subst='s/\*/\\\*/g'
 
3078
 
 
3079
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
3080
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
3081
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
3082
 
 
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
3084
$as_echo_n "checking how to print strings... " >&6; }
 
3085
# Test print first, because it will be a builtin if present.
 
3086
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
3087
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3088
  ECHO='print -r --'
 
3089
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
3090
  ECHO='printf %s\n'
 
3091
else
 
3092
  # Use this function as a fallback that always works.
 
3093
  func_fallback_echo ()
 
3094
  {
 
3095
    eval 'cat <<_LTECHO_EOF
 
3096
$1
 
3097
_LTECHO_EOF'
 
3098
  }
 
3099
  ECHO='func_fallback_echo'
 
3100
fi
 
3101
 
 
3102
# func_echo_all arg...
 
3103
# Invoke $ECHO with all args, space-separated.
 
3104
func_echo_all ()
 
3105
{
 
3106
    $ECHO ""
 
3107
}
 
3108
 
 
3109
case "$ECHO" in
 
3110
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
3111
$as_echo "printf" >&6; } ;;
 
3112
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
3113
$as_echo "print -r" >&6; } ;;
 
3114
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
3115
$as_echo "cat" >&6; } ;;
 
3116
esac
 
3117
 
 
3118
 
 
3119
 
 
3120
 
 
3121
 
 
3122
 
 
3123
 
 
3124
 
 
3125
 
 
3126
 
 
3127
 
 
3128
 
 
3129
 
 
3130
 
 
3131
DEPDIR="${am__leading_dot}deps"
 
3132
 
 
3133
ac_config_commands="$ac_config_commands depfiles"
 
3134
 
 
3135
 
 
3136
am_make=${MAKE-make}
 
3137
cat > confinc << 'END'
 
3138
am__doit:
 
3139
        @echo this is the am__doit target
 
3140
.PHONY: am__doit
 
3141
END
 
3142
# If we don't find an include directive, just comment out the code.
 
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
3144
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3145
am__include="#"
 
3146
am__quote=
 
3147
_am_result=none
 
3148
# First try GNU make style include.
 
3149
echo "include confinc" > confmf
 
3150
# Ignore all kinds of additional output from `make'.
 
3151
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3152
*the\ am__doit\ target*)
 
3153
  am__include=include
 
3154
  am__quote=
 
3155
  _am_result=GNU
 
3156
  ;;
 
3157
esac
 
3158
# Now try BSD make style include.
 
3159
if test "$am__include" = "#"; then
 
3160
   echo '.include "confinc"' > confmf
 
3161
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3162
   *the\ am__doit\ target*)
 
3163
     am__include=.include
 
3164
     am__quote="\""
 
3165
     _am_result=BSD
 
3166
     ;;
 
3167
   esac
 
3168
fi
 
3169
 
 
3170
 
 
3171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3172
$as_echo "$_am_result" >&6; }
 
3173
rm -f confinc confmf
 
3174
 
 
3175
# Check whether --enable-dependency-tracking was given.
 
3176
if test "${enable_dependency_tracking+set}" = set; then :
 
3177
  enableval=$enable_dependency_tracking;
 
3178
fi
 
3179
 
 
3180
if test "x$enable_dependency_tracking" != xno; then
 
3181
  am_depcomp="$ac_aux_dir/depcomp"
 
3182
  AMDEPBACKSLASH='\'
 
3183
  am__nodep='_no'
 
3184
fi
 
3185
 if test "x$enable_dependency_tracking" != xno; then
 
3186
  AMDEP_TRUE=
 
3187
  AMDEP_FALSE='#'
 
3188
else
 
3189
  AMDEP_TRUE='#'
 
3190
  AMDEP_FALSE=
 
3191
fi
 
3192
 
 
3193
 
 
3194
ac_ext=c
 
3195
ac_cpp='$CPP $CPPFLAGS'
 
3196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3199
if test -n "$ac_tool_prefix"; then
 
3200
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3201
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3203
$as_echo_n "checking for $ac_word... " >&6; }
 
3204
if ${ac_cv_prog_CC+:} false; then :
 
3205
  $as_echo_n "(cached) " >&6
 
3206
else
 
3207
  if test -n "$CC"; then
 
3208
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3209
else
 
3210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3211
for as_dir in $PATH
 
3212
do
 
3213
  IFS=$as_save_IFS
 
3214
  test -z "$as_dir" && as_dir=.
 
3215
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3216
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3217
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3218
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3219
    break 2
 
3220
  fi
 
3221
done
 
3222
  done
 
3223
IFS=$as_save_IFS
 
3224
 
 
3225
fi
 
3226
fi
 
3227
CC=$ac_cv_prog_CC
 
3228
if test -n "$CC"; then
 
3229
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3230
$as_echo "$CC" >&6; }
 
3231
else
 
3232
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3233
$as_echo "no" >&6; }
 
3234
fi
 
3235
 
 
3236
 
 
3237
fi
 
3238
if test -z "$ac_cv_prog_CC"; then
 
3239
  ac_ct_CC=$CC
 
3240
  # Extract the first word of "gcc", so it can be a program name with args.
 
3241
set dummy gcc; ac_word=$2
 
3242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3243
$as_echo_n "checking for $ac_word... " >&6; }
 
3244
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3245
  $as_echo_n "(cached) " >&6
 
3246
else
 
3247
  if test -n "$ac_ct_CC"; then
 
3248
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3249
else
 
3250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3251
for as_dir in $PATH
 
3252
do
 
3253
  IFS=$as_save_IFS
 
3254
  test -z "$as_dir" && as_dir=.
 
3255
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3256
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3257
    ac_cv_prog_ac_ct_CC="gcc"
 
3258
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3259
    break 2
 
3260
  fi
 
3261
done
 
3262
  done
 
3263
IFS=$as_save_IFS
 
3264
 
 
3265
fi
 
3266
fi
 
3267
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3268
if test -n "$ac_ct_CC"; then
 
3269
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3270
$as_echo "$ac_ct_CC" >&6; }
 
3271
else
 
3272
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3273
$as_echo "no" >&6; }
 
3274
fi
 
3275
 
 
3276
  if test "x$ac_ct_CC" = x; then
 
3277
    CC=""
 
3278
  else
 
3279
    case $cross_compiling:$ac_tool_warned in
 
3280
yes:)
 
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3282
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3283
ac_tool_warned=yes ;;
 
3284
esac
 
3285
    CC=$ac_ct_CC
 
3286
  fi
 
3287
else
 
3288
  CC="$ac_cv_prog_CC"
 
3289
fi
 
3290
 
 
3291
if test -z "$CC"; then
 
3292
          if test -n "$ac_tool_prefix"; then
 
3293
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3294
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3296
$as_echo_n "checking for $ac_word... " >&6; }
 
3297
if ${ac_cv_prog_CC+:} false; then :
 
3298
  $as_echo_n "(cached) " >&6
 
3299
else
 
3300
  if test -n "$CC"; then
 
3301
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3302
else
 
3303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3304
for as_dir in $PATH
 
3305
do
 
3306
  IFS=$as_save_IFS
 
3307
  test -z "$as_dir" && as_dir=.
 
3308
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3309
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3310
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3311
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3312
    break 2
 
3313
  fi
 
3314
done
 
3315
  done
 
3316
IFS=$as_save_IFS
 
3317
 
 
3318
fi
 
3319
fi
 
3320
CC=$ac_cv_prog_CC
 
3321
if test -n "$CC"; then
 
3322
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3323
$as_echo "$CC" >&6; }
 
3324
else
 
3325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3326
$as_echo "no" >&6; }
 
3327
fi
 
3328
 
 
3329
 
 
3330
  fi
 
3331
fi
 
3332
if test -z "$CC"; then
 
3333
  # Extract the first word of "cc", so it can be a program name with args.
 
3334
set dummy cc; ac_word=$2
 
3335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3336
$as_echo_n "checking for $ac_word... " >&6; }
 
3337
if ${ac_cv_prog_CC+:} false; then :
 
3338
  $as_echo_n "(cached) " >&6
 
3339
else
 
3340
  if test -n "$CC"; then
 
3341
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3342
else
 
3343
  ac_prog_rejected=no
 
3344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3345
for as_dir in $PATH
 
3346
do
 
3347
  IFS=$as_save_IFS
 
3348
  test -z "$as_dir" && as_dir=.
 
3349
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3350
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3351
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3352
       ac_prog_rejected=yes
 
3353
       continue
 
3354
     fi
 
3355
    ac_cv_prog_CC="cc"
 
3356
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3357
    break 2
 
3358
  fi
 
3359
done
 
3360
  done
 
3361
IFS=$as_save_IFS
 
3362
 
 
3363
if test $ac_prog_rejected = yes; then
 
3364
  # We found a bogon in the path, so make sure we never use it.
 
3365
  set dummy $ac_cv_prog_CC
 
3366
  shift
 
3367
  if test $# != 0; then
 
3368
    # We chose a different compiler from the bogus one.
 
3369
    # However, it has the same basename, so the bogon will be chosen
 
3370
    # first if we set CC to just the basename; use the full file name.
 
3371
    shift
 
3372
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3373
  fi
 
3374
fi
 
3375
fi
 
3376
fi
 
3377
CC=$ac_cv_prog_CC
 
3378
if test -n "$CC"; then
 
3379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3380
$as_echo "$CC" >&6; }
 
3381
else
 
3382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3383
$as_echo "no" >&6; }
 
3384
fi
 
3385
 
 
3386
 
 
3387
fi
 
3388
if test -z "$CC"; then
 
3389
  if test -n "$ac_tool_prefix"; then
 
3390
  for ac_prog in cl.exe
 
3391
  do
 
3392
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3393
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3395
$as_echo_n "checking for $ac_word... " >&6; }
 
3396
if ${ac_cv_prog_CC+:} false; then :
 
3397
  $as_echo_n "(cached) " >&6
 
3398
else
 
3399
  if test -n "$CC"; then
 
3400
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3401
else
 
3402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3403
for as_dir in $PATH
 
3404
do
 
3405
  IFS=$as_save_IFS
 
3406
  test -z "$as_dir" && as_dir=.
 
3407
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3408
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3409
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3410
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3411
    break 2
 
3412
  fi
 
3413
done
 
3414
  done
 
3415
IFS=$as_save_IFS
 
3416
 
 
3417
fi
 
3418
fi
 
3419
CC=$ac_cv_prog_CC
 
3420
if test -n "$CC"; then
 
3421
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3422
$as_echo "$CC" >&6; }
 
3423
else
 
3424
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3425
$as_echo "no" >&6; }
 
3426
fi
 
3427
 
 
3428
 
 
3429
    test -n "$CC" && break
 
3430
  done
 
3431
fi
 
3432
if test -z "$CC"; then
 
3433
  ac_ct_CC=$CC
 
3434
  for ac_prog in cl.exe
 
3435
do
 
3436
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3437
set dummy $ac_prog; ac_word=$2
 
3438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3439
$as_echo_n "checking for $ac_word... " >&6; }
 
3440
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3441
  $as_echo_n "(cached) " >&6
 
3442
else
 
3443
  if test -n "$ac_ct_CC"; then
 
3444
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3445
else
 
3446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3447
for as_dir in $PATH
 
3448
do
 
3449
  IFS=$as_save_IFS
 
3450
  test -z "$as_dir" && as_dir=.
 
3451
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3452
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3453
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3454
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3455
    break 2
 
3456
  fi
 
3457
done
 
3458
  done
 
3459
IFS=$as_save_IFS
 
3460
 
 
3461
fi
 
3462
fi
 
3463
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3464
if test -n "$ac_ct_CC"; then
 
3465
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3466
$as_echo "$ac_ct_CC" >&6; }
 
3467
else
 
3468
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3469
$as_echo "no" >&6; }
 
3470
fi
 
3471
 
 
3472
 
 
3473
  test -n "$ac_ct_CC" && break
 
3474
done
 
3475
 
 
3476
  if test "x$ac_ct_CC" = x; then
 
3477
    CC=""
 
3478
  else
 
3479
    case $cross_compiling:$ac_tool_warned in
 
3480
yes:)
 
3481
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3482
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3483
ac_tool_warned=yes ;;
 
3484
esac
 
3485
    CC=$ac_ct_CC
 
3486
  fi
 
3487
fi
 
3488
 
 
3489
fi
 
3490
 
 
3491
 
 
3492
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3493
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3494
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3495
See \`config.log' for more details" "$LINENO" 5; }
 
3496
 
 
3497
# Provide some information about the compiler.
 
3498
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3499
set X $ac_compile
 
3500
ac_compiler=$2
 
3501
for ac_option in --version -v -V -qversion; do
 
3502
  { { ac_try="$ac_compiler $ac_option >&5"
 
3503
case "(($ac_try" in
 
3504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3505
  *) ac_try_echo=$ac_try;;
 
3506
esac
 
3507
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3508
$as_echo "$ac_try_echo"; } >&5
 
3509
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3510
  ac_status=$?
 
3511
  if test -s conftest.err; then
 
3512
    sed '10a\
 
3513
... rest of stderr output deleted ...
 
3514
         10q' conftest.err >conftest.er1
 
3515
    cat conftest.er1 >&5
 
3516
  fi
 
3517
  rm -f conftest.er1 conftest.err
 
3518
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3519
  test $ac_status = 0; }
 
3520
done
 
3521
 
 
3522
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3523
/* end confdefs.h.  */
 
3524
 
 
3525
int
 
3526
main ()
 
3527
{
 
3528
 
 
3529
  ;
 
3530
  return 0;
 
3531
}
 
3532
_ACEOF
 
3533
ac_clean_files_save=$ac_clean_files
 
3534
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3535
# Try to create an executable without -o first, disregard a.out.
 
3536
# It will help us diagnose broken compilers, and finding out an intuition
 
3537
# of exeext.
 
3538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3539
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3540
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3541
 
 
3542
# The possible output files:
 
3543
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3544
 
 
3545
ac_rmfiles=
 
3546
for ac_file in $ac_files
 
3547
do
 
3548
  case $ac_file in
 
3549
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3550
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3551
  esac
 
3552
done
 
3553
rm -f $ac_rmfiles
 
3554
 
 
3555
if { { ac_try="$ac_link_default"
 
3556
case "(($ac_try" in
 
3557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3558
  *) ac_try_echo=$ac_try;;
 
3559
esac
 
3560
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3561
$as_echo "$ac_try_echo"; } >&5
 
3562
  (eval "$ac_link_default") 2>&5
 
3563
  ac_status=$?
 
3564
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3565
  test $ac_status = 0; }; then :
 
3566
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3567
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3568
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3569
# so that the user can short-circuit this test for compilers unknown to
 
3570
# Autoconf.
 
3571
for ac_file in $ac_files ''
 
3572
do
 
3573
  test -f "$ac_file" || continue
 
3574
  case $ac_file in
 
3575
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3576
        ;;
 
3577
    [ab].out )
 
3578
        # We found the default executable, but exeext='' is most
 
3579
        # certainly right.
 
3580
        break;;
 
3581
    *.* )
 
3582
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3583
        then :; else
 
3584
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3585
        fi
 
3586
        # We set ac_cv_exeext here because the later test for it is not
 
3587
        # safe: cross compilers may not add the suffix if given an `-o'
 
3588
        # argument, so we may need to know it at that point already.
 
3589
        # Even if this section looks crufty: it has the advantage of
 
3590
        # actually working.
 
3591
        break;;
 
3592
    * )
 
3593
        break;;
 
3594
  esac
 
3595
done
 
3596
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3597
 
 
3598
else
 
3599
  ac_file=''
 
3600
fi
 
3601
if test -z "$ac_file"; then :
 
3602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3603
$as_echo "no" >&6; }
 
3604
$as_echo "$as_me: failed program was:" >&5
 
3605
sed 's/^/| /' conftest.$ac_ext >&5
 
3606
 
 
3607
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3608
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3609
as_fn_error 77 "C compiler cannot create executables
 
3610
See \`config.log' for more details" "$LINENO" 5; }
 
3611
else
 
3612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3613
$as_echo "yes" >&6; }
 
3614
fi
 
3615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3616
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3618
$as_echo "$ac_file" >&6; }
 
3619
ac_exeext=$ac_cv_exeext
 
3620
 
 
3621
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3622
ac_clean_files=$ac_clean_files_save
 
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3624
$as_echo_n "checking for suffix of executables... " >&6; }
 
3625
if { { ac_try="$ac_link"
 
3626
case "(($ac_try" in
 
3627
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3628
  *) ac_try_echo=$ac_try;;
 
3629
esac
 
3630
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3631
$as_echo "$ac_try_echo"; } >&5
 
3632
  (eval "$ac_link") 2>&5
 
3633
  ac_status=$?
 
3634
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3635
  test $ac_status = 0; }; then :
 
3636
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3637
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3638
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3639
# `rm'.
 
3640
for ac_file in conftest.exe conftest conftest.*; do
 
3641
  test -f "$ac_file" || continue
 
3642
  case $ac_file in
 
3643
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3644
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3645
          break;;
 
3646
    * ) break;;
 
3647
  esac
 
3648
done
 
3649
else
 
3650
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3651
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3652
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3653
See \`config.log' for more details" "$LINENO" 5; }
 
3654
fi
 
3655
rm -f conftest conftest$ac_cv_exeext
 
3656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3657
$as_echo "$ac_cv_exeext" >&6; }
 
3658
 
 
3659
rm -f conftest.$ac_ext
 
3660
EXEEXT=$ac_cv_exeext
 
3661
ac_exeext=$EXEEXT
 
3662
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3663
/* end confdefs.h.  */
 
3664
#include <stdio.h>
 
3665
int
 
3666
main ()
 
3667
{
 
3668
FILE *f = fopen ("conftest.out", "w");
 
3669
 return ferror (f) || fclose (f) != 0;
 
3670
 
 
3671
  ;
 
3672
  return 0;
 
3673
}
 
3674
_ACEOF
 
3675
ac_clean_files="$ac_clean_files conftest.out"
 
3676
# Check that the compiler produces executables we can run.  If not, either
 
3677
# the compiler is broken, or we cross compile.
 
3678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3679
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3680
if test "$cross_compiling" != yes; then
 
3681
  { { ac_try="$ac_link"
 
3682
case "(($ac_try" in
 
3683
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3684
  *) ac_try_echo=$ac_try;;
 
3685
esac
 
3686
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3687
$as_echo "$ac_try_echo"; } >&5
 
3688
  (eval "$ac_link") 2>&5
 
3689
  ac_status=$?
 
3690
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3691
  test $ac_status = 0; }
 
3692
  if { ac_try='./conftest$ac_cv_exeext'
 
3693
  { { case "(($ac_try" in
 
3694
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3695
  *) ac_try_echo=$ac_try;;
 
3696
esac
 
3697
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3698
$as_echo "$ac_try_echo"; } >&5
 
3699
  (eval "$ac_try") 2>&5
 
3700
  ac_status=$?
 
3701
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3702
  test $ac_status = 0; }; }; then
 
3703
    cross_compiling=no
 
3704
  else
 
3705
    if test "$cross_compiling" = maybe; then
 
3706
        cross_compiling=yes
 
3707
    else
 
3708
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3709
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3710
as_fn_error $? "cannot run C compiled programs.
 
3711
If you meant to cross compile, use \`--host'.
 
3712
See \`config.log' for more details" "$LINENO" 5; }
 
3713
    fi
 
3714
  fi
 
3715
fi
 
3716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3717
$as_echo "$cross_compiling" >&6; }
 
3718
 
 
3719
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3720
ac_clean_files=$ac_clean_files_save
 
3721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3722
$as_echo_n "checking for suffix of object files... " >&6; }
 
3723
if ${ac_cv_objext+:} false; then :
 
3724
  $as_echo_n "(cached) " >&6
 
3725
else
 
3726
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3727
/* end confdefs.h.  */
 
3728
 
 
3729
int
 
3730
main ()
 
3731
{
 
3732
 
 
3733
  ;
 
3734
  return 0;
 
3735
}
 
3736
_ACEOF
 
3737
rm -f conftest.o conftest.obj
 
3738
if { { ac_try="$ac_compile"
 
3739
case "(($ac_try" in
 
3740
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3741
  *) ac_try_echo=$ac_try;;
 
3742
esac
 
3743
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3744
$as_echo "$ac_try_echo"; } >&5
 
3745
  (eval "$ac_compile") 2>&5
 
3746
  ac_status=$?
 
3747
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3748
  test $ac_status = 0; }; then :
 
3749
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3750
  test -f "$ac_file" || continue;
 
3751
  case $ac_file in
 
3752
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3753
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3754
       break;;
 
3755
  esac
 
3756
done
 
3757
else
 
3758
  $as_echo "$as_me: failed program was:" >&5
 
3759
sed 's/^/| /' conftest.$ac_ext >&5
 
3760
 
 
3761
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3762
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3763
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3764
See \`config.log' for more details" "$LINENO" 5; }
 
3765
fi
 
3766
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3767
fi
 
3768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3769
$as_echo "$ac_cv_objext" >&6; }
 
3770
OBJEXT=$ac_cv_objext
 
3771
ac_objext=$OBJEXT
 
3772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3773
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3774
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3775
  $as_echo_n "(cached) " >&6
 
3776
else
 
3777
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3778
/* end confdefs.h.  */
 
3779
 
 
3780
int
 
3781
main ()
 
3782
{
 
3783
#ifndef __GNUC__
 
3784
       choke me
 
3785
#endif
 
3786
 
 
3787
  ;
 
3788
  return 0;
 
3789
}
 
3790
_ACEOF
 
3791
if ac_fn_c_try_compile "$LINENO"; then :
 
3792
  ac_compiler_gnu=yes
 
3793
else
 
3794
  ac_compiler_gnu=no
 
3795
fi
 
3796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3797
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3798
 
 
3799
fi
 
3800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3801
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3802
if test $ac_compiler_gnu = yes; then
 
3803
  GCC=yes
 
3804
else
 
3805
  GCC=
 
3806
fi
 
3807
ac_test_CFLAGS=${CFLAGS+set}
 
3808
ac_save_CFLAGS=$CFLAGS
 
3809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3810
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3811
if ${ac_cv_prog_cc_g+:} false; then :
 
3812
  $as_echo_n "(cached) " >&6
 
3813
else
 
3814
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3815
   ac_c_werror_flag=yes
 
3816
   ac_cv_prog_cc_g=no
 
3817
   CFLAGS="-g"
 
3818
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3819
/* end confdefs.h.  */
 
3820
 
 
3821
int
 
3822
main ()
 
3823
{
 
3824
 
 
3825
  ;
 
3826
  return 0;
 
3827
}
 
3828
_ACEOF
 
3829
if ac_fn_c_try_compile "$LINENO"; then :
 
3830
  ac_cv_prog_cc_g=yes
 
3831
else
 
3832
  CFLAGS=""
 
3833
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3834
/* end confdefs.h.  */
 
3835
 
 
3836
int
 
3837
main ()
 
3838
{
 
3839
 
 
3840
  ;
 
3841
  return 0;
 
3842
}
 
3843
_ACEOF
 
3844
if ac_fn_c_try_compile "$LINENO"; then :
 
3845
 
 
3846
else
 
3847
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3848
         CFLAGS="-g"
 
3849
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3850
/* end confdefs.h.  */
 
3851
 
 
3852
int
 
3853
main ()
 
3854
{
 
3855
 
 
3856
  ;
 
3857
  return 0;
 
3858
}
 
3859
_ACEOF
 
3860
if ac_fn_c_try_compile "$LINENO"; then :
 
3861
  ac_cv_prog_cc_g=yes
 
3862
fi
 
3863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3864
fi
 
3865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3866
fi
 
3867
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3868
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3869
fi
 
3870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3871
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3872
if test "$ac_test_CFLAGS" = set; then
 
3873
  CFLAGS=$ac_save_CFLAGS
 
3874
elif test $ac_cv_prog_cc_g = yes; then
 
3875
  if test "$GCC" = yes; then
 
3876
    CFLAGS="-g -O2"
 
3877
  else
 
3878
    CFLAGS="-g"
 
3879
  fi
 
3880
else
 
3881
  if test "$GCC" = yes; then
 
3882
    CFLAGS="-O2"
 
3883
  else
 
3884
    CFLAGS=
 
3885
  fi
 
3886
fi
 
3887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3888
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3889
if ${ac_cv_prog_cc_c89+:} false; then :
 
3890
  $as_echo_n "(cached) " >&6
 
3891
else
 
3892
  ac_cv_prog_cc_c89=no
 
3893
ac_save_CC=$CC
 
3894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3895
/* end confdefs.h.  */
 
3896
#include <stdarg.h>
 
3897
#include <stdio.h>
 
3898
#include <sys/types.h>
 
3899
#include <sys/stat.h>
 
3900
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3901
struct buf { int x; };
 
3902
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3903
static char *e (p, i)
 
3904
     char **p;
 
3905
     int i;
 
3906
{
 
3907
  return p[i];
 
3908
}
 
3909
static char *f (char * (*g) (char **, int), char **p, ...)
 
3910
{
 
3911
  char *s;
 
3912
  va_list v;
 
3913
  va_start (v,p);
 
3914
  s = g (p, va_arg (v,int));
 
3915
  va_end (v);
 
3916
  return s;
 
3917
}
 
3918
 
 
3919
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3920
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3921
   These don't provoke an error unfortunately, instead are silently treated
 
3922
   as 'x'.  The following induces an error, until -std is added to get
 
3923
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3924
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3925
   that's true only with -std.  */
 
3926
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3927
 
 
3928
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3929
   inside strings and character constants.  */
 
3930
#define FOO(x) 'x'
 
3931
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3932
 
 
3933
int test (int i, double x);
 
3934
struct s1 {int (*f) (int a);};
 
3935
struct s2 {int (*f) (double a);};
 
3936
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3937
int argc;
 
3938
char **argv;
 
3939
int
 
3940
main ()
 
3941
{
 
3942
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3943
  ;
 
3944
  return 0;
 
3945
}
 
3946
_ACEOF
 
3947
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3948
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3949
do
 
3950
  CC="$ac_save_CC $ac_arg"
 
3951
  if ac_fn_c_try_compile "$LINENO"; then :
 
3952
  ac_cv_prog_cc_c89=$ac_arg
 
3953
fi
 
3954
rm -f core conftest.err conftest.$ac_objext
 
3955
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3956
done
 
3957
rm -f conftest.$ac_ext
 
3958
CC=$ac_save_CC
 
3959
 
 
3960
fi
 
3961
# AC_CACHE_VAL
 
3962
case "x$ac_cv_prog_cc_c89" in
 
3963
  x)
 
3964
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3965
$as_echo "none needed" >&6; } ;;
 
3966
  xno)
 
3967
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3968
$as_echo "unsupported" >&6; } ;;
 
3969
  *)
 
3970
    CC="$CC $ac_cv_prog_cc_c89"
 
3971
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3972
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3973
esac
 
3974
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3975
 
 
3976
fi
 
3977
 
 
3978
ac_ext=c
 
3979
ac_cpp='$CPP $CPPFLAGS'
 
3980
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3981
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3982
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3983
 
 
3984
depcc="$CC"   am_compiler_list=
 
3985
 
 
3986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3987
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3988
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3989
  $as_echo_n "(cached) " >&6
 
3990
else
 
3991
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3992
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3993
  # making bogus files that we don't know about and never remove.  For
 
3994
  # instance it was reported that on HP-UX the gcc test will end up
 
3995
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3996
  # in D'.
 
3997
  rm -rf conftest.dir
 
3998
  mkdir conftest.dir
 
3999
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4000
  # using a relative directory.
 
4001
  cp "$am_depcomp" conftest.dir
 
4002
  cd conftest.dir
 
4003
  # We will build objects and dependencies in a subdirectory because
 
4004
  # it helps to detect inapplicable dependency modes.  For instance
 
4005
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4006
  # side effect of compilation, but ICC will put the dependencies in
 
4007
  # the current directory while Tru64 will put them in the object
 
4008
  # directory.
 
4009
  mkdir sub
 
4010
 
 
4011
  am_cv_CC_dependencies_compiler_type=none
 
4012
  if test "$am_compiler_list" = ""; then
 
4013
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4014
  fi
 
4015
  am__universal=false
 
4016
  case " $depcc " in #(
 
4017
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4018
     esac
 
4019
 
 
4020
  for depmode in $am_compiler_list; do
 
4021
    # Setup a source with many dependencies, because some compilers
 
4022
    # like to wrap large dependency lists on column 80 (with \), and
 
4023
    # we should not choose a depcomp mode which is confused by this.
 
4024
    #
 
4025
    # We need to recreate these files for each test, as the compiler may
 
4026
    # overwrite some of them when testing with obscure command lines.
 
4027
    # This happens at least with the AIX C compiler.
 
4028
    : > sub/conftest.c
 
4029
    for i in 1 2 3 4 5 6; do
 
4030
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4031
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4032
      # Solaris 8's {/usr,}/bin/sh.
 
4033
      touch sub/conftst$i.h
 
4034
    done
 
4035
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4036
 
 
4037
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4038
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4039
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4040
    # versions had trouble with output in subdirs
 
4041
    am__obj=sub/conftest.${OBJEXT-o}
 
4042
    am__minus_obj="-o $am__obj"
 
4043
    case $depmode in
 
4044
    gcc)
 
4045
      # This depmode causes a compiler race in universal mode.
 
4046
      test "$am__universal" = false || continue
 
4047
      ;;
 
4048
    nosideeffect)
 
4049
      # after this tag, mechanisms are not by side-effect, so they'll
 
4050
      # only be used when explicitly requested
 
4051
      if test "x$enable_dependency_tracking" = xyes; then
 
4052
        continue
 
4053
      else
 
4054
        break
 
4055
      fi
 
4056
      ;;
 
4057
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
4058
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4059
      # not run yet.  These depmodes are late enough in the game, and
 
4060
      # so weak that their functioning should not be impacted.
 
4061
      am__obj=conftest.${OBJEXT-o}
 
4062
      am__minus_obj=
 
4063
      ;;
 
4064
    none) break ;;
 
4065
    esac
 
4066
    if depmode=$depmode \
 
4067
       source=sub/conftest.c object=$am__obj \
 
4068
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4069
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4070
         >/dev/null 2>conftest.err &&
 
4071
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4072
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4073
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4074
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4075
      # icc doesn't choke on unknown options, it will just issue warnings
 
4076
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4077
      # that says an option was ignored or not supported.
 
4078
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4079
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4080
      # The diagnosis changed in icc 8.0:
 
4081
      #   icc: Command line remark: option '-MP' not supported
 
4082
      if (grep 'ignoring option' conftest.err ||
 
4083
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4084
        am_cv_CC_dependencies_compiler_type=$depmode
 
4085
        break
 
4086
      fi
 
4087
    fi
 
4088
  done
 
4089
 
 
4090
  cd ..
 
4091
  rm -rf conftest.dir
 
4092
else
 
4093
  am_cv_CC_dependencies_compiler_type=none
 
4094
fi
 
4095
 
 
4096
fi
 
4097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4098
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4099
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4100
 
 
4101
 if
 
4102
  test "x$enable_dependency_tracking" != xno \
 
4103
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4104
  am__fastdepCC_TRUE=
 
4105
  am__fastdepCC_FALSE='#'
 
4106
else
 
4107
  am__fastdepCC_TRUE='#'
 
4108
  am__fastdepCC_FALSE=
 
4109
fi
 
4110
 
 
4111
 
 
4112
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4113
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4114
if ${ac_cv_path_SED+:} false; then :
 
4115
  $as_echo_n "(cached) " >&6
 
4116
else
 
4117
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4118
     for ac_i in 1 2 3 4 5 6 7; do
 
4119
       ac_script="$ac_script$as_nl$ac_script"
 
4120
     done
 
4121
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4122
     { ac_script=; unset ac_script;}
 
4123
     if test -z "$SED"; then
 
4124
  ac_path_SED_found=false
 
4125
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4126
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4127
for as_dir in $PATH
 
4128
do
 
4129
  IFS=$as_save_IFS
 
4130
  test -z "$as_dir" && as_dir=.
 
4131
    for ac_prog in sed gsed; do
 
4132
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4133
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4134
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
4135
# Check for GNU ac_path_SED and select it if it is found.
 
4136
  # Check for GNU $ac_path_SED
 
4137
case `"$ac_path_SED" --version 2>&1` in
 
4138
*GNU*)
 
4139
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4140
*)
 
4141
  ac_count=0
 
4142
  $as_echo_n 0123456789 >"conftest.in"
 
4143
  while :
 
4144
  do
 
4145
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4146
    mv "conftest.tmp" "conftest.in"
 
4147
    cp "conftest.in" "conftest.nl"
 
4148
    $as_echo '' >> "conftest.nl"
 
4149
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4150
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4151
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4152
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4153
      # Best one so far, save it but keep looking for a better one
 
4154
      ac_cv_path_SED="$ac_path_SED"
 
4155
      ac_path_SED_max=$ac_count
 
4156
    fi
 
4157
    # 10*(2^10) chars as input seems more than enough
 
4158
    test $ac_count -gt 10 && break
 
4159
  done
 
4160
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4161
esac
 
4162
 
 
4163
      $ac_path_SED_found && break 3
 
4164
    done
 
4165
  done
 
4166
  done
 
4167
IFS=$as_save_IFS
 
4168
  if test -z "$ac_cv_path_SED"; then
 
4169
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4170
  fi
 
4171
else
 
4172
  ac_cv_path_SED=$SED
 
4173
fi
 
4174
 
 
4175
fi
 
4176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4177
$as_echo "$ac_cv_path_SED" >&6; }
 
4178
 SED="$ac_cv_path_SED"
 
4179
  rm -f conftest.sed
 
4180
 
 
4181
test -z "$SED" && SED=sed
 
4182
Xsed="$SED -e 1s/^X//"
 
4183
 
 
4184
 
 
4185
 
 
4186
 
 
4187
 
 
4188
 
 
4189
 
 
4190
 
 
4191
 
 
4192
 
 
4193
 
 
4194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4195
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4196
if ${ac_cv_path_GREP+:} false; then :
 
4197
  $as_echo_n "(cached) " >&6
 
4198
else
 
4199
  if test -z "$GREP"; then
 
4200
  ac_path_GREP_found=false
 
4201
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4202
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4203
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4204
do
 
4205
  IFS=$as_save_IFS
 
4206
  test -z "$as_dir" && as_dir=.
 
4207
    for ac_prog in grep ggrep; do
 
4208
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4209
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4210
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4211
# Check for GNU ac_path_GREP and select it if it is found.
 
4212
  # Check for GNU $ac_path_GREP
 
4213
case `"$ac_path_GREP" --version 2>&1` in
 
4214
*GNU*)
 
4215
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4216
*)
 
4217
  ac_count=0
 
4218
  $as_echo_n 0123456789 >"conftest.in"
 
4219
  while :
 
4220
  do
 
4221
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4222
    mv "conftest.tmp" "conftest.in"
 
4223
    cp "conftest.in" "conftest.nl"
 
4224
    $as_echo 'GREP' >> "conftest.nl"
 
4225
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4226
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4227
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4228
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4229
      # Best one so far, save it but keep looking for a better one
 
4230
      ac_cv_path_GREP="$ac_path_GREP"
 
4231
      ac_path_GREP_max=$ac_count
 
4232
    fi
 
4233
    # 10*(2^10) chars as input seems more than enough
 
4234
    test $ac_count -gt 10 && break
 
4235
  done
 
4236
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4237
esac
 
4238
 
 
4239
      $ac_path_GREP_found && break 3
 
4240
    done
 
4241
  done
 
4242
  done
 
4243
IFS=$as_save_IFS
 
4244
  if test -z "$ac_cv_path_GREP"; then
 
4245
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4246
  fi
 
4247
else
 
4248
  ac_cv_path_GREP=$GREP
 
4249
fi
 
4250
 
 
4251
fi
 
4252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4253
$as_echo "$ac_cv_path_GREP" >&6; }
 
4254
 GREP="$ac_cv_path_GREP"
 
4255
 
 
4256
 
 
4257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4258
$as_echo_n "checking for egrep... " >&6; }
 
4259
if ${ac_cv_path_EGREP+:} false; then :
 
4260
  $as_echo_n "(cached) " >&6
 
4261
else
 
4262
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4263
   then ac_cv_path_EGREP="$GREP -E"
 
4264
   else
 
4265
     if test -z "$EGREP"; then
 
4266
  ac_path_EGREP_found=false
 
4267
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4268
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4269
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4270
do
 
4271
  IFS=$as_save_IFS
 
4272
  test -z "$as_dir" && as_dir=.
 
4273
    for ac_prog in egrep; do
 
4274
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4275
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4276
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4277
# Check for GNU ac_path_EGREP and select it if it is found.
 
4278
  # Check for GNU $ac_path_EGREP
 
4279
case `"$ac_path_EGREP" --version 2>&1` in
 
4280
*GNU*)
 
4281
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4282
*)
 
4283
  ac_count=0
 
4284
  $as_echo_n 0123456789 >"conftest.in"
 
4285
  while :
 
4286
  do
 
4287
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4288
    mv "conftest.tmp" "conftest.in"
 
4289
    cp "conftest.in" "conftest.nl"
 
4290
    $as_echo 'EGREP' >> "conftest.nl"
 
4291
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4292
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4293
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4294
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4295
      # Best one so far, save it but keep looking for a better one
 
4296
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4297
      ac_path_EGREP_max=$ac_count
 
4298
    fi
 
4299
    # 10*(2^10) chars as input seems more than enough
 
4300
    test $ac_count -gt 10 && break
 
4301
  done
 
4302
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4303
esac
 
4304
 
 
4305
      $ac_path_EGREP_found && break 3
 
4306
    done
 
4307
  done
 
4308
  done
 
4309
IFS=$as_save_IFS
 
4310
  if test -z "$ac_cv_path_EGREP"; then
 
4311
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4312
  fi
 
4313
else
 
4314
  ac_cv_path_EGREP=$EGREP
 
4315
fi
 
4316
 
 
4317
   fi
 
4318
fi
 
4319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4320
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4321
 EGREP="$ac_cv_path_EGREP"
 
4322
 
 
4323
 
 
4324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4325
$as_echo_n "checking for fgrep... " >&6; }
 
4326
if ${ac_cv_path_FGREP+:} false; then :
 
4327
  $as_echo_n "(cached) " >&6
 
4328
else
 
4329
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4330
   then ac_cv_path_FGREP="$GREP -F"
 
4331
   else
 
4332
     if test -z "$FGREP"; then
 
4333
  ac_path_FGREP_found=false
 
4334
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4335
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4336
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4337
do
 
4338
  IFS=$as_save_IFS
 
4339
  test -z "$as_dir" && as_dir=.
 
4340
    for ac_prog in fgrep; do
 
4341
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4342
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4343
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4344
# Check for GNU ac_path_FGREP and select it if it is found.
 
4345
  # Check for GNU $ac_path_FGREP
 
4346
case `"$ac_path_FGREP" --version 2>&1` in
 
4347
*GNU*)
 
4348
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4349
*)
 
4350
  ac_count=0
 
4351
  $as_echo_n 0123456789 >"conftest.in"
 
4352
  while :
 
4353
  do
 
4354
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4355
    mv "conftest.tmp" "conftest.in"
 
4356
    cp "conftest.in" "conftest.nl"
 
4357
    $as_echo 'FGREP' >> "conftest.nl"
 
4358
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4359
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4360
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4361
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4362
      # Best one so far, save it but keep looking for a better one
 
4363
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4364
      ac_path_FGREP_max=$ac_count
 
4365
    fi
 
4366
    # 10*(2^10) chars as input seems more than enough
 
4367
    test $ac_count -gt 10 && break
 
4368
  done
 
4369
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4370
esac
 
4371
 
 
4372
      $ac_path_FGREP_found && break 3
 
4373
    done
 
4374
  done
 
4375
  done
 
4376
IFS=$as_save_IFS
 
4377
  if test -z "$ac_cv_path_FGREP"; then
 
4378
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4379
  fi
 
4380
else
 
4381
  ac_cv_path_FGREP=$FGREP
 
4382
fi
 
4383
 
 
4384
   fi
 
4385
fi
 
4386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4387
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4388
 FGREP="$ac_cv_path_FGREP"
 
4389
 
 
4390
 
 
4391
test -z "$GREP" && GREP=grep
 
4392
 
 
4393
 
 
4394
 
 
4395
 
 
4396
 
 
4397
 
 
4398
 
 
4399
 
 
4400
 
 
4401
 
 
4402
 
 
4403
 
 
4404
 
 
4405
 
 
4406
 
 
4407
 
 
4408
 
 
4409
 
 
4410
 
 
4411
# Check whether --with-gnu-ld was given.
 
4412
if test "${with_gnu_ld+set}" = set; then :
 
4413
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4414
else
 
4415
  with_gnu_ld=no
 
4416
fi
 
4417
 
 
4418
ac_prog=ld
 
4419
if test "$GCC" = yes; then
 
4420
  # Check if gcc -print-prog-name=ld gives a path.
 
4421
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4422
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4423
  case $host in
 
4424
  *-*-mingw*)
 
4425
    # gcc leaves a trailing carriage return which upsets mingw
 
4426
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4427
  *)
 
4428
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4429
  esac
 
4430
  case $ac_prog in
 
4431
    # Accept absolute paths.
 
4432
    [\\/]* | ?:[\\/]*)
 
4433
      re_direlt='/[^/][^/]*/\.\./'
 
4434
      # Canonicalize the pathname of ld
 
4435
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4436
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4437
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4438
      done
 
4439
      test -z "$LD" && LD="$ac_prog"
 
4440
      ;;
 
4441
  "")
 
4442
    # If it fails, then pretend we aren't using GCC.
 
4443
    ac_prog=ld
 
4444
    ;;
 
4445
  *)
 
4446
    # If it is relative, then search for the first ld in PATH.
 
4447
    with_gnu_ld=unknown
 
4448
    ;;
 
4449
  esac
 
4450
elif test "$with_gnu_ld" = yes; then
 
4451
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4452
$as_echo_n "checking for GNU ld... " >&6; }
 
4453
else
 
4454
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4455
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4456
fi
 
4457
if ${lt_cv_path_LD+:} false; then :
 
4458
  $as_echo_n "(cached) " >&6
 
4459
else
 
4460
  if test -z "$LD"; then
 
4461
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4462
  for ac_dir in $PATH; do
 
4463
    IFS="$lt_save_ifs"
 
4464
    test -z "$ac_dir" && ac_dir=.
 
4465
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4466
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4467
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4468
      # but apparently some variants of GNU ld only accept -v.
 
4469
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4470
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4471
      *GNU* | *'with BFD'*)
 
4472
        test "$with_gnu_ld" != no && break
 
4473
        ;;
 
4474
      *)
 
4475
        test "$with_gnu_ld" != yes && break
 
4476
        ;;
 
4477
      esac
 
4478
    fi
 
4479
  done
 
4480
  IFS="$lt_save_ifs"
 
4481
else
 
4482
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4483
fi
 
4484
fi
 
4485
 
 
4486
LD="$lt_cv_path_LD"
 
4487
if test -n "$LD"; then
 
4488
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4489
$as_echo "$LD" >&6; }
 
4490
else
 
4491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4492
$as_echo "no" >&6; }
 
4493
fi
 
4494
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4496
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4497
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4498
  $as_echo_n "(cached) " >&6
 
4499
else
 
4500
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4501
case `$LD -v 2>&1 </dev/null` in
 
4502
*GNU* | *'with BFD'*)
 
4503
  lt_cv_prog_gnu_ld=yes
 
4504
  ;;
 
4505
*)
 
4506
  lt_cv_prog_gnu_ld=no
 
4507
  ;;
 
4508
esac
 
4509
fi
 
4510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4511
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4512
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4513
 
 
4514
 
 
4515
 
 
4516
 
 
4517
 
 
4518
 
 
4519
 
 
4520
 
 
4521
 
 
4522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4523
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4524
if ${lt_cv_path_NM+:} false; then :
 
4525
  $as_echo_n "(cached) " >&6
 
4526
else
 
4527
  if test -n "$NM"; then
 
4528
  # Let the user override the test.
 
4529
  lt_cv_path_NM="$NM"
 
4530
else
 
4531
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4532
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4533
    lt_nm_to_check="$lt_nm_to_check nm"
 
4534
  fi
 
4535
  for lt_tmp_nm in $lt_nm_to_check; do
 
4536
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4537
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4538
      IFS="$lt_save_ifs"
 
4539
      test -z "$ac_dir" && ac_dir=.
 
4540
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4541
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4542
        # Check to see if the nm accepts a BSD-compat flag.
 
4543
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4544
        #   nm: unknown option "B" ignored
 
4545
        # Tru64's nm complains that /dev/null is an invalid object file
 
4546
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4547
        */dev/null* | *'Invalid file or object type'*)
 
4548
          lt_cv_path_NM="$tmp_nm -B"
 
4549
          break
 
4550
          ;;
 
4551
        *)
 
4552
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4553
          */dev/null*)
 
4554
            lt_cv_path_NM="$tmp_nm -p"
 
4555
            break
 
4556
            ;;
 
4557
          *)
 
4558
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4559
            continue # so that we can try to find one that supports BSD flags
 
4560
            ;;
 
4561
          esac
 
4562
          ;;
 
4563
        esac
 
4564
      fi
 
4565
    done
 
4566
    IFS="$lt_save_ifs"
 
4567
  done
 
4568
  : ${lt_cv_path_NM=no}
 
4569
fi
 
4570
fi
 
4571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4572
$as_echo "$lt_cv_path_NM" >&6; }
 
4573
if test "$lt_cv_path_NM" != "no"; then
 
4574
  NM="$lt_cv_path_NM"
 
4575
else
 
4576
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4577
  if test -n "$DUMPBIN"; then :
 
4578
    # Let the user override the test.
 
4579
  else
 
4580
    if test -n "$ac_tool_prefix"; then
 
4581
  for ac_prog in dumpbin "link -dump"
 
4582
  do
 
4583
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4584
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4586
$as_echo_n "checking for $ac_word... " >&6; }
 
4587
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4588
  $as_echo_n "(cached) " >&6
 
4589
else
 
4590
  if test -n "$DUMPBIN"; then
 
4591
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4592
else
 
4593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4594
for as_dir in $PATH
 
4595
do
 
4596
  IFS=$as_save_IFS
 
4597
  test -z "$as_dir" && as_dir=.
 
4598
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4599
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4600
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4601
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4602
    break 2
 
4603
  fi
 
4604
done
 
4605
  done
 
4606
IFS=$as_save_IFS
 
4607
 
 
4608
fi
 
4609
fi
 
4610
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4611
if test -n "$DUMPBIN"; then
 
4612
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4613
$as_echo "$DUMPBIN" >&6; }
 
4614
else
 
4615
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4616
$as_echo "no" >&6; }
 
4617
fi
 
4618
 
 
4619
 
 
4620
    test -n "$DUMPBIN" && break
 
4621
  done
 
4622
fi
 
4623
if test -z "$DUMPBIN"; then
 
4624
  ac_ct_DUMPBIN=$DUMPBIN
 
4625
  for ac_prog in dumpbin "link -dump"
 
4626
do
 
4627
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4628
set dummy $ac_prog; ac_word=$2
 
4629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4630
$as_echo_n "checking for $ac_word... " >&6; }
 
4631
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4632
  $as_echo_n "(cached) " >&6
 
4633
else
 
4634
  if test -n "$ac_ct_DUMPBIN"; then
 
4635
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4636
else
 
4637
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4638
for as_dir in $PATH
 
4639
do
 
4640
  IFS=$as_save_IFS
 
4641
  test -z "$as_dir" && as_dir=.
 
4642
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4643
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4644
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4645
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4646
    break 2
 
4647
  fi
 
4648
done
 
4649
  done
 
4650
IFS=$as_save_IFS
 
4651
 
 
4652
fi
 
4653
fi
 
4654
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4655
if test -n "$ac_ct_DUMPBIN"; then
 
4656
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4657
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4658
else
 
4659
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4660
$as_echo "no" >&6; }
 
4661
fi
 
4662
 
 
4663
 
 
4664
  test -n "$ac_ct_DUMPBIN" && break
 
4665
done
 
4666
 
 
4667
  if test "x$ac_ct_DUMPBIN" = x; then
 
4668
    DUMPBIN=":"
 
4669
  else
 
4670
    case $cross_compiling:$ac_tool_warned in
 
4671
yes:)
 
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4674
ac_tool_warned=yes ;;
 
4675
esac
 
4676
    DUMPBIN=$ac_ct_DUMPBIN
 
4677
  fi
 
4678
fi
 
4679
 
 
4680
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4681
    *COFF*)
 
4682
      DUMPBIN="$DUMPBIN -symbols"
 
4683
      ;;
 
4684
    *)
 
4685
      DUMPBIN=:
 
4686
      ;;
 
4687
    esac
 
4688
  fi
 
4689
 
 
4690
  if test "$DUMPBIN" != ":"; then
 
4691
    NM="$DUMPBIN"
 
4692
  fi
 
4693
fi
 
4694
test -z "$NM" && NM=nm
 
4695
 
 
4696
 
 
4697
 
 
4698
 
 
4699
 
 
4700
 
 
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4702
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4703
if ${lt_cv_nm_interface+:} false; then :
 
4704
  $as_echo_n "(cached) " >&6
 
4705
else
 
4706
  lt_cv_nm_interface="BSD nm"
 
4707
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4708
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4709
  (eval "$ac_compile" 2>conftest.err)
 
4710
  cat conftest.err >&5
 
4711
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4712
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4713
  cat conftest.err >&5
 
4714
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4715
  cat conftest.out >&5
 
4716
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4717
    lt_cv_nm_interface="MS dumpbin"
 
4718
  fi
 
4719
  rm -f conftest*
 
4720
fi
 
4721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4722
$as_echo "$lt_cv_nm_interface" >&6; }
 
4723
 
 
4724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4725
$as_echo_n "checking whether ln -s works... " >&6; }
 
4726
LN_S=$as_ln_s
 
4727
if test "$LN_S" = "ln -s"; then
 
4728
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4729
$as_echo "yes" >&6; }
 
4730
else
 
4731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4732
$as_echo "no, using $LN_S" >&6; }
 
4733
fi
 
4734
 
 
4735
# find the maximum length of command line arguments
 
4736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4737
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4738
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4739
  $as_echo_n "(cached) " >&6
 
4740
else
 
4741
    i=0
 
4742
  teststring="ABCD"
 
4743
 
 
4744
  case $build_os in
 
4745
  msdosdjgpp*)
 
4746
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4747
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4748
    # during glob expansion).  Even if it were fixed, the result of this
 
4749
    # check would be larger than it should be.
 
4750
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4751
    ;;
 
4752
 
 
4753
  gnu*)
 
4754
    # Under GNU Hurd, this test is not required because there is
 
4755
    # no limit to the length of command line arguments.
 
4756
    # Libtool will interpret -1 as no limit whatsoever
 
4757
    lt_cv_sys_max_cmd_len=-1;
 
4758
    ;;
 
4759
 
 
4760
  cygwin* | mingw* | cegcc*)
 
4761
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4762
    # about 5 minutes as the teststring grows exponentially.
 
4763
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4764
    # you end up with a "frozen" computer, even though with patience
 
4765
    # the test eventually succeeds (with a max line length of 256k).
 
4766
    # Instead, let's just punt: use the minimum linelength reported by
 
4767
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4768
    lt_cv_sys_max_cmd_len=8192;
 
4769
    ;;
 
4770
 
 
4771
  mint*)
 
4772
    # On MiNT this can take a long time and run out of memory.
 
4773
    lt_cv_sys_max_cmd_len=8192;
 
4774
    ;;
 
4775
 
 
4776
  amigaos*)
 
4777
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4778
    # So we just punt and use a minimum line length of 8192.
 
4779
    lt_cv_sys_max_cmd_len=8192;
 
4780
    ;;
 
4781
 
 
4782
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4783
    # This has been around since 386BSD, at least.  Likely further.
 
4784
    if test -x /sbin/sysctl; then
 
4785
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4786
    elif test -x /usr/sbin/sysctl; then
 
4787
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4788
    else
 
4789
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4790
    fi
 
4791
    # And add a safety zone
 
4792
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4793
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4794
    ;;
 
4795
 
 
4796
  interix*)
 
4797
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4798
    lt_cv_sys_max_cmd_len=196608
 
4799
    ;;
 
4800
 
 
4801
  os2*)
 
4802
    # The test takes a long time on OS/2.
 
4803
    lt_cv_sys_max_cmd_len=8192
 
4804
    ;;
 
4805
 
 
4806
  osf*)
 
4807
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4808
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4809
    # nice to cause kernel panics so lets avoid the loop below.
 
4810
    # First set a reasonable default.
 
4811
    lt_cv_sys_max_cmd_len=16384
 
4812
    #
 
4813
    if test -x /sbin/sysconfig; then
 
4814
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4815
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4816
      esac
 
4817
    fi
 
4818
    ;;
 
4819
  sco3.2v5*)
 
4820
    lt_cv_sys_max_cmd_len=102400
 
4821
    ;;
 
4822
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4823
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4824
    if test -n "$kargmax"; then
 
4825
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4826
    else
 
4827
      lt_cv_sys_max_cmd_len=32768
 
4828
    fi
 
4829
    ;;
 
4830
  *)
 
4831
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4832
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4833
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4834
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4835
    else
 
4836
      # Make teststring a little bigger before we do anything with it.
 
4837
      # a 1K string should be a reasonable start.
 
4838
      for i in 1 2 3 4 5 6 7 8 ; do
 
4839
        teststring=$teststring$teststring
 
4840
      done
 
4841
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4842
      # If test is not a shell built-in, we'll probably end up computing a
 
4843
      # maximum length that is only half of the actual maximum length, but
 
4844
      # we can't tell.
 
4845
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
4846
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4847
              test $i != 17 # 1/2 MB should be enough
 
4848
      do
 
4849
        i=`expr $i + 1`
 
4850
        teststring=$teststring$teststring
 
4851
      done
 
4852
      # Only check the string length outside the loop.
 
4853
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4854
      teststring=
 
4855
      # Add a significant safety factor because C++ compilers can tack on
 
4856
      # massive amounts of additional arguments before passing them to the
 
4857
      # linker.  It appears as though 1/2 is a usable value.
 
4858
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4859
    fi
 
4860
    ;;
 
4861
  esac
 
4862
 
 
4863
fi
 
4864
 
 
4865
if test -n $lt_cv_sys_max_cmd_len ; then
 
4866
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4867
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4868
else
 
4869
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4870
$as_echo "none" >&6; }
 
4871
fi
 
4872
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4873
 
 
4874
 
 
4875
 
 
4876
 
 
4877
 
 
4878
 
 
4879
: ${CP="cp -f"}
 
4880
: ${MV="mv -f"}
 
4881
: ${RM="rm -f"}
 
4882
 
 
4883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4884
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4885
# Try some XSI features
 
4886
xsi_shell=no
 
4887
( _lt_dummy="a/b/c"
 
4888
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4889
      = c,a/b,b/c, \
 
4890
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4891
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4892
  && xsi_shell=yes
 
4893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4894
$as_echo "$xsi_shell" >&6; }
 
4895
 
 
4896
 
 
4897
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4898
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4899
lt_shell_append=no
 
4900
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4901
    >/dev/null 2>&1 \
 
4902
  && lt_shell_append=yes
 
4903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4904
$as_echo "$lt_shell_append" >&6; }
 
4905
 
 
4906
 
 
4907
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4908
  lt_unset=unset
 
4909
else
 
4910
  lt_unset=false
 
4911
fi
 
4912
 
 
4913
 
 
4914
 
 
4915
 
 
4916
 
 
4917
# test EBCDIC or ASCII
 
4918
case `echo X|tr X '\101'` in
 
4919
 A) # ASCII based system
 
4920
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4921
  lt_SP2NL='tr \040 \012'
 
4922
  lt_NL2SP='tr \015\012 \040\040'
 
4923
  ;;
 
4924
 *) # EBCDIC based system
 
4925
  lt_SP2NL='tr \100 \n'
 
4926
  lt_NL2SP='tr \r\n \100\100'
 
4927
  ;;
 
4928
esac
 
4929
 
 
4930
 
 
4931
 
 
4932
 
 
4933
 
 
4934
 
 
4935
 
 
4936
 
 
4937
 
 
4938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
4939
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
4940
if ${lt_cv_to_host_file_cmd+:} false; then :
 
4941
  $as_echo_n "(cached) " >&6
 
4942
else
 
4943
  case $host in
 
4944
  *-*-mingw* )
 
4945
    case $build in
 
4946
      *-*-mingw* ) # actually msys
 
4947
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
4948
        ;;
 
4949
      *-*-cygwin* )
 
4950
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
4951
        ;;
 
4952
      * ) # otherwise, assume *nix
 
4953
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
4954
        ;;
 
4955
    esac
 
4956
    ;;
 
4957
  *-*-cygwin* )
 
4958
    case $build in
 
4959
      *-*-mingw* ) # actually msys
 
4960
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
4961
        ;;
 
4962
      *-*-cygwin* )
 
4963
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
4964
        ;;
 
4965
      * ) # otherwise, assume *nix
 
4966
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
4967
        ;;
 
4968
    esac
 
4969
    ;;
 
4970
  * ) # unhandled hosts (and "normal" native builds)
 
4971
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
4972
    ;;
 
4973
esac
 
4974
 
 
4975
fi
 
4976
 
 
4977
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
4979
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
4980
 
 
4981
 
 
4982
 
 
4983
 
 
4984
 
 
4985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
4986
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
4987
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
4988
  $as_echo_n "(cached) " >&6
 
4989
else
 
4990
  #assume ordinary cross tools, or native build.
 
4991
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
4992
case $host in
 
4993
  *-*-mingw* )
 
4994
    case $build in
 
4995
      *-*-mingw* ) # actually msys
 
4996
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
4997
        ;;
 
4998
    esac
 
4999
    ;;
 
5000
esac
 
5001
 
 
5002
fi
 
5003
 
 
5004
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
5005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
5006
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
5007
 
 
5008
 
 
5009
 
 
5010
 
 
5011
 
 
5012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
5013
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5014
if ${lt_cv_ld_reload_flag+:} false; then :
 
5015
  $as_echo_n "(cached) " >&6
 
5016
else
 
5017
  lt_cv_ld_reload_flag='-r'
 
5018
fi
 
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
5020
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5021
reload_flag=$lt_cv_ld_reload_flag
 
5022
case $reload_flag in
 
5023
"" | " "*) ;;
 
5024
*) reload_flag=" $reload_flag" ;;
 
5025
esac
 
5026
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5027
case $host_os in
 
5028
  cygwin* | mingw* | pw32* | cegcc*)
 
5029
    if test "$GCC" != yes; then
 
5030
      reload_cmds=false
 
5031
    fi
 
5032
    ;;
 
5033
  darwin*)
 
5034
    if test "$GCC" = yes; then
 
5035
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5036
    else
 
5037
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5038
    fi
 
5039
    ;;
 
5040
esac
 
5041
 
 
5042
 
 
5043
 
 
5044
 
 
5045
 
 
5046
 
 
5047
 
 
5048
 
 
5049
 
 
5050
if test -n "$ac_tool_prefix"; then
 
5051
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5052
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5053
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5054
$as_echo_n "checking for $ac_word... " >&6; }
 
5055
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
5056
  $as_echo_n "(cached) " >&6
 
5057
else
 
5058
  if test -n "$OBJDUMP"; then
 
5059
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5060
else
 
5061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5062
for as_dir in $PATH
 
5063
do
 
5064
  IFS=$as_save_IFS
 
5065
  test -z "$as_dir" && as_dir=.
 
5066
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5067
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5068
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5069
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5070
    break 2
 
5071
  fi
 
5072
done
 
5073
  done
 
5074
IFS=$as_save_IFS
 
5075
 
 
5076
fi
 
5077
fi
 
5078
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5079
if test -n "$OBJDUMP"; then
 
5080
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
5081
$as_echo "$OBJDUMP" >&6; }
 
5082
else
 
5083
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5084
$as_echo "no" >&6; }
 
5085
fi
 
5086
 
 
5087
 
 
5088
fi
 
5089
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5090
  ac_ct_OBJDUMP=$OBJDUMP
 
5091
  # Extract the first word of "objdump", so it can be a program name with args.
 
5092
set dummy objdump; ac_word=$2
 
5093
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5094
$as_echo_n "checking for $ac_word... " >&6; }
 
5095
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5096
  $as_echo_n "(cached) " >&6
 
5097
else
 
5098
  if test -n "$ac_ct_OBJDUMP"; then
 
5099
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5100
else
 
5101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5102
for as_dir in $PATH
 
5103
do
 
5104
  IFS=$as_save_IFS
 
5105
  test -z "$as_dir" && as_dir=.
 
5106
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5107
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5108
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5109
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5110
    break 2
 
5111
  fi
 
5112
done
 
5113
  done
 
5114
IFS=$as_save_IFS
 
5115
 
 
5116
fi
 
5117
fi
 
5118
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5119
if test -n "$ac_ct_OBJDUMP"; then
 
5120
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5121
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5122
else
 
5123
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5124
$as_echo "no" >&6; }
 
5125
fi
 
5126
 
 
5127
  if test "x$ac_ct_OBJDUMP" = x; then
 
5128
    OBJDUMP="false"
 
5129
  else
 
5130
    case $cross_compiling:$ac_tool_warned in
 
5131
yes:)
 
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5133
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5134
ac_tool_warned=yes ;;
 
5135
esac
 
5136
    OBJDUMP=$ac_ct_OBJDUMP
 
5137
  fi
 
5138
else
 
5139
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5140
fi
 
5141
 
 
5142
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5143
 
 
5144
 
 
5145
 
 
5146
 
 
5147
 
 
5148
 
 
5149
 
 
5150
 
 
5151
 
 
5152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5153
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5154
if ${lt_cv_deplibs_check_method+:} false; then :
 
5155
  $as_echo_n "(cached) " >&6
 
5156
else
 
5157
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5158
lt_cv_file_magic_test_file=
 
5159
lt_cv_deplibs_check_method='unknown'
 
5160
# Need to set the preceding variable on all platforms that support
 
5161
# interlibrary dependencies.
 
5162
# 'none' -- dependencies not supported.
 
5163
# `unknown' -- same as none, but documents that we really don't know.
 
5164
# 'pass_all' -- all dependencies passed with no checks.
 
5165
# 'test_compile' -- check by making test program.
 
5166
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5167
# which responds to the $file_magic_cmd with a given extended regex.
 
5168
# If you have `file' or equivalent on your system and you're not sure
 
5169
# whether `pass_all' will *always* work, you probably want this one.
 
5170
 
 
5171
case $host_os in
 
5172
aix[4-9]*)
 
5173
  lt_cv_deplibs_check_method=pass_all
 
5174
  ;;
 
5175
 
 
5176
beos*)
 
5177
  lt_cv_deplibs_check_method=pass_all
 
5178
  ;;
 
5179
 
 
5180
bsdi[45]*)
 
5181
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5182
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5183
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5184
  ;;
 
5185
 
 
5186
cygwin*)
 
5187
  # func_win32_libid is a shell function defined in ltmain.sh
 
5188
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5189
  lt_cv_file_magic_cmd='func_win32_libid'
 
5190
  ;;
 
5191
 
 
5192
mingw* | pw32*)
 
5193
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5194
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5195
  # unless we find 'file', for example because we are cross-compiling.
 
5196
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5197
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5198
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5199
    lt_cv_file_magic_cmd='func_win32_libid'
 
5200
  else
 
5201
    # Keep this pattern in sync with the one in func_win32_libid.
 
5202
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5203
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5204
  fi
 
5205
  ;;
 
5206
 
 
5207
cegcc*)
 
5208
  # use the weaker test based on 'objdump'. See mingw*.
 
5209
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5210
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5211
  ;;
 
5212
 
 
5213
darwin* | rhapsody*)
 
5214
  lt_cv_deplibs_check_method=pass_all
 
5215
  ;;
 
5216
 
 
5217
freebsd* | dragonfly*)
 
5218
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5219
    case $host_cpu in
 
5220
    i*86 )
 
5221
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5222
      # Let's accept both of them until this is cleared up.
 
5223
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5224
      lt_cv_file_magic_cmd=/usr/bin/file
 
5225
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5226
      ;;
 
5227
    esac
 
5228
  else
 
5229
    lt_cv_deplibs_check_method=pass_all
 
5230
  fi
 
5231
  ;;
 
5232
 
 
5233
gnu*)
 
5234
  lt_cv_deplibs_check_method=pass_all
 
5235
  ;;
 
5236
 
 
5237
haiku*)
 
5238
  lt_cv_deplibs_check_method=pass_all
 
5239
  ;;
 
5240
 
 
5241
hpux10.20* | hpux11*)
 
5242
  lt_cv_file_magic_cmd=/usr/bin/file
 
5243
  case $host_cpu in
 
5244
  ia64*)
 
5245
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5246
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5247
    ;;
 
5248
  hppa*64*)
 
5249
    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]'
 
5250
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5251
    ;;
 
5252
  *)
 
5253
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5254
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5255
    ;;
 
5256
  esac
 
5257
  ;;
 
5258
 
 
5259
interix[3-9]*)
 
5260
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5261
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5262
  ;;
 
5263
 
 
5264
irix5* | irix6* | nonstopux*)
 
5265
  case $LD in
 
5266
  *-32|*"-32 ") libmagic=32-bit;;
 
5267
  *-n32|*"-n32 ") libmagic=N32;;
 
5268
  *-64|*"-64 ") libmagic=64-bit;;
 
5269
  *) libmagic=never-match;;
 
5270
  esac
 
5271
  lt_cv_deplibs_check_method=pass_all
 
5272
  ;;
 
5273
 
 
5274
# This must be glibc/ELF.
 
5275
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5276
  lt_cv_deplibs_check_method=pass_all
 
5277
  ;;
 
5278
 
 
5279
netbsd* | netbsdelf*-gnu)
 
5280
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5281
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5282
  else
 
5283
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5284
  fi
 
5285
  ;;
 
5286
 
 
5287
newos6*)
 
5288
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5289
  lt_cv_file_magic_cmd=/usr/bin/file
 
5290
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5291
  ;;
 
5292
 
 
5293
*nto* | *qnx*)
 
5294
  lt_cv_deplibs_check_method=pass_all
 
5295
  ;;
 
5296
 
 
5297
openbsd*)
 
5298
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5299
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5300
  else
 
5301
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5302
  fi
 
5303
  ;;
 
5304
 
 
5305
osf3* | osf4* | osf5*)
 
5306
  lt_cv_deplibs_check_method=pass_all
 
5307
  ;;
 
5308
 
 
5309
rdos*)
 
5310
  lt_cv_deplibs_check_method=pass_all
 
5311
  ;;
 
5312
 
 
5313
solaris*)
 
5314
  lt_cv_deplibs_check_method=pass_all
 
5315
  ;;
 
5316
 
 
5317
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5318
  lt_cv_deplibs_check_method=pass_all
 
5319
  ;;
 
5320
 
 
5321
sysv4 | sysv4.3*)
 
5322
  case $host_vendor in
 
5323
  motorola)
 
5324
    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]'
 
5325
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5326
    ;;
 
5327
  ncr)
 
5328
    lt_cv_deplibs_check_method=pass_all
 
5329
    ;;
 
5330
  sequent)
 
5331
    lt_cv_file_magic_cmd='/bin/file'
 
5332
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5333
    ;;
 
5334
  sni)
 
5335
    lt_cv_file_magic_cmd='/bin/file'
 
5336
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5337
    lt_cv_file_magic_test_file=/lib/libc.so
 
5338
    ;;
 
5339
  siemens)
 
5340
    lt_cv_deplibs_check_method=pass_all
 
5341
    ;;
 
5342
  pc)
 
5343
    lt_cv_deplibs_check_method=pass_all
 
5344
    ;;
 
5345
  esac
 
5346
  ;;
 
5347
 
 
5348
tpf*)
 
5349
  lt_cv_deplibs_check_method=pass_all
 
5350
  ;;
 
5351
esac
 
5352
 
 
5353
fi
 
5354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5355
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5356
 
 
5357
file_magic_glob=
 
5358
want_nocaseglob=no
 
5359
if test "$build" = "$host"; then
 
5360
  case $host_os in
 
5361
  mingw* | pw32*)
 
5362
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5363
      want_nocaseglob=yes
 
5364
    else
 
5365
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5366
    fi
 
5367
    ;;
 
5368
  esac
 
5369
fi
 
5370
 
 
5371
file_magic_cmd=$lt_cv_file_magic_cmd
 
5372
deplibs_check_method=$lt_cv_deplibs_check_method
 
5373
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5374
 
 
5375
 
 
5376
 
 
5377
 
 
5378
 
 
5379
 
 
5380
 
 
5381
 
 
5382
 
 
5383
 
 
5384
 
 
5385
 
 
5386
 
 
5387
 
 
5388
 
 
5389
 
 
5390
 
 
5391
 
 
5392
 
 
5393
 
 
5394
 
 
5395
 
 
5396
if test -n "$ac_tool_prefix"; then
 
5397
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5398
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5399
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5400
$as_echo_n "checking for $ac_word... " >&6; }
 
5401
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5402
  $as_echo_n "(cached) " >&6
 
5403
else
 
5404
  if test -n "$DLLTOOL"; then
 
5405
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5406
else
 
5407
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5408
for as_dir in $PATH
 
5409
do
 
5410
  IFS=$as_save_IFS
 
5411
  test -z "$as_dir" && as_dir=.
 
5412
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5413
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5414
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5415
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5416
    break 2
 
5417
  fi
 
5418
done
 
5419
  done
 
5420
IFS=$as_save_IFS
 
5421
 
 
5422
fi
 
5423
fi
 
5424
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5425
if test -n "$DLLTOOL"; then
 
5426
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5427
$as_echo "$DLLTOOL" >&6; }
 
5428
else
 
5429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5430
$as_echo "no" >&6; }
 
5431
fi
 
5432
 
 
5433
 
 
5434
fi
 
5435
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5436
  ac_ct_DLLTOOL=$DLLTOOL
 
5437
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5438
set dummy dlltool; ac_word=$2
 
5439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5440
$as_echo_n "checking for $ac_word... " >&6; }
 
5441
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5442
  $as_echo_n "(cached) " >&6
 
5443
else
 
5444
  if test -n "$ac_ct_DLLTOOL"; then
 
5445
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5446
else
 
5447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5448
for as_dir in $PATH
 
5449
do
 
5450
  IFS=$as_save_IFS
 
5451
  test -z "$as_dir" && as_dir=.
 
5452
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5453
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5454
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5455
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5456
    break 2
 
5457
  fi
 
5458
done
 
5459
  done
 
5460
IFS=$as_save_IFS
 
5461
 
 
5462
fi
 
5463
fi
 
5464
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5465
if test -n "$ac_ct_DLLTOOL"; then
 
5466
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5467
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5468
else
 
5469
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5470
$as_echo "no" >&6; }
 
5471
fi
 
5472
 
 
5473
  if test "x$ac_ct_DLLTOOL" = x; then
 
5474
    DLLTOOL="false"
 
5475
  else
 
5476
    case $cross_compiling:$ac_tool_warned in
 
5477
yes:)
 
5478
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5479
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5480
ac_tool_warned=yes ;;
 
5481
esac
 
5482
    DLLTOOL=$ac_ct_DLLTOOL
 
5483
  fi
 
5484
else
 
5485
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5486
fi
 
5487
 
 
5488
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5489
 
 
5490
 
 
5491
 
 
5492
 
 
5493
 
 
5494
 
 
5495
 
 
5496
 
 
5497
 
 
5498
 
 
5499
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5500
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5501
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5502
  $as_echo_n "(cached) " >&6
 
5503
else
 
5504
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5505
 
 
5506
case $host_os in
 
5507
cygwin* | mingw* | pw32* | cegcc*)
 
5508
  # two different shell functions defined in ltmain.sh
 
5509
  # decide which to use based on capabilities of $DLLTOOL
 
5510
  case `$DLLTOOL --help 2>&1` in
 
5511
  *--identify-strict*)
 
5512
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5513
    ;;
 
5514
  *)
 
5515
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5516
    ;;
 
5517
  esac
 
5518
  ;;
 
5519
*)
 
5520
  # fallback: assume linklib IS sharedlib
 
5521
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5522
  ;;
 
5523
esac
 
5524
 
 
5525
fi
 
5526
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5527
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5528
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5529
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5530
 
 
5531
 
 
5532
 
 
5533
 
 
5534
 
 
5535
 
 
5536
 
 
5537
 
 
5538
if test -n "$ac_tool_prefix"; then
 
5539
  for ac_prog in ar
 
5540
  do
 
5541
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5542
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5544
$as_echo_n "checking for $ac_word... " >&6; }
 
5545
if ${ac_cv_prog_AR+:} false; then :
 
5546
  $as_echo_n "(cached) " >&6
 
5547
else
 
5548
  if test -n "$AR"; then
 
5549
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5550
else
 
5551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5552
for as_dir in $PATH
 
5553
do
 
5554
  IFS=$as_save_IFS
 
5555
  test -z "$as_dir" && as_dir=.
 
5556
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5557
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5558
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5560
    break 2
 
5561
  fi
 
5562
done
 
5563
  done
 
5564
IFS=$as_save_IFS
 
5565
 
 
5566
fi
 
5567
fi
 
5568
AR=$ac_cv_prog_AR
 
5569
if test -n "$AR"; then
 
5570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5571
$as_echo "$AR" >&6; }
 
5572
else
 
5573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5574
$as_echo "no" >&6; }
 
5575
fi
 
5576
 
 
5577
 
 
5578
    test -n "$AR" && break
 
5579
  done
 
5580
fi
 
5581
if test -z "$AR"; then
 
5582
  ac_ct_AR=$AR
 
5583
  for ac_prog in ar
 
5584
do
 
5585
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5586
set dummy $ac_prog; ac_word=$2
 
5587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5588
$as_echo_n "checking for $ac_word... " >&6; }
 
5589
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5590
  $as_echo_n "(cached) " >&6
 
5591
else
 
5592
  if test -n "$ac_ct_AR"; then
 
5593
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5594
else
 
5595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5596
for as_dir in $PATH
 
5597
do
 
5598
  IFS=$as_save_IFS
 
5599
  test -z "$as_dir" && as_dir=.
 
5600
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5601
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5602
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5603
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5604
    break 2
 
5605
  fi
 
5606
done
 
5607
  done
 
5608
IFS=$as_save_IFS
 
5609
 
 
5610
fi
 
5611
fi
 
5612
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5613
if test -n "$ac_ct_AR"; then
 
5614
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5615
$as_echo "$ac_ct_AR" >&6; }
 
5616
else
 
5617
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5618
$as_echo "no" >&6; }
 
5619
fi
 
5620
 
 
5621
 
 
5622
  test -n "$ac_ct_AR" && break
 
5623
done
 
5624
 
 
5625
  if test "x$ac_ct_AR" = x; then
 
5626
    AR="false"
 
5627
  else
 
5628
    case $cross_compiling:$ac_tool_warned in
 
5629
yes:)
 
5630
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5631
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5632
ac_tool_warned=yes ;;
 
5633
esac
 
5634
    AR=$ac_ct_AR
 
5635
  fi
 
5636
fi
 
5637
 
 
5638
: ${AR=ar}
 
5639
: ${AR_FLAGS=cru}
 
5640
 
 
5641
 
 
5642
 
 
5643
 
 
5644
 
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
 
 
5651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5652
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5653
if ${lt_cv_ar_at_file+:} false; then :
 
5654
  $as_echo_n "(cached) " >&6
 
5655
else
 
5656
  lt_cv_ar_at_file=no
 
5657
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5658
/* end confdefs.h.  */
 
5659
 
 
5660
int
 
5661
main ()
 
5662
{
 
5663
 
 
5664
  ;
 
5665
  return 0;
 
5666
}
 
5667
_ACEOF
 
5668
if ac_fn_c_try_compile "$LINENO"; then :
 
5669
  echo conftest.$ac_objext > conftest.lst
 
5670
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5671
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5672
  (eval $lt_ar_try) 2>&5
 
5673
  ac_status=$?
 
5674
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5675
  test $ac_status = 0; }
 
5676
      if test "$ac_status" -eq 0; then
 
5677
        # Ensure the archiver fails upon bogus file names.
 
5678
        rm -f conftest.$ac_objext libconftest.a
 
5679
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5680
  (eval $lt_ar_try) 2>&5
 
5681
  ac_status=$?
 
5682
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5683
  test $ac_status = 0; }
 
5684
        if test "$ac_status" -ne 0; then
 
5685
          lt_cv_ar_at_file=@
 
5686
        fi
 
5687
      fi
 
5688
      rm -f conftest.* libconftest.a
 
5689
 
 
5690
fi
 
5691
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5692
 
 
5693
fi
 
5694
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5695
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5696
 
 
5697
if test "x$lt_cv_ar_at_file" = xno; then
 
5698
  archiver_list_spec=
 
5699
else
 
5700
  archiver_list_spec=$lt_cv_ar_at_file
 
5701
fi
 
5702
 
 
5703
 
 
5704
 
 
5705
 
 
5706
 
 
5707
 
 
5708
 
 
5709
if test -n "$ac_tool_prefix"; then
 
5710
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5711
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5713
$as_echo_n "checking for $ac_word... " >&6; }
 
5714
if ${ac_cv_prog_STRIP+:} false; then :
 
5715
  $as_echo_n "(cached) " >&6
 
5716
else
 
5717
  if test -n "$STRIP"; then
 
5718
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5719
else
 
5720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5721
for as_dir in $PATH
 
5722
do
 
5723
  IFS=$as_save_IFS
 
5724
  test -z "$as_dir" && as_dir=.
 
5725
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5726
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5727
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5729
    break 2
 
5730
  fi
 
5731
done
 
5732
  done
 
5733
IFS=$as_save_IFS
 
5734
 
 
5735
fi
 
5736
fi
 
5737
STRIP=$ac_cv_prog_STRIP
 
5738
if test -n "$STRIP"; then
 
5739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5740
$as_echo "$STRIP" >&6; }
 
5741
else
 
5742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5743
$as_echo "no" >&6; }
 
5744
fi
 
5745
 
 
5746
 
 
5747
fi
 
5748
if test -z "$ac_cv_prog_STRIP"; then
 
5749
  ac_ct_STRIP=$STRIP
 
5750
  # Extract the first word of "strip", so it can be a program name with args.
 
5751
set dummy strip; ac_word=$2
 
5752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5753
$as_echo_n "checking for $ac_word... " >&6; }
 
5754
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5755
  $as_echo_n "(cached) " >&6
 
5756
else
 
5757
  if test -n "$ac_ct_STRIP"; then
 
5758
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5759
else
 
5760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5761
for as_dir in $PATH
 
5762
do
 
5763
  IFS=$as_save_IFS
 
5764
  test -z "$as_dir" && as_dir=.
 
5765
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5766
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5767
    ac_cv_prog_ac_ct_STRIP="strip"
 
5768
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5769
    break 2
 
5770
  fi
 
5771
done
 
5772
  done
 
5773
IFS=$as_save_IFS
 
5774
 
 
5775
fi
 
5776
fi
 
5777
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5778
if test -n "$ac_ct_STRIP"; then
 
5779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5780
$as_echo "$ac_ct_STRIP" >&6; }
 
5781
else
 
5782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5783
$as_echo "no" >&6; }
 
5784
fi
 
5785
 
 
5786
  if test "x$ac_ct_STRIP" = x; then
 
5787
    STRIP=":"
 
5788
  else
 
5789
    case $cross_compiling:$ac_tool_warned in
 
5790
yes:)
 
5791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5792
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5793
ac_tool_warned=yes ;;
 
5794
esac
 
5795
    STRIP=$ac_ct_STRIP
 
5796
  fi
 
5797
else
 
5798
  STRIP="$ac_cv_prog_STRIP"
 
5799
fi
 
5800
 
 
5801
test -z "$STRIP" && STRIP=:
 
5802
 
 
5803
 
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
if test -n "$ac_tool_prefix"; then
 
5809
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5810
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5812
$as_echo_n "checking for $ac_word... " >&6; }
 
5813
if ${ac_cv_prog_RANLIB+:} false; then :
 
5814
  $as_echo_n "(cached) " >&6
 
5815
else
 
5816
  if test -n "$RANLIB"; then
 
5817
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5818
else
 
5819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5820
for as_dir in $PATH
 
5821
do
 
5822
  IFS=$as_save_IFS
 
5823
  test -z "$as_dir" && as_dir=.
 
5824
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5825
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5826
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5827
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5828
    break 2
 
5829
  fi
 
5830
done
 
5831
  done
 
5832
IFS=$as_save_IFS
 
5833
 
 
5834
fi
 
5835
fi
 
5836
RANLIB=$ac_cv_prog_RANLIB
 
5837
if test -n "$RANLIB"; then
 
5838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5839
$as_echo "$RANLIB" >&6; }
 
5840
else
 
5841
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5842
$as_echo "no" >&6; }
 
5843
fi
 
5844
 
 
5845
 
 
5846
fi
 
5847
if test -z "$ac_cv_prog_RANLIB"; then
 
5848
  ac_ct_RANLIB=$RANLIB
 
5849
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5850
set dummy ranlib; ac_word=$2
 
5851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5852
$as_echo_n "checking for $ac_word... " >&6; }
 
5853
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5854
  $as_echo_n "(cached) " >&6
 
5855
else
 
5856
  if test -n "$ac_ct_RANLIB"; then
 
5857
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5858
else
 
5859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5860
for as_dir in $PATH
 
5861
do
 
5862
  IFS=$as_save_IFS
 
5863
  test -z "$as_dir" && as_dir=.
 
5864
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5865
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5866
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5867
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5868
    break 2
 
5869
  fi
 
5870
done
 
5871
  done
 
5872
IFS=$as_save_IFS
 
5873
 
 
5874
fi
 
5875
fi
 
5876
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5877
if test -n "$ac_ct_RANLIB"; then
 
5878
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5879
$as_echo "$ac_ct_RANLIB" >&6; }
 
5880
else
 
5881
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5882
$as_echo "no" >&6; }
 
5883
fi
 
5884
 
 
5885
  if test "x$ac_ct_RANLIB" = x; then
 
5886
    RANLIB=":"
 
5887
  else
 
5888
    case $cross_compiling:$ac_tool_warned in
 
5889
yes:)
 
5890
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5892
ac_tool_warned=yes ;;
 
5893
esac
 
5894
    RANLIB=$ac_ct_RANLIB
 
5895
  fi
 
5896
else
 
5897
  RANLIB="$ac_cv_prog_RANLIB"
 
5898
fi
 
5899
 
 
5900
test -z "$RANLIB" && RANLIB=:
 
5901
 
 
5902
 
 
5903
 
 
5904
 
 
5905
 
 
5906
 
 
5907
# Determine commands to create old-style static archives.
 
5908
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5909
old_postinstall_cmds='chmod 644 $oldlib'
 
5910
old_postuninstall_cmds=
 
5911
 
 
5912
if test -n "$RANLIB"; then
 
5913
  case $host_os in
 
5914
  openbsd*)
 
5915
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
5916
    ;;
 
5917
  *)
 
5918
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
5919
    ;;
 
5920
  esac
 
5921
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
5922
fi
 
5923
 
 
5924
case $host_os in
 
5925
  darwin*)
 
5926
    lock_old_archive_extraction=yes ;;
 
5927
  *)
 
5928
    lock_old_archive_extraction=no ;;
 
5929
esac
 
5930
 
 
5931
 
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
 
 
5937
 
 
5938
 
 
5939
 
 
5940
 
 
5941
 
 
5942
 
 
5943
 
 
5944
 
 
5945
 
 
5946
 
 
5947
 
 
5948
 
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
 
 
5968
 
 
5969
# If no C compiler was specified, use CC.
 
5970
LTCC=${LTCC-"$CC"}
 
5971
 
 
5972
# If no C compiler flags were specified, use CFLAGS.
 
5973
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5974
 
 
5975
# Allow CC to be a program name with arguments.
 
5976
compiler=$CC
 
5977
 
 
5978
 
 
5979
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5980
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5981
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5982
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
5983
  $as_echo_n "(cached) " >&6
 
5984
else
 
5985
 
 
5986
# These are sane defaults that work on at least a few old systems.
 
5987
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5988
 
 
5989
# Character class describing NM global symbol codes.
 
5990
symcode='[BCDEGRST]'
 
5991
 
 
5992
# Regexp to match symbols that can be accessed directly from C.
 
5993
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5994
 
 
5995
# Define system-specific variables.
 
5996
case $host_os in
 
5997
aix*)
 
5998
  symcode='[BCDT]'
 
5999
  ;;
 
6000
cygwin* | mingw* | pw32* | cegcc*)
 
6001
  symcode='[ABCDGISTW]'
 
6002
  ;;
 
6003
hpux*)
 
6004
  if test "$host_cpu" = ia64; then
 
6005
    symcode='[ABCDEGRST]'
 
6006
  fi
 
6007
  ;;
 
6008
irix* | nonstopux*)
 
6009
  symcode='[BCDEGRST]'
 
6010
  ;;
 
6011
osf*)
 
6012
  symcode='[BCDEGQRST]'
 
6013
  ;;
 
6014
solaris*)
 
6015
  symcode='[BDRT]'
 
6016
  ;;
 
6017
sco3.2v5*)
 
6018
  symcode='[DT]'
 
6019
  ;;
 
6020
sysv4.2uw2*)
 
6021
  symcode='[DT]'
 
6022
  ;;
 
6023
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6024
  symcode='[ABDT]'
 
6025
  ;;
 
6026
sysv4)
 
6027
  symcode='[DFNSTU]'
 
6028
  ;;
 
6029
esac
 
6030
 
 
6031
# If we're using GNU nm, then use its standard symbol codes.
 
6032
case `$NM -V 2>&1` in
 
6033
*GNU* | *'with BFD'*)
 
6034
  symcode='[ABCDGIRSTW]' ;;
 
6035
esac
 
6036
 
 
6037
# Transform an extracted symbol line into a proper C declaration.
 
6038
# Some systems (esp. on ia64) link data and code symbols differently,
 
6039
# so use this general approach.
 
6040
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6041
 
 
6042
# Transform an extracted symbol line into symbol name and symbol address
 
6043
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
6044
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
6045
 
 
6046
# Handle CRLF in mingw tool chain
 
6047
opt_cr=
 
6048
case $build_os in
 
6049
mingw*)
 
6050
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6051
  ;;
 
6052
esac
 
6053
 
 
6054
# Try without a prefix underscore, then with it.
 
6055
for ac_symprfx in "" "_"; do
 
6056
 
 
6057
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6058
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6059
 
 
6060
  # Write the raw and C identifiers.
 
6061
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6062
    # Fake it for dumpbin and say T for any non-static function
 
6063
    # and D for any global variable.
 
6064
    # Also find C++ and __fastcall symbols from MSVC++,
 
6065
    # which start with @ or ?.
 
6066
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
6067
"     {last_section=section; section=\$ 3};"\
 
6068
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
6069
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
6070
"     \$ 0!~/External *\|/{next};"\
 
6071
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
6072
"     {if(hide[section]) next};"\
 
6073
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
6074
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
6075
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
6076
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
6077
"     ' prfx=^$ac_symprfx"
 
6078
  else
 
6079
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6080
  fi
 
6081
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
6082
 
 
6083
  # Check to see that the pipe works correctly.
 
6084
  pipe_works=no
 
6085
 
 
6086
  rm -f conftest*
 
6087
  cat > conftest.$ac_ext <<_LT_EOF
 
6088
#ifdef __cplusplus
 
6089
extern "C" {
 
6090
#endif
 
6091
char nm_test_var;
 
6092
void nm_test_func(void);
 
6093
void nm_test_func(void){}
 
6094
#ifdef __cplusplus
 
6095
}
 
6096
#endif
 
6097
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6098
_LT_EOF
 
6099
 
 
6100
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6101
  (eval $ac_compile) 2>&5
 
6102
  ac_status=$?
 
6103
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6104
  test $ac_status = 0; }; then
 
6105
    # Now try to grab the symbols.
 
6106
    nlist=conftest.nm
 
6107
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6108
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6109
  ac_status=$?
 
6110
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6111
  test $ac_status = 0; } && test -s "$nlist"; then
 
6112
      # Try sorting and uniquifying the output.
 
6113
      if sort "$nlist" | uniq > "$nlist"T; then
 
6114
        mv -f "$nlist"T "$nlist"
 
6115
      else
 
6116
        rm -f "$nlist"T
 
6117
      fi
 
6118
 
 
6119
      # Make sure that we snagged all the symbols we need.
 
6120
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6121
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6122
          cat <<_LT_EOF > conftest.$ac_ext
 
6123
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6124
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6125
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6126
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6127
# define LT_DLSYM_CONST
 
6128
#elif defined(__osf__)
 
6129
/* This system does not cope well with relocations in const data.  */
 
6130
# define LT_DLSYM_CONST
 
6131
#else
 
6132
# define LT_DLSYM_CONST const
 
6133
#endif
 
6134
 
 
6135
#ifdef __cplusplus
 
6136
extern "C" {
 
6137
#endif
 
6138
 
 
6139
_LT_EOF
 
6140
          # Now generate the symbol file.
 
6141
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6142
 
 
6143
          cat <<_LT_EOF >> conftest.$ac_ext
 
6144
 
 
6145
/* The mapping between symbol names and symbols.  */
 
6146
LT_DLSYM_CONST struct {
 
6147
  const char *name;
 
6148
  void       *address;
 
6149
}
 
6150
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6151
{
 
6152
  { "@PROGRAM@", (void *) 0 },
 
6153
_LT_EOF
 
6154
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6155
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6156
  {0, (void *) 0}
 
6157
};
 
6158
 
 
6159
/* This works around a problem in FreeBSD linker */
 
6160
#ifdef FREEBSD_WORKAROUND
 
6161
static const void *lt_preloaded_setup() {
 
6162
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6163
}
 
6164
#endif
 
6165
 
 
6166
#ifdef __cplusplus
 
6167
}
 
6168
#endif
 
6169
_LT_EOF
 
6170
          # Now try linking the two files.
 
6171
          mv conftest.$ac_objext conftstm.$ac_objext
 
6172
          lt_globsym_save_LIBS=$LIBS
 
6173
          lt_globsym_save_CFLAGS=$CFLAGS
 
6174
          LIBS="conftstm.$ac_objext"
 
6175
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6176
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6177
  (eval $ac_link) 2>&5
 
6178
  ac_status=$?
 
6179
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6180
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6181
            pipe_works=yes
 
6182
          fi
 
6183
          LIBS=$lt_globsym_save_LIBS
 
6184
          CFLAGS=$lt_globsym_save_CFLAGS
 
6185
        else
 
6186
          echo "cannot find nm_test_func in $nlist" >&5
 
6187
        fi
 
6188
      else
 
6189
        echo "cannot find nm_test_var in $nlist" >&5
 
6190
      fi
 
6191
    else
 
6192
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6193
    fi
 
6194
  else
 
6195
    echo "$progname: failed program was:" >&5
 
6196
    cat conftest.$ac_ext >&5
 
6197
  fi
 
6198
  rm -rf conftest* conftst*
 
6199
 
 
6200
  # Do not use the global_symbol_pipe unless it works.
 
6201
  if test "$pipe_works" = yes; then
 
6202
    break
 
6203
  else
 
6204
    lt_cv_sys_global_symbol_pipe=
 
6205
  fi
 
6206
done
 
6207
 
 
6208
fi
 
6209
 
 
6210
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6211
  lt_cv_sys_global_symbol_to_cdecl=
 
6212
fi
 
6213
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6214
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6215
$as_echo "failed" >&6; }
 
6216
else
 
6217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6218
$as_echo "ok" >&6; }
 
6219
fi
 
6220
 
 
6221
# Response file support.
 
6222
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6223
  nm_file_list_spec='@'
 
6224
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6225
  nm_file_list_spec='@'
 
6226
fi
 
6227
 
 
6228
 
 
6229
 
 
6230
 
 
6231
 
 
6232
 
 
6233
 
 
6234
 
 
6235
 
 
6236
 
 
6237
 
 
6238
 
 
6239
 
 
6240
 
 
6241
 
 
6242
 
 
6243
 
 
6244
 
 
6245
 
 
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6255
$as_echo_n "checking for sysroot... " >&6; }
 
6256
 
 
6257
# Check whether --with-sysroot was given.
 
6258
if test "${with_sysroot+set}" = set; then :
 
6259
  withval=$with_sysroot;
 
6260
else
 
6261
  with_sysroot=no
 
6262
fi
 
6263
 
 
6264
 
 
6265
lt_sysroot=
 
6266
case ${with_sysroot} in #(
 
6267
 yes)
 
6268
   if test "$GCC" = yes; then
 
6269
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6270
   fi
 
6271
   ;; #(
 
6272
 /*)
 
6273
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6274
   ;; #(
 
6275
 no|'')
 
6276
   ;; #(
 
6277
 *)
 
6278
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6279
$as_echo "${with_sysroot}" >&6; }
 
6280
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6281
   ;;
 
6282
esac
 
6283
 
 
6284
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6285
$as_echo "${lt_sysroot:-no}" >&6; }
 
6286
 
 
6287
 
 
6288
 
 
6289
 
 
6290
 
 
6291
# Check whether --enable-libtool-lock was given.
 
6292
if test "${enable_libtool_lock+set}" = set; then :
 
6293
  enableval=$enable_libtool_lock;
 
6294
fi
 
6295
 
 
6296
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6297
 
 
6298
# Some flags need to be propagated to the compiler or linker for good
 
6299
# libtool support.
 
6300
case $host in
 
6301
ia64-*-hpux*)
 
6302
  # Find out which ABI we are using.
 
6303
  echo 'int i;' > conftest.$ac_ext
 
6304
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6305
  (eval $ac_compile) 2>&5
 
6306
  ac_status=$?
 
6307
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6308
  test $ac_status = 0; }; then
 
6309
    case `/usr/bin/file conftest.$ac_objext` in
 
6310
      *ELF-32*)
 
6311
        HPUX_IA64_MODE="32"
 
6312
        ;;
 
6313
      *ELF-64*)
 
6314
        HPUX_IA64_MODE="64"
 
6315
        ;;
 
6316
    esac
 
6317
  fi
 
6318
  rm -rf conftest*
 
6319
  ;;
 
6320
*-*-irix6*)
 
6321
  # Find out which ABI we are using.
 
6322
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6323
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6324
  (eval $ac_compile) 2>&5
 
6325
  ac_status=$?
 
6326
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6327
  test $ac_status = 0; }; then
 
6328
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6329
      case `/usr/bin/file conftest.$ac_objext` in
 
6330
        *32-bit*)
 
6331
          LD="${LD-ld} -melf32bsmip"
 
6332
          ;;
 
6333
        *N32*)
 
6334
          LD="${LD-ld} -melf32bmipn32"
 
6335
          ;;
 
6336
        *64-bit*)
 
6337
          LD="${LD-ld} -melf64bmip"
 
6338
        ;;
 
6339
      esac
 
6340
    else
 
6341
      case `/usr/bin/file conftest.$ac_objext` in
 
6342
        *32-bit*)
 
6343
          LD="${LD-ld} -32"
 
6344
          ;;
 
6345
        *N32*)
 
6346
          LD="${LD-ld} -n32"
 
6347
          ;;
 
6348
        *64-bit*)
 
6349
          LD="${LD-ld} -64"
 
6350
          ;;
 
6351
      esac
 
6352
    fi
 
6353
  fi
 
6354
  rm -rf conftest*
 
6355
  ;;
 
6356
 
 
6357
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6358
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6359
  # Find out which ABI we are using.
 
6360
  echo 'int i;' > conftest.$ac_ext
 
6361
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6362
  (eval $ac_compile) 2>&5
 
6363
  ac_status=$?
 
6364
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6365
  test $ac_status = 0; }; then
 
6366
    case `/usr/bin/file conftest.o` in
 
6367
      *32-bit*)
 
6368
        case $host in
 
6369
          x86_64-*kfreebsd*-gnu)
 
6370
            LD="${LD-ld} -m elf_i386_fbsd"
 
6371
            ;;
 
6372
          x86_64-*linux*)
 
6373
            LD="${LD-ld} -m elf_i386"
 
6374
            ;;
 
6375
          ppc64-*linux*|powerpc64-*linux*)
 
6376
            LD="${LD-ld} -m elf32ppclinux"
 
6377
            ;;
 
6378
          s390x-*linux*)
 
6379
            LD="${LD-ld} -m elf_s390"
 
6380
            ;;
 
6381
          sparc64-*linux*)
 
6382
            LD="${LD-ld} -m elf32_sparc"
 
6383
            ;;
 
6384
        esac
 
6385
        ;;
 
6386
      *64-bit*)
 
6387
        case $host in
 
6388
          x86_64-*kfreebsd*-gnu)
 
6389
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6390
            ;;
 
6391
          x86_64-*linux*)
 
6392
            LD="${LD-ld} -m elf_x86_64"
 
6393
            ;;
 
6394
          ppc*-*linux*|powerpc*-*linux*)
 
6395
            LD="${LD-ld} -m elf64ppc"
 
6396
            ;;
 
6397
          s390*-*linux*|s390*-*tpf*)
 
6398
            LD="${LD-ld} -m elf64_s390"
 
6399
            ;;
 
6400
          sparc*-*linux*)
 
6401
            LD="${LD-ld} -m elf64_sparc"
 
6402
            ;;
 
6403
        esac
 
6404
        ;;
 
6405
    esac
 
6406
  fi
 
6407
  rm -rf conftest*
 
6408
  ;;
 
6409
 
 
6410
*-*-sco3.2v5*)
 
6411
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6412
  SAVE_CFLAGS="$CFLAGS"
 
6413
  CFLAGS="$CFLAGS -belf"
 
6414
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6415
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6416
if ${lt_cv_cc_needs_belf+:} false; then :
 
6417
  $as_echo_n "(cached) " >&6
 
6418
else
 
6419
  ac_ext=c
 
6420
ac_cpp='$CPP $CPPFLAGS'
 
6421
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6422
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6423
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6424
 
 
6425
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6426
/* end confdefs.h.  */
 
6427
 
 
6428
int
 
6429
main ()
 
6430
{
 
6431
 
 
6432
  ;
 
6433
  return 0;
 
6434
}
 
6435
_ACEOF
 
6436
if ac_fn_c_try_link "$LINENO"; then :
 
6437
  lt_cv_cc_needs_belf=yes
 
6438
else
 
6439
  lt_cv_cc_needs_belf=no
 
6440
fi
 
6441
rm -f core conftest.err conftest.$ac_objext \
 
6442
    conftest$ac_exeext conftest.$ac_ext
 
6443
     ac_ext=c
 
6444
ac_cpp='$CPP $CPPFLAGS'
 
6445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6448
 
 
6449
fi
 
6450
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6451
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6452
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6453
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6454
    CFLAGS="$SAVE_CFLAGS"
 
6455
  fi
 
6456
  ;;
 
6457
*-*solaris*)
 
6458
  # Find out which ABI we are using.
 
6459
  echo 'int i;' > conftest.$ac_ext
 
6460
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6461
  (eval $ac_compile) 2>&5
 
6462
  ac_status=$?
 
6463
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6464
  test $ac_status = 0; }; then
 
6465
    case `/usr/bin/file conftest.o` in
 
6466
    *64-bit*)
 
6467
      case $lt_cv_prog_gnu_ld in
 
6468
      yes*)
 
6469
        case $host in
 
6470
        i?86-*-solaris*)
 
6471
          LD="${LD-ld} -m elf_x86_64"
 
6472
          ;;
 
6473
        sparc*-*-solaris*)
 
6474
          LD="${LD-ld} -m elf64_sparc"
 
6475
          ;;
 
6476
        esac
 
6477
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6478
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6479
          LD="${LD-ld}_sol2"
 
6480
        fi
 
6481
        ;;
 
6482
      *)
 
6483
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6484
          LD="${LD-ld} -64"
 
6485
        fi
 
6486
        ;;
 
6487
      esac
 
6488
      ;;
 
6489
    esac
 
6490
  fi
 
6491
  rm -rf conftest*
 
6492
  ;;
 
6493
esac
 
6494
 
 
6495
need_locks="$enable_libtool_lock"
 
6496
 
 
6497
if test -n "$ac_tool_prefix"; then
 
6498
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6499
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6501
$as_echo_n "checking for $ac_word... " >&6; }
 
6502
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6503
  $as_echo_n "(cached) " >&6
 
6504
else
 
6505
  if test -n "$MANIFEST_TOOL"; then
 
6506
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6507
else
 
6508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6509
for as_dir in $PATH
 
6510
do
 
6511
  IFS=$as_save_IFS
 
6512
  test -z "$as_dir" && as_dir=.
 
6513
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6514
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6515
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6516
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6517
    break 2
 
6518
  fi
 
6519
done
 
6520
  done
 
6521
IFS=$as_save_IFS
 
6522
 
 
6523
fi
 
6524
fi
 
6525
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6526
if test -n "$MANIFEST_TOOL"; then
 
6527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6528
$as_echo "$MANIFEST_TOOL" >&6; }
 
6529
else
 
6530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6531
$as_echo "no" >&6; }
 
6532
fi
 
6533
 
 
6534
 
 
6535
fi
 
6536
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6537
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6538
  # Extract the first word of "mt", so it can be a program name with args.
 
6539
set dummy mt; ac_word=$2
 
6540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6541
$as_echo_n "checking for $ac_word... " >&6; }
 
6542
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6543
  $as_echo_n "(cached) " >&6
 
6544
else
 
6545
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6546
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6547
else
 
6548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6549
for as_dir in $PATH
 
6550
do
 
6551
  IFS=$as_save_IFS
 
6552
  test -z "$as_dir" && as_dir=.
 
6553
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6554
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6555
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6556
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6557
    break 2
 
6558
  fi
 
6559
done
 
6560
  done
 
6561
IFS=$as_save_IFS
 
6562
 
 
6563
fi
 
6564
fi
 
6565
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6566
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6567
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6568
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6569
else
 
6570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6571
$as_echo "no" >&6; }
 
6572
fi
 
6573
 
 
6574
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6575
    MANIFEST_TOOL=":"
 
6576
  else
 
6577
    case $cross_compiling:$ac_tool_warned in
 
6578
yes:)
 
6579
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6580
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6581
ac_tool_warned=yes ;;
 
6582
esac
 
6583
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6584
  fi
 
6585
else
 
6586
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6587
fi
 
6588
 
 
6589
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6591
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6592
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6593
  $as_echo_n "(cached) " >&6
 
6594
else
 
6595
  lt_cv_path_mainfest_tool=no
 
6596
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6597
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6598
  cat conftest.err >&5
 
6599
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6600
    lt_cv_path_mainfest_tool=yes
 
6601
  fi
 
6602
  rm -f conftest*
 
6603
fi
 
6604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6605
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6606
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6607
  MANIFEST_TOOL=:
 
6608
fi
 
6609
 
 
6610
 
 
6611
 
 
6612
 
 
6613
 
 
6614
 
 
6615
  case $host_os in
 
6616
    rhapsody* | darwin*)
 
6617
    if test -n "$ac_tool_prefix"; then
 
6618
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6619
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6620
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6621
$as_echo_n "checking for $ac_word... " >&6; }
 
6622
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6623
  $as_echo_n "(cached) " >&6
 
6624
else
 
6625
  if test -n "$DSYMUTIL"; then
 
6626
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6627
else
 
6628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6629
for as_dir in $PATH
 
6630
do
 
6631
  IFS=$as_save_IFS
 
6632
  test -z "$as_dir" && as_dir=.
 
6633
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6634
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6635
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6636
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6637
    break 2
 
6638
  fi
 
6639
done
 
6640
  done
 
6641
IFS=$as_save_IFS
 
6642
 
 
6643
fi
 
6644
fi
 
6645
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6646
if test -n "$DSYMUTIL"; then
 
6647
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6648
$as_echo "$DSYMUTIL" >&6; }
 
6649
else
 
6650
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6651
$as_echo "no" >&6; }
 
6652
fi
 
6653
 
 
6654
 
 
6655
fi
 
6656
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6657
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6658
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6659
set dummy dsymutil; ac_word=$2
 
6660
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6661
$as_echo_n "checking for $ac_word... " >&6; }
 
6662
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6663
  $as_echo_n "(cached) " >&6
 
6664
else
 
6665
  if test -n "$ac_ct_DSYMUTIL"; then
 
6666
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6667
else
 
6668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6669
for as_dir in $PATH
 
6670
do
 
6671
  IFS=$as_save_IFS
 
6672
  test -z "$as_dir" && as_dir=.
 
6673
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6674
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6675
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6676
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6677
    break 2
 
6678
  fi
 
6679
done
 
6680
  done
 
6681
IFS=$as_save_IFS
 
6682
 
 
6683
fi
 
6684
fi
 
6685
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6686
if test -n "$ac_ct_DSYMUTIL"; then
 
6687
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6688
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6689
else
 
6690
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6691
$as_echo "no" >&6; }
 
6692
fi
 
6693
 
 
6694
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6695
    DSYMUTIL=":"
 
6696
  else
 
6697
    case $cross_compiling:$ac_tool_warned in
 
6698
yes:)
 
6699
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6700
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6701
ac_tool_warned=yes ;;
 
6702
esac
 
6703
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6704
  fi
 
6705
else
 
6706
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6707
fi
 
6708
 
 
6709
    if test -n "$ac_tool_prefix"; then
 
6710
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6711
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6713
$as_echo_n "checking for $ac_word... " >&6; }
 
6714
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6715
  $as_echo_n "(cached) " >&6
 
6716
else
 
6717
  if test -n "$NMEDIT"; then
 
6718
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6719
else
 
6720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6721
for as_dir in $PATH
 
6722
do
 
6723
  IFS=$as_save_IFS
 
6724
  test -z "$as_dir" && as_dir=.
 
6725
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6726
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6727
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6728
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6729
    break 2
 
6730
  fi
 
6731
done
 
6732
  done
 
6733
IFS=$as_save_IFS
 
6734
 
 
6735
fi
 
6736
fi
 
6737
NMEDIT=$ac_cv_prog_NMEDIT
 
6738
if test -n "$NMEDIT"; then
 
6739
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6740
$as_echo "$NMEDIT" >&6; }
 
6741
else
 
6742
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6743
$as_echo "no" >&6; }
 
6744
fi
 
6745
 
 
6746
 
 
6747
fi
 
6748
if test -z "$ac_cv_prog_NMEDIT"; then
 
6749
  ac_ct_NMEDIT=$NMEDIT
 
6750
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6751
set dummy nmedit; ac_word=$2
 
6752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6753
$as_echo_n "checking for $ac_word... " >&6; }
 
6754
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6755
  $as_echo_n "(cached) " >&6
 
6756
else
 
6757
  if test -n "$ac_ct_NMEDIT"; then
 
6758
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6759
else
 
6760
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6761
for as_dir in $PATH
 
6762
do
 
6763
  IFS=$as_save_IFS
 
6764
  test -z "$as_dir" && as_dir=.
 
6765
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6766
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6767
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6768
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6769
    break 2
 
6770
  fi
 
6771
done
 
6772
  done
 
6773
IFS=$as_save_IFS
 
6774
 
 
6775
fi
 
6776
fi
 
6777
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6778
if test -n "$ac_ct_NMEDIT"; then
 
6779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6780
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6781
else
 
6782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6783
$as_echo "no" >&6; }
 
6784
fi
 
6785
 
 
6786
  if test "x$ac_ct_NMEDIT" = x; then
 
6787
    NMEDIT=":"
 
6788
  else
 
6789
    case $cross_compiling:$ac_tool_warned in
 
6790
yes:)
 
6791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6792
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6793
ac_tool_warned=yes ;;
 
6794
esac
 
6795
    NMEDIT=$ac_ct_NMEDIT
 
6796
  fi
 
6797
else
 
6798
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6799
fi
 
6800
 
 
6801
    if test -n "$ac_tool_prefix"; then
 
6802
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6803
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6805
$as_echo_n "checking for $ac_word... " >&6; }
 
6806
if ${ac_cv_prog_LIPO+:} false; then :
 
6807
  $as_echo_n "(cached) " >&6
 
6808
else
 
6809
  if test -n "$LIPO"; then
 
6810
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6811
else
 
6812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6813
for as_dir in $PATH
 
6814
do
 
6815
  IFS=$as_save_IFS
 
6816
  test -z "$as_dir" && as_dir=.
 
6817
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6818
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6819
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6820
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6821
    break 2
 
6822
  fi
 
6823
done
 
6824
  done
 
6825
IFS=$as_save_IFS
 
6826
 
 
6827
fi
 
6828
fi
 
6829
LIPO=$ac_cv_prog_LIPO
 
6830
if test -n "$LIPO"; then
 
6831
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6832
$as_echo "$LIPO" >&6; }
 
6833
else
 
6834
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6835
$as_echo "no" >&6; }
 
6836
fi
 
6837
 
 
6838
 
 
6839
fi
 
6840
if test -z "$ac_cv_prog_LIPO"; then
 
6841
  ac_ct_LIPO=$LIPO
 
6842
  # Extract the first word of "lipo", so it can be a program name with args.
 
6843
set dummy lipo; ac_word=$2
 
6844
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6845
$as_echo_n "checking for $ac_word... " >&6; }
 
6846
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6847
  $as_echo_n "(cached) " >&6
 
6848
else
 
6849
  if test -n "$ac_ct_LIPO"; then
 
6850
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6851
else
 
6852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6853
for as_dir in $PATH
 
6854
do
 
6855
  IFS=$as_save_IFS
 
6856
  test -z "$as_dir" && as_dir=.
 
6857
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6858
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6859
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6860
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6861
    break 2
 
6862
  fi
 
6863
done
 
6864
  done
 
6865
IFS=$as_save_IFS
 
6866
 
 
6867
fi
 
6868
fi
 
6869
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6870
if test -n "$ac_ct_LIPO"; then
 
6871
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6872
$as_echo "$ac_ct_LIPO" >&6; }
 
6873
else
 
6874
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6875
$as_echo "no" >&6; }
 
6876
fi
 
6877
 
 
6878
  if test "x$ac_ct_LIPO" = x; then
 
6879
    LIPO=":"
 
6880
  else
 
6881
    case $cross_compiling:$ac_tool_warned in
 
6882
yes:)
 
6883
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6884
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6885
ac_tool_warned=yes ;;
 
6886
esac
 
6887
    LIPO=$ac_ct_LIPO
 
6888
  fi
 
6889
else
 
6890
  LIPO="$ac_cv_prog_LIPO"
 
6891
fi
 
6892
 
 
6893
    if test -n "$ac_tool_prefix"; then
 
6894
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6895
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6897
$as_echo_n "checking for $ac_word... " >&6; }
 
6898
if ${ac_cv_prog_OTOOL+:} false; then :
 
6899
  $as_echo_n "(cached) " >&6
 
6900
else
 
6901
  if test -n "$OTOOL"; then
 
6902
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6903
else
 
6904
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6905
for as_dir in $PATH
 
6906
do
 
6907
  IFS=$as_save_IFS
 
6908
  test -z "$as_dir" && as_dir=.
 
6909
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6910
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6911
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6912
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6913
    break 2
 
6914
  fi
 
6915
done
 
6916
  done
 
6917
IFS=$as_save_IFS
 
6918
 
 
6919
fi
 
6920
fi
 
6921
OTOOL=$ac_cv_prog_OTOOL
 
6922
if test -n "$OTOOL"; then
 
6923
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6924
$as_echo "$OTOOL" >&6; }
 
6925
else
 
6926
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6927
$as_echo "no" >&6; }
 
6928
fi
 
6929
 
 
6930
 
 
6931
fi
 
6932
if test -z "$ac_cv_prog_OTOOL"; then
 
6933
  ac_ct_OTOOL=$OTOOL
 
6934
  # Extract the first word of "otool", so it can be a program name with args.
 
6935
set dummy otool; ac_word=$2
 
6936
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6937
$as_echo_n "checking for $ac_word... " >&6; }
 
6938
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
6939
  $as_echo_n "(cached) " >&6
 
6940
else
 
6941
  if test -n "$ac_ct_OTOOL"; then
 
6942
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6943
else
 
6944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6945
for as_dir in $PATH
 
6946
do
 
6947
  IFS=$as_save_IFS
 
6948
  test -z "$as_dir" && as_dir=.
 
6949
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6950
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6951
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6952
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6953
    break 2
 
6954
  fi
 
6955
done
 
6956
  done
 
6957
IFS=$as_save_IFS
 
6958
 
 
6959
fi
 
6960
fi
 
6961
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6962
if test -n "$ac_ct_OTOOL"; then
 
6963
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6964
$as_echo "$ac_ct_OTOOL" >&6; }
 
6965
else
 
6966
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6967
$as_echo "no" >&6; }
 
6968
fi
 
6969
 
 
6970
  if test "x$ac_ct_OTOOL" = x; then
 
6971
    OTOOL=":"
 
6972
  else
 
6973
    case $cross_compiling:$ac_tool_warned in
 
6974
yes:)
 
6975
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6976
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6977
ac_tool_warned=yes ;;
 
6978
esac
 
6979
    OTOOL=$ac_ct_OTOOL
 
6980
  fi
 
6981
else
 
6982
  OTOOL="$ac_cv_prog_OTOOL"
 
6983
fi
 
6984
 
 
6985
    if test -n "$ac_tool_prefix"; then
 
6986
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6987
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6989
$as_echo_n "checking for $ac_word... " >&6; }
 
6990
if ${ac_cv_prog_OTOOL64+:} false; then :
 
6991
  $as_echo_n "(cached) " >&6
 
6992
else
 
6993
  if test -n "$OTOOL64"; then
 
6994
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6995
else
 
6996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6997
for as_dir in $PATH
 
6998
do
 
6999
  IFS=$as_save_IFS
 
7000
  test -z "$as_dir" && as_dir=.
 
7001
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7002
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7003
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7004
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7005
    break 2
 
7006
  fi
 
7007
done
 
7008
  done
 
7009
IFS=$as_save_IFS
 
7010
 
 
7011
fi
 
7012
fi
 
7013
OTOOL64=$ac_cv_prog_OTOOL64
 
7014
if test -n "$OTOOL64"; then
 
7015
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
7016
$as_echo "$OTOOL64" >&6; }
 
7017
else
 
7018
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7019
$as_echo "no" >&6; }
 
7020
fi
 
7021
 
 
7022
 
 
7023
fi
 
7024
if test -z "$ac_cv_prog_OTOOL64"; then
 
7025
  ac_ct_OTOOL64=$OTOOL64
 
7026
  # Extract the first word of "otool64", so it can be a program name with args.
 
7027
set dummy otool64; ac_word=$2
 
7028
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7029
$as_echo_n "checking for $ac_word... " >&6; }
 
7030
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
7031
  $as_echo_n "(cached) " >&6
 
7032
else
 
7033
  if test -n "$ac_ct_OTOOL64"; then
 
7034
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7035
else
 
7036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7037
for as_dir in $PATH
 
7038
do
 
7039
  IFS=$as_save_IFS
 
7040
  test -z "$as_dir" && as_dir=.
 
7041
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7042
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7043
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
7044
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7045
    break 2
 
7046
  fi
 
7047
done
 
7048
  done
 
7049
IFS=$as_save_IFS
 
7050
 
 
7051
fi
 
7052
fi
 
7053
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
7054
if test -n "$ac_ct_OTOOL64"; then
 
7055
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
7056
$as_echo "$ac_ct_OTOOL64" >&6; }
 
7057
else
 
7058
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7059
$as_echo "no" >&6; }
 
7060
fi
 
7061
 
 
7062
  if test "x$ac_ct_OTOOL64" = x; then
 
7063
    OTOOL64=":"
 
7064
  else
 
7065
    case $cross_compiling:$ac_tool_warned in
 
7066
yes:)
 
7067
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7068
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7069
ac_tool_warned=yes ;;
 
7070
esac
 
7071
    OTOOL64=$ac_ct_OTOOL64
 
7072
  fi
 
7073
else
 
7074
  OTOOL64="$ac_cv_prog_OTOOL64"
 
7075
fi
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
 
 
7083
 
 
7084
 
 
7085
 
 
7086
 
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
 
 
7095
 
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
 
7102
 
 
7103
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7104
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7105
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7106
  $as_echo_n "(cached) " >&6
 
7107
else
 
7108
  lt_cv_apple_cc_single_mod=no
 
7109
      if test -z "${LT_MULTI_MODULE}"; then
 
7110
        # By default we will add the -single_module flag. You can override
 
7111
        # by either setting the environment variable LT_MULTI_MODULE
 
7112
        # non-empty at configure time, or by adding -multi_module to the
 
7113
        # link flags.
 
7114
        rm -rf libconftest.dylib*
 
7115
        echo "int foo(void){return 1;}" > conftest.c
 
7116
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7117
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7118
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7119
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7120
        _lt_result=$?
 
7121
        # If there is a non-empty error log, and "single_module"
 
7122
        # appears in it, assume the flag caused a linker warning
 
7123
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7124
          cat conftest.err >&5
 
7125
        # Otherwise, if the output was created with a 0 exit code from
 
7126
        # the compiler, it worked.
 
7127
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7128
          lt_cv_apple_cc_single_mod=yes
 
7129
        else
 
7130
          cat conftest.err >&5
 
7131
        fi
 
7132
        rm -rf libconftest.dylib*
 
7133
        rm -f conftest.*
 
7134
      fi
 
7135
fi
 
7136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7137
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7138
 
 
7139
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7140
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7141
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7142
  $as_echo_n "(cached) " >&6
 
7143
else
 
7144
  lt_cv_ld_exported_symbols_list=no
 
7145
      save_LDFLAGS=$LDFLAGS
 
7146
      echo "_main" > conftest.sym
 
7147
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7148
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7149
/* end confdefs.h.  */
 
7150
 
 
7151
int
 
7152
main ()
 
7153
{
 
7154
 
 
7155
  ;
 
7156
  return 0;
 
7157
}
 
7158
_ACEOF
 
7159
if ac_fn_c_try_link "$LINENO"; then :
 
7160
  lt_cv_ld_exported_symbols_list=yes
 
7161
else
 
7162
  lt_cv_ld_exported_symbols_list=no
 
7163
fi
 
7164
rm -f core conftest.err conftest.$ac_objext \
 
7165
    conftest$ac_exeext conftest.$ac_ext
 
7166
        LDFLAGS="$save_LDFLAGS"
 
7167
 
 
7168
fi
 
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7170
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7171
 
 
7172
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7173
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7174
if ${lt_cv_ld_force_load+:} false; then :
 
7175
  $as_echo_n "(cached) " >&6
 
7176
else
 
7177
  lt_cv_ld_force_load=no
 
7178
      cat > conftest.c << _LT_EOF
 
7179
int forced_loaded() { return 2;}
 
7180
_LT_EOF
 
7181
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7182
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7183
      echo "$AR cru libconftest.a conftest.o" >&5
 
7184
      $AR cru libconftest.a conftest.o 2>&5
 
7185
      echo "$RANLIB libconftest.a" >&5
 
7186
      $RANLIB libconftest.a 2>&5
 
7187
      cat > conftest.c << _LT_EOF
 
7188
int main() { return 0;}
 
7189
_LT_EOF
 
7190
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7191
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7192
      _lt_result=$?
 
7193
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7194
        cat conftest.err >&5
 
7195
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7196
        lt_cv_ld_force_load=yes
 
7197
      else
 
7198
        cat conftest.err >&5
 
7199
      fi
 
7200
        rm -f conftest.err libconftest.a conftest conftest.c
 
7201
        rm -rf conftest.dSYM
 
7202
 
 
7203
fi
 
7204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7205
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7206
    case $host_os in
 
7207
    rhapsody* | darwin1.[012])
 
7208
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7209
    darwin1.*)
 
7210
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7211
    darwin*) # darwin 5.x on
 
7212
      # if running on 10.5 or later, the deployment target defaults
 
7213
      # to the OS version, if on x86, and 10.4, the deployment
 
7214
      # target defaults to 10.4. Don't you love it?
 
7215
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7216
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7217
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7218
        10.[012]*)
 
7219
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7220
        10.*)
 
7221
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7222
      esac
 
7223
    ;;
 
7224
  esac
 
7225
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7226
      _lt_dar_single_mod='$single_module'
 
7227
    fi
 
7228
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7229
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7230
    else
 
7231
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7232
    fi
 
7233
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7234
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7235
    else
 
7236
      _lt_dsymutil=
 
7237
    fi
 
7238
    ;;
 
7239
  esac
 
7240
 
 
7241
ac_ext=c
 
7242
ac_cpp='$CPP $CPPFLAGS'
 
7243
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7244
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7245
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7246
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7247
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7248
# On Suns, sometimes $CPP names a directory.
 
7249
if test -n "$CPP" && test -d "$CPP"; then
 
7250
  CPP=
 
7251
fi
 
7252
if test -z "$CPP"; then
 
7253
  if ${ac_cv_prog_CPP+:} false; then :
 
7254
  $as_echo_n "(cached) " >&6
 
7255
else
 
7256
      # Double quotes because CPP needs to be expanded
 
7257
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7258
    do
 
7259
      ac_preproc_ok=false
 
7260
for ac_c_preproc_warn_flag in '' yes
 
7261
do
 
7262
  # Use a header file that comes with gcc, so configuring glibc
 
7263
  # with a fresh cross-compiler works.
 
7264
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7265
  # <limits.h> exists even on freestanding compilers.
 
7266
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7267
  # not just through cpp. "Syntax error" is here to catch this case.
 
7268
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7269
/* end confdefs.h.  */
 
7270
#ifdef __STDC__
 
7271
# include <limits.h>
 
7272
#else
 
7273
# include <assert.h>
 
7274
#endif
 
7275
                     Syntax error
 
7276
_ACEOF
 
7277
if ac_fn_c_try_cpp "$LINENO"; then :
 
7278
 
 
7279
else
 
7280
  # Broken: fails on valid input.
 
7281
continue
 
7282
fi
 
7283
rm -f conftest.err conftest.i conftest.$ac_ext
 
7284
 
 
7285
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7286
  # can be detected and how.
 
7287
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7288
/* end confdefs.h.  */
 
7289
#include <ac_nonexistent.h>
 
7290
_ACEOF
 
7291
if ac_fn_c_try_cpp "$LINENO"; then :
 
7292
  # Broken: success on invalid input.
 
7293
continue
 
7294
else
 
7295
  # Passes both tests.
 
7296
ac_preproc_ok=:
 
7297
break
 
7298
fi
 
7299
rm -f conftest.err conftest.i conftest.$ac_ext
 
7300
 
 
7301
done
 
7302
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7303
rm -f conftest.i conftest.err conftest.$ac_ext
 
7304
if $ac_preproc_ok; then :
 
7305
  break
 
7306
fi
 
7307
 
 
7308
    done
 
7309
    ac_cv_prog_CPP=$CPP
 
7310
 
 
7311
fi
 
7312
  CPP=$ac_cv_prog_CPP
 
7313
else
 
7314
  ac_cv_prog_CPP=$CPP
 
7315
fi
 
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7317
$as_echo "$CPP" >&6; }
 
7318
ac_preproc_ok=false
 
7319
for ac_c_preproc_warn_flag in '' yes
 
7320
do
 
7321
  # Use a header file that comes with gcc, so configuring glibc
 
7322
  # with a fresh cross-compiler works.
 
7323
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7324
  # <limits.h> exists even on freestanding compilers.
 
7325
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7326
  # not just through cpp. "Syntax error" is here to catch this case.
 
7327
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7328
/* end confdefs.h.  */
 
7329
#ifdef __STDC__
 
7330
# include <limits.h>
 
7331
#else
 
7332
# include <assert.h>
 
7333
#endif
 
7334
                     Syntax error
 
7335
_ACEOF
 
7336
if ac_fn_c_try_cpp "$LINENO"; then :
 
7337
 
 
7338
else
 
7339
  # Broken: fails on valid input.
 
7340
continue
 
7341
fi
 
7342
rm -f conftest.err conftest.i conftest.$ac_ext
 
7343
 
 
7344
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7345
  # can be detected and how.
 
7346
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7347
/* end confdefs.h.  */
 
7348
#include <ac_nonexistent.h>
 
7349
_ACEOF
 
7350
if ac_fn_c_try_cpp "$LINENO"; then :
 
7351
  # Broken: success on invalid input.
 
7352
continue
 
7353
else
 
7354
  # Passes both tests.
 
7355
ac_preproc_ok=:
 
7356
break
 
7357
fi
 
7358
rm -f conftest.err conftest.i conftest.$ac_ext
 
7359
 
 
7360
done
 
7361
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7362
rm -f conftest.i conftest.err conftest.$ac_ext
 
7363
if $ac_preproc_ok; then :
 
7364
 
 
7365
else
 
7366
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7367
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7368
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7369
See \`config.log' for more details" "$LINENO" 5; }
 
7370
fi
 
7371
 
 
7372
ac_ext=c
 
7373
ac_cpp='$CPP $CPPFLAGS'
 
7374
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7375
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7376
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7377
 
 
7378
 
 
7379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7380
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7381
if ${ac_cv_header_stdc+:} false; then :
 
7382
  $as_echo_n "(cached) " >&6
 
7383
else
 
7384
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7385
/* end confdefs.h.  */
 
7386
#include <stdlib.h>
 
7387
#include <stdarg.h>
 
7388
#include <string.h>
 
7389
#include <float.h>
 
7390
 
 
7391
int
 
7392
main ()
 
7393
{
 
7394
 
 
7395
  ;
 
7396
  return 0;
 
7397
}
 
7398
_ACEOF
 
7399
if ac_fn_c_try_compile "$LINENO"; then :
 
7400
  ac_cv_header_stdc=yes
 
7401
else
 
7402
  ac_cv_header_stdc=no
 
7403
fi
 
7404
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7405
 
 
7406
if test $ac_cv_header_stdc = yes; then
 
7407
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7408
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7409
/* end confdefs.h.  */
 
7410
#include <string.h>
 
7411
 
 
7412
_ACEOF
 
7413
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7414
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7415
 
 
7416
else
 
7417
  ac_cv_header_stdc=no
 
7418
fi
 
7419
rm -f conftest*
 
7420
 
 
7421
fi
 
7422
 
 
7423
if test $ac_cv_header_stdc = yes; then
 
7424
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7425
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7426
/* end confdefs.h.  */
 
7427
#include <stdlib.h>
 
7428
 
 
7429
_ACEOF
 
7430
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7431
  $EGREP "free" >/dev/null 2>&1; then :
 
7432
 
 
7433
else
 
7434
  ac_cv_header_stdc=no
 
7435
fi
 
7436
rm -f conftest*
 
7437
 
 
7438
fi
 
7439
 
 
7440
if test $ac_cv_header_stdc = yes; then
 
7441
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7442
  if test "$cross_compiling" = yes; then :
 
7443
  :
 
7444
else
 
7445
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7446
/* end confdefs.h.  */
 
7447
#include <ctype.h>
 
7448
#include <stdlib.h>
 
7449
#if ((' ' & 0x0FF) == 0x020)
 
7450
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7451
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7452
#else
 
7453
# define ISLOWER(c) \
 
7454
                   (('a' <= (c) && (c) <= 'i') \
 
7455
                     || ('j' <= (c) && (c) <= 'r') \
 
7456
                     || ('s' <= (c) && (c) <= 'z'))
 
7457
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7458
#endif
 
7459
 
 
7460
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7461
int
 
7462
main ()
 
7463
{
 
7464
  int i;
 
7465
  for (i = 0; i < 256; i++)
 
7466
    if (XOR (islower (i), ISLOWER (i))
 
7467
        || toupper (i) != TOUPPER (i))
 
7468
      return 2;
 
7469
  return 0;
 
7470
}
 
7471
_ACEOF
 
7472
if ac_fn_c_try_run "$LINENO"; then :
 
7473
 
 
7474
else
 
7475
  ac_cv_header_stdc=no
 
7476
fi
 
7477
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7478
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7479
fi
 
7480
 
 
7481
fi
 
7482
fi
 
7483
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7484
$as_echo "$ac_cv_header_stdc" >&6; }
 
7485
if test $ac_cv_header_stdc = yes; then
 
7486
 
 
7487
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
7488
 
 
7489
fi
 
7490
 
 
7491
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7492
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7493
                  inttypes.h stdint.h unistd.h
 
7494
do :
 
7495
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7496
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7497
"
 
7498
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7499
  cat >>confdefs.h <<_ACEOF
 
7500
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7501
_ACEOF
 
7502
 
 
7503
fi
 
7504
 
 
7505
done
 
7506
 
 
7507
 
 
7508
for ac_header in dlfcn.h
 
7509
do :
 
7510
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7511
"
 
7512
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7513
  cat >>confdefs.h <<_ACEOF
 
7514
#define HAVE_DLFCN_H 1
 
7515
_ACEOF
 
7516
 
 
7517
fi
 
7518
 
 
7519
done
 
7520
 
 
7521
 
 
7522
 
 
7523
 
 
7524
 
 
7525
# Set options
 
7526
 
 
7527
 
 
7528
 
 
7529
        enable_dlopen=no
 
7530
 
 
7531
 
 
7532
  enable_win32_dll=no
 
7533
 
 
7534
 
 
7535
            # Check whether --enable-shared was given.
 
7536
if test "${enable_shared+set}" = set; then :
 
7537
  enableval=$enable_shared; p=${PACKAGE-default}
 
7538
    case $enableval in
 
7539
    yes) enable_shared=yes ;;
 
7540
    no) enable_shared=no ;;
 
7541
    *)
 
7542
      enable_shared=no
 
7543
      # Look at the argument we got.  We use all the common list separators.
 
7544
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7545
      for pkg in $enableval; do
 
7546
        IFS="$lt_save_ifs"
 
7547
        if test "X$pkg" = "X$p"; then
 
7548
          enable_shared=yes
 
7549
        fi
 
7550
      done
 
7551
      IFS="$lt_save_ifs"
 
7552
      ;;
 
7553
    esac
 
7554
else
 
7555
  enable_shared=yes
 
7556
fi
 
7557
 
 
7558
 
 
7559
 
 
7560
 
 
7561
 
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
  # Check whether --enable-static was given.
 
7567
if test "${enable_static+set}" = set; then :
 
7568
  enableval=$enable_static; p=${PACKAGE-default}
 
7569
    case $enableval in
 
7570
    yes) enable_static=yes ;;
 
7571
    no) enable_static=no ;;
 
7572
    *)
 
7573
     enable_static=no
 
7574
      # Look at the argument we got.  We use all the common list separators.
 
7575
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7576
      for pkg in $enableval; do
 
7577
        IFS="$lt_save_ifs"
 
7578
        if test "X$pkg" = "X$p"; then
 
7579
          enable_static=yes
 
7580
        fi
 
7581
      done
 
7582
      IFS="$lt_save_ifs"
 
7583
      ;;
 
7584
    esac
 
7585
else
 
7586
  enable_static=yes
 
7587
fi
 
7588
 
 
7589
 
 
7590
 
 
7591
 
 
7592
 
 
7593
 
 
7594
 
 
7595
 
 
7596
 
 
7597
 
 
7598
# Check whether --with-pic was given.
 
7599
if test "${with_pic+set}" = set; then :
 
7600
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7601
    case $withval in
 
7602
    yes|no) pic_mode=$withval ;;
 
7603
    *)
 
7604
      pic_mode=default
 
7605
      # Look at the argument we got.  We use all the common list separators.
 
7606
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7607
      for lt_pkg in $withval; do
 
7608
        IFS="$lt_save_ifs"
 
7609
        if test "X$lt_pkg" = "X$lt_p"; then
 
7610
          pic_mode=yes
 
7611
        fi
 
7612
      done
 
7613
      IFS="$lt_save_ifs"
 
7614
      ;;
 
7615
    esac
 
7616
else
 
7617
  pic_mode=default
 
7618
fi
 
7619
 
 
7620
 
 
7621
test -z "$pic_mode" && pic_mode=default
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
 
7628
 
 
7629
  # Check whether --enable-fast-install was given.
 
7630
if test "${enable_fast_install+set}" = set; then :
 
7631
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7632
    case $enableval in
 
7633
    yes) enable_fast_install=yes ;;
 
7634
    no) enable_fast_install=no ;;
 
7635
    *)
 
7636
      enable_fast_install=no
 
7637
      # Look at the argument we got.  We use all the common list separators.
 
7638
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7639
      for pkg in $enableval; do
 
7640
        IFS="$lt_save_ifs"
 
7641
        if test "X$pkg" = "X$p"; then
 
7642
          enable_fast_install=yes
 
7643
        fi
 
7644
      done
 
7645
      IFS="$lt_save_ifs"
 
7646
      ;;
 
7647
    esac
 
7648
else
 
7649
  enable_fast_install=yes
 
7650
fi
 
7651
 
 
7652
 
 
7653
 
 
7654
 
 
7655
 
 
7656
 
 
7657
 
 
7658
 
 
7659
 
 
7660
 
 
7661
 
 
7662
# This can be used to rebuild libtool when needed
 
7663
LIBTOOL_DEPS="$ltmain"
 
7664
 
 
7665
# Always use our own libtool.
 
7666
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7667
 
 
7668
 
 
7669
 
 
7670
 
 
7671
 
 
7672
 
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
 
 
7678
 
 
7679
 
 
7680
 
 
7681
 
 
7682
 
 
7683
 
 
7684
 
 
7685
 
 
7686
 
 
7687
 
 
7688
 
 
7689
 
 
7690
 
 
7691
 
 
7692
 
 
7693
 
 
7694
 
 
7695
 
 
7696
 
 
7697
test -z "$LN_S" && LN_S="ln -s"
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
 
 
7703
 
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
 
 
7711
 
 
7712
if test -n "${ZSH_VERSION+set}" ; then
 
7713
   setopt NO_GLOB_SUBST
 
7714
fi
 
7715
 
 
7716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7717
$as_echo_n "checking for objdir... " >&6; }
 
7718
if ${lt_cv_objdir+:} false; then :
 
7719
  $as_echo_n "(cached) " >&6
 
7720
else
 
7721
  rm -f .libs 2>/dev/null
 
7722
mkdir .libs 2>/dev/null
 
7723
if test -d .libs; then
 
7724
  lt_cv_objdir=.libs
 
7725
else
 
7726
  # MS-DOS does not allow filenames that begin with a dot.
 
7727
  lt_cv_objdir=_libs
 
7728
fi
 
7729
rmdir .libs 2>/dev/null
 
7730
fi
 
7731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7732
$as_echo "$lt_cv_objdir" >&6; }
 
7733
objdir=$lt_cv_objdir
 
7734
 
 
7735
 
 
7736
 
 
7737
 
 
7738
 
 
7739
cat >>confdefs.h <<_ACEOF
 
7740
#define LT_OBJDIR "$lt_cv_objdir/"
 
7741
_ACEOF
 
7742
 
 
7743
 
 
7744
 
 
7745
 
 
7746
case $host_os in
 
7747
aix3*)
 
7748
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7749
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7750
  # vanish in a puff of smoke.
 
7751
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7752
    COLLECT_NAMES=
 
7753
    export COLLECT_NAMES
 
7754
  fi
 
7755
  ;;
 
7756
esac
 
7757
 
 
7758
# Global variables:
 
7759
ofile=libtool
 
7760
can_build_shared=yes
 
7761
 
 
7762
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7763
# which needs '.lib').
 
7764
libext=a
 
7765
 
 
7766
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7767
 
 
7768
old_CC="$CC"
 
7769
old_CFLAGS="$CFLAGS"
 
7770
 
 
7771
# Set sane defaults for various variables
 
7772
test -z "$CC" && CC=cc
 
7773
test -z "$LTCC" && LTCC=$CC
 
7774
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7775
test -z "$LD" && LD=ld
 
7776
test -z "$ac_objext" && ac_objext=o
 
7777
 
 
7778
for cc_temp in $compiler""; do
 
7779
  case $cc_temp in
 
7780
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7781
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7782
    \-*) ;;
 
7783
    *) break;;
 
7784
  esac
 
7785
done
 
7786
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7787
 
 
7788
 
 
7789
# Only perform the check for file, if the check method requires it
 
7790
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7791
case $deplibs_check_method in
 
7792
file_magic*)
 
7793
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7794
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7795
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7796
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7797
  $as_echo_n "(cached) " >&6
 
7798
else
 
7799
  case $MAGIC_CMD in
 
7800
[\\/*] |  ?:[\\/]*)
 
7801
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7802
  ;;
 
7803
*)
 
7804
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7805
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7806
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7807
  for ac_dir in $ac_dummy; do
 
7808
    IFS="$lt_save_ifs"
 
7809
    test -z "$ac_dir" && ac_dir=.
 
7810
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7811
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7812
      if test -n "$file_magic_test_file"; then
 
7813
        case $deplibs_check_method in
 
7814
        "file_magic "*)
 
7815
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7816
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7817
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7818
            $EGREP "$file_magic_regex" > /dev/null; then
 
7819
            :
 
7820
          else
 
7821
            cat <<_LT_EOF 1>&2
 
7822
 
 
7823
*** Warning: the command libtool uses to detect shared libraries,
 
7824
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7825
*** The result is that libtool may fail to recognize shared libraries
 
7826
*** as such.  This will affect the creation of libtool libraries that
 
7827
*** depend on shared libraries, but programs linked with such libtool
 
7828
*** libraries will work regardless of this problem.  Nevertheless, you
 
7829
*** may want to report the problem to your system manager and/or to
 
7830
*** bug-libtool@gnu.org
 
7831
 
 
7832
_LT_EOF
 
7833
          fi ;;
 
7834
        esac
 
7835
      fi
 
7836
      break
 
7837
    fi
 
7838
  done
 
7839
  IFS="$lt_save_ifs"
 
7840
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7841
  ;;
 
7842
esac
 
7843
fi
 
7844
 
 
7845
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7846
if test -n "$MAGIC_CMD"; then
 
7847
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7848
$as_echo "$MAGIC_CMD" >&6; }
 
7849
else
 
7850
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7851
$as_echo "no" >&6; }
 
7852
fi
 
7853
 
 
7854
 
 
7855
 
 
7856
 
 
7857
 
 
7858
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7859
  if test -n "$ac_tool_prefix"; then
 
7860
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7861
$as_echo_n "checking for file... " >&6; }
 
7862
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7863
  $as_echo_n "(cached) " >&6
 
7864
else
 
7865
  case $MAGIC_CMD in
 
7866
[\\/*] |  ?:[\\/]*)
 
7867
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7868
  ;;
 
7869
*)
 
7870
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7871
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7872
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7873
  for ac_dir in $ac_dummy; do
 
7874
    IFS="$lt_save_ifs"
 
7875
    test -z "$ac_dir" && ac_dir=.
 
7876
    if test -f $ac_dir/file; then
 
7877
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7878
      if test -n "$file_magic_test_file"; then
 
7879
        case $deplibs_check_method in
 
7880
        "file_magic "*)
 
7881
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7882
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7883
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7884
            $EGREP "$file_magic_regex" > /dev/null; then
 
7885
            :
 
7886
          else
 
7887
            cat <<_LT_EOF 1>&2
 
7888
 
 
7889
*** Warning: the command libtool uses to detect shared libraries,
 
7890
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7891
*** The result is that libtool may fail to recognize shared libraries
 
7892
*** as such.  This will affect the creation of libtool libraries that
 
7893
*** depend on shared libraries, but programs linked with such libtool
 
7894
*** libraries will work regardless of this problem.  Nevertheless, you
 
7895
*** may want to report the problem to your system manager and/or to
 
7896
*** bug-libtool@gnu.org
 
7897
 
 
7898
_LT_EOF
 
7899
          fi ;;
 
7900
        esac
 
7901
      fi
 
7902
      break
 
7903
    fi
 
7904
  done
 
7905
  IFS="$lt_save_ifs"
 
7906
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7907
  ;;
 
7908
esac
 
7909
fi
 
7910
 
 
7911
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7912
if test -n "$MAGIC_CMD"; then
 
7913
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7914
$as_echo "$MAGIC_CMD" >&6; }
 
7915
else
 
7916
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7917
$as_echo "no" >&6; }
 
7918
fi
 
7919
 
 
7920
 
 
7921
  else
 
7922
    MAGIC_CMD=:
 
7923
  fi
 
7924
fi
 
7925
 
 
7926
  fi
 
7927
  ;;
 
7928
esac
 
7929
 
 
7930
# Use C for the default configuration in the libtool script
 
7931
 
 
7932
lt_save_CC="$CC"
 
7933
ac_ext=c
 
7934
ac_cpp='$CPP $CPPFLAGS'
 
7935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7938
 
 
7939
 
 
7940
# Source file extension for C test sources.
 
7941
ac_ext=c
 
7942
 
 
7943
# Object file extension for compiled C test sources.
 
7944
objext=o
 
7945
objext=$objext
 
7946
 
 
7947
# Code to be used in simple compile tests
 
7948
lt_simple_compile_test_code="int some_variable = 0;"
 
7949
 
 
7950
# Code to be used in simple link tests
 
7951
lt_simple_link_test_code='int main(){return(0);}'
 
7952
 
 
7953
 
 
7954
 
 
7955
 
 
7956
 
 
7957
 
 
7958
 
 
7959
# If no C compiler was specified, use CC.
 
7960
LTCC=${LTCC-"$CC"}
 
7961
 
 
7962
# If no C compiler flags were specified, use CFLAGS.
 
7963
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7964
 
 
7965
# Allow CC to be a program name with arguments.
 
7966
compiler=$CC
 
7967
 
 
7968
# Save the default compiler, since it gets overwritten when the other
 
7969
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7970
compiler_DEFAULT=$CC
 
7971
 
 
7972
# save warnings/boilerplate of simple test code
 
7973
ac_outfile=conftest.$ac_objext
 
7974
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7975
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7976
_lt_compiler_boilerplate=`cat conftest.err`
 
7977
$RM conftest*
 
7978
 
 
7979
ac_outfile=conftest.$ac_objext
 
7980
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7981
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7982
_lt_linker_boilerplate=`cat conftest.err`
 
7983
$RM -r conftest*
 
7984
 
 
7985
 
 
7986
if test -n "$compiler"; then
 
7987
 
 
7988
lt_prog_compiler_no_builtin_flag=
 
7989
 
 
7990
if test "$GCC" = yes; then
 
7991
  case $cc_basename in
 
7992
  nvcc*)
 
7993
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
7994
  *)
 
7995
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
7996
  esac
 
7997
 
 
7998
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7999
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
8000
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
8001
  $as_echo_n "(cached) " >&6
 
8002
else
 
8003
  lt_cv_prog_compiler_rtti_exceptions=no
 
8004
   ac_outfile=conftest.$ac_objext
 
8005
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8006
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8007
   # Insert the option either (1) after the last *FLAGS variable, or
 
8008
   # (2) before a word containing "conftest.", or (3) at the end.
 
8009
   # Note that $ac_compile itself does not contain backslashes and begins
 
8010
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8011
   # The option is referenced via a variable to avoid confusing sed.
 
8012
   lt_compile=`echo "$ac_compile" | $SED \
 
8013
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8014
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8015
   -e 's:$: $lt_compiler_flag:'`
 
8016
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8017
   (eval "$lt_compile" 2>conftest.err)
 
8018
   ac_status=$?
 
8019
   cat conftest.err >&5
 
8020
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8021
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8022
     # The compiler can only warn and ignore the option if not recognized
 
8023
     # So say no if there are warnings other than the usual output.
 
8024
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8025
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8026
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8027
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8028
     fi
 
8029
   fi
 
8030
   $RM conftest*
 
8031
 
 
8032
fi
 
8033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8034
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
8035
 
 
8036
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8037
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8038
else
 
8039
    :
 
8040
fi
 
8041
 
 
8042
fi
 
8043
 
 
8044
 
 
8045
 
 
8046
 
 
8047
 
 
8048
 
 
8049
  lt_prog_compiler_wl=
 
8050
lt_prog_compiler_pic=
 
8051
lt_prog_compiler_static=
 
8052
 
 
8053
 
 
8054
  if test "$GCC" = yes; then
 
8055
    lt_prog_compiler_wl='-Wl,'
 
8056
    lt_prog_compiler_static='-static'
 
8057
 
 
8058
    case $host_os in
 
8059
      aix*)
 
8060
      # All AIX code is PIC.
 
8061
      if test "$host_cpu" = ia64; then
 
8062
        # AIX 5 now supports IA64 processor
 
8063
        lt_prog_compiler_static='-Bstatic'
 
8064
      fi
 
8065
      ;;
 
8066
 
 
8067
    amigaos*)
 
8068
      case $host_cpu in
 
8069
      powerpc)
 
8070
            # see comment about AmigaOS4 .so support
 
8071
            lt_prog_compiler_pic='-fPIC'
 
8072
        ;;
 
8073
      m68k)
 
8074
            # FIXME: we need at least 68020 code to build shared libraries, but
 
8075
            # adding the `-m68020' flag to GCC prevents building anything better,
 
8076
            # like `-m68040'.
 
8077
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8078
        ;;
 
8079
      esac
 
8080
      ;;
 
8081
 
 
8082
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8083
      # PIC is the default for these OSes.
 
8084
      ;;
 
8085
 
 
8086
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8087
      # This hack is so that the source file can tell whether it is being
 
8088
      # built for inclusion in a dll (and should export symbols for example).
 
8089
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8090
      # (--disable-auto-import) libraries
 
8091
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8092
      ;;
 
8093
 
 
8094
    darwin* | rhapsody*)
 
8095
      # PIC is the default on this platform
 
8096
      # Common symbols not allowed in MH_DYLIB files
 
8097
      lt_prog_compiler_pic='-fno-common'
 
8098
      ;;
 
8099
 
 
8100
    haiku*)
 
8101
      # PIC is the default for Haiku.
 
8102
      # The "-static" flag exists, but is broken.
 
8103
      lt_prog_compiler_static=
 
8104
      ;;
 
8105
 
 
8106
    hpux*)
 
8107
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8108
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8109
      # sets the default TLS model and affects inlining.
 
8110
      case $host_cpu in
 
8111
      hppa*64*)
 
8112
        # +Z the default
 
8113
        ;;
 
8114
      *)
 
8115
        lt_prog_compiler_pic='-fPIC'
 
8116
        ;;
 
8117
      esac
 
8118
      ;;
 
8119
 
 
8120
    interix[3-9]*)
 
8121
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8122
      # Instead, we relocate shared libraries at runtime.
 
8123
      ;;
 
8124
 
 
8125
    msdosdjgpp*)
 
8126
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8127
      # on systems that don't support them.
 
8128
      lt_prog_compiler_can_build_shared=no
 
8129
      enable_shared=no
 
8130
      ;;
 
8131
 
 
8132
    *nto* | *qnx*)
 
8133
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8134
      # it will coredump.
 
8135
      lt_prog_compiler_pic='-fPIC -shared'
 
8136
      ;;
 
8137
 
 
8138
    sysv4*MP*)
 
8139
      if test -d /usr/nec; then
 
8140
        lt_prog_compiler_pic=-Kconform_pic
 
8141
      fi
 
8142
      ;;
 
8143
 
 
8144
    *)
 
8145
      lt_prog_compiler_pic='-fPIC'
 
8146
      ;;
 
8147
    esac
 
8148
 
 
8149
    case $cc_basename in
 
8150
    nvcc*) # Cuda Compiler Driver 2.2
 
8151
      lt_prog_compiler_wl='-Xlinker '
 
8152
      if test -n "$lt_prog_compiler_pic"; then
 
8153
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8154
      fi
 
8155
      ;;
 
8156
    esac
 
8157
  else
 
8158
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8159
    case $host_os in
 
8160
    aix*)
 
8161
      lt_prog_compiler_wl='-Wl,'
 
8162
      if test "$host_cpu" = ia64; then
 
8163
        # AIX 5 now supports IA64 processor
 
8164
        lt_prog_compiler_static='-Bstatic'
 
8165
      else
 
8166
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8167
      fi
 
8168
      ;;
 
8169
 
 
8170
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8171
      # This hack is so that the source file can tell whether it is being
 
8172
      # built for inclusion in a dll (and should export symbols for example).
 
8173
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8174
      ;;
 
8175
 
 
8176
    hpux9* | hpux10* | hpux11*)
 
8177
      lt_prog_compiler_wl='-Wl,'
 
8178
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8179
      # not for PA HP-UX.
 
8180
      case $host_cpu in
 
8181
      hppa*64*|ia64*)
 
8182
        # +Z the default
 
8183
        ;;
 
8184
      *)
 
8185
        lt_prog_compiler_pic='+Z'
 
8186
        ;;
 
8187
      esac
 
8188
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8189
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8190
      ;;
 
8191
 
 
8192
    irix5* | irix6* | nonstopux*)
 
8193
      lt_prog_compiler_wl='-Wl,'
 
8194
      # PIC (with -KPIC) is the default.
 
8195
      lt_prog_compiler_static='-non_shared'
 
8196
      ;;
 
8197
 
 
8198
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8199
      case $cc_basename in
 
8200
      # old Intel for x86_64 which still supported -KPIC.
 
8201
      ecc*)
 
8202
        lt_prog_compiler_wl='-Wl,'
 
8203
        lt_prog_compiler_pic='-KPIC'
 
8204
        lt_prog_compiler_static='-static'
 
8205
        ;;
 
8206
      # icc used to be incompatible with GCC.
 
8207
      # ICC 10 doesn't accept -KPIC any more.
 
8208
      icc* | ifort*)
 
8209
        lt_prog_compiler_wl='-Wl,'
 
8210
        lt_prog_compiler_pic='-fPIC'
 
8211
        lt_prog_compiler_static='-static'
 
8212
        ;;
 
8213
      # Lahey Fortran 8.1.
 
8214
      lf95*)
 
8215
        lt_prog_compiler_wl='-Wl,'
 
8216
        lt_prog_compiler_pic='--shared'
 
8217
        lt_prog_compiler_static='--static'
 
8218
        ;;
 
8219
      nagfor*)
 
8220
        # NAG Fortran compiler
 
8221
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8222
        lt_prog_compiler_pic='-PIC'
 
8223
        lt_prog_compiler_static='-Bstatic'
 
8224
        ;;
 
8225
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8226
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8227
        # which looks to be a dead project)
 
8228
        lt_prog_compiler_wl='-Wl,'
 
8229
        lt_prog_compiler_pic='-fpic'
 
8230
        lt_prog_compiler_static='-Bstatic'
 
8231
        ;;
 
8232
      ccc*)
 
8233
        lt_prog_compiler_wl='-Wl,'
 
8234
        # All Alpha code is PIC.
 
8235
        lt_prog_compiler_static='-non_shared'
 
8236
        ;;
 
8237
      xl* | bgxl* | bgf* | mpixl*)
 
8238
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8239
        lt_prog_compiler_wl='-Wl,'
 
8240
        lt_prog_compiler_pic='-qpic'
 
8241
        lt_prog_compiler_static='-qstaticlink'
 
8242
        ;;
 
8243
      *)
 
8244
        case `$CC -V 2>&1 | sed 5q` in
 
8245
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8246
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8247
          lt_prog_compiler_pic='-KPIC'
 
8248
          lt_prog_compiler_static='-Bstatic'
 
8249
          lt_prog_compiler_wl=''
 
8250
          ;;
 
8251
        *Sun\ F* | *Sun*Fortran*)
 
8252
          lt_prog_compiler_pic='-KPIC'
 
8253
          lt_prog_compiler_static='-Bstatic'
 
8254
          lt_prog_compiler_wl='-Qoption ld '
 
8255
          ;;
 
8256
        *Sun\ C*)
 
8257
          # Sun C 5.9
 
8258
          lt_prog_compiler_pic='-KPIC'
 
8259
          lt_prog_compiler_static='-Bstatic'
 
8260
          lt_prog_compiler_wl='-Wl,'
 
8261
          ;;
 
8262
        *Intel*\ [CF]*Compiler*)
 
8263
          lt_prog_compiler_wl='-Wl,'
 
8264
          lt_prog_compiler_pic='-fPIC'
 
8265
          lt_prog_compiler_static='-static'
 
8266
          ;;
 
8267
        *Portland\ Group*)
 
8268
          lt_prog_compiler_wl='-Wl,'
 
8269
          lt_prog_compiler_pic='-fpic'
 
8270
          lt_prog_compiler_static='-Bstatic'
 
8271
          ;;
 
8272
        esac
 
8273
        ;;
 
8274
      esac
 
8275
      ;;
 
8276
 
 
8277
    newsos6)
 
8278
      lt_prog_compiler_pic='-KPIC'
 
8279
      lt_prog_compiler_static='-Bstatic'
 
8280
      ;;
 
8281
 
 
8282
    *nto* | *qnx*)
 
8283
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8284
      # it will coredump.
 
8285
      lt_prog_compiler_pic='-fPIC -shared'
 
8286
      ;;
 
8287
 
 
8288
    osf3* | osf4* | osf5*)
 
8289
      lt_prog_compiler_wl='-Wl,'
 
8290
      # All OSF/1 code is PIC.
 
8291
      lt_prog_compiler_static='-non_shared'
 
8292
      ;;
 
8293
 
 
8294
    rdos*)
 
8295
      lt_prog_compiler_static='-non_shared'
 
8296
      ;;
 
8297
 
 
8298
    solaris*)
 
8299
      lt_prog_compiler_pic='-KPIC'
 
8300
      lt_prog_compiler_static='-Bstatic'
 
8301
      case $cc_basename in
 
8302
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8303
        lt_prog_compiler_wl='-Qoption ld ';;
 
8304
      *)
 
8305
        lt_prog_compiler_wl='-Wl,';;
 
8306
      esac
 
8307
      ;;
 
8308
 
 
8309
    sunos4*)
 
8310
      lt_prog_compiler_wl='-Qoption ld '
 
8311
      lt_prog_compiler_pic='-PIC'
 
8312
      lt_prog_compiler_static='-Bstatic'
 
8313
      ;;
 
8314
 
 
8315
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8316
      lt_prog_compiler_wl='-Wl,'
 
8317
      lt_prog_compiler_pic='-KPIC'
 
8318
      lt_prog_compiler_static='-Bstatic'
 
8319
      ;;
 
8320
 
 
8321
    sysv4*MP*)
 
8322
      if test -d /usr/nec ;then
 
8323
        lt_prog_compiler_pic='-Kconform_pic'
 
8324
        lt_prog_compiler_static='-Bstatic'
 
8325
      fi
 
8326
      ;;
 
8327
 
 
8328
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8329
      lt_prog_compiler_wl='-Wl,'
 
8330
      lt_prog_compiler_pic='-KPIC'
 
8331
      lt_prog_compiler_static='-Bstatic'
 
8332
      ;;
 
8333
 
 
8334
    unicos*)
 
8335
      lt_prog_compiler_wl='-Wl,'
 
8336
      lt_prog_compiler_can_build_shared=no
 
8337
      ;;
 
8338
 
 
8339
    uts4*)
 
8340
      lt_prog_compiler_pic='-pic'
 
8341
      lt_prog_compiler_static='-Bstatic'
 
8342
      ;;
 
8343
 
 
8344
    *)
 
8345
      lt_prog_compiler_can_build_shared=no
 
8346
      ;;
 
8347
    esac
 
8348
  fi
 
8349
 
 
8350
case $host_os in
 
8351
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8352
  *djgpp*)
 
8353
    lt_prog_compiler_pic=
 
8354
    ;;
 
8355
  *)
 
8356
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8357
    ;;
 
8358
esac
 
8359
 
 
8360
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8361
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8362
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8363
  $as_echo_n "(cached) " >&6
 
8364
else
 
8365
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8366
fi
 
8367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8368
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8369
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8370
 
 
8371
#
 
8372
# Check to make sure the PIC flag actually works.
 
8373
#
 
8374
if test -n "$lt_prog_compiler_pic"; then
 
8375
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8376
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8377
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8378
  $as_echo_n "(cached) " >&6
 
8379
else
 
8380
  lt_cv_prog_compiler_pic_works=no
 
8381
   ac_outfile=conftest.$ac_objext
 
8382
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8383
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8384
   # Insert the option either (1) after the last *FLAGS variable, or
 
8385
   # (2) before a word containing "conftest.", or (3) at the end.
 
8386
   # Note that $ac_compile itself does not contain backslashes and begins
 
8387
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8388
   # The option is referenced via a variable to avoid confusing sed.
 
8389
   lt_compile=`echo "$ac_compile" | $SED \
 
8390
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8391
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8392
   -e 's:$: $lt_compiler_flag:'`
 
8393
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8394
   (eval "$lt_compile" 2>conftest.err)
 
8395
   ac_status=$?
 
8396
   cat conftest.err >&5
 
8397
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8398
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8399
     # The compiler can only warn and ignore the option if not recognized
 
8400
     # So say no if there are warnings other than the usual output.
 
8401
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8402
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8403
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8404
       lt_cv_prog_compiler_pic_works=yes
 
8405
     fi
 
8406
   fi
 
8407
   $RM conftest*
 
8408
 
 
8409
fi
 
8410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8411
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8412
 
 
8413
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8414
    case $lt_prog_compiler_pic in
 
8415
     "" | " "*) ;;
 
8416
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8417
     esac
 
8418
else
 
8419
    lt_prog_compiler_pic=
 
8420
     lt_prog_compiler_can_build_shared=no
 
8421
fi
 
8422
 
 
8423
fi
 
8424
 
 
8425
 
 
8426
 
 
8427
 
 
8428
 
 
8429
 
 
8430
 
 
8431
 
 
8432
 
 
8433
 
 
8434
 
 
8435
#
 
8436
# Check to make sure the static flag actually works.
 
8437
#
 
8438
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8440
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8441
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8442
  $as_echo_n "(cached) " >&6
 
8443
else
 
8444
  lt_cv_prog_compiler_static_works=no
 
8445
   save_LDFLAGS="$LDFLAGS"
 
8446
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8447
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8448
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8449
     # The linker can only warn and ignore the option if not recognized
 
8450
     # So say no if there are warnings
 
8451
     if test -s conftest.err; then
 
8452
       # Append any errors to the config.log.
 
8453
       cat conftest.err 1>&5
 
8454
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8455
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8456
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8457
         lt_cv_prog_compiler_static_works=yes
 
8458
       fi
 
8459
     else
 
8460
       lt_cv_prog_compiler_static_works=yes
 
8461
     fi
 
8462
   fi
 
8463
   $RM -r conftest*
 
8464
   LDFLAGS="$save_LDFLAGS"
 
8465
 
 
8466
fi
 
8467
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8468
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8469
 
 
8470
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8471
    :
 
8472
else
 
8473
    lt_prog_compiler_static=
 
8474
fi
 
8475
 
 
8476
 
 
8477
 
 
8478
 
 
8479
 
 
8480
 
 
8481
 
 
8482
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8483
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8484
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8485
  $as_echo_n "(cached) " >&6
 
8486
else
 
8487
  lt_cv_prog_compiler_c_o=no
 
8488
   $RM -r conftest 2>/dev/null
 
8489
   mkdir conftest
 
8490
   cd conftest
 
8491
   mkdir out
 
8492
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8493
 
 
8494
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8495
   # Insert the option either (1) after the last *FLAGS variable, or
 
8496
   # (2) before a word containing "conftest.", or (3) at the end.
 
8497
   # Note that $ac_compile itself does not contain backslashes and begins
 
8498
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8499
   lt_compile=`echo "$ac_compile" | $SED \
 
8500
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8501
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8502
   -e 's:$: $lt_compiler_flag:'`
 
8503
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8504
   (eval "$lt_compile" 2>out/conftest.err)
 
8505
   ac_status=$?
 
8506
   cat out/conftest.err >&5
 
8507
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8508
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8509
   then
 
8510
     # The compiler can only warn and ignore the option if not recognized
 
8511
     # So say no if there are warnings
 
8512
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8513
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8514
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8515
       lt_cv_prog_compiler_c_o=yes
 
8516
     fi
 
8517
   fi
 
8518
   chmod u+w . 2>&5
 
8519
   $RM conftest*
 
8520
   # SGI C++ compiler will create directory out/ii_files/ for
 
8521
   # template instantiation
 
8522
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8523
   $RM out/* && rmdir out
 
8524
   cd ..
 
8525
   $RM -r conftest
 
8526
   $RM conftest*
 
8527
 
 
8528
fi
 
8529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8530
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8531
 
 
8532
 
 
8533
 
 
8534
 
 
8535
 
 
8536
 
 
8537
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8538
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8539
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8540
  $as_echo_n "(cached) " >&6
 
8541
else
 
8542
  lt_cv_prog_compiler_c_o=no
 
8543
   $RM -r conftest 2>/dev/null
 
8544
   mkdir conftest
 
8545
   cd conftest
 
8546
   mkdir out
 
8547
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8548
 
 
8549
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8550
   # Insert the option either (1) after the last *FLAGS variable, or
 
8551
   # (2) before a word containing "conftest.", or (3) at the end.
 
8552
   # Note that $ac_compile itself does not contain backslashes and begins
 
8553
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8554
   lt_compile=`echo "$ac_compile" | $SED \
 
8555
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8556
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8557
   -e 's:$: $lt_compiler_flag:'`
 
8558
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8559
   (eval "$lt_compile" 2>out/conftest.err)
 
8560
   ac_status=$?
 
8561
   cat out/conftest.err >&5
 
8562
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8563
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8564
   then
 
8565
     # The compiler can only warn and ignore the option if not recognized
 
8566
     # So say no if there are warnings
 
8567
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8568
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8569
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8570
       lt_cv_prog_compiler_c_o=yes
 
8571
     fi
 
8572
   fi
 
8573
   chmod u+w . 2>&5
 
8574
   $RM conftest*
 
8575
   # SGI C++ compiler will create directory out/ii_files/ for
 
8576
   # template instantiation
 
8577
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8578
   $RM out/* && rmdir out
 
8579
   cd ..
 
8580
   $RM -r conftest
 
8581
   $RM conftest*
 
8582
 
 
8583
fi
 
8584
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8585
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8586
 
 
8587
 
 
8588
 
 
8589
 
 
8590
hard_links="nottested"
 
8591
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8592
  # do not overwrite the value of need_locks provided by the user
 
8593
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8594
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8595
  hard_links=yes
 
8596
  $RM conftest*
 
8597
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8598
  touch conftest.a
 
8599
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8600
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8601
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8602
$as_echo "$hard_links" >&6; }
 
8603
  if test "$hard_links" = no; then
 
8604
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8605
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8606
    need_locks=warn
 
8607
  fi
 
8608
else
 
8609
  need_locks=no
 
8610
fi
 
8611
 
 
8612
 
 
8613
 
 
8614
 
 
8615
 
 
8616
 
 
8617
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8618
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8619
 
 
8620
  runpath_var=
 
8621
  allow_undefined_flag=
 
8622
  always_export_symbols=no
 
8623
  archive_cmds=
 
8624
  archive_expsym_cmds=
 
8625
  compiler_needs_object=no
 
8626
  enable_shared_with_static_runtimes=no
 
8627
  export_dynamic_flag_spec=
 
8628
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8629
  hardcode_automatic=no
 
8630
  hardcode_direct=no
 
8631
  hardcode_direct_absolute=no
 
8632
  hardcode_libdir_flag_spec=
 
8633
  hardcode_libdir_separator=
 
8634
  hardcode_minus_L=no
 
8635
  hardcode_shlibpath_var=unsupported
 
8636
  inherit_rpath=no
 
8637
  link_all_deplibs=unknown
 
8638
  module_cmds=
 
8639
  module_expsym_cmds=
 
8640
  old_archive_from_new_cmds=
 
8641
  old_archive_from_expsyms_cmds=
 
8642
  thread_safe_flag_spec=
 
8643
  whole_archive_flag_spec=
 
8644
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8645
  # included in the symbol list
 
8646
  include_expsyms=
 
8647
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8648
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8649
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8650
  # as well as any symbol that contains `d'.
 
8651
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8652
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8653
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8654
  # the symbol is explicitly referenced.  Since portable code cannot
 
8655
  # rely on this symbol name, it's probably fine to never include it in
 
8656
  # preloaded symbol tables.
 
8657
  # Exclude shared library initialization/finalization symbols.
 
8658
  extract_expsyms_cmds=
 
8659
 
 
8660
  case $host_os in
 
8661
  cygwin* | mingw* | pw32* | cegcc*)
 
8662
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8663
    # When not using gcc, we currently assume that we are using
 
8664
    # Microsoft Visual C++.
 
8665
    if test "$GCC" != yes; then
 
8666
      with_gnu_ld=no
 
8667
    fi
 
8668
    ;;
 
8669
  interix*)
 
8670
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8671
    with_gnu_ld=yes
 
8672
    ;;
 
8673
  openbsd*)
 
8674
    with_gnu_ld=no
 
8675
    ;;
 
8676
  linux* | k*bsd*-gnu | gnu*)
 
8677
    link_all_deplibs=no
 
8678
    ;;
 
8679
  esac
 
8680
 
 
8681
  ld_shlibs=yes
 
8682
 
 
8683
  # On some targets, GNU ld is compatible enough with the native linker
 
8684
  # that we're better off using the native interface for both.
 
8685
  lt_use_gnu_ld_interface=no
 
8686
  if test "$with_gnu_ld" = yes; then
 
8687
    case $host_os in
 
8688
      aix*)
 
8689
        # The AIX port of GNU ld has always aspired to compatibility
 
8690
        # with the native linker.  However, as the warning in the GNU ld
 
8691
        # block says, versions before 2.19.5* couldn't really create working
 
8692
        # shared libraries, regardless of the interface used.
 
8693
        case `$LD -v 2>&1` in
 
8694
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8695
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8696
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8697
          *)
 
8698
            lt_use_gnu_ld_interface=yes
 
8699
            ;;
 
8700
        esac
 
8701
        ;;
 
8702
      *)
 
8703
        lt_use_gnu_ld_interface=yes
 
8704
        ;;
 
8705
    esac
 
8706
  fi
 
8707
 
 
8708
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8709
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8710
    wlarc='${wl}'
 
8711
 
 
8712
    # Set some defaults for GNU ld with shared library support. These
 
8713
    # are reset later if shared libraries are not supported. Putting them
 
8714
    # here allows them to be overridden if necessary.
 
8715
    runpath_var=LD_RUN_PATH
 
8716
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8717
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8718
    # ancient GNU ld didn't support --whole-archive et. al.
 
8719
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8720
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8721
    else
 
8722
      whole_archive_flag_spec=
 
8723
    fi
 
8724
    supports_anon_versioning=no
 
8725
    case `$LD -v 2>&1` in
 
8726
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8727
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8728
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8729
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8730
      *\ 2.11.*) ;; # other 2.11 versions
 
8731
      *) supports_anon_versioning=yes ;;
 
8732
    esac
 
8733
 
 
8734
    # See if GNU ld supports shared libraries.
 
8735
    case $host_os in
 
8736
    aix[3-9]*)
 
8737
      # On AIX/PPC, the GNU linker is very broken
 
8738
      if test "$host_cpu" != ia64; then
 
8739
        ld_shlibs=no
 
8740
        cat <<_LT_EOF 1>&2
 
8741
 
 
8742
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
8743
*** to be unable to reliably create shared libraries on AIX.
 
8744
*** Therefore, libtool is disabling shared libraries support.  If you
 
8745
*** really care for shared libraries, you may want to install binutils
 
8746
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
8747
*** You will then need to restart the configuration process.
 
8748
 
 
8749
_LT_EOF
 
8750
      fi
 
8751
      ;;
 
8752
 
 
8753
    amigaos*)
 
8754
      case $host_cpu in
 
8755
      powerpc)
 
8756
            # see comment about AmigaOS4 .so support
 
8757
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8758
            archive_expsym_cmds=''
 
8759
        ;;
 
8760
      m68k)
 
8761
            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)'
 
8762
            hardcode_libdir_flag_spec='-L$libdir'
 
8763
            hardcode_minus_L=yes
 
8764
        ;;
 
8765
      esac
 
8766
      ;;
 
8767
 
 
8768
    beos*)
 
8769
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8770
        allow_undefined_flag=unsupported
 
8771
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8772
        # support --undefined.  This deserves some investigation.  FIXME
 
8773
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8774
      else
 
8775
        ld_shlibs=no
 
8776
      fi
 
8777
      ;;
 
8778
 
 
8779
    cygwin* | mingw* | pw32* | cegcc*)
 
8780
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8781
      # as there is no search path for DLLs.
 
8782
      hardcode_libdir_flag_spec='-L$libdir'
 
8783
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
8784
      allow_undefined_flag=unsupported
 
8785
      always_export_symbols=no
 
8786
      enable_shared_with_static_runtimes=yes
 
8787
      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'
 
8788
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
8789
 
 
8790
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8791
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8792
        # If the export-symbols file already is a .def file (1st line
 
8793
        # is EXPORTS), use it as is; otherwise, prepend...
 
8794
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8795
          cp $export_symbols $output_objdir/$soname.def;
 
8796
        else
 
8797
          echo EXPORTS > $output_objdir/$soname.def;
 
8798
          cat $export_symbols >> $output_objdir/$soname.def;
 
8799
        fi~
 
8800
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8801
      else
 
8802
        ld_shlibs=no
 
8803
      fi
 
8804
      ;;
 
8805
 
 
8806
    haiku*)
 
8807
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8808
      link_all_deplibs=yes
 
8809
      ;;
 
8810
 
 
8811
    interix[3-9]*)
 
8812
      hardcode_direct=no
 
8813
      hardcode_shlibpath_var=no
 
8814
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8815
      export_dynamic_flag_spec='${wl}-E'
 
8816
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8817
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8818
      # default) and relocated if they conflict, which is a slow very memory
 
8819
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8820
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8821
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8822
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8823
      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'
 
8824
      ;;
 
8825
 
 
8826
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8827
      tmp_diet=no
 
8828
      if test "$host_os" = linux-dietlibc; then
 
8829
        case $cc_basename in
 
8830
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8831
        esac
 
8832
      fi
 
8833
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8834
         && test "$tmp_diet" = no
 
8835
      then
 
8836
        tmp_addflag=' $pic_flag'
 
8837
        tmp_sharedflag='-shared'
 
8838
        case $cc_basename,$host_cpu in
 
8839
        pgcc*)                          # Portland Group C compiler
 
8840
          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'
 
8841
          tmp_addflag=' $pic_flag'
 
8842
          ;;
 
8843
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
8844
                                        # Portland Group f77 and f90 compilers
 
8845
          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'
 
8846
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8847
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8848
          tmp_addflag=' -i_dynamic' ;;
 
8849
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8850
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8851
        ifc* | ifort*)                  # Intel Fortran compiler
 
8852
          tmp_addflag=' -nofor_main' ;;
 
8853
        lf95*)                          # Lahey Fortran 8.1
 
8854
          whole_archive_flag_spec=
 
8855
          tmp_sharedflag='--shared' ;;
 
8856
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
8857
          tmp_sharedflag='-qmkshrobj'
 
8858
          tmp_addflag= ;;
 
8859
        nvcc*)  # Cuda Compiler Driver 2.2
 
8860
          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'
 
8861
          compiler_needs_object=yes
 
8862
          ;;
 
8863
        esac
 
8864
        case `$CC -V 2>&1 | sed 5q` in
 
8865
        *Sun\ C*)                       # Sun C 5.9
 
8866
          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'
 
8867
          compiler_needs_object=yes
 
8868
          tmp_sharedflag='-G' ;;
 
8869
        *Sun\ F*)                       # Sun Fortran 8.3
 
8870
          tmp_sharedflag='-G' ;;
 
8871
        esac
 
8872
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8873
 
 
8874
        if test "x$supports_anon_versioning" = xyes; then
 
8875
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8876
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8877
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8878
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8879
        fi
 
8880
 
 
8881
        case $cc_basename in
 
8882
        xlf* | bgf* | bgxlf* | mpixlf*)
 
8883
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8884
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8885
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8886
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
8887
          if test "x$supports_anon_versioning" = xyes; then
 
8888
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8889
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8890
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8891
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8892
          fi
 
8893
          ;;
 
8894
        esac
 
8895
      else
 
8896
        ld_shlibs=no
 
8897
      fi
 
8898
      ;;
 
8899
 
 
8900
    netbsd* | netbsdelf*-gnu)
 
8901
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8902
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8903
        wlarc=
 
8904
      else
 
8905
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8906
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8907
      fi
 
8908
      ;;
 
8909
 
 
8910
    solaris*)
 
8911
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8912
        ld_shlibs=no
 
8913
        cat <<_LT_EOF 1>&2
 
8914
 
 
8915
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8916
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8917
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8918
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8919
*** your PATH or compiler configuration so that the native linker is
 
8920
*** used, and then restart.
 
8921
 
 
8922
_LT_EOF
 
8923
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8924
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8925
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8926
      else
 
8927
        ld_shlibs=no
 
8928
      fi
 
8929
      ;;
 
8930
 
 
8931
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8932
      case `$LD -v 2>&1` in
 
8933
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8934
        ld_shlibs=no
 
8935
        cat <<_LT_EOF 1>&2
 
8936
 
 
8937
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8938
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8939
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8940
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8941
*** your PATH or compiler configuration so that the native linker is
 
8942
*** used, and then restart.
 
8943
 
 
8944
_LT_EOF
 
8945
        ;;
 
8946
        *)
 
8947
          # For security reasons, it is highly recommended that you always
 
8948
          # use absolute paths for naming shared libraries, and exclude the
 
8949
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8950
          # requires that you compile everything twice, which is a pain.
 
8951
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8952
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8953
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8954
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8955
          else
 
8956
            ld_shlibs=no
 
8957
          fi
 
8958
        ;;
 
8959
      esac
 
8960
      ;;
 
8961
 
 
8962
    sunos4*)
 
8963
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8964
      wlarc=
 
8965
      hardcode_direct=yes
 
8966
      hardcode_shlibpath_var=no
 
8967
      ;;
 
8968
 
 
8969
    *)
 
8970
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8971
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8972
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8973
      else
 
8974
        ld_shlibs=no
 
8975
      fi
 
8976
      ;;
 
8977
    esac
 
8978
 
 
8979
    if test "$ld_shlibs" = no; then
 
8980
      runpath_var=
 
8981
      hardcode_libdir_flag_spec=
 
8982
      export_dynamic_flag_spec=
 
8983
      whole_archive_flag_spec=
 
8984
    fi
 
8985
  else
 
8986
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8987
    case $host_os in
 
8988
    aix3*)
 
8989
      allow_undefined_flag=unsupported
 
8990
      always_export_symbols=yes
 
8991
      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'
 
8992
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8993
      # are no directories specified by -L.
 
8994
      hardcode_minus_L=yes
 
8995
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8996
        # Neither direct hardcoding nor static linking is supported with a
 
8997
        # broken collect2.
 
8998
        hardcode_direct=unsupported
 
8999
      fi
 
9000
      ;;
 
9001
 
 
9002
    aix[4-9]*)
 
9003
      if test "$host_cpu" = ia64; then
 
9004
        # On IA64, the linker does run time linking by default, so we don't
 
9005
        # have to do anything special.
 
9006
        aix_use_runtimelinking=no
 
9007
        exp_sym_flag='-Bexport'
 
9008
        no_entry_flag=""
 
9009
      else
 
9010
        # If we're using GNU nm, then we don't want the "-C" option.
 
9011
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
9012
        # Also, AIX nm treats weak defined symbols like other global
 
9013
        # defined symbols, whereas GNU nm marks them as "W".
 
9014
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
9015
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9016
        else
 
9017
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
9018
        fi
 
9019
        aix_use_runtimelinking=no
 
9020
 
 
9021
        # Test if we are trying to use run time linking or normal
 
9022
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9023
        # need to do runtime linking.
 
9024
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
9025
          for ld_flag in $LDFLAGS; do
 
9026
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
9027
            aix_use_runtimelinking=yes
 
9028
            break
 
9029
          fi
 
9030
          done
 
9031
          ;;
 
9032
        esac
 
9033
 
 
9034
        exp_sym_flag='-bexport'
 
9035
        no_entry_flag='-bnoentry'
 
9036
      fi
 
9037
 
 
9038
      # When large executables or shared objects are built, AIX ld can
 
9039
      # have problems creating the table of contents.  If linking a library
 
9040
      # or program results in "error TOC overflow" add -mminimal-toc to
 
9041
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9042
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9043
 
 
9044
      archive_cmds=''
 
9045
      hardcode_direct=yes
 
9046
      hardcode_direct_absolute=yes
 
9047
      hardcode_libdir_separator=':'
 
9048
      link_all_deplibs=yes
 
9049
      file_list_spec='${wl}-f,'
 
9050
 
 
9051
      if test "$GCC" = yes; then
 
9052
        case $host_os in aix4.[012]|aix4.[012].*)
 
9053
        # We only want to do this on AIX 4.2 and lower, the check
 
9054
        # below for broken collect2 doesn't work under 4.3+
 
9055
          collect2name=`${CC} -print-prog-name=collect2`
 
9056
          if test -f "$collect2name" &&
 
9057
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
9058
          then
 
9059
          # We have reworked collect2
 
9060
          :
 
9061
          else
 
9062
          # We have old collect2
 
9063
          hardcode_direct=unsupported
 
9064
          # It fails to find uninstalled libraries when the uninstalled
 
9065
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9066
          # to unsupported forces relinking
 
9067
          hardcode_minus_L=yes
 
9068
          hardcode_libdir_flag_spec='-L$libdir'
 
9069
          hardcode_libdir_separator=
 
9070
          fi
 
9071
          ;;
 
9072
        esac
 
9073
        shared_flag='-shared'
 
9074
        if test "$aix_use_runtimelinking" = yes; then
 
9075
          shared_flag="$shared_flag "'${wl}-G'
 
9076
        fi
 
9077
        link_all_deplibs=no
 
9078
      else
 
9079
        # not using gcc
 
9080
        if test "$host_cpu" = ia64; then
 
9081
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9082
        # chokes on -Wl,-G. The following line is correct:
 
9083
          shared_flag='-G'
 
9084
        else
 
9085
          if test "$aix_use_runtimelinking" = yes; then
 
9086
            shared_flag='${wl}-G'
 
9087
          else
 
9088
            shared_flag='${wl}-bM:SRE'
 
9089
          fi
 
9090
        fi
 
9091
      fi
 
9092
 
 
9093
      export_dynamic_flag_spec='${wl}-bexpall'
 
9094
      # It seems that -bexpall does not export symbols beginning with
 
9095
      # underscore (_), so it is better to generate a list of symbols to export.
 
9096
      always_export_symbols=yes
 
9097
      if test "$aix_use_runtimelinking" = yes; then
 
9098
        # Warning - without using the other runtime loading flags (-brtl),
 
9099
        # -berok will link without error, but may produce a broken library.
 
9100
        allow_undefined_flag='-berok'
 
9101
        # Determine the default libpath from the value encoded in an
 
9102
        # empty executable.
 
9103
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9104
  aix_libpath=$lt_cv_aix_libpath
 
9105
else
 
9106
  if ${lt_cv_aix_libpath_+:} false; then :
 
9107
  $as_echo_n "(cached) " >&6
 
9108
else
 
9109
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9110
/* end confdefs.h.  */
 
9111
 
 
9112
int
 
9113
main ()
 
9114
{
 
9115
 
 
9116
  ;
 
9117
  return 0;
 
9118
}
 
9119
_ACEOF
 
9120
if ac_fn_c_try_link "$LINENO"; then :
 
9121
 
 
9122
  lt_aix_libpath_sed='
 
9123
      /Import File Strings/,/^$/ {
 
9124
          /^0/ {
 
9125
              s/^0  *\([^ ]*\) *$/\1/
 
9126
              p
 
9127
          }
 
9128
      }'
 
9129
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9130
  # Check for a 64-bit object if we didn't find anything.
 
9131
  if test -z "$lt_cv_aix_libpath_"; then
 
9132
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9133
  fi
 
9134
fi
 
9135
rm -f core conftest.err conftest.$ac_objext \
 
9136
    conftest$ac_exeext conftest.$ac_ext
 
9137
  if test -z "$lt_cv_aix_libpath_"; then
 
9138
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9139
  fi
 
9140
 
 
9141
fi
 
9142
 
 
9143
  aix_libpath=$lt_cv_aix_libpath_
 
9144
fi
 
9145
 
 
9146
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9147
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9148
      else
 
9149
        if test "$host_cpu" = ia64; then
 
9150
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9151
          allow_undefined_flag="-z nodefs"
 
9152
          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"
 
9153
        else
 
9154
         # Determine the default libpath from the value encoded in an
 
9155
         # empty executable.
 
9156
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9157
  aix_libpath=$lt_cv_aix_libpath
 
9158
else
 
9159
  if ${lt_cv_aix_libpath_+:} false; then :
 
9160
  $as_echo_n "(cached) " >&6
 
9161
else
 
9162
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9163
/* end confdefs.h.  */
 
9164
 
 
9165
int
 
9166
main ()
 
9167
{
 
9168
 
 
9169
  ;
 
9170
  return 0;
 
9171
}
 
9172
_ACEOF
 
9173
if ac_fn_c_try_link "$LINENO"; then :
 
9174
 
 
9175
  lt_aix_libpath_sed='
 
9176
      /Import File Strings/,/^$/ {
 
9177
          /^0/ {
 
9178
              s/^0  *\([^ ]*\) *$/\1/
 
9179
              p
 
9180
          }
 
9181
      }'
 
9182
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9183
  # Check for a 64-bit object if we didn't find anything.
 
9184
  if test -z "$lt_cv_aix_libpath_"; then
 
9185
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9186
  fi
 
9187
fi
 
9188
rm -f core conftest.err conftest.$ac_objext \
 
9189
    conftest$ac_exeext conftest.$ac_ext
 
9190
  if test -z "$lt_cv_aix_libpath_"; then
 
9191
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9192
  fi
 
9193
 
 
9194
fi
 
9195
 
 
9196
  aix_libpath=$lt_cv_aix_libpath_
 
9197
fi
 
9198
 
 
9199
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9200
          # Warning - without using the other run time loading flags,
 
9201
          # -berok will link without error, but may produce a broken library.
 
9202
          no_undefined_flag=' ${wl}-bernotok'
 
9203
          allow_undefined_flag=' ${wl}-berok'
 
9204
          if test "$with_gnu_ld" = yes; then
 
9205
            # We only use this code for GNU lds that support --whole-archive.
 
9206
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9207
          else
 
9208
            # Exported symbols can be pulled into shared objects from archives
 
9209
            whole_archive_flag_spec='$convenience'
 
9210
          fi
 
9211
          archive_cmds_need_lc=yes
 
9212
          # This is similar to how AIX traditionally builds its shared libraries.
 
9213
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9214
        fi
 
9215
      fi
 
9216
      ;;
 
9217
 
 
9218
    amigaos*)
 
9219
      case $host_cpu in
 
9220
      powerpc)
 
9221
            # see comment about AmigaOS4 .so support
 
9222
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9223
            archive_expsym_cmds=''
 
9224
        ;;
 
9225
      m68k)
 
9226
            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)'
 
9227
            hardcode_libdir_flag_spec='-L$libdir'
 
9228
            hardcode_minus_L=yes
 
9229
        ;;
 
9230
      esac
 
9231
      ;;
 
9232
 
 
9233
    bsdi[45]*)
 
9234
      export_dynamic_flag_spec=-rdynamic
 
9235
      ;;
 
9236
 
 
9237
    cygwin* | mingw* | pw32* | cegcc*)
 
9238
      # When not using gcc, we currently assume that we are using
 
9239
      # Microsoft Visual C++.
 
9240
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9241
      # no search path for DLLs.
 
9242
      case $cc_basename in
 
9243
      cl*)
 
9244
        # Native MSVC
 
9245
        hardcode_libdir_flag_spec=' '
 
9246
        allow_undefined_flag=unsupported
 
9247
        always_export_symbols=yes
 
9248
        file_list_spec='@'
 
9249
        # Tell ltmain to make .lib files, not .a files.
 
9250
        libext=lib
 
9251
        # Tell ltmain to make .dll files, not .so files.
 
9252
        shrext_cmds=".dll"
 
9253
        # FIXME: Setting linknames here is a bad hack.
 
9254
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9255
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9256
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9257
          else
 
9258
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9259
          fi~
 
9260
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9261
          linknames='
 
9262
        # The linker will not automatically build a static lib if we build a DLL.
 
9263
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9264
        enable_shared_with_static_runtimes=yes
 
9265
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9266
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9267
        # Don't use ranlib
 
9268
        old_postinstall_cmds='chmod 644 $oldlib'
 
9269
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9270
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9271
          case $lt_outputfile in
 
9272
            *.exe|*.EXE) ;;
 
9273
            *)
 
9274
              lt_outputfile="$lt_outputfile.exe"
 
9275
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9276
              ;;
 
9277
          esac~
 
9278
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9279
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9280
            $RM "$lt_outputfile.manifest";
 
9281
          fi'
 
9282
        ;;
 
9283
      *)
 
9284
        # Assume MSVC wrapper
 
9285
        hardcode_libdir_flag_spec=' '
 
9286
        allow_undefined_flag=unsupported
 
9287
        # Tell ltmain to make .lib files, not .a files.
 
9288
        libext=lib
 
9289
        # Tell ltmain to make .dll files, not .so files.
 
9290
        shrext_cmds=".dll"
 
9291
        # FIXME: Setting linknames here is a bad hack.
 
9292
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9293
        # The linker will automatically build a .lib file if we build a DLL.
 
9294
        old_archive_from_new_cmds='true'
 
9295
        # FIXME: Should let the user specify the lib program.
 
9296
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9297
        enable_shared_with_static_runtimes=yes
 
9298
        ;;
 
9299
      esac
 
9300
      ;;
 
9301
 
 
9302
    darwin* | rhapsody*)
 
9303
 
 
9304
 
 
9305
  archive_cmds_need_lc=no
 
9306
  hardcode_direct=no
 
9307
  hardcode_automatic=yes
 
9308
  hardcode_shlibpath_var=unsupported
 
9309
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9310
    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\"`'
 
9311
 
 
9312
  else
 
9313
    whole_archive_flag_spec=''
 
9314
  fi
 
9315
  link_all_deplibs=yes
 
9316
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9317
  case $cc_basename in
 
9318
     ifort*) _lt_dar_can_shared=yes ;;
 
9319
     *) _lt_dar_can_shared=$GCC ;;
 
9320
  esac
 
9321
  if test "$_lt_dar_can_shared" = "yes"; then
 
9322
    output_verbose_link_cmd=func_echo_all
 
9323
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9324
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9325
    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}"
 
9326
    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}"
 
9327
 
 
9328
  else
 
9329
  ld_shlibs=no
 
9330
  fi
 
9331
 
 
9332
      ;;
 
9333
 
 
9334
    dgux*)
 
9335
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9336
      hardcode_libdir_flag_spec='-L$libdir'
 
9337
      hardcode_shlibpath_var=no
 
9338
      ;;
 
9339
 
 
9340
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9341
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9342
    # does not break anything, and helps significantly (at the cost of a little
 
9343
    # extra space).
 
9344
    freebsd2.2*)
 
9345
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9346
      hardcode_libdir_flag_spec='-R$libdir'
 
9347
      hardcode_direct=yes
 
9348
      hardcode_shlibpath_var=no
 
9349
      ;;
 
9350
 
 
9351
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9352
    freebsd2.*)
 
9353
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9354
      hardcode_direct=yes
 
9355
      hardcode_minus_L=yes
 
9356
      hardcode_shlibpath_var=no
 
9357
      ;;
 
9358
 
 
9359
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9360
    freebsd* | dragonfly*)
 
9361
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9362
      hardcode_libdir_flag_spec='-R$libdir'
 
9363
      hardcode_direct=yes
 
9364
      hardcode_shlibpath_var=no
 
9365
      ;;
 
9366
 
 
9367
    hpux9*)
 
9368
      if test "$GCC" = yes; then
 
9369
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9370
      else
 
9371
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9372
      fi
 
9373
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9374
      hardcode_libdir_separator=:
 
9375
      hardcode_direct=yes
 
9376
 
 
9377
      # hardcode_minus_L: Not really in the search PATH,
 
9378
      # but as the default location of the library.
 
9379
      hardcode_minus_L=yes
 
9380
      export_dynamic_flag_spec='${wl}-E'
 
9381
      ;;
 
9382
 
 
9383
    hpux10*)
 
9384
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9385
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9386
      else
 
9387
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9388
      fi
 
9389
      if test "$with_gnu_ld" = no; then
 
9390
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9391
        hardcode_libdir_separator=:
 
9392
        hardcode_direct=yes
 
9393
        hardcode_direct_absolute=yes
 
9394
        export_dynamic_flag_spec='${wl}-E'
 
9395
        # hardcode_minus_L: Not really in the search PATH,
 
9396
        # but as the default location of the library.
 
9397
        hardcode_minus_L=yes
 
9398
      fi
 
9399
      ;;
 
9400
 
 
9401
    hpux11*)
 
9402
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9403
        case $host_cpu in
 
9404
        hppa*64*)
 
9405
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9406
          ;;
 
9407
        ia64*)
 
9408
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9409
          ;;
 
9410
        *)
 
9411
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9412
          ;;
 
9413
        esac
 
9414
      else
 
9415
        case $host_cpu in
 
9416
        hppa*64*)
 
9417
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9418
          ;;
 
9419
        ia64*)
 
9420
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9421
          ;;
 
9422
        *)
 
9423
 
 
9424
          # Older versions of the 11.00 compiler do not understand -b yet
 
9425
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9426
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9427
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9428
if ${lt_cv_prog_compiler__b+:} false; then :
 
9429
  $as_echo_n "(cached) " >&6
 
9430
else
 
9431
  lt_cv_prog_compiler__b=no
 
9432
   save_LDFLAGS="$LDFLAGS"
 
9433
   LDFLAGS="$LDFLAGS -b"
 
9434
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9435
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9436
     # The linker can only warn and ignore the option if not recognized
 
9437
     # So say no if there are warnings
 
9438
     if test -s conftest.err; then
 
9439
       # Append any errors to the config.log.
 
9440
       cat conftest.err 1>&5
 
9441
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9442
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9443
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9444
         lt_cv_prog_compiler__b=yes
 
9445
       fi
 
9446
     else
 
9447
       lt_cv_prog_compiler__b=yes
 
9448
     fi
 
9449
   fi
 
9450
   $RM -r conftest*
 
9451
   LDFLAGS="$save_LDFLAGS"
 
9452
 
 
9453
fi
 
9454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9455
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9456
 
 
9457
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9458
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9459
else
 
9460
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9461
fi
 
9462
 
 
9463
          ;;
 
9464
        esac
 
9465
      fi
 
9466
      if test "$with_gnu_ld" = no; then
 
9467
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9468
        hardcode_libdir_separator=:
 
9469
 
 
9470
        case $host_cpu in
 
9471
        hppa*64*|ia64*)
 
9472
          hardcode_direct=no
 
9473
          hardcode_shlibpath_var=no
 
9474
          ;;
 
9475
        *)
 
9476
          hardcode_direct=yes
 
9477
          hardcode_direct_absolute=yes
 
9478
          export_dynamic_flag_spec='${wl}-E'
 
9479
 
 
9480
          # hardcode_minus_L: Not really in the search PATH,
 
9481
          # but as the default location of the library.
 
9482
          hardcode_minus_L=yes
 
9483
          ;;
 
9484
        esac
 
9485
      fi
 
9486
      ;;
 
9487
 
 
9488
    irix5* | irix6* | nonstopux*)
 
9489
      if test "$GCC" = yes; then
 
9490
        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'
 
9491
        # Try to use the -exported_symbol ld option, if it does not
 
9492
        # work, assume that -exports_file does not work either and
 
9493
        # implicitly export all symbols.
 
9494
        # This should be the same for all languages, so no per-tag cache variable.
 
9495
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9496
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9497
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9498
  $as_echo_n "(cached) " >&6
 
9499
else
 
9500
  save_LDFLAGS="$LDFLAGS"
 
9501
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9502
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9503
/* end confdefs.h.  */
 
9504
int foo (void) { return 0; }
 
9505
_ACEOF
 
9506
if ac_fn_c_try_link "$LINENO"; then :
 
9507
  lt_cv_irix_exported_symbol=yes
 
9508
else
 
9509
  lt_cv_irix_exported_symbol=no
 
9510
fi
 
9511
rm -f core conftest.err conftest.$ac_objext \
 
9512
    conftest$ac_exeext conftest.$ac_ext
 
9513
           LDFLAGS="$save_LDFLAGS"
 
9514
fi
 
9515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9516
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9517
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9518
          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'
 
9519
        fi
 
9520
      else
 
9521
        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'
 
9522
        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'
 
9523
      fi
 
9524
      archive_cmds_need_lc='no'
 
9525
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9526
      hardcode_libdir_separator=:
 
9527
      inherit_rpath=yes
 
9528
      link_all_deplibs=yes
 
9529
      ;;
 
9530
 
 
9531
    netbsd* | netbsdelf*-gnu)
 
9532
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9533
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9534
      else
 
9535
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9536
      fi
 
9537
      hardcode_libdir_flag_spec='-R$libdir'
 
9538
      hardcode_direct=yes
 
9539
      hardcode_shlibpath_var=no
 
9540
      ;;
 
9541
 
 
9542
    newsos6)
 
9543
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9544
      hardcode_direct=yes
 
9545
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9546
      hardcode_libdir_separator=:
 
9547
      hardcode_shlibpath_var=no
 
9548
      ;;
 
9549
 
 
9550
    *nto* | *qnx*)
 
9551
      ;;
 
9552
 
 
9553
    openbsd*)
 
9554
      if test -f /usr/libexec/ld.so; then
 
9555
        hardcode_direct=yes
 
9556
        hardcode_shlibpath_var=no
 
9557
        hardcode_direct_absolute=yes
 
9558
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9559
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9560
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9561
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9562
          export_dynamic_flag_spec='${wl}-E'
 
9563
        else
 
9564
          case $host_os in
 
9565
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9566
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9567
             hardcode_libdir_flag_spec='-R$libdir'
 
9568
             ;;
 
9569
           *)
 
9570
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9571
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9572
             ;;
 
9573
          esac
 
9574
        fi
 
9575
      else
 
9576
        ld_shlibs=no
 
9577
      fi
 
9578
      ;;
 
9579
 
 
9580
    os2*)
 
9581
      hardcode_libdir_flag_spec='-L$libdir'
 
9582
      hardcode_minus_L=yes
 
9583
      allow_undefined_flag=unsupported
 
9584
      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
9585
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9586
      ;;
 
9587
 
 
9588
    osf3*)
 
9589
      if test "$GCC" = yes; then
 
9590
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9591
        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'
 
9592
      else
 
9593
        allow_undefined_flag=' -expect_unresolved \*'
 
9594
        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'
 
9595
      fi
 
9596
      archive_cmds_need_lc='no'
 
9597
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9598
      hardcode_libdir_separator=:
 
9599
      ;;
 
9600
 
 
9601
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9602
      if test "$GCC" = yes; then
 
9603
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9604
        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'
 
9605
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9606
      else
 
9607
        allow_undefined_flag=' -expect_unresolved \*'
 
9608
        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'
 
9609
        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~
 
9610
        $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'
 
9611
 
 
9612
        # Both c and cxx compiler support -rpath directly
 
9613
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9614
      fi
 
9615
      archive_cmds_need_lc='no'
 
9616
      hardcode_libdir_separator=:
 
9617
      ;;
 
9618
 
 
9619
    solaris*)
 
9620
      no_undefined_flag=' -z defs'
 
9621
      if test "$GCC" = yes; then
 
9622
        wlarc='${wl}'
 
9623
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9624
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9625
          $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'
 
9626
      else
 
9627
        case `$CC -V 2>&1` in
 
9628
        *"Compilers 5.0"*)
 
9629
          wlarc=''
 
9630
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9631
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9632
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9633
          ;;
 
9634
        *)
 
9635
          wlarc='${wl}'
 
9636
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9637
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9638
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9639
          ;;
 
9640
        esac
 
9641
      fi
 
9642
      hardcode_libdir_flag_spec='-R$libdir'
 
9643
      hardcode_shlibpath_var=no
 
9644
      case $host_os in
 
9645
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9646
      *)
 
9647
        # The compiler driver will combine and reorder linker options,
 
9648
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9649
        # but is careful enough not to reorder.
 
9650
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9651
        if test "$GCC" = yes; then
 
9652
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9653
        else
 
9654
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9655
        fi
 
9656
        ;;
 
9657
      esac
 
9658
      link_all_deplibs=yes
 
9659
      ;;
 
9660
 
 
9661
    sunos4*)
 
9662
      if test "x$host_vendor" = xsequent; then
 
9663
        # Use $CC to link under sequent, because it throws in some extra .o
 
9664
        # files that make .init and .fini sections work.
 
9665
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9666
      else
 
9667
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9668
      fi
 
9669
      hardcode_libdir_flag_spec='-L$libdir'
 
9670
      hardcode_direct=yes
 
9671
      hardcode_minus_L=yes
 
9672
      hardcode_shlibpath_var=no
 
9673
      ;;
 
9674
 
 
9675
    sysv4)
 
9676
      case $host_vendor in
 
9677
        sni)
 
9678
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9679
          hardcode_direct=yes # is this really true???
 
9680
        ;;
 
9681
        siemens)
 
9682
          ## LD is ld it makes a PLAMLIB
 
9683
          ## CC just makes a GrossModule.
 
9684
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9685
          reload_cmds='$CC -r -o $output$reload_objs'
 
9686
          hardcode_direct=no
 
9687
        ;;
 
9688
        motorola)
 
9689
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9690
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9691
        ;;
 
9692
      esac
 
9693
      runpath_var='LD_RUN_PATH'
 
9694
      hardcode_shlibpath_var=no
 
9695
      ;;
 
9696
 
 
9697
    sysv4.3*)
 
9698
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9699
      hardcode_shlibpath_var=no
 
9700
      export_dynamic_flag_spec='-Bexport'
 
9701
      ;;
 
9702
 
 
9703
    sysv4*MP*)
 
9704
      if test -d /usr/nec; then
 
9705
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9706
        hardcode_shlibpath_var=no
 
9707
        runpath_var=LD_RUN_PATH
 
9708
        hardcode_runpath_var=yes
 
9709
        ld_shlibs=yes
 
9710
      fi
 
9711
      ;;
 
9712
 
 
9713
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9714
      no_undefined_flag='${wl}-z,text'
 
9715
      archive_cmds_need_lc=no
 
9716
      hardcode_shlibpath_var=no
 
9717
      runpath_var='LD_RUN_PATH'
 
9718
 
 
9719
      if test "$GCC" = yes; then
 
9720
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9721
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9722
      else
 
9723
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9724
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9725
      fi
 
9726
      ;;
 
9727
 
 
9728
    sysv5* | sco3.2v5* | sco5v6*)
 
9729
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9730
      # link with -lc, and that would cause any symbols used from libc to
 
9731
      # always be unresolved, which means just about no library would
 
9732
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9733
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9734
      # as -z defs.
 
9735
      no_undefined_flag='${wl}-z,text'
 
9736
      allow_undefined_flag='${wl}-z,nodefs'
 
9737
      archive_cmds_need_lc=no
 
9738
      hardcode_shlibpath_var=no
 
9739
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9740
      hardcode_libdir_separator=':'
 
9741
      link_all_deplibs=yes
 
9742
      export_dynamic_flag_spec='${wl}-Bexport'
 
9743
      runpath_var='LD_RUN_PATH'
 
9744
 
 
9745
      if test "$GCC" = yes; then
 
9746
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9747
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9748
      else
 
9749
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9750
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9751
      fi
 
9752
      ;;
 
9753
 
 
9754
    uts4*)
 
9755
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9756
      hardcode_libdir_flag_spec='-L$libdir'
 
9757
      hardcode_shlibpath_var=no
 
9758
      ;;
 
9759
 
 
9760
    *)
 
9761
      ld_shlibs=no
 
9762
      ;;
 
9763
    esac
 
9764
 
 
9765
    if test x$host_vendor = xsni; then
 
9766
      case $host in
 
9767
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9768
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9769
        ;;
 
9770
      esac
 
9771
    fi
 
9772
  fi
 
9773
 
 
9774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9775
$as_echo "$ld_shlibs" >&6; }
 
9776
test "$ld_shlibs" = no && can_build_shared=no
 
9777
 
 
9778
with_gnu_ld=$with_gnu_ld
 
9779
 
 
9780
 
 
9781
 
 
9782
 
 
9783
 
 
9784
 
 
9785
 
 
9786
 
 
9787
 
 
9788
 
 
9789
 
 
9790
 
 
9791
 
 
9792
 
 
9793
 
 
9794
#
 
9795
# Do we need to explicitly link libc?
 
9796
#
 
9797
case "x$archive_cmds_need_lc" in
 
9798
x|xyes)
 
9799
  # Assume -lc should be added
 
9800
  archive_cmds_need_lc=yes
 
9801
 
 
9802
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9803
    case $archive_cmds in
 
9804
    *'~'*)
 
9805
      # FIXME: we may have to deal with multi-command sequences.
 
9806
      ;;
 
9807
    '$CC '*)
 
9808
      # Test whether the compiler implicitly links with -lc since on some
 
9809
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9810
      # to ld, don't add -lc before -lgcc.
 
9811
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9812
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9813
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
9814
  $as_echo_n "(cached) " >&6
 
9815
else
 
9816
  $RM conftest*
 
9817
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9818
 
 
9819
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9820
  (eval $ac_compile) 2>&5
 
9821
  ac_status=$?
 
9822
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9823
  test $ac_status = 0; } 2>conftest.err; then
 
9824
          soname=conftest
 
9825
          lib=conftest
 
9826
          libobjs=conftest.$ac_objext
 
9827
          deplibs=
 
9828
          wl=$lt_prog_compiler_wl
 
9829
          pic_flag=$lt_prog_compiler_pic
 
9830
          compiler_flags=-v
 
9831
          linker_flags=-v
 
9832
          verstring=
 
9833
          output_objdir=.
 
9834
          libname=conftest
 
9835
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
9836
          allow_undefined_flag=
 
9837
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9838
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9839
  ac_status=$?
 
9840
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9841
  test $ac_status = 0; }
 
9842
          then
 
9843
            lt_cv_archive_cmds_need_lc=no
 
9844
          else
 
9845
            lt_cv_archive_cmds_need_lc=yes
 
9846
          fi
 
9847
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
9848
        else
 
9849
          cat conftest.err 1>&5
 
9850
        fi
 
9851
        $RM conftest*
 
9852
 
 
9853
fi
 
9854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
9855
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
9856
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
9857
      ;;
 
9858
    esac
 
9859
  fi
 
9860
  ;;
 
9861
esac
 
9862
 
 
9863
 
 
9864
 
 
9865
 
 
9866
 
 
9867
 
 
9868
 
 
9869
 
 
9870
 
 
9871
 
 
9872
 
 
9873
 
 
9874
 
 
9875
 
 
9876
 
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
 
 
9884
 
 
9885
 
 
9886
 
 
9887
 
 
9888
 
 
9889
 
 
9890
 
 
9891
 
 
9892
 
 
9893
 
 
9894
 
 
9895
 
 
9896
 
 
9897
 
 
9898
 
 
9899
 
 
9900
 
 
9901
 
 
9902
 
 
9903
 
 
9904
 
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
 
 
9911
 
 
9912
 
 
9913
 
 
9914
 
 
9915
 
 
9916
 
 
9917
 
 
9918
 
 
9919
 
 
9920
 
 
9921
 
 
9922
 
 
9923
 
 
9924
 
 
9925
 
 
9926
 
 
9927
 
 
9928
 
 
9929
 
 
9930
 
 
9931
 
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
 
 
9937
 
 
9938
 
 
9939
 
 
9940
 
 
9941
 
 
9942
 
 
9943
 
 
9944
 
 
9945
 
 
9946
 
 
9947
 
 
9948
 
 
9949
 
 
9950
 
 
9951
 
 
9952
 
 
9953
 
 
9954
 
 
9955
 
 
9956
 
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
 
 
9964
 
 
9965
 
 
9966
 
 
9967
 
 
9968
 
 
9969
 
 
9970
 
 
9971
 
 
9972
 
 
9973
 
 
9974
 
 
9975
 
 
9976
 
 
9977
 
 
9978
 
 
9979
 
 
9980
 
 
9981
 
 
9982
 
 
9983
 
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
 
 
9991
 
 
9992
 
 
9993
 
 
9994
 
 
9995
 
 
9996
 
 
9997
 
 
9998
 
 
9999
 
 
10000
 
 
10001
 
 
10002
 
 
10003
 
 
10004
 
 
10005
 
 
10006
 
 
10007
 
 
10008
 
 
10009
 
 
10010
 
 
10011
 
 
10012
 
 
10013
 
 
10014
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
10015
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
10016
 
 
10017
if test "$GCC" = yes; then
 
10018
  case $host_os in
 
10019
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
10020
    *) lt_awk_arg="/^libraries:/" ;;
 
10021
  esac
 
10022
  case $host_os in
 
10023
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
10024
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
10025
  esac
 
10026
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
10027
  case $lt_search_path_spec in
 
10028
  *\;*)
 
10029
    # if the path contains ";" then we assume it to be the separator
 
10030
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10031
    # assumed that no part of a normal pathname contains ";" but that should
 
10032
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10033
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
10034
    ;;
 
10035
  *)
 
10036
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
10037
    ;;
 
10038
  esac
 
10039
  # Ok, now we have the path, separated by spaces, we can step through it
 
10040
  # and add multilib dir if necessary.
 
10041
  lt_tmp_lt_search_path_spec=
 
10042
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
10043
  for lt_sys_path in $lt_search_path_spec; do
 
10044
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
10045
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
10046
    else
 
10047
      test -d "$lt_sys_path" && \
 
10048
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
10049
    fi
 
10050
  done
 
10051
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
10052
BEGIN {RS=" "; FS="/|\n";} {
 
10053
  lt_foo="";
 
10054
  lt_count=0;
 
10055
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
10056
    if ($lt_i != "" && $lt_i != ".") {
 
10057
      if ($lt_i == "..") {
 
10058
        lt_count++;
 
10059
      } else {
 
10060
        if (lt_count == 0) {
 
10061
          lt_foo="/" $lt_i lt_foo;
 
10062
        } else {
 
10063
          lt_count--;
 
10064
        }
 
10065
      }
 
10066
    }
 
10067
  }
 
10068
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
10069
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
10070
}'`
 
10071
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
10072
  # for these hosts.
 
10073
  case $host_os in
 
10074
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
10075
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
10076
  esac
 
10077
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
10078
else
 
10079
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10080
fi
 
10081
library_names_spec=
 
10082
libname_spec='lib$name'
 
10083
soname_spec=
 
10084
shrext_cmds=".so"
 
10085
postinstall_cmds=
 
10086
postuninstall_cmds=
 
10087
finish_cmds=
 
10088
finish_eval=
 
10089
shlibpath_var=
 
10090
shlibpath_overrides_runpath=unknown
 
10091
version_type=none
 
10092
dynamic_linker="$host_os ld.so"
 
10093
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10094
need_lib_prefix=unknown
 
10095
hardcode_into_libs=no
 
10096
 
 
10097
# when you set need_version to no, make sure it does not cause -set_version
 
10098
# flags to be left without arguments
 
10099
need_version=unknown
 
10100
 
 
10101
case $host_os in
 
10102
aix3*)
 
10103
  version_type=linux # correct to gnu/linux during the next big refactor
 
10104
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10105
  shlibpath_var=LIBPATH
 
10106
 
 
10107
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10108
  soname_spec='${libname}${release}${shared_ext}$major'
 
10109
  ;;
 
10110
 
 
10111
aix[4-9]*)
 
10112
  version_type=linux # correct to gnu/linux during the next big refactor
 
10113
  need_lib_prefix=no
 
10114
  need_version=no
 
10115
  hardcode_into_libs=yes
 
10116
  if test "$host_cpu" = ia64; then
 
10117
    # AIX 5 supports IA64
 
10118
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10119
    shlibpath_var=LD_LIBRARY_PATH
 
10120
  else
 
10121
    # With GCC up to 2.95.x, collect2 would create an import file
 
10122
    # for dependence libraries.  The import file would start with
 
10123
    # the line `#! .'.  This would cause the generated library to
 
10124
    # depend on `.', always an invalid library.  This was fixed in
 
10125
    # development snapshots of GCC prior to 3.0.
 
10126
    case $host_os in
 
10127
      aix4 | aix4.[01] | aix4.[01].*)
 
10128
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10129
           echo ' yes '
 
10130
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10131
        :
 
10132
      else
 
10133
        can_build_shared=no
 
10134
      fi
 
10135
      ;;
 
10136
    esac
 
10137
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10138
    # soname into executable. Probably we can add versioning support to
 
10139
    # collect2, so additional links can be useful in future.
 
10140
    if test "$aix_use_runtimelinking" = yes; then
 
10141
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10142
      # instead of lib<name>.a to let people know that these are not
 
10143
      # typical AIX shared libraries.
 
10144
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10145
    else
 
10146
      # We preserve .a as extension for shared libraries through AIX4.2
 
10147
      # and later when we are not doing run time linking.
 
10148
      library_names_spec='${libname}${release}.a $libname.a'
 
10149
      soname_spec='${libname}${release}${shared_ext}$major'
 
10150
    fi
 
10151
    shlibpath_var=LIBPATH
 
10152
  fi
 
10153
  ;;
 
10154
 
 
10155
amigaos*)
 
10156
  case $host_cpu in
 
10157
  powerpc)
 
10158
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10159
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10160
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10161
    ;;
 
10162
  m68k)
 
10163
    library_names_spec='$libname.ixlibrary $libname.a'
 
10164
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10165
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10166
    ;;
 
10167
  esac
 
10168
  ;;
 
10169
 
 
10170
beos*)
 
10171
  library_names_spec='${libname}${shared_ext}'
 
10172
  dynamic_linker="$host_os ld.so"
 
10173
  shlibpath_var=LIBRARY_PATH
 
10174
  ;;
 
10175
 
 
10176
bsdi[45]*)
 
10177
  version_type=linux # correct to gnu/linux during the next big refactor
 
10178
  need_version=no
 
10179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10180
  soname_spec='${libname}${release}${shared_ext}$major'
 
10181
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10182
  shlibpath_var=LD_LIBRARY_PATH
 
10183
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10184
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10185
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10186
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10187
  # libtool to hard-code these into programs
 
10188
  ;;
 
10189
 
 
10190
cygwin* | mingw* | pw32* | cegcc*)
 
10191
  version_type=windows
 
10192
  shrext_cmds=".dll"
 
10193
  need_version=no
 
10194
  need_lib_prefix=no
 
10195
 
 
10196
  case $GCC,$cc_basename in
 
10197
  yes,*)
 
10198
    # gcc
 
10199
    library_names_spec='$libname.dll.a'
 
10200
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10201
    postinstall_cmds='base_file=`basename \${file}`~
 
10202
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10203
      dldir=$destdir/`dirname \$dlpath`~
 
10204
      test -d \$dldir || mkdir -p \$dldir~
 
10205
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10206
      chmod a+x \$dldir/$dlname~
 
10207
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10208
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10209
      fi'
 
10210
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10211
      dlpath=$dir/\$dldll~
 
10212
       $RM \$dlpath'
 
10213
    shlibpath_overrides_runpath=yes
 
10214
 
 
10215
    case $host_os in
 
10216
    cygwin*)
 
10217
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10218
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10219
 
 
10220
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10221
      ;;
 
10222
    mingw* | cegcc*)
 
10223
      # MinGW DLLs use traditional 'lib' prefix
 
10224
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10225
      ;;
 
10226
    pw32*)
 
10227
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10228
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10229
      ;;
 
10230
    esac
 
10231
    dynamic_linker='Win32 ld.exe'
 
10232
    ;;
 
10233
 
 
10234
  *,cl*)
 
10235
    # Native MSVC
 
10236
    libname_spec='$name'
 
10237
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10238
    library_names_spec='${libname}.dll.lib'
 
10239
 
 
10240
    case $build_os in
 
10241
    mingw*)
 
10242
      sys_lib_search_path_spec=
 
10243
      lt_save_ifs=$IFS
 
10244
      IFS=';'
 
10245
      for lt_path in $LIB
 
10246
      do
 
10247
        IFS=$lt_save_ifs
 
10248
        # Let DOS variable expansion print the short 8.3 style file name.
 
10249
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10250
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10251
      done
 
10252
      IFS=$lt_save_ifs
 
10253
      # Convert to MSYS style.
 
10254
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10255
      ;;
 
10256
    cygwin*)
 
10257
      # Convert to unix form, then to dos form, then back to unix form
 
10258
      # but this time dos style (no spaces!) so that the unix form looks
 
10259
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10260
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10261
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10262
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10263
      ;;
 
10264
    *)
 
10265
      sys_lib_search_path_spec="$LIB"
 
10266
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10267
        # It is most probably a Windows format PATH.
 
10268
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10269
      else
 
10270
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10271
      fi
 
10272
      # FIXME: find the short name or the path components, as spaces are
 
10273
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10274
      ;;
 
10275
    esac
 
10276
 
 
10277
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10278
    postinstall_cmds='base_file=`basename \${file}`~
 
10279
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10280
      dldir=$destdir/`dirname \$dlpath`~
 
10281
      test -d \$dldir || mkdir -p \$dldir~
 
10282
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10283
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10284
      dlpath=$dir/\$dldll~
 
10285
       $RM \$dlpath'
 
10286
    shlibpath_overrides_runpath=yes
 
10287
    dynamic_linker='Win32 link.exe'
 
10288
    ;;
 
10289
 
 
10290
  *)
 
10291
    # Assume MSVC wrapper
 
10292
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10293
    dynamic_linker='Win32 ld.exe'
 
10294
    ;;
 
10295
  esac
 
10296
  # FIXME: first we should search . and the directory the executable is in
 
10297
  shlibpath_var=PATH
 
10298
  ;;
 
10299
 
 
10300
darwin* | rhapsody*)
 
10301
  dynamic_linker="$host_os dyld"
 
10302
  version_type=darwin
 
10303
  need_lib_prefix=no
 
10304
  need_version=no
 
10305
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10306
  soname_spec='${libname}${release}${major}$shared_ext'
 
10307
  shlibpath_overrides_runpath=yes
 
10308
  shlibpath_var=DYLD_LIBRARY_PATH
 
10309
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10310
 
 
10311
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10312
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10313
  ;;
 
10314
 
 
10315
dgux*)
 
10316
  version_type=linux # correct to gnu/linux during the next big refactor
 
10317
  need_lib_prefix=no
 
10318
  need_version=no
 
10319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10320
  soname_spec='${libname}${release}${shared_ext}$major'
 
10321
  shlibpath_var=LD_LIBRARY_PATH
 
10322
  ;;
 
10323
 
 
10324
freebsd* | dragonfly*)
 
10325
  # DragonFly does not have aout.  When/if they implement a new
 
10326
  # versioning mechanism, adjust this.
 
10327
  if test -x /usr/bin/objformat; then
 
10328
    objformat=`/usr/bin/objformat`
 
10329
  else
 
10330
    case $host_os in
 
10331
    freebsd[23].*) objformat=aout ;;
 
10332
    *) objformat=elf ;;
 
10333
    esac
 
10334
  fi
 
10335
  version_type=freebsd-$objformat
 
10336
  case $version_type in
 
10337
    freebsd-elf*)
 
10338
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10339
      need_version=no
 
10340
      need_lib_prefix=no
 
10341
      ;;
 
10342
    freebsd-*)
 
10343
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10344
      need_version=yes
 
10345
      ;;
 
10346
  esac
 
10347
  shlibpath_var=LD_LIBRARY_PATH
 
10348
  case $host_os in
 
10349
  freebsd2.*)
 
10350
    shlibpath_overrides_runpath=yes
 
10351
    ;;
 
10352
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10353
    shlibpath_overrides_runpath=yes
 
10354
    hardcode_into_libs=yes
 
10355
    ;;
 
10356
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10357
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10358
    shlibpath_overrides_runpath=no
 
10359
    hardcode_into_libs=yes
 
10360
    ;;
 
10361
  *) # from 4.6 on, and DragonFly
 
10362
    shlibpath_overrides_runpath=yes
 
10363
    hardcode_into_libs=yes
 
10364
    ;;
 
10365
  esac
 
10366
  ;;
 
10367
 
 
10368
gnu*)
 
10369
  version_type=linux # correct to gnu/linux during the next big refactor
 
10370
  need_lib_prefix=no
 
10371
  need_version=no
 
10372
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10373
  soname_spec='${libname}${release}${shared_ext}$major'
 
10374
  shlibpath_var=LD_LIBRARY_PATH
 
10375
  shlibpath_overrides_runpath=no
 
10376
  hardcode_into_libs=yes
 
10377
  ;;
 
10378
 
 
10379
haiku*)
 
10380
  version_type=linux # correct to gnu/linux during the next big refactor
 
10381
  need_lib_prefix=no
 
10382
  need_version=no
 
10383
  dynamic_linker="$host_os runtime_loader"
 
10384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10385
  soname_spec='${libname}${release}${shared_ext}$major'
 
10386
  shlibpath_var=LIBRARY_PATH
 
10387
  shlibpath_overrides_runpath=yes
 
10388
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10389
  hardcode_into_libs=yes
 
10390
  ;;
 
10391
 
 
10392
hpux9* | hpux10* | hpux11*)
 
10393
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10394
  # link against other versions.
 
10395
  version_type=sunos
 
10396
  need_lib_prefix=no
 
10397
  need_version=no
 
10398
  case $host_cpu in
 
10399
  ia64*)
 
10400
    shrext_cmds='.so'
 
10401
    hardcode_into_libs=yes
 
10402
    dynamic_linker="$host_os dld.so"
 
10403
    shlibpath_var=LD_LIBRARY_PATH
 
10404
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10405
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10406
    soname_spec='${libname}${release}${shared_ext}$major'
 
10407
    if test "X$HPUX_IA64_MODE" = X32; then
 
10408
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10409
    else
 
10410
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10411
    fi
 
10412
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10413
    ;;
 
10414
  hppa*64*)
 
10415
    shrext_cmds='.sl'
 
10416
    hardcode_into_libs=yes
 
10417
    dynamic_linker="$host_os dld.sl"
 
10418
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10419
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10420
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10421
    soname_spec='${libname}${release}${shared_ext}$major'
 
10422
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10423
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10424
    ;;
 
10425
  *)
 
10426
    shrext_cmds='.sl'
 
10427
    dynamic_linker="$host_os dld.sl"
 
10428
    shlibpath_var=SHLIB_PATH
 
10429
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10430
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10431
    soname_spec='${libname}${release}${shared_ext}$major'
 
10432
    ;;
 
10433
  esac
 
10434
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10435
  postinstall_cmds='chmod 555 $lib'
 
10436
  # or fails outright, so override atomically:
 
10437
  install_override_mode=555
 
10438
  ;;
 
10439
 
 
10440
interix[3-9]*)
 
10441
  version_type=linux # correct to gnu/linux during the next big refactor
 
10442
  need_lib_prefix=no
 
10443
  need_version=no
 
10444
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10445
  soname_spec='${libname}${release}${shared_ext}$major'
 
10446
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10447
  shlibpath_var=LD_LIBRARY_PATH
 
10448
  shlibpath_overrides_runpath=no
 
10449
  hardcode_into_libs=yes
 
10450
  ;;
 
10451
 
 
10452
irix5* | irix6* | nonstopux*)
 
10453
  case $host_os in
 
10454
    nonstopux*) version_type=nonstopux ;;
 
10455
    *)
 
10456
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10457
                version_type=linux # correct to gnu/linux during the next big refactor
 
10458
        else
 
10459
                version_type=irix
 
10460
        fi ;;
 
10461
  esac
 
10462
  need_lib_prefix=no
 
10463
  need_version=no
 
10464
  soname_spec='${libname}${release}${shared_ext}$major'
 
10465
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10466
  case $host_os in
 
10467
  irix5* | nonstopux*)
 
10468
    libsuff= shlibsuff=
 
10469
    ;;
 
10470
  *)
 
10471
    case $LD in # libtool.m4 will add one of these switches to LD
 
10472
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10473
      libsuff= shlibsuff= libmagic=32-bit;;
 
10474
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10475
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10476
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10477
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10478
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10479
    esac
 
10480
    ;;
 
10481
  esac
 
10482
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10483
  shlibpath_overrides_runpath=no
 
10484
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10485
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10486
  hardcode_into_libs=yes
 
10487
  ;;
 
10488
 
 
10489
# No shared lib support for Linux oldld, aout, or coff.
 
10490
linux*oldld* | linux*aout* | linux*coff*)
 
10491
  dynamic_linker=no
 
10492
  ;;
 
10493
 
 
10494
# This must be glibc/ELF.
 
10495
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10496
  version_type=linux # correct to gnu/linux during the next big refactor
 
10497
  need_lib_prefix=no
 
10498
  need_version=no
 
10499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10500
  soname_spec='${libname}${release}${shared_ext}$major'
 
10501
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10502
  shlibpath_var=LD_LIBRARY_PATH
 
10503
  shlibpath_overrides_runpath=no
 
10504
 
 
10505
  # Some binutils ld are patched to set DT_RUNPATH
 
10506
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10507
  $as_echo_n "(cached) " >&6
 
10508
else
 
10509
  lt_cv_shlibpath_overrides_runpath=no
 
10510
    save_LDFLAGS=$LDFLAGS
 
10511
    save_libdir=$libdir
 
10512
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10513
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10514
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10515
/* end confdefs.h.  */
 
10516
 
 
10517
int
 
10518
main ()
 
10519
{
 
10520
 
 
10521
  ;
 
10522
  return 0;
 
10523
}
 
10524
_ACEOF
 
10525
if ac_fn_c_try_link "$LINENO"; then :
 
10526
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10527
  lt_cv_shlibpath_overrides_runpath=yes
 
10528
fi
 
10529
fi
 
10530
rm -f core conftest.err conftest.$ac_objext \
 
10531
    conftest$ac_exeext conftest.$ac_ext
 
10532
    LDFLAGS=$save_LDFLAGS
 
10533
    libdir=$save_libdir
 
10534
 
 
10535
fi
 
10536
 
 
10537
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10538
 
 
10539
  # This implies no fast_install, which is unacceptable.
 
10540
  # Some rework will be needed to allow for fast_install
 
10541
  # before this can be enabled.
 
10542
  hardcode_into_libs=yes
 
10543
 
 
10544
  # Append ld.so.conf contents to the search path
 
10545
  if test -f /etc/ld.so.conf; then
 
10546
    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' ' '`
 
10547
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10548
  fi
 
10549
 
 
10550
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10551
  # powerpc, because MkLinux only supported shared libraries with the
 
10552
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10553
  # most powerpc-linux boxes support dynamic linking these days and
 
10554
  # people can always --disable-shared, the test was removed, and we
 
10555
  # assume the GNU/Linux dynamic linker is in use.
 
10556
  dynamic_linker='GNU/Linux ld.so'
 
10557
  ;;
 
10558
 
 
10559
netbsdelf*-gnu)
 
10560
  version_type=linux
 
10561
  need_lib_prefix=no
 
10562
  need_version=no
 
10563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10564
  soname_spec='${libname}${release}${shared_ext}$major'
 
10565
  shlibpath_var=LD_LIBRARY_PATH
 
10566
  shlibpath_overrides_runpath=no
 
10567
  hardcode_into_libs=yes
 
10568
  dynamic_linker='NetBSD ld.elf_so'
 
10569
  ;;
 
10570
 
 
10571
netbsd*)
 
10572
  version_type=sunos
 
10573
  need_lib_prefix=no
 
10574
  need_version=no
 
10575
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10576
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10577
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10578
    dynamic_linker='NetBSD (a.out) ld.so'
 
10579
  else
 
10580
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10581
    soname_spec='${libname}${release}${shared_ext}$major'
 
10582
    dynamic_linker='NetBSD ld.elf_so'
 
10583
  fi
 
10584
  shlibpath_var=LD_LIBRARY_PATH
 
10585
  shlibpath_overrides_runpath=yes
 
10586
  hardcode_into_libs=yes
 
10587
  ;;
 
10588
 
 
10589
newsos6)
 
10590
  version_type=linux # correct to gnu/linux during the next big refactor
 
10591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10592
  shlibpath_var=LD_LIBRARY_PATH
 
10593
  shlibpath_overrides_runpath=yes
 
10594
  ;;
 
10595
 
 
10596
*nto* | *qnx*)
 
10597
  version_type=qnx
 
10598
  need_lib_prefix=no
 
10599
  need_version=no
 
10600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10601
  soname_spec='${libname}${release}${shared_ext}$major'
 
10602
  shlibpath_var=LD_LIBRARY_PATH
 
10603
  shlibpath_overrides_runpath=no
 
10604
  hardcode_into_libs=yes
 
10605
  dynamic_linker='ldqnx.so'
 
10606
  ;;
 
10607
 
 
10608
openbsd*)
 
10609
  version_type=sunos
 
10610
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10611
  need_lib_prefix=no
 
10612
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10613
  case $host_os in
 
10614
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10615
    *)                          need_version=no  ;;
 
10616
  esac
 
10617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10618
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10619
  shlibpath_var=LD_LIBRARY_PATH
 
10620
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10621
    case $host_os in
 
10622
      openbsd2.[89] | openbsd2.[89].*)
 
10623
        shlibpath_overrides_runpath=no
 
10624
        ;;
 
10625
      *)
 
10626
        shlibpath_overrides_runpath=yes
 
10627
        ;;
 
10628
      esac
 
10629
  else
 
10630
    shlibpath_overrides_runpath=yes
 
10631
  fi
 
10632
  ;;
 
10633
 
 
10634
os2*)
 
10635
  libname_spec='$name'
 
10636
  shrext_cmds=".dll"
 
10637
  need_lib_prefix=no
 
10638
  library_names_spec='$libname${shared_ext} $libname.a'
 
10639
  dynamic_linker='OS/2 ld.exe'
 
10640
  shlibpath_var=LIBPATH
 
10641
  ;;
 
10642
 
 
10643
osf3* | osf4* | osf5*)
 
10644
  version_type=osf
 
10645
  need_lib_prefix=no
 
10646
  need_version=no
 
10647
  soname_spec='${libname}${release}${shared_ext}$major'
 
10648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10649
  shlibpath_var=LD_LIBRARY_PATH
 
10650
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10651
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10652
  ;;
 
10653
 
 
10654
rdos*)
 
10655
  dynamic_linker=no
 
10656
  ;;
 
10657
 
 
10658
solaris*)
 
10659
  version_type=linux # correct to gnu/linux during the next big refactor
 
10660
  need_lib_prefix=no
 
10661
  need_version=no
 
10662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10663
  soname_spec='${libname}${release}${shared_ext}$major'
 
10664
  shlibpath_var=LD_LIBRARY_PATH
 
10665
  shlibpath_overrides_runpath=yes
 
10666
  hardcode_into_libs=yes
 
10667
  # ldd complains unless libraries are executable
 
10668
  postinstall_cmds='chmod +x $lib'
 
10669
  ;;
 
10670
 
 
10671
sunos4*)
 
10672
  version_type=sunos
 
10673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10674
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10675
  shlibpath_var=LD_LIBRARY_PATH
 
10676
  shlibpath_overrides_runpath=yes
 
10677
  if test "$with_gnu_ld" = yes; then
 
10678
    need_lib_prefix=no
 
10679
  fi
 
10680
  need_version=yes
 
10681
  ;;
 
10682
 
 
10683
sysv4 | sysv4.3*)
 
10684
  version_type=linux # correct to gnu/linux during the next big refactor
 
10685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10686
  soname_spec='${libname}${release}${shared_ext}$major'
 
10687
  shlibpath_var=LD_LIBRARY_PATH
 
10688
  case $host_vendor in
 
10689
    sni)
 
10690
      shlibpath_overrides_runpath=no
 
10691
      need_lib_prefix=no
 
10692
      runpath_var=LD_RUN_PATH
 
10693
      ;;
 
10694
    siemens)
 
10695
      need_lib_prefix=no
 
10696
      ;;
 
10697
    motorola)
 
10698
      need_lib_prefix=no
 
10699
      need_version=no
 
10700
      shlibpath_overrides_runpath=no
 
10701
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10702
      ;;
 
10703
  esac
 
10704
  ;;
 
10705
 
 
10706
sysv4*MP*)
 
10707
  if test -d /usr/nec ;then
 
10708
    version_type=linux # correct to gnu/linux during the next big refactor
 
10709
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10710
    soname_spec='$libname${shared_ext}.$major'
 
10711
    shlibpath_var=LD_LIBRARY_PATH
 
10712
  fi
 
10713
  ;;
 
10714
 
 
10715
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10716
  version_type=freebsd-elf
 
10717
  need_lib_prefix=no
 
10718
  need_version=no
 
10719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10720
  soname_spec='${libname}${release}${shared_ext}$major'
 
10721
  shlibpath_var=LD_LIBRARY_PATH
 
10722
  shlibpath_overrides_runpath=yes
 
10723
  hardcode_into_libs=yes
 
10724
  if test "$with_gnu_ld" = yes; then
 
10725
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10726
  else
 
10727
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10728
    case $host_os in
 
10729
      sco3.2v5*)
 
10730
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10731
        ;;
 
10732
    esac
 
10733
  fi
 
10734
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10735
  ;;
 
10736
 
 
10737
tpf*)
 
10738
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10739
  version_type=linux # correct to gnu/linux during the next big refactor
 
10740
  need_lib_prefix=no
 
10741
  need_version=no
 
10742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10743
  shlibpath_var=LD_LIBRARY_PATH
 
10744
  shlibpath_overrides_runpath=no
 
10745
  hardcode_into_libs=yes
 
10746
  ;;
 
10747
 
 
10748
uts4*)
 
10749
  version_type=linux # correct to gnu/linux during the next big refactor
 
10750
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10751
  soname_spec='${libname}${release}${shared_ext}$major'
 
10752
  shlibpath_var=LD_LIBRARY_PATH
 
10753
  ;;
 
10754
 
 
10755
*)
 
10756
  dynamic_linker=no
 
10757
  ;;
 
10758
esac
 
10759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10760
$as_echo "$dynamic_linker" >&6; }
 
10761
test "$dynamic_linker" = no && can_build_shared=no
 
10762
 
 
10763
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10764
if test "$GCC" = yes; then
 
10765
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10766
fi
 
10767
 
 
10768
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10769
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10770
fi
 
10771
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10772
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10773
fi
 
10774
 
 
10775
 
 
10776
 
 
10777
 
 
10778
 
 
10779
 
 
10780
 
 
10781
 
 
10782
 
 
10783
 
 
10784
 
 
10785
 
 
10786
 
 
10787
 
 
10788
 
 
10789
 
 
10790
 
 
10791
 
 
10792
 
 
10793
 
 
10794
 
 
10795
 
 
10796
 
 
10797
 
 
10798
 
 
10799
 
 
10800
 
 
10801
 
 
10802
 
 
10803
 
 
10804
 
 
10805
 
 
10806
 
 
10807
 
 
10808
 
 
10809
 
 
10810
 
 
10811
 
 
10812
 
 
10813
 
 
10814
 
 
10815
 
 
10816
 
 
10817
 
 
10818
 
 
10819
 
 
10820
 
 
10821
 
 
10822
 
 
10823
 
 
10824
 
 
10825
 
 
10826
 
 
10827
 
 
10828
 
 
10829
 
 
10830
 
 
10831
 
 
10832
 
 
10833
 
 
10834
 
 
10835
 
 
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
 
10841
 
 
10842
 
 
10843
 
 
10844
 
 
10845
 
 
10846
 
 
10847
 
 
10848
 
 
10849
 
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
 
 
10855
 
 
10856
 
 
10857
 
 
10858
 
 
10859
 
 
10860
 
 
10861
 
 
10862
 
 
10863
 
 
10864
 
 
10865
 
 
10866
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10867
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10868
hardcode_action=
 
10869
if test -n "$hardcode_libdir_flag_spec" ||
 
10870
   test -n "$runpath_var" ||
 
10871
   test "X$hardcode_automatic" = "Xyes" ; then
 
10872
 
 
10873
  # We can hardcode non-existent directories.
 
10874
  if test "$hardcode_direct" != no &&
 
10875
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10876
     # have to relink, otherwise we might link with an installed library
 
10877
     # when we should be linking with a yet-to-be-installed one
 
10878
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10879
     test "$hardcode_minus_L" != no; then
 
10880
    # Linking always hardcodes the temporary library directory.
 
10881
    hardcode_action=relink
 
10882
  else
 
10883
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10884
    hardcode_action=immediate
 
10885
  fi
 
10886
else
 
10887
  # We cannot hardcode anything, or else we can only hardcode existing
 
10888
  # directories.
 
10889
  hardcode_action=unsupported
 
10890
fi
 
10891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10892
$as_echo "$hardcode_action" >&6; }
 
10893
 
 
10894
if test "$hardcode_action" = relink ||
 
10895
   test "$inherit_rpath" = yes; then
 
10896
  # Fast installation is not supported
 
10897
  enable_fast_install=no
 
10898
elif test "$shlibpath_overrides_runpath" = yes ||
 
10899
     test "$enable_shared" = no; then
 
10900
  # Fast installation is not necessary
 
10901
  enable_fast_install=needless
 
10902
fi
 
10903
 
 
10904
 
 
10905
 
 
10906
 
 
10907
 
 
10908
 
 
10909
  if test "x$enable_dlopen" != xyes; then
 
10910
  enable_dlopen=unknown
 
10911
  enable_dlopen_self=unknown
 
10912
  enable_dlopen_self_static=unknown
 
10913
else
 
10914
  lt_cv_dlopen=no
 
10915
  lt_cv_dlopen_libs=
 
10916
 
 
10917
  case $host_os in
 
10918
  beos*)
 
10919
    lt_cv_dlopen="load_add_on"
 
10920
    lt_cv_dlopen_libs=
 
10921
    lt_cv_dlopen_self=yes
 
10922
    ;;
 
10923
 
 
10924
  mingw* | pw32* | cegcc*)
 
10925
    lt_cv_dlopen="LoadLibrary"
 
10926
    lt_cv_dlopen_libs=
 
10927
    ;;
 
10928
 
 
10929
  cygwin*)
 
10930
    lt_cv_dlopen="dlopen"
 
10931
    lt_cv_dlopen_libs=
 
10932
    ;;
 
10933
 
 
10934
  darwin*)
 
10935
  # if libdl is installed we need to link against it
 
10936
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10937
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10938
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10939
  $as_echo_n "(cached) " >&6
 
10940
else
 
10941
  ac_check_lib_save_LIBS=$LIBS
 
10942
LIBS="-ldl  $LIBS"
 
10943
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10944
/* end confdefs.h.  */
 
10945
 
 
10946
/* Override any GCC internal prototype to avoid an error.
 
10947
   Use char because int might match the return type of a GCC
 
10948
   builtin and then its argument prototype would still apply.  */
 
10949
#ifdef __cplusplus
 
10950
extern "C"
 
10951
#endif
 
10952
char dlopen ();
 
10953
int
 
10954
main ()
 
10955
{
 
10956
return dlopen ();
 
10957
  ;
 
10958
  return 0;
 
10959
}
 
10960
_ACEOF
 
10961
if ac_fn_c_try_link "$LINENO"; then :
 
10962
  ac_cv_lib_dl_dlopen=yes
 
10963
else
 
10964
  ac_cv_lib_dl_dlopen=no
 
10965
fi
 
10966
rm -f core conftest.err conftest.$ac_objext \
 
10967
    conftest$ac_exeext conftest.$ac_ext
 
10968
LIBS=$ac_check_lib_save_LIBS
 
10969
fi
 
10970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10971
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10972
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10973
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10974
else
 
10975
 
 
10976
    lt_cv_dlopen="dyld"
 
10977
    lt_cv_dlopen_libs=
 
10978
    lt_cv_dlopen_self=yes
 
10979
 
 
10980
fi
 
10981
 
 
10982
    ;;
 
10983
 
 
10984
  *)
 
10985
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10986
if test "x$ac_cv_func_shl_load" = xyes; then :
 
10987
  lt_cv_dlopen="shl_load"
 
10988
else
 
10989
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10990
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10991
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
10992
  $as_echo_n "(cached) " >&6
 
10993
else
 
10994
  ac_check_lib_save_LIBS=$LIBS
 
10995
LIBS="-ldld  $LIBS"
 
10996
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10997
/* end confdefs.h.  */
 
10998
 
 
10999
/* Override any GCC internal prototype to avoid an error.
 
11000
   Use char because int might match the return type of a GCC
 
11001
   builtin and then its argument prototype would still apply.  */
 
11002
#ifdef __cplusplus
 
11003
extern "C"
 
11004
#endif
 
11005
char shl_load ();
 
11006
int
 
11007
main ()
 
11008
{
 
11009
return shl_load ();
 
11010
  ;
 
11011
  return 0;
 
11012
}
 
11013
_ACEOF
 
11014
if ac_fn_c_try_link "$LINENO"; then :
 
11015
  ac_cv_lib_dld_shl_load=yes
 
11016
else
 
11017
  ac_cv_lib_dld_shl_load=no
 
11018
fi
 
11019
rm -f core conftest.err conftest.$ac_objext \
 
11020
    conftest$ac_exeext conftest.$ac_ext
 
11021
LIBS=$ac_check_lib_save_LIBS
 
11022
fi
 
11023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
11024
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
11025
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
11026
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
11027
else
 
11028
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
11029
if test "x$ac_cv_func_dlopen" = xyes; then :
 
11030
  lt_cv_dlopen="dlopen"
 
11031
else
 
11032
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
11033
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
11034
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
11035
  $as_echo_n "(cached) " >&6
 
11036
else
 
11037
  ac_check_lib_save_LIBS=$LIBS
 
11038
LIBS="-ldl  $LIBS"
 
11039
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11040
/* end confdefs.h.  */
 
11041
 
 
11042
/* Override any GCC internal prototype to avoid an error.
 
11043
   Use char because int might match the return type of a GCC
 
11044
   builtin and then its argument prototype would still apply.  */
 
11045
#ifdef __cplusplus
 
11046
extern "C"
 
11047
#endif
 
11048
char dlopen ();
 
11049
int
 
11050
main ()
 
11051
{
 
11052
return dlopen ();
 
11053
  ;
 
11054
  return 0;
 
11055
}
 
11056
_ACEOF
 
11057
if ac_fn_c_try_link "$LINENO"; then :
 
11058
  ac_cv_lib_dl_dlopen=yes
 
11059
else
 
11060
  ac_cv_lib_dl_dlopen=no
 
11061
fi
 
11062
rm -f core conftest.err conftest.$ac_objext \
 
11063
    conftest$ac_exeext conftest.$ac_ext
 
11064
LIBS=$ac_check_lib_save_LIBS
 
11065
fi
 
11066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
11067
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
11068
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
11069
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11070
else
 
11071
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
11072
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
11073
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
11074
  $as_echo_n "(cached) " >&6
 
11075
else
 
11076
  ac_check_lib_save_LIBS=$LIBS
 
11077
LIBS="-lsvld  $LIBS"
 
11078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11079
/* end confdefs.h.  */
 
11080
 
 
11081
/* Override any GCC internal prototype to avoid an error.
 
11082
   Use char because int might match the return type of a GCC
 
11083
   builtin and then its argument prototype would still apply.  */
 
11084
#ifdef __cplusplus
 
11085
extern "C"
 
11086
#endif
 
11087
char dlopen ();
 
11088
int
 
11089
main ()
 
11090
{
 
11091
return dlopen ();
 
11092
  ;
 
11093
  return 0;
 
11094
}
 
11095
_ACEOF
 
11096
if ac_fn_c_try_link "$LINENO"; then :
 
11097
  ac_cv_lib_svld_dlopen=yes
 
11098
else
 
11099
  ac_cv_lib_svld_dlopen=no
 
11100
fi
 
11101
rm -f core conftest.err conftest.$ac_objext \
 
11102
    conftest$ac_exeext conftest.$ac_ext
 
11103
LIBS=$ac_check_lib_save_LIBS
 
11104
fi
 
11105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11106
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11107
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11108
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11109
else
 
11110
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11111
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11112
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11113
  $as_echo_n "(cached) " >&6
 
11114
else
 
11115
  ac_check_lib_save_LIBS=$LIBS
 
11116
LIBS="-ldld  $LIBS"
 
11117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11118
/* end confdefs.h.  */
 
11119
 
 
11120
/* Override any GCC internal prototype to avoid an error.
 
11121
   Use char because int might match the return type of a GCC
 
11122
   builtin and then its argument prototype would still apply.  */
 
11123
#ifdef __cplusplus
 
11124
extern "C"
 
11125
#endif
 
11126
char dld_link ();
 
11127
int
 
11128
main ()
 
11129
{
 
11130
return dld_link ();
 
11131
  ;
 
11132
  return 0;
 
11133
}
 
11134
_ACEOF
 
11135
if ac_fn_c_try_link "$LINENO"; then :
 
11136
  ac_cv_lib_dld_dld_link=yes
 
11137
else
 
11138
  ac_cv_lib_dld_dld_link=no
 
11139
fi
 
11140
rm -f core conftest.err conftest.$ac_objext \
 
11141
    conftest$ac_exeext conftest.$ac_ext
 
11142
LIBS=$ac_check_lib_save_LIBS
 
11143
fi
 
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11145
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11146
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11147
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11148
fi
 
11149
 
 
11150
 
 
11151
fi
 
11152
 
 
11153
 
 
11154
fi
 
11155
 
 
11156
 
 
11157
fi
 
11158
 
 
11159
 
 
11160
fi
 
11161
 
 
11162
 
 
11163
fi
 
11164
 
 
11165
    ;;
 
11166
  esac
 
11167
 
 
11168
  if test "x$lt_cv_dlopen" != xno; then
 
11169
    enable_dlopen=yes
 
11170
  else
 
11171
    enable_dlopen=no
 
11172
  fi
 
11173
 
 
11174
  case $lt_cv_dlopen in
 
11175
  dlopen)
 
11176
    save_CPPFLAGS="$CPPFLAGS"
 
11177
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11178
 
 
11179
    save_LDFLAGS="$LDFLAGS"
 
11180
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11181
 
 
11182
    save_LIBS="$LIBS"
 
11183
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11184
 
 
11185
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11186
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11187
if ${lt_cv_dlopen_self+:} false; then :
 
11188
  $as_echo_n "(cached) " >&6
 
11189
else
 
11190
          if test "$cross_compiling" = yes; then :
 
11191
  lt_cv_dlopen_self=cross
 
11192
else
 
11193
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11194
  lt_status=$lt_dlunknown
 
11195
  cat > conftest.$ac_ext <<_LT_EOF
 
11196
#line $LINENO "configure"
 
11197
#include "confdefs.h"
 
11198
 
 
11199
#if HAVE_DLFCN_H
 
11200
#include <dlfcn.h>
 
11201
#endif
 
11202
 
 
11203
#include <stdio.h>
 
11204
 
 
11205
#ifdef RTLD_GLOBAL
 
11206
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11207
#else
 
11208
#  ifdef DL_GLOBAL
 
11209
#    define LT_DLGLOBAL         DL_GLOBAL
 
11210
#  else
 
11211
#    define LT_DLGLOBAL         0
 
11212
#  endif
 
11213
#endif
 
11214
 
 
11215
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11216
   find out it does not work in some platform. */
 
11217
#ifndef LT_DLLAZY_OR_NOW
 
11218
#  ifdef RTLD_LAZY
 
11219
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11220
#  else
 
11221
#    ifdef DL_LAZY
 
11222
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11223
#    else
 
11224
#      ifdef RTLD_NOW
 
11225
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11226
#      else
 
11227
#        ifdef DL_NOW
 
11228
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11229
#        else
 
11230
#          define LT_DLLAZY_OR_NOW      0
 
11231
#        endif
 
11232
#      endif
 
11233
#    endif
 
11234
#  endif
 
11235
#endif
 
11236
 
 
11237
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11238
   correspondingly for the symbols needed.  */
 
11239
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11240
int fnord () __attribute__((visibility("default")));
 
11241
#endif
 
11242
 
 
11243
int fnord () { return 42; }
 
11244
int main ()
 
11245
{
 
11246
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11247
  int status = $lt_dlunknown;
 
11248
 
 
11249
  if (self)
 
11250
    {
 
11251
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11252
      else
 
11253
        {
 
11254
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11255
          else puts (dlerror ());
 
11256
        }
 
11257
      /* dlclose (self); */
 
11258
    }
 
11259
  else
 
11260
    puts (dlerror ());
 
11261
 
 
11262
  return status;
 
11263
}
 
11264
_LT_EOF
 
11265
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11266
  (eval $ac_link) 2>&5
 
11267
  ac_status=$?
 
11268
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11269
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11270
    (./conftest; exit; ) >&5 2>/dev/null
 
11271
    lt_status=$?
 
11272
    case x$lt_status in
 
11273
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11274
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11275
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11276
    esac
 
11277
  else :
 
11278
    # compilation failed
 
11279
    lt_cv_dlopen_self=no
 
11280
  fi
 
11281
fi
 
11282
rm -fr conftest*
 
11283
 
 
11284
 
 
11285
fi
 
11286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11287
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11288
 
 
11289
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11290
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11291
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11292
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11293
if ${lt_cv_dlopen_self_static+:} false; then :
 
11294
  $as_echo_n "(cached) " >&6
 
11295
else
 
11296
          if test "$cross_compiling" = yes; then :
 
11297
  lt_cv_dlopen_self_static=cross
 
11298
else
 
11299
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11300
  lt_status=$lt_dlunknown
 
11301
  cat > conftest.$ac_ext <<_LT_EOF
 
11302
#line $LINENO "configure"
 
11303
#include "confdefs.h"
 
11304
 
 
11305
#if HAVE_DLFCN_H
 
11306
#include <dlfcn.h>
 
11307
#endif
 
11308
 
 
11309
#include <stdio.h>
 
11310
 
 
11311
#ifdef RTLD_GLOBAL
 
11312
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11313
#else
 
11314
#  ifdef DL_GLOBAL
 
11315
#    define LT_DLGLOBAL         DL_GLOBAL
 
11316
#  else
 
11317
#    define LT_DLGLOBAL         0
 
11318
#  endif
 
11319
#endif
 
11320
 
 
11321
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11322
   find out it does not work in some platform. */
 
11323
#ifndef LT_DLLAZY_OR_NOW
 
11324
#  ifdef RTLD_LAZY
 
11325
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11326
#  else
 
11327
#    ifdef DL_LAZY
 
11328
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11329
#    else
 
11330
#      ifdef RTLD_NOW
 
11331
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11332
#      else
 
11333
#        ifdef DL_NOW
 
11334
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11335
#        else
 
11336
#          define LT_DLLAZY_OR_NOW      0
 
11337
#        endif
 
11338
#      endif
 
11339
#    endif
 
11340
#  endif
 
11341
#endif
 
11342
 
 
11343
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11344
   correspondingly for the symbols needed.  */
 
11345
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11346
int fnord () __attribute__((visibility("default")));
 
11347
#endif
 
11348
 
 
11349
int fnord () { return 42; }
 
11350
int main ()
 
11351
{
 
11352
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11353
  int status = $lt_dlunknown;
 
11354
 
 
11355
  if (self)
 
11356
    {
 
11357
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11358
      else
 
11359
        {
 
11360
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11361
          else puts (dlerror ());
 
11362
        }
 
11363
      /* dlclose (self); */
 
11364
    }
 
11365
  else
 
11366
    puts (dlerror ());
 
11367
 
 
11368
  return status;
 
11369
}
 
11370
_LT_EOF
 
11371
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11372
  (eval $ac_link) 2>&5
 
11373
  ac_status=$?
 
11374
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11375
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11376
    (./conftest; exit; ) >&5 2>/dev/null
 
11377
    lt_status=$?
 
11378
    case x$lt_status in
 
11379
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11380
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11381
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11382
    esac
 
11383
  else :
 
11384
    # compilation failed
 
11385
    lt_cv_dlopen_self_static=no
 
11386
  fi
 
11387
fi
 
11388
rm -fr conftest*
 
11389
 
 
11390
 
 
11391
fi
 
11392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11393
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11394
    fi
 
11395
 
 
11396
    CPPFLAGS="$save_CPPFLAGS"
 
11397
    LDFLAGS="$save_LDFLAGS"
 
11398
    LIBS="$save_LIBS"
 
11399
    ;;
 
11400
  esac
 
11401
 
 
11402
  case $lt_cv_dlopen_self in
 
11403
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11404
  *) enable_dlopen_self=unknown ;;
 
11405
  esac
 
11406
 
 
11407
  case $lt_cv_dlopen_self_static in
 
11408
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11409
  *) enable_dlopen_self_static=unknown ;;
 
11410
  esac
 
11411
fi
 
11412
 
 
11413
 
 
11414
 
 
11415
 
 
11416
 
 
11417
 
 
11418
 
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
 
 
11427
 
 
11428
 
 
11429
striplib=
 
11430
old_striplib=
 
11431
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11432
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11433
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11434
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11435
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11437
$as_echo "yes" >&6; }
 
11438
else
 
11439
# FIXME - insert some real tests, host_os isn't really good enough
 
11440
  case $host_os in
 
11441
  darwin*)
 
11442
    if test -n "$STRIP" ; then
 
11443
      striplib="$STRIP -x"
 
11444
      old_striplib="$STRIP -S"
 
11445
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11446
$as_echo "yes" >&6; }
 
11447
    else
 
11448
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11449
$as_echo "no" >&6; }
 
11450
    fi
 
11451
    ;;
 
11452
  *)
 
11453
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11454
$as_echo "no" >&6; }
 
11455
    ;;
 
11456
  esac
 
11457
fi
 
11458
 
 
11459
 
 
11460
 
 
11461
 
 
11462
 
 
11463
 
 
11464
 
 
11465
 
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
  # Report which library types will actually be built
 
11471
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11472
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11474
$as_echo "$can_build_shared" >&6; }
 
11475
 
 
11476
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11477
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11478
  test "$can_build_shared" = "no" && enable_shared=no
 
11479
 
 
11480
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11481
  # are all built from PIC.
 
11482
  case $host_os in
 
11483
  aix3*)
 
11484
    test "$enable_shared" = yes && enable_static=no
 
11485
    if test -n "$RANLIB"; then
 
11486
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11487
      postinstall_cmds='$RANLIB $lib'
 
11488
    fi
 
11489
    ;;
 
11490
 
 
11491
  aix[4-9]*)
 
11492
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11493
      test "$enable_shared" = yes && enable_static=no
 
11494
    fi
 
11495
    ;;
 
11496
  esac
 
11497
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11498
$as_echo "$enable_shared" >&6; }
 
11499
 
 
11500
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11501
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11502
  # Make sure either enable_shared or enable_static is yes.
 
11503
  test "$enable_shared" = yes || enable_static=yes
 
11504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11505
$as_echo "$enable_static" >&6; }
 
11506
 
 
11507
 
 
11508
 
 
11509
 
 
11510
fi
 
11511
ac_ext=c
 
11512
ac_cpp='$CPP $CPPFLAGS'
 
11513
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11514
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11515
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11516
 
 
11517
CC="$lt_save_CC"
 
11518
 
 
11519
 
 
11520
 
 
11521
 
 
11522
 
 
11523
 
 
11524
 
 
11525
 
 
11526
 
 
11527
 
 
11528
 
 
11529
 
 
11530
 
 
11531
 
 
11532
 
 
11533
        ac_config_commands="$ac_config_commands libtool"
 
11534
 
 
11535
 
 
11536
 
 
11537
 
 
11538
# Only expand once:
 
11539
 
 
11540
 
 
11541
 
 
11542
# Checks for programs.
 
11543
ac_ext=cpp
 
11544
ac_cpp='$CXXCPP $CPPFLAGS'
 
11545
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11546
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11547
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11548
if test -z "$CXX"; then
 
11549
  if test -n "$CCC"; then
 
11550
    CXX=$CCC
 
11551
  else
 
11552
    if test -n "$ac_tool_prefix"; then
 
11553
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11554
  do
 
11555
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11556
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11558
$as_echo_n "checking for $ac_word... " >&6; }
 
11559
if ${ac_cv_prog_CXX+:} false; then :
 
11560
  $as_echo_n "(cached) " >&6
 
11561
else
 
11562
  if test -n "$CXX"; then
 
11563
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
11564
else
 
11565
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11566
for as_dir in $PATH
 
11567
do
 
11568
  IFS=$as_save_IFS
 
11569
  test -z "$as_dir" && as_dir=.
 
11570
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11571
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11572
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
11573
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11574
    break 2
 
11575
  fi
 
11576
done
 
11577
  done
 
11578
IFS=$as_save_IFS
 
11579
 
 
11580
fi
 
11581
fi
 
11582
CXX=$ac_cv_prog_CXX
 
11583
if test -n "$CXX"; then
 
11584
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
11585
$as_echo "$CXX" >&6; }
 
11586
else
 
11587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11588
$as_echo "no" >&6; }
 
11589
fi
 
11590
 
 
11591
 
 
11592
    test -n "$CXX" && break
 
11593
  done
 
11594
fi
 
11595
if test -z "$CXX"; then
 
11596
  ac_ct_CXX=$CXX
 
11597
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
11598
do
 
11599
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11600
set dummy $ac_prog; ac_word=$2
 
11601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11602
$as_echo_n "checking for $ac_word... " >&6; }
 
11603
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
 
11604
  $as_echo_n "(cached) " >&6
 
11605
else
 
11606
  if test -n "$ac_ct_CXX"; then
 
11607
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
11608
else
 
11609
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11610
for as_dir in $PATH
 
11611
do
 
11612
  IFS=$as_save_IFS
 
11613
  test -z "$as_dir" && as_dir=.
 
11614
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11615
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
11616
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
11617
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11618
    break 2
 
11619
  fi
 
11620
done
 
11621
  done
 
11622
IFS=$as_save_IFS
 
11623
 
 
11624
fi
 
11625
fi
 
11626
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
11627
if test -n "$ac_ct_CXX"; then
 
11628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
11629
$as_echo "$ac_ct_CXX" >&6; }
 
11630
else
 
11631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11632
$as_echo "no" >&6; }
 
11633
fi
 
11634
 
 
11635
 
 
11636
  test -n "$ac_ct_CXX" && break
 
11637
done
 
11638
 
 
11639
  if test "x$ac_ct_CXX" = x; then
 
11640
    CXX="g++"
 
11641
  else
 
11642
    case $cross_compiling:$ac_tool_warned in
 
11643
yes:)
 
11644
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11645
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11646
ac_tool_warned=yes ;;
 
11647
esac
 
11648
    CXX=$ac_ct_CXX
 
11649
  fi
 
11650
fi
 
11651
 
 
11652
  fi
 
11653
fi
 
11654
# Provide some information about the compiler.
 
11655
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
11656
set X $ac_compile
 
11657
ac_compiler=$2
 
11658
for ac_option in --version -v -V -qversion; do
 
11659
  { { ac_try="$ac_compiler $ac_option >&5"
 
11660
case "(($ac_try" in
 
11661
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11662
  *) ac_try_echo=$ac_try;;
 
11663
esac
 
11664
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11665
$as_echo "$ac_try_echo"; } >&5
 
11666
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11667
  ac_status=$?
 
11668
  if test -s conftest.err; then
 
11669
    sed '10a\
 
11670
... rest of stderr output deleted ...
 
11671
         10q' conftest.err >conftest.er1
 
11672
    cat conftest.er1 >&5
 
11673
  fi
 
11674
  rm -f conftest.er1 conftest.err
 
11675
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11676
  test $ac_status = 0; }
 
11677
done
 
11678
 
 
11679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
11680
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
11681
if ${ac_cv_cxx_compiler_gnu+:} false; then :
 
11682
  $as_echo_n "(cached) " >&6
 
11683
else
 
11684
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11685
/* end confdefs.h.  */
 
11686
 
 
11687
int
 
11688
main ()
 
11689
{
 
11690
#ifndef __GNUC__
 
11691
       choke me
 
11692
#endif
 
11693
 
 
11694
  ;
 
11695
  return 0;
 
11696
}
 
11697
_ACEOF
 
11698
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11699
  ac_compiler_gnu=yes
 
11700
else
 
11701
  ac_compiler_gnu=no
 
11702
fi
 
11703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11704
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
11705
 
 
11706
fi
 
11707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
11708
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
11709
if test $ac_compiler_gnu = yes; then
 
11710
  GXX=yes
 
11711
else
 
11712
  GXX=
 
11713
fi
 
11714
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
11715
ac_save_CXXFLAGS=$CXXFLAGS
 
11716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
11717
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
11718
if ${ac_cv_prog_cxx_g+:} false; then :
 
11719
  $as_echo_n "(cached) " >&6
 
11720
else
 
11721
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
11722
   ac_cxx_werror_flag=yes
 
11723
   ac_cv_prog_cxx_g=no
 
11724
   CXXFLAGS="-g"
 
11725
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11726
/* end confdefs.h.  */
 
11727
 
 
11728
int
 
11729
main ()
 
11730
{
 
11731
 
 
11732
  ;
 
11733
  return 0;
 
11734
}
 
11735
_ACEOF
 
11736
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11737
  ac_cv_prog_cxx_g=yes
 
11738
else
 
11739
  CXXFLAGS=""
 
11740
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11741
/* end confdefs.h.  */
 
11742
 
 
11743
int
 
11744
main ()
 
11745
{
 
11746
 
 
11747
  ;
 
11748
  return 0;
 
11749
}
 
11750
_ACEOF
 
11751
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11752
 
 
11753
else
 
11754
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
11755
         CXXFLAGS="-g"
 
11756
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11757
/* end confdefs.h.  */
 
11758
 
 
11759
int
 
11760
main ()
 
11761
{
 
11762
 
 
11763
  ;
 
11764
  return 0;
 
11765
}
 
11766
_ACEOF
 
11767
if ac_fn_cxx_try_compile "$LINENO"; then :
 
11768
  ac_cv_prog_cxx_g=yes
 
11769
fi
 
11770
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11771
fi
 
11772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11773
fi
 
11774
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11775
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
11776
fi
 
11777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
11778
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
11779
if test "$ac_test_CXXFLAGS" = set; then
 
11780
  CXXFLAGS=$ac_save_CXXFLAGS
 
11781
elif test $ac_cv_prog_cxx_g = yes; then
 
11782
  if test "$GXX" = yes; then
 
11783
    CXXFLAGS="-g -O2"
 
11784
  else
 
11785
    CXXFLAGS="-g"
 
11786
  fi
 
11787
else
 
11788
  if test "$GXX" = yes; then
 
11789
    CXXFLAGS="-O2"
 
11790
  else
 
11791
    CXXFLAGS=
 
11792
  fi
 
11793
fi
 
11794
ac_ext=c
 
11795
ac_cpp='$CPP $CPPFLAGS'
 
11796
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11797
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11798
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11799
 
 
11800
depcc="$CXX"  am_compiler_list=
 
11801
 
 
11802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
11803
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
11804
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
 
11805
  $as_echo_n "(cached) " >&6
 
11806
else
 
11807
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
11808
  # We make a subdir and do the tests there.  Otherwise we can end up
 
11809
  # making bogus files that we don't know about and never remove.  For
 
11810
  # instance it was reported that on HP-UX the gcc test will end up
 
11811
  # making a dummy file named `D' -- because `-MD' means `put the output
 
11812
  # in D'.
 
11813
  rm -rf conftest.dir
 
11814
  mkdir conftest.dir
 
11815
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
11816
  # using a relative directory.
 
11817
  cp "$am_depcomp" conftest.dir
 
11818
  cd conftest.dir
 
11819
  # We will build objects and dependencies in a subdirectory because
 
11820
  # it helps to detect inapplicable dependency modes.  For instance
 
11821
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
11822
  # side effect of compilation, but ICC will put the dependencies in
 
11823
  # the current directory while Tru64 will put them in the object
 
11824
  # directory.
 
11825
  mkdir sub
 
11826
 
 
11827
  am_cv_CXX_dependencies_compiler_type=none
 
11828
  if test "$am_compiler_list" = ""; then
 
11829
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
11830
  fi
 
11831
  am__universal=false
 
11832
  case " $depcc " in #(
 
11833
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
11834
     esac
 
11835
 
 
11836
  for depmode in $am_compiler_list; do
 
11837
    # Setup a source with many dependencies, because some compilers
 
11838
    # like to wrap large dependency lists on column 80 (with \), and
 
11839
    # we should not choose a depcomp mode which is confused by this.
 
11840
    #
 
11841
    # We need to recreate these files for each test, as the compiler may
 
11842
    # overwrite some of them when testing with obscure command lines.
 
11843
    # This happens at least with the AIX C compiler.
 
11844
    : > sub/conftest.c
 
11845
    for i in 1 2 3 4 5 6; do
 
11846
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
11847
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
11848
      # Solaris 8's {/usr,}/bin/sh.
 
11849
      touch sub/conftst$i.h
 
11850
    done
 
11851
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
11852
 
 
11853
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
11854
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
11855
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
11856
    # versions had trouble with output in subdirs
 
11857
    am__obj=sub/conftest.${OBJEXT-o}
 
11858
    am__minus_obj="-o $am__obj"
 
11859
    case $depmode in
 
11860
    gcc)
 
11861
      # This depmode causes a compiler race in universal mode.
 
11862
      test "$am__universal" = false || continue
 
11863
      ;;
 
11864
    nosideeffect)
 
11865
      # after this tag, mechanisms are not by side-effect, so they'll
 
11866
      # only be used when explicitly requested
 
11867
      if test "x$enable_dependency_tracking" = xyes; then
 
11868
        continue
 
11869
      else
 
11870
        break
 
11871
      fi
 
11872
      ;;
 
11873
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
11874
      # This compiler won't grok `-c -o', but also, the minuso test has
 
11875
      # not run yet.  These depmodes are late enough in the game, and
 
11876
      # so weak that their functioning should not be impacted.
 
11877
      am__obj=conftest.${OBJEXT-o}
 
11878
      am__minus_obj=
 
11879
      ;;
 
11880
    none) break ;;
 
11881
    esac
 
11882
    if depmode=$depmode \
 
11883
       source=sub/conftest.c object=$am__obj \
 
11884
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
11885
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
11886
         >/dev/null 2>conftest.err &&
 
11887
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
11888
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
11889
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
11890
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
11891
      # icc doesn't choke on unknown options, it will just issue warnings
 
11892
      # or remarks (even with -Werror).  So we grep stderr for any message
 
11893
      # that says an option was ignored or not supported.
 
11894
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
11895
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
11896
      # The diagnosis changed in icc 8.0:
 
11897
      #   icc: Command line remark: option '-MP' not supported
 
11898
      if (grep 'ignoring option' conftest.err ||
 
11899
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
11900
        am_cv_CXX_dependencies_compiler_type=$depmode
 
11901
        break
 
11902
      fi
 
11903
    fi
 
11904
  done
 
11905
 
 
11906
  cd ..
 
11907
  rm -rf conftest.dir
 
11908
else
 
11909
  am_cv_CXX_dependencies_compiler_type=none
 
11910
fi
 
11911
 
 
11912
fi
 
11913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
11914
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
11915
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
11916
 
 
11917
 if
 
11918
  test "x$enable_dependency_tracking" != xno \
 
11919
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
11920
  am__fastdepCXX_TRUE=
 
11921
  am__fastdepCXX_FALSE='#'
 
11922
else
 
11923
  am__fastdepCXX_TRUE='#'
 
11924
  am__fastdepCXX_FALSE=
 
11925
fi
 
11926
 
 
11927
 
 
11928
 
 
11929
 
 
11930
func_stripname_cnf ()
 
11931
{
 
11932
  case ${2} in
 
11933
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
 
11934
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
11935
  esac
 
11936
} # func_stripname_cnf
 
11937
 
 
11938
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11939
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11940
    (test "X$CXX" != "Xg++"))) ; then
 
11941
  ac_ext=cpp
 
11942
ac_cpp='$CXXCPP $CPPFLAGS'
 
11943
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11944
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11945
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
 
11947
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
11948
if test -z "$CXXCPP"; then
 
11949
  if ${ac_cv_prog_CXXCPP+:} false; then :
 
11950
  $as_echo_n "(cached) " >&6
 
11951
else
 
11952
      # Double quotes because CXXCPP needs to be expanded
 
11953
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
11954
    do
 
11955
      ac_preproc_ok=false
 
11956
for ac_cxx_preproc_warn_flag in '' yes
 
11957
do
 
11958
  # Use a header file that comes with gcc, so configuring glibc
 
11959
  # with a fresh cross-compiler works.
 
11960
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11961
  # <limits.h> exists even on freestanding compilers.
 
11962
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
11963
  # not just through cpp. "Syntax error" is here to catch this case.
 
11964
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11965
/* end confdefs.h.  */
 
11966
#ifdef __STDC__
 
11967
# include <limits.h>
 
11968
#else
 
11969
# include <assert.h>
 
11970
#endif
 
11971
                     Syntax error
 
11972
_ACEOF
 
11973
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11974
 
 
11975
else
 
11976
  # Broken: fails on valid input.
 
11977
continue
 
11978
fi
 
11979
rm -f conftest.err conftest.i conftest.$ac_ext
 
11980
 
 
11981
  # OK, works on sane cases.  Now check whether nonexistent headers
 
11982
  # can be detected and how.
 
11983
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11984
/* end confdefs.h.  */
 
11985
#include <ac_nonexistent.h>
 
11986
_ACEOF
 
11987
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
11988
  # Broken: success on invalid input.
 
11989
continue
 
11990
else
 
11991
  # Passes both tests.
 
11992
ac_preproc_ok=:
 
11993
break
 
11994
fi
 
11995
rm -f conftest.err conftest.i conftest.$ac_ext
 
11996
 
 
11997
done
 
11998
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
11999
rm -f conftest.i conftest.err conftest.$ac_ext
 
12000
if $ac_preproc_ok; then :
 
12001
  break
 
12002
fi
 
12003
 
 
12004
    done
 
12005
    ac_cv_prog_CXXCPP=$CXXCPP
 
12006
 
 
12007
fi
 
12008
  CXXCPP=$ac_cv_prog_CXXCPP
 
12009
else
 
12010
  ac_cv_prog_CXXCPP=$CXXCPP
 
12011
fi
 
12012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
 
12013
$as_echo "$CXXCPP" >&6; }
 
12014
ac_preproc_ok=false
 
12015
for ac_cxx_preproc_warn_flag in '' yes
 
12016
do
 
12017
  # Use a header file that comes with gcc, so configuring glibc
 
12018
  # with a fresh cross-compiler works.
 
12019
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12020
  # <limits.h> exists even on freestanding compilers.
 
12021
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
12022
  # not just through cpp. "Syntax error" is here to catch this case.
 
12023
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12024
/* end confdefs.h.  */
 
12025
#ifdef __STDC__
 
12026
# include <limits.h>
 
12027
#else
 
12028
# include <assert.h>
 
12029
#endif
 
12030
                     Syntax error
 
12031
_ACEOF
 
12032
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12033
 
 
12034
else
 
12035
  # Broken: fails on valid input.
 
12036
continue
 
12037
fi
 
12038
rm -f conftest.err conftest.i conftest.$ac_ext
 
12039
 
 
12040
  # OK, works on sane cases.  Now check whether nonexistent headers
 
12041
  # can be detected and how.
 
12042
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12043
/* end confdefs.h.  */
 
12044
#include <ac_nonexistent.h>
 
12045
_ACEOF
 
12046
if ac_fn_cxx_try_cpp "$LINENO"; then :
 
12047
  # Broken: success on invalid input.
 
12048
continue
 
12049
else
 
12050
  # Passes both tests.
 
12051
ac_preproc_ok=:
 
12052
break
 
12053
fi
 
12054
rm -f conftest.err conftest.i conftest.$ac_ext
 
12055
 
 
12056
done
 
12057
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
12058
rm -f conftest.i conftest.err conftest.$ac_ext
 
12059
if $ac_preproc_ok; then :
 
12060
 
 
12061
else
 
12062
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
12063
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
12064
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
 
12065
See \`config.log' for more details" "$LINENO" 5; }
 
12066
fi
 
12067
 
 
12068
ac_ext=c
 
12069
ac_cpp='$CPP $CPPFLAGS'
 
12070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12073
 
 
12074
else
 
12075
  _lt_caught_CXX_error=yes
 
12076
fi
 
12077
 
 
12078
ac_ext=cpp
 
12079
ac_cpp='$CXXCPP $CPPFLAGS'
 
12080
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12081
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12082
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
12083
 
 
12084
archive_cmds_need_lc_CXX=no
 
12085
allow_undefined_flag_CXX=
 
12086
always_export_symbols_CXX=no
 
12087
archive_expsym_cmds_CXX=
 
12088
compiler_needs_object_CXX=no
 
12089
export_dynamic_flag_spec_CXX=
 
12090
hardcode_direct_CXX=no
 
12091
hardcode_direct_absolute_CXX=no
 
12092
hardcode_libdir_flag_spec_CXX=
 
12093
hardcode_libdir_separator_CXX=
 
12094
hardcode_minus_L_CXX=no
 
12095
hardcode_shlibpath_var_CXX=unsupported
 
12096
hardcode_automatic_CXX=no
 
12097
inherit_rpath_CXX=no
 
12098
module_cmds_CXX=
 
12099
module_expsym_cmds_CXX=
 
12100
link_all_deplibs_CXX=unknown
 
12101
old_archive_cmds_CXX=$old_archive_cmds
 
12102
reload_flag_CXX=$reload_flag
 
12103
reload_cmds_CXX=$reload_cmds
 
12104
no_undefined_flag_CXX=
 
12105
whole_archive_flag_spec_CXX=
 
12106
enable_shared_with_static_runtimes_CXX=no
 
12107
 
 
12108
# Source file extension for C++ test sources.
 
12109
ac_ext=cpp
 
12110
 
 
12111
# Object file extension for compiled C++ test sources.
 
12112
objext=o
 
12113
objext_CXX=$objext
 
12114
 
 
12115
# No sense in running all these tests if we already determined that
 
12116
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
12117
# are currently assumed to apply to all compilers on this platform,
 
12118
# and will be corrupted by setting them based on a non-working compiler.
 
12119
if test "$_lt_caught_CXX_error" != yes; then
 
12120
  # Code to be used in simple compile tests
 
12121
  lt_simple_compile_test_code="int some_variable = 0;"
 
12122
 
 
12123
  # Code to be used in simple link tests
 
12124
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
12125
 
 
12126
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12127
 
 
12128
 
 
12129
 
 
12130
 
 
12131
 
 
12132
 
 
12133
# If no C compiler was specified, use CC.
 
12134
LTCC=${LTCC-"$CC"}
 
12135
 
 
12136
# If no C compiler flags were specified, use CFLAGS.
 
12137
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12138
 
 
12139
# Allow CC to be a program name with arguments.
 
12140
compiler=$CC
 
12141
 
 
12142
 
 
12143
  # save warnings/boilerplate of simple test code
 
12144
  ac_outfile=conftest.$ac_objext
 
12145
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12146
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12147
_lt_compiler_boilerplate=`cat conftest.err`
 
12148
$RM conftest*
 
12149
 
 
12150
  ac_outfile=conftest.$ac_objext
 
12151
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
12152
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12153
_lt_linker_boilerplate=`cat conftest.err`
 
12154
$RM -r conftest*
 
12155
 
 
12156
 
 
12157
  # Allow CC to be a program name with arguments.
 
12158
  lt_save_CC=$CC
 
12159
  lt_save_CFLAGS=$CFLAGS
 
12160
  lt_save_LD=$LD
 
12161
  lt_save_GCC=$GCC
 
12162
  GCC=$GXX
 
12163
  lt_save_with_gnu_ld=$with_gnu_ld
 
12164
  lt_save_path_LD=$lt_cv_path_LD
 
12165
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
12166
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
12167
  else
 
12168
    $as_unset lt_cv_prog_gnu_ld
 
12169
  fi
 
12170
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
12171
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
12172
  else
 
12173
    $as_unset lt_cv_path_LD
 
12174
  fi
 
12175
  test -z "${LDCXX+set}" || LD=$LDCXX
 
12176
  CC=${CXX-"c++"}
 
12177
  CFLAGS=$CXXFLAGS
 
12178
  compiler=$CC
 
12179
  compiler_CXX=$CC
 
12180
  for cc_temp in $compiler""; do
 
12181
  case $cc_temp in
 
12182
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12183
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12184
    \-*) ;;
 
12185
    *) break;;
 
12186
  esac
 
12187
done
 
12188
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
12189
 
 
12190
 
 
12191
  if test -n "$compiler"; then
 
12192
    # We don't want -fno-exception when compiling C++ code, so set the
 
12193
    # no_builtin_flag separately
 
12194
    if test "$GXX" = yes; then
 
12195
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
12196
    else
 
12197
      lt_prog_compiler_no_builtin_flag_CXX=
 
12198
    fi
 
12199
 
 
12200
    if test "$GXX" = yes; then
 
12201
      # Set up default GNU C++ configuration
 
12202
 
 
12203
 
 
12204
 
 
12205
# Check whether --with-gnu-ld was given.
 
12206
if test "${with_gnu_ld+set}" = set; then :
 
12207
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
12208
else
 
12209
  with_gnu_ld=no
 
12210
fi
 
12211
 
 
12212
ac_prog=ld
 
12213
if test "$GCC" = yes; then
 
12214
  # Check if gcc -print-prog-name=ld gives a path.
 
12215
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
12216
$as_echo_n "checking for ld used by $CC... " >&6; }
 
12217
  case $host in
 
12218
  *-*-mingw*)
 
12219
    # gcc leaves a trailing carriage return which upsets mingw
 
12220
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
12221
  *)
 
12222
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
12223
  esac
 
12224
  case $ac_prog in
 
12225
    # Accept absolute paths.
 
12226
    [\\/]* | ?:[\\/]*)
 
12227
      re_direlt='/[^/][^/]*/\.\./'
 
12228
      # Canonicalize the pathname of ld
 
12229
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
12230
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
12231
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
12232
      done
 
12233
      test -z "$LD" && LD="$ac_prog"
 
12234
      ;;
 
12235
  "")
 
12236
    # If it fails, then pretend we aren't using GCC.
 
12237
    ac_prog=ld
 
12238
    ;;
 
12239
  *)
 
12240
    # If it is relative, then search for the first ld in PATH.
 
12241
    with_gnu_ld=unknown
 
12242
    ;;
 
12243
  esac
 
12244
elif test "$with_gnu_ld" = yes; then
 
12245
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
12246
$as_echo_n "checking for GNU ld... " >&6; }
 
12247
else
 
12248
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
12249
$as_echo_n "checking for non-GNU ld... " >&6; }
 
12250
fi
 
12251
if ${lt_cv_path_LD+:} false; then :
 
12252
  $as_echo_n "(cached) " >&6
 
12253
else
 
12254
  if test -z "$LD"; then
 
12255
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
12256
  for ac_dir in $PATH; do
 
12257
    IFS="$lt_save_ifs"
 
12258
    test -z "$ac_dir" && ac_dir=.
 
12259
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
12260
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
12261
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
12262
      # but apparently some variants of GNU ld only accept -v.
 
12263
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
12264
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
12265
      *GNU* | *'with BFD'*)
 
12266
        test "$with_gnu_ld" != no && break
 
12267
        ;;
 
12268
      *)
 
12269
        test "$with_gnu_ld" != yes && break
 
12270
        ;;
 
12271
      esac
 
12272
    fi
 
12273
  done
 
12274
  IFS="$lt_save_ifs"
 
12275
else
 
12276
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
12277
fi
 
12278
fi
 
12279
 
 
12280
LD="$lt_cv_path_LD"
 
12281
if test -n "$LD"; then
 
12282
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
12283
$as_echo "$LD" >&6; }
 
12284
else
 
12285
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12286
$as_echo "no" >&6; }
 
12287
fi
 
12288
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
12289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
12290
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
12291
if ${lt_cv_prog_gnu_ld+:} false; then :
 
12292
  $as_echo_n "(cached) " >&6
 
12293
else
 
12294
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
12295
case `$LD -v 2>&1 </dev/null` in
 
12296
*GNU* | *'with BFD'*)
 
12297
  lt_cv_prog_gnu_ld=yes
 
12298
  ;;
 
12299
*)
 
12300
  lt_cv_prog_gnu_ld=no
 
12301
  ;;
 
12302
esac
 
12303
fi
 
12304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
12305
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
12306
with_gnu_ld=$lt_cv_prog_gnu_ld
 
12307
 
 
12308
 
 
12309
 
 
12310
 
 
12311
 
 
12312
 
 
12313
 
 
12314
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
12315
      # archiving commands below assume that GNU ld is being used.
 
12316
      if test "$with_gnu_ld" = yes; then
 
12317
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12318
        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'
 
12319
 
 
12320
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12321
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12322
 
 
12323
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
12324
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
12325
        #     investigate it a little bit more. (MM)
 
12326
        wlarc='${wl}'
 
12327
 
 
12328
        # ancient GNU ld didn't support --whole-archive et. al.
 
12329
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
12330
          $GREP 'no-whole-archive' > /dev/null; then
 
12331
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12332
        else
 
12333
          whole_archive_flag_spec_CXX=
 
12334
        fi
 
12335
      else
 
12336
        with_gnu_ld=no
 
12337
        wlarc=
 
12338
 
 
12339
        # A generic and very simple default shared library creation
 
12340
        # command for GNU C++ for the case where it uses the native
 
12341
        # linker, instead of GNU ld.  If possible, this setting should
 
12342
        # overridden to take advantage of the native linker features on
 
12343
        # the platform it is being used on.
 
12344
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12345
      fi
 
12346
 
 
12347
      # Commands to make compiler produce verbose output that lists
 
12348
      # what "hidden" libraries, object files and flags are used when
 
12349
      # linking a shared library.
 
12350
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
12351
 
 
12352
    else
 
12353
      GXX=no
 
12354
      with_gnu_ld=no
 
12355
      wlarc=
 
12356
    fi
 
12357
 
 
12358
    # PORTME: fill in a description of your system's C++ link characteristics
 
12359
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12360
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12361
    ld_shlibs_CXX=yes
 
12362
    case $host_os in
 
12363
      aix3*)
 
12364
        # FIXME: insert proper C++ library support
 
12365
        ld_shlibs_CXX=no
 
12366
        ;;
 
12367
      aix[4-9]*)
 
12368
        if test "$host_cpu" = ia64; then
 
12369
          # On IA64, the linker does run time linking by default, so we don't
 
12370
          # have to do anything special.
 
12371
          aix_use_runtimelinking=no
 
12372
          exp_sym_flag='-Bexport'
 
12373
          no_entry_flag=""
 
12374
        else
 
12375
          aix_use_runtimelinking=no
 
12376
 
 
12377
          # Test if we are trying to use run time linking or normal
 
12378
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12379
          # need to do runtime linking.
 
12380
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
12381
            for ld_flag in $LDFLAGS; do
 
12382
              case $ld_flag in
 
12383
              *-brtl*)
 
12384
                aix_use_runtimelinking=yes
 
12385
                break
 
12386
                ;;
 
12387
              esac
 
12388
            done
 
12389
            ;;
 
12390
          esac
 
12391
 
 
12392
          exp_sym_flag='-bexport'
 
12393
          no_entry_flag='-bnoentry'
 
12394
        fi
 
12395
 
 
12396
        # When large executables or shared objects are built, AIX ld can
 
12397
        # have problems creating the table of contents.  If linking a library
 
12398
        # or program results in "error TOC overflow" add -mminimal-toc to
 
12399
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12400
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12401
 
 
12402
        archive_cmds_CXX=''
 
12403
        hardcode_direct_CXX=yes
 
12404
        hardcode_direct_absolute_CXX=yes
 
12405
        hardcode_libdir_separator_CXX=':'
 
12406
        link_all_deplibs_CXX=yes
 
12407
        file_list_spec_CXX='${wl}-f,'
 
12408
 
 
12409
        if test "$GXX" = yes; then
 
12410
          case $host_os in aix4.[012]|aix4.[012].*)
 
12411
          # We only want to do this on AIX 4.2 and lower, the check
 
12412
          # below for broken collect2 doesn't work under 4.3+
 
12413
          collect2name=`${CC} -print-prog-name=collect2`
 
12414
          if test -f "$collect2name" &&
 
12415
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
12416
          then
 
12417
            # We have reworked collect2
 
12418
            :
 
12419
          else
 
12420
            # We have old collect2
 
12421
            hardcode_direct_CXX=unsupported
 
12422
            # It fails to find uninstalled libraries when the uninstalled
 
12423
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
12424
            # to unsupported forces relinking
 
12425
            hardcode_minus_L_CXX=yes
 
12426
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12427
            hardcode_libdir_separator_CXX=
 
12428
          fi
 
12429
          esac
 
12430
          shared_flag='-shared'
 
12431
          if test "$aix_use_runtimelinking" = yes; then
 
12432
            shared_flag="$shared_flag "'${wl}-G'
 
12433
          fi
 
12434
        else
 
12435
          # not using gcc
 
12436
          if test "$host_cpu" = ia64; then
 
12437
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12438
          # chokes on -Wl,-G. The following line is correct:
 
12439
          shared_flag='-G'
 
12440
          else
 
12441
            if test "$aix_use_runtimelinking" = yes; then
 
12442
              shared_flag='${wl}-G'
 
12443
            else
 
12444
              shared_flag='${wl}-bM:SRE'
 
12445
            fi
 
12446
          fi
 
12447
        fi
 
12448
 
 
12449
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
12450
        # It seems that -bexpall does not export symbols beginning with
 
12451
        # underscore (_), so it is better to generate a list of symbols to
 
12452
        # export.
 
12453
        always_export_symbols_CXX=yes
 
12454
        if test "$aix_use_runtimelinking" = yes; then
 
12455
          # Warning - without using the other runtime loading flags (-brtl),
 
12456
          # -berok will link without error, but may produce a broken library.
 
12457
          allow_undefined_flag_CXX='-berok'
 
12458
          # Determine the default libpath from the value encoded in an empty
 
12459
          # executable.
 
12460
          if test "${lt_cv_aix_libpath+set}" = set; then
 
12461
  aix_libpath=$lt_cv_aix_libpath
 
12462
else
 
12463
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12464
  $as_echo_n "(cached) " >&6
 
12465
else
 
12466
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12467
/* end confdefs.h.  */
 
12468
 
 
12469
int
 
12470
main ()
 
12471
{
 
12472
 
 
12473
  ;
 
12474
  return 0;
 
12475
}
 
12476
_ACEOF
 
12477
if ac_fn_cxx_try_link "$LINENO"; then :
 
12478
 
 
12479
  lt_aix_libpath_sed='
 
12480
      /Import File Strings/,/^$/ {
 
12481
          /^0/ {
 
12482
              s/^0  *\([^ ]*\) *$/\1/
 
12483
              p
 
12484
          }
 
12485
      }'
 
12486
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12487
  # Check for a 64-bit object if we didn't find anything.
 
12488
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12489
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12490
  fi
 
12491
fi
 
12492
rm -f core conftest.err conftest.$ac_objext \
 
12493
    conftest$ac_exeext conftest.$ac_ext
 
12494
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12495
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12496
  fi
 
12497
 
 
12498
fi
 
12499
 
 
12500
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12501
fi
 
12502
 
 
12503
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12504
 
 
12505
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
12506
        else
 
12507
          if test "$host_cpu" = ia64; then
 
12508
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
12509
            allow_undefined_flag_CXX="-z nodefs"
 
12510
            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"
 
12511
          else
 
12512
            # Determine the default libpath from the value encoded in an
 
12513
            # empty executable.
 
12514
            if test "${lt_cv_aix_libpath+set}" = set; then
 
12515
  aix_libpath=$lt_cv_aix_libpath
 
12516
else
 
12517
  if ${lt_cv_aix_libpath__CXX+:} false; then :
 
12518
  $as_echo_n "(cached) " >&6
 
12519
else
 
12520
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12521
/* end confdefs.h.  */
 
12522
 
 
12523
int
 
12524
main ()
 
12525
{
 
12526
 
 
12527
  ;
 
12528
  return 0;
 
12529
}
 
12530
_ACEOF
 
12531
if ac_fn_cxx_try_link "$LINENO"; then :
 
12532
 
 
12533
  lt_aix_libpath_sed='
 
12534
      /Import File Strings/,/^$/ {
 
12535
          /^0/ {
 
12536
              s/^0  *\([^ ]*\) *$/\1/
 
12537
              p
 
12538
          }
 
12539
      }'
 
12540
  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12541
  # Check for a 64-bit object if we didn't find anything.
 
12542
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12543
    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
12544
  fi
 
12545
fi
 
12546
rm -f core conftest.err conftest.$ac_objext \
 
12547
    conftest$ac_exeext conftest.$ac_ext
 
12548
  if test -z "$lt_cv_aix_libpath__CXX"; then
 
12549
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
12550
  fi
 
12551
 
 
12552
fi
 
12553
 
 
12554
  aix_libpath=$lt_cv_aix_libpath__CXX
 
12555
fi
 
12556
 
 
12557
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12558
            # Warning - without using the other run time loading flags,
 
12559
            # -berok will link without error, but may produce a broken library.
 
12560
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
12561
            allow_undefined_flag_CXX=' ${wl}-berok'
 
12562
            if test "$with_gnu_ld" = yes; then
 
12563
              # We only use this code for GNU lds that support --whole-archive.
 
12564
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12565
            else
 
12566
              # Exported symbols can be pulled into shared objects from archives
 
12567
              whole_archive_flag_spec_CXX='$convenience'
 
12568
            fi
 
12569
            archive_cmds_need_lc_CXX=yes
 
12570
            # This is similar to how AIX traditionally builds its shared
 
12571
            # libraries.
 
12572
            archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
12573
          fi
 
12574
        fi
 
12575
        ;;
 
12576
 
 
12577
      beos*)
 
12578
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
12579
          allow_undefined_flag_CXX=unsupported
 
12580
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12581
          # support --undefined.  This deserves some investigation.  FIXME
 
12582
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12583
        else
 
12584
          ld_shlibs_CXX=no
 
12585
        fi
 
12586
        ;;
 
12587
 
 
12588
      chorus*)
 
12589
        case $cc_basename in
 
12590
          *)
 
12591
          # FIXME: insert proper C++ library support
 
12592
          ld_shlibs_CXX=no
 
12593
          ;;
 
12594
        esac
 
12595
        ;;
 
12596
 
 
12597
      cygwin* | mingw* | pw32* | cegcc*)
 
12598
        case $GXX,$cc_basename in
 
12599
        ,cl* | no,cl*)
 
12600
          # Native MSVC
 
12601
          # hardcode_libdir_flag_spec is actually meaningless, as there is
 
12602
          # no search path for DLLs.
 
12603
          hardcode_libdir_flag_spec_CXX=' '
 
12604
          allow_undefined_flag_CXX=unsupported
 
12605
          always_export_symbols_CXX=yes
 
12606
          file_list_spec_CXX='@'
 
12607
          # Tell ltmain to make .lib files, not .a files.
 
12608
          libext=lib
 
12609
          # Tell ltmain to make .dll files, not .so files.
 
12610
          shrext_cmds=".dll"
 
12611
          # FIXME: Setting linknames here is a bad hack.
 
12612
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
12613
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12614
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
12615
            else
 
12616
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
12617
            fi~
 
12618
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
12619
            linknames='
 
12620
          # The linker will not automatically build a static lib if we build a DLL.
 
12621
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
 
12622
          enable_shared_with_static_runtimes_CXX=yes
 
12623
          # Don't use ranlib
 
12624
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
 
12625
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
 
12626
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
12627
            case $lt_outputfile in
 
12628
              *.exe|*.EXE) ;;
 
12629
              *)
 
12630
                lt_outputfile="$lt_outputfile.exe"
 
12631
                lt_tool_outputfile="$lt_tool_outputfile.exe"
 
12632
                ;;
 
12633
            esac~
 
12634
            func_to_tool_file "$lt_outputfile"~
 
12635
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
12636
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
12637
              $RM "$lt_outputfile.manifest";
 
12638
            fi'
 
12639
          ;;
 
12640
        *)
 
12641
          # g++
 
12642
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12643
          # as there is no search path for DLLs.
 
12644
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12645
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
12646
          allow_undefined_flag_CXX=unsupported
 
12647
          always_export_symbols_CXX=no
 
12648
          enable_shared_with_static_runtimes_CXX=yes
 
12649
 
 
12650
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
12651
            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'
 
12652
            # If the export-symbols file already is a .def file (1st line
 
12653
            # is EXPORTS), use it as is; otherwise, prepend...
 
12654
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12655
              cp $export_symbols $output_objdir/$soname.def;
 
12656
            else
 
12657
              echo EXPORTS > $output_objdir/$soname.def;
 
12658
              cat $export_symbols >> $output_objdir/$soname.def;
 
12659
            fi~
 
12660
            $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'
 
12661
          else
 
12662
            ld_shlibs_CXX=no
 
12663
          fi
 
12664
          ;;
 
12665
        esac
 
12666
        ;;
 
12667
      darwin* | rhapsody*)
 
12668
 
 
12669
 
 
12670
  archive_cmds_need_lc_CXX=no
 
12671
  hardcode_direct_CXX=no
 
12672
  hardcode_automatic_CXX=yes
 
12673
  hardcode_shlibpath_var_CXX=unsupported
 
12674
  if test "$lt_cv_ld_force_load" = "yes"; then
 
12675
    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\"`'
 
12676
 
 
12677
  else
 
12678
    whole_archive_flag_spec_CXX=''
 
12679
  fi
 
12680
  link_all_deplibs_CXX=yes
 
12681
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12682
  case $cc_basename in
 
12683
     ifort*) _lt_dar_can_shared=yes ;;
 
12684
     *) _lt_dar_can_shared=$GCC ;;
 
12685
  esac
 
12686
  if test "$_lt_dar_can_shared" = "yes"; then
 
12687
    output_verbose_link_cmd=func_echo_all
 
12688
    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}"
 
12689
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12690
    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}"
 
12691
    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}"
 
12692
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12693
      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}"
 
12694
      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}"
 
12695
    fi
 
12696
 
 
12697
  else
 
12698
  ld_shlibs_CXX=no
 
12699
  fi
 
12700
 
 
12701
        ;;
 
12702
 
 
12703
      dgux*)
 
12704
        case $cc_basename in
 
12705
          ec++*)
 
12706
            # FIXME: insert proper C++ library support
 
12707
            ld_shlibs_CXX=no
 
12708
            ;;
 
12709
          ghcx*)
 
12710
            # Green Hills C++ Compiler
 
12711
            # FIXME: insert proper C++ library support
 
12712
            ld_shlibs_CXX=no
 
12713
            ;;
 
12714
          *)
 
12715
            # FIXME: insert proper C++ library support
 
12716
            ld_shlibs_CXX=no
 
12717
            ;;
 
12718
        esac
 
12719
        ;;
 
12720
 
 
12721
      freebsd2.*)
 
12722
        # C++ shared libraries reported to be fairly broken before
 
12723
        # switch to ELF
 
12724
        ld_shlibs_CXX=no
 
12725
        ;;
 
12726
 
 
12727
      freebsd-elf*)
 
12728
        archive_cmds_need_lc_CXX=no
 
12729
        ;;
 
12730
 
 
12731
      freebsd* | dragonfly*)
 
12732
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12733
        # conventions
 
12734
        ld_shlibs_CXX=yes
 
12735
        ;;
 
12736
 
 
12737
      gnu*)
 
12738
        ;;
 
12739
 
 
12740
      haiku*)
 
12741
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12742
        link_all_deplibs_CXX=yes
 
12743
        ;;
 
12744
 
 
12745
      hpux9*)
 
12746
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12747
        hardcode_libdir_separator_CXX=:
 
12748
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12749
        hardcode_direct_CXX=yes
 
12750
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12751
                                             # but as the default
 
12752
                                             # location of the library.
 
12753
 
 
12754
        case $cc_basename in
 
12755
          CC*)
 
12756
            # FIXME: insert proper C++ library support
 
12757
            ld_shlibs_CXX=no
 
12758
            ;;
 
12759
          aCC*)
 
12760
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12761
            # Commands to make compiler produce verbose output that lists
 
12762
            # what "hidden" libraries, object files and flags are used when
 
12763
            # linking a shared library.
 
12764
            #
 
12765
            # There doesn't appear to be a way to prevent this compiler from
 
12766
            # explicitly linking system object files so we need to strip them
 
12767
            # from the output so that they don't get included in the library
 
12768
            # dependencies.
 
12769
            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"'
 
12770
            ;;
 
12771
          *)
 
12772
            if test "$GXX" = yes; then
 
12773
              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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12774
            else
 
12775
              # FIXME: insert proper C++ library support
 
12776
              ld_shlibs_CXX=no
 
12777
            fi
 
12778
            ;;
 
12779
        esac
 
12780
        ;;
 
12781
 
 
12782
      hpux10*|hpux11*)
 
12783
        if test $with_gnu_ld = no; then
 
12784
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12785
          hardcode_libdir_separator_CXX=:
 
12786
 
 
12787
          case $host_cpu in
 
12788
            hppa*64*|ia64*)
 
12789
              ;;
 
12790
            *)
 
12791
              export_dynamic_flag_spec_CXX='${wl}-E'
 
12792
              ;;
 
12793
          esac
 
12794
        fi
 
12795
        case $host_cpu in
 
12796
          hppa*64*|ia64*)
 
12797
            hardcode_direct_CXX=no
 
12798
            hardcode_shlibpath_var_CXX=no
 
12799
            ;;
 
12800
          *)
 
12801
            hardcode_direct_CXX=yes
 
12802
            hardcode_direct_absolute_CXX=yes
 
12803
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12804
                                                 # but as the default
 
12805
                                                 # location of the library.
 
12806
            ;;
 
12807
        esac
 
12808
 
 
12809
        case $cc_basename in
 
12810
          CC*)
 
12811
            # FIXME: insert proper C++ library support
 
12812
            ld_shlibs_CXX=no
 
12813
            ;;
 
12814
          aCC*)
 
12815
            case $host_cpu in
 
12816
              hppa*64*)
 
12817
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12818
                ;;
 
12819
              ia64*)
 
12820
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12821
                ;;
 
12822
              *)
 
12823
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12824
                ;;
 
12825
            esac
 
12826
            # Commands to make compiler produce verbose output that lists
 
12827
            # what "hidden" libraries, object files and flags are used when
 
12828
            # linking a shared library.
 
12829
            #
 
12830
            # There doesn't appear to be a way to prevent this compiler from
 
12831
            # explicitly linking system object files so we need to strip them
 
12832
            # from the output so that they don't get included in the library
 
12833
            # dependencies.
 
12834
            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"'
 
12835
            ;;
 
12836
          *)
 
12837
            if test "$GXX" = yes; then
 
12838
              if test $with_gnu_ld = no; then
 
12839
                case $host_cpu in
 
12840
                  hppa*64*)
 
12841
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12842
                    ;;
 
12843
                  ia64*)
 
12844
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12845
                    ;;
 
12846
                  *)
 
12847
                    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'
 
12848
                    ;;
 
12849
                esac
 
12850
              fi
 
12851
            else
 
12852
              # FIXME: insert proper C++ library support
 
12853
              ld_shlibs_CXX=no
 
12854
            fi
 
12855
            ;;
 
12856
        esac
 
12857
        ;;
 
12858
 
 
12859
      interix[3-9]*)
 
12860
        hardcode_direct_CXX=no
 
12861
        hardcode_shlibpath_var_CXX=no
 
12862
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12863
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12864
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12865
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12866
        # default) and relocated if they conflict, which is a slow very memory
 
12867
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
12868
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12869
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12870
        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'
 
12871
        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'
 
12872
        ;;
 
12873
      irix5* | irix6*)
 
12874
        case $cc_basename in
 
12875
          CC*)
 
12876
            # SGI C++
 
12877
            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'
 
12878
 
 
12879
            # Archives containing C++ object files must be created using
 
12880
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12881
            # necessary to make sure instantiated templates are included
 
12882
            # in the archive.
 
12883
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12884
            ;;
 
12885
          *)
 
12886
            if test "$GXX" = yes; then
 
12887
              if test "$with_gnu_ld" = no; then
 
12888
                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'
 
12889
              else
 
12890
                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'
 
12891
              fi
 
12892
            fi
 
12893
            link_all_deplibs_CXX=yes
 
12894
            ;;
 
12895
        esac
 
12896
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12897
        hardcode_libdir_separator_CXX=:
 
12898
        inherit_rpath_CXX=yes
 
12899
        ;;
 
12900
 
 
12901
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
12902
        case $cc_basename in
 
12903
          KCC*)
 
12904
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12905
 
 
12906
            # KCC will only create a shared library if the output file
 
12907
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12908
            # to its proper name (with version) after linking.
 
12909
            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'
 
12910
            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'
 
12911
            # Commands to make compiler produce verbose output that lists
 
12912
            # what "hidden" libraries, object files and flags are used when
 
12913
            # linking a shared library.
 
12914
            #
 
12915
            # There doesn't appear to be a way to prevent this compiler from
 
12916
            # explicitly linking system object files so we need to strip them
 
12917
            # from the output so that they don't get included in the library
 
12918
            # dependencies.
 
12919
            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"'
 
12920
 
 
12921
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12922
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12923
 
 
12924
            # Archives containing C++ object files must be created using
 
12925
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12926
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12927
            ;;
 
12928
          icpc* | ecpc* )
 
12929
            # Intel C++
 
12930
            with_gnu_ld=yes
 
12931
            # version 8.0 and above of icpc choke on multiply defined symbols
 
12932
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12933
            # earlier do not add the objects themselves.
 
12934
            case `$CC -V 2>&1` in
 
12935
              *"Version 7."*)
 
12936
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12937
                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'
 
12938
                ;;
 
12939
              *)  # Version 8.0 or newer
 
12940
                tmp_idyn=
 
12941
                case $host_cpu in
 
12942
                  ia64*) tmp_idyn=' -i_dynamic';;
 
12943
                esac
 
12944
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12945
                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'
 
12946
                ;;
 
12947
            esac
 
12948
            archive_cmds_need_lc_CXX=no
 
12949
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12950
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12951
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12952
            ;;
 
12953
          pgCC* | pgcpp*)
 
12954
            # Portland Group C++ compiler
 
12955
            case `$CC -V` in
 
12956
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
 
12957
              prelink_cmds_CXX='tpldir=Template.dir~
 
12958
                rm -rf $tpldir~
 
12959
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
12960
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
12961
              old_archive_cmds_CXX='tpldir=Template.dir~
 
12962
                rm -rf $tpldir~
 
12963
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
12964
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
12965
                $RANLIB $oldlib'
 
12966
              archive_cmds_CXX='tpldir=Template.dir~
 
12967
                rm -rf $tpldir~
 
12968
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12969
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12970
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
12971
                rm -rf $tpldir~
 
12972
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
12973
                $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'
 
12974
              ;;
 
12975
            *) # Version 6 and above use weak symbols
 
12976
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12977
              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'
 
12978
              ;;
 
12979
            esac
 
12980
 
 
12981
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12982
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12983
            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'
 
12984
            ;;
 
12985
          cxx*)
 
12986
            # Compaq C++
 
12987
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12988
            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'
 
12989
 
 
12990
            runpath_var=LD_RUN_PATH
 
12991
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12992
            hardcode_libdir_separator_CXX=:
 
12993
 
 
12994
            # Commands to make compiler produce verbose output that lists
 
12995
            # what "hidden" libraries, object files and flags are used when
 
12996
            # linking a shared library.
 
12997
            #
 
12998
            # There doesn't appear to be a way to prevent this compiler from
 
12999
            # explicitly linking system object files so we need to strip them
 
13000
            # from the output so that they don't get included in the library
 
13001
            # dependencies.
 
13002
            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'
 
13003
            ;;
 
13004
          xl* | mpixl* | bgxl*)
 
13005
            # IBM XL 8.0 on PPC, with GNU ld
 
13006
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13007
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13008
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13009
            if test "x$supports_anon_versioning" = xyes; then
 
13010
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13011
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13012
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13013
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13014
            fi
 
13015
            ;;
 
13016
          *)
 
13017
            case `$CC -V 2>&1 | sed 5q` in
 
13018
            *Sun\ C*)
 
13019
              # Sun C++ 5.9
 
13020
              no_undefined_flag_CXX=' -zdefs'
 
13021
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13022
              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'
 
13023
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13024
              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'
 
13025
              compiler_needs_object_CXX=yes
 
13026
 
 
13027
              # Not sure whether something based on
 
13028
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13029
              # would be better.
 
13030
              output_verbose_link_cmd='func_echo_all'
 
13031
 
 
13032
              # Archives containing C++ object files must be created using
 
13033
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13034
              # necessary to make sure instantiated templates are included
 
13035
              # in the archive.
 
13036
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13037
              ;;
 
13038
            esac
 
13039
            ;;
 
13040
        esac
 
13041
        ;;
 
13042
 
 
13043
      lynxos*)
 
13044
        # FIXME: insert proper C++ library support
 
13045
        ld_shlibs_CXX=no
 
13046
        ;;
 
13047
 
 
13048
      m88k*)
 
13049
        # FIXME: insert proper C++ library support
 
13050
        ld_shlibs_CXX=no
 
13051
        ;;
 
13052
 
 
13053
      mvs*)
 
13054
        case $cc_basename in
 
13055
          cxx*)
 
13056
            # FIXME: insert proper C++ library support
 
13057
            ld_shlibs_CXX=no
 
13058
            ;;
 
13059
          *)
 
13060
            # FIXME: insert proper C++ library support
 
13061
            ld_shlibs_CXX=no
 
13062
            ;;
 
13063
        esac
 
13064
        ;;
 
13065
 
 
13066
      netbsd*)
 
13067
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13068
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13069
          wlarc=
 
13070
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13071
          hardcode_direct_CXX=yes
 
13072
          hardcode_shlibpath_var_CXX=no
 
13073
        fi
 
13074
        # Workaround some broken pre-1.5 toolchains
 
13075
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13076
        ;;
 
13077
 
 
13078
      *nto* | *qnx*)
 
13079
        ld_shlibs_CXX=yes
 
13080
        ;;
 
13081
 
 
13082
      openbsd2*)
 
13083
        # C++ shared libraries are fairly broken
 
13084
        ld_shlibs_CXX=no
 
13085
        ;;
 
13086
 
 
13087
      openbsd*)
 
13088
        if test -f /usr/libexec/ld.so; then
 
13089
          hardcode_direct_CXX=yes
 
13090
          hardcode_shlibpath_var_CXX=no
 
13091
          hardcode_direct_absolute_CXX=yes
 
13092
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13093
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13094
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13095
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13096
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13097
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13098
          fi
 
13099
          output_verbose_link_cmd=func_echo_all
 
13100
        else
 
13101
          ld_shlibs_CXX=no
 
13102
        fi
 
13103
        ;;
 
13104
 
 
13105
      osf3* | osf4* | osf5*)
 
13106
        case $cc_basename in
 
13107
          KCC*)
 
13108
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13109
 
 
13110
            # KCC will only create a shared library if the output file
 
13111
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13112
            # to its proper name (with version) after linking.
 
13113
            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'
 
13114
 
 
13115
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13116
            hardcode_libdir_separator_CXX=:
 
13117
 
 
13118
            # Archives containing C++ object files must be created using
 
13119
            # the KAI C++ compiler.
 
13120
            case $host in
 
13121
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
13122
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
13123
            esac
 
13124
            ;;
 
13125
          RCC*)
 
13126
            # Rational C++ 2.4.1
 
13127
            # FIXME: insert proper C++ library support
 
13128
            ld_shlibs_CXX=no
 
13129
            ;;
 
13130
          cxx*)
 
13131
            case $host in
 
13132
              osf3*)
 
13133
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13134
                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'
 
13135
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13136
                ;;
 
13137
              *)
 
13138
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
13139
                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'
 
13140
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
13141
                  echo "-hidden">> $lib.exp~
 
13142
                  $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~
 
13143
                  $RM $lib.exp'
 
13144
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13145
                ;;
 
13146
            esac
 
13147
 
 
13148
            hardcode_libdir_separator_CXX=:
 
13149
 
 
13150
            # Commands to make compiler produce verbose output that lists
 
13151
            # what "hidden" libraries, object files and flags are used when
 
13152
            # linking a shared library.
 
13153
            #
 
13154
            # There doesn't appear to be a way to prevent this compiler from
 
13155
            # explicitly linking system object files so we need to strip them
 
13156
            # from the output so that they don't get included in the library
 
13157
            # dependencies.
 
13158
            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"'
 
13159
            ;;
 
13160
          *)
 
13161
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13162
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
13163
              case $host in
 
13164
                osf3*)
 
13165
                  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'
 
13166
                  ;;
 
13167
                *)
 
13168
                  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'
 
13169
                  ;;
 
13170
              esac
 
13171
 
 
13172
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13173
              hardcode_libdir_separator_CXX=:
 
13174
 
 
13175
              # Commands to make compiler produce verbose output that lists
 
13176
              # what "hidden" libraries, object files and flags are used when
 
13177
              # linking a shared library.
 
13178
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13179
 
 
13180
            else
 
13181
              # FIXME: insert proper C++ library support
 
13182
              ld_shlibs_CXX=no
 
13183
            fi
 
13184
            ;;
 
13185
        esac
 
13186
        ;;
 
13187
 
 
13188
      psos*)
 
13189
        # FIXME: insert proper C++ library support
 
13190
        ld_shlibs_CXX=no
 
13191
        ;;
 
13192
 
 
13193
      sunos4*)
 
13194
        case $cc_basename in
 
13195
          CC*)
 
13196
            # Sun C++ 4.x
 
13197
            # FIXME: insert proper C++ library support
 
13198
            ld_shlibs_CXX=no
 
13199
            ;;
 
13200
          lcc*)
 
13201
            # Lucid
 
13202
            # FIXME: insert proper C++ library support
 
13203
            ld_shlibs_CXX=no
 
13204
            ;;
 
13205
          *)
 
13206
            # FIXME: insert proper C++ library support
 
13207
            ld_shlibs_CXX=no
 
13208
            ;;
 
13209
        esac
 
13210
        ;;
 
13211
 
 
13212
      solaris*)
 
13213
        case $cc_basename in
 
13214
          CC* | sunCC*)
 
13215
            # Sun C++ 4.2, 5.x and Centerline C++
 
13216
            archive_cmds_need_lc_CXX=yes
 
13217
            no_undefined_flag_CXX=' -zdefs'
 
13218
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13219
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13220
              $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'
 
13221
 
 
13222
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13223
            hardcode_shlibpath_var_CXX=no
 
13224
            case $host_os in
 
13225
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13226
              *)
 
13227
                # The compiler driver will combine and reorder linker options,
 
13228
                # but understands `-z linker_flag'.
 
13229
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13230
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
13231
                ;;
 
13232
            esac
 
13233
            link_all_deplibs_CXX=yes
 
13234
 
 
13235
            output_verbose_link_cmd='func_echo_all'
 
13236
 
 
13237
            # Archives containing C++ object files must be created using
 
13238
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13239
            # necessary to make sure instantiated templates are included
 
13240
            # in the archive.
 
13241
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13242
            ;;
 
13243
          gcx*)
 
13244
            # Green Hills C++ Compiler
 
13245
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13246
 
 
13247
            # The C++ compiler must be used to create the archive.
 
13248
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
13249
            ;;
 
13250
          *)
 
13251
            # GNU C++ compiler with Solaris linker
 
13252
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
13253
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
13254
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
13255
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13256
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13257
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13258
 
 
13259
                # Commands to make compiler produce verbose output that lists
 
13260
                # what "hidden" libraries, object files and flags are used when
 
13261
                # linking a shared library.
 
13262
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13263
              else
 
13264
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
13265
                # platform.
 
13266
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
13267
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
13268
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
13269
 
 
13270
                # Commands to make compiler produce verbose output that lists
 
13271
                # what "hidden" libraries, object files and flags are used when
 
13272
                # linking a shared library.
 
13273
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 
13274
              fi
 
13275
 
 
13276
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
13277
              case $host_os in
 
13278
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13279
                *)
 
13280
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
13281
                  ;;
 
13282
              esac
 
13283
            fi
 
13284
            ;;
 
13285
        esac
 
13286
        ;;
 
13287
 
 
13288
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
13289
      no_undefined_flag_CXX='${wl}-z,text'
 
13290
      archive_cmds_need_lc_CXX=no
 
13291
      hardcode_shlibpath_var_CXX=no
 
13292
      runpath_var='LD_RUN_PATH'
 
13293
 
 
13294
      case $cc_basename in
 
13295
        CC*)
 
13296
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13297
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13298
          ;;
 
13299
        *)
 
13300
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13301
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13302
          ;;
 
13303
      esac
 
13304
      ;;
 
13305
 
 
13306
      sysv5* | sco3.2v5* | sco5v6*)
 
13307
        # Note: We can NOT use -z defs as we might desire, because we do not
 
13308
        # link with -lc, and that would cause any symbols used from libc to
 
13309
        # always be unresolved, which means just about no library would
 
13310
        # ever link correctly.  If we're not using GNU ld we use -z text
 
13311
        # though, which does catch some bad symbols but isn't as heavy-handed
 
13312
        # as -z defs.
 
13313
        no_undefined_flag_CXX='${wl}-z,text'
 
13314
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
13315
        archive_cmds_need_lc_CXX=no
 
13316
        hardcode_shlibpath_var_CXX=no
 
13317
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
13318
        hardcode_libdir_separator_CXX=':'
 
13319
        link_all_deplibs_CXX=yes
 
13320
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
13321
        runpath_var='LD_RUN_PATH'
 
13322
 
 
13323
        case $cc_basename in
 
13324
          CC*)
 
13325
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13326
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13327
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
 
13328
              '"$old_archive_cmds_CXX"
 
13329
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
 
13330
              '"$reload_cmds_CXX"
 
13331
            ;;
 
13332
          *)
 
13333
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13334
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13335
            ;;
 
13336
        esac
 
13337
      ;;
 
13338
 
 
13339
      tandem*)
 
13340
        case $cc_basename in
 
13341
          NCC*)
 
13342
            # NonStop-UX NCC 3.20
 
13343
            # FIXME: insert proper C++ library support
 
13344
            ld_shlibs_CXX=no
 
13345
            ;;
 
13346
          *)
 
13347
            # FIXME: insert proper C++ library support
 
13348
            ld_shlibs_CXX=no
 
13349
            ;;
 
13350
        esac
 
13351
        ;;
 
13352
 
 
13353
      vxworks*)
 
13354
        # FIXME: insert proper C++ library support
 
13355
        ld_shlibs_CXX=no
 
13356
        ;;
 
13357
 
 
13358
      *)
 
13359
        # FIXME: insert proper C++ library support
 
13360
        ld_shlibs_CXX=no
 
13361
        ;;
 
13362
    esac
 
13363
 
 
13364
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
13365
$as_echo "$ld_shlibs_CXX" >&6; }
 
13366
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13367
 
 
13368
    GCC_CXX="$GXX"
 
13369
    LD_CXX="$LD"
 
13370
 
 
13371
    ## CAVEAT EMPTOR:
 
13372
    ## There is no encapsulation within the following macros, do not change
 
13373
    ## the running order or otherwise move them around unless you know exactly
 
13374
    ## what you are doing...
 
13375
    # Dependencies to place before and after the object being linked:
 
13376
predep_objects_CXX=
 
13377
postdep_objects_CXX=
 
13378
predeps_CXX=
 
13379
postdeps_CXX=
 
13380
compiler_lib_search_path_CXX=
 
13381
 
 
13382
cat > conftest.$ac_ext <<_LT_EOF
 
13383
class Foo
 
13384
{
 
13385
public:
 
13386
  Foo (void) { a = 0; }
 
13387
private:
 
13388
  int a;
 
13389
};
 
13390
_LT_EOF
 
13391
 
 
13392
 
 
13393
_lt_libdeps_save_CFLAGS=$CFLAGS
 
13394
case "$CC $CFLAGS " in #(
 
13395
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 
13396
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 
13397
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 
13398
esac
 
13399
 
 
13400
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
13401
  (eval $ac_compile) 2>&5
 
13402
  ac_status=$?
 
13403
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
13404
  test $ac_status = 0; }; then
 
13405
  # Parse the compiler output and extract the necessary
 
13406
  # objects, libraries and library flags.
 
13407
 
 
13408
  # Sentinel used to keep track of whether or not we are before
 
13409
  # the conftest object file.
 
13410
  pre_test_object_deps_done=no
 
13411
 
 
13412
  for p in `eval "$output_verbose_link_cmd"`; do
 
13413
    case ${prev}${p} in
 
13414
 
 
13415
    -L* | -R* | -l*)
 
13416
       # Some compilers place space between "-{L,R}" and the path.
 
13417
       # Remove the space.
 
13418
       if test $p = "-L" ||
 
13419
          test $p = "-R"; then
 
13420
         prev=$p
 
13421
         continue
 
13422
       fi
 
13423
 
 
13424
       # Expand the sysroot to ease extracting the directories later.
 
13425
       if test -z "$prev"; then
 
13426
         case $p in
 
13427
         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 
13428
         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 
13429
         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 
13430
         esac
 
13431
       fi
 
13432
       case $p in
 
13433
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 
13434
       esac
 
13435
       if test "$pre_test_object_deps_done" = no; then
 
13436
         case ${prev} in
 
13437
         -L | -R)
 
13438
           # Internal compiler library paths should come after those
 
13439
           # provided the user.  The postdeps already come after the
 
13440
           # user supplied libs so there is no need to process them.
 
13441
           if test -z "$compiler_lib_search_path_CXX"; then
 
13442
             compiler_lib_search_path_CXX="${prev}${p}"
 
13443
           else
 
13444
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
13445
           fi
 
13446
           ;;
 
13447
         # The "-l" case would never come before the object being
 
13448
         # linked, so don't bother handling this case.
 
13449
         esac
 
13450
       else
 
13451
         if test -z "$postdeps_CXX"; then
 
13452
           postdeps_CXX="${prev}${p}"
 
13453
         else
 
13454
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
13455
         fi
 
13456
       fi
 
13457
       prev=
 
13458
       ;;
 
13459
 
 
13460
    *.lto.$objext) ;; # Ignore GCC LTO objects
 
13461
    *.$objext)
 
13462
       # This assumes that the test object file only shows up
 
13463
       # once in the compiler output.
 
13464
       if test "$p" = "conftest.$objext"; then
 
13465
         pre_test_object_deps_done=yes
 
13466
         continue
 
13467
       fi
 
13468
 
 
13469
       if test "$pre_test_object_deps_done" = no; then
 
13470
         if test -z "$predep_objects_CXX"; then
 
13471
           predep_objects_CXX="$p"
 
13472
         else
 
13473
           predep_objects_CXX="$predep_objects_CXX $p"
 
13474
         fi
 
13475
       else
 
13476
         if test -z "$postdep_objects_CXX"; then
 
13477
           postdep_objects_CXX="$p"
 
13478
         else
 
13479
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
13480
         fi
 
13481
       fi
 
13482
       ;;
 
13483
 
 
13484
    *) ;; # Ignore the rest.
 
13485
 
 
13486
    esac
 
13487
  done
 
13488
 
 
13489
  # Clean up.
 
13490
  rm -f a.out a.exe
 
13491
else
 
13492
  echo "libtool.m4: error: problem compiling CXX test program"
 
13493
fi
 
13494
 
 
13495
$RM -f confest.$objext
 
13496
CFLAGS=$_lt_libdeps_save_CFLAGS
 
13497
 
 
13498
# PORTME: override above test on systems where it is broken
 
13499
case $host_os in
 
13500
interix[3-9]*)
 
13501
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
13502
  # hack all around it, let's just trust "g++" to DTRT.
 
13503
  predep_objects_CXX=
 
13504
  postdep_objects_CXX=
 
13505
  postdeps_CXX=
 
13506
  ;;
 
13507
 
 
13508
linux*)
 
13509
  case `$CC -V 2>&1 | sed 5q` in
 
13510
  *Sun\ C*)
 
13511
    # Sun C++ 5.9
 
13512
 
 
13513
    # The more standards-conforming stlport4 library is
 
13514
    # incompatible with the Cstd library. Avoid specifying
 
13515
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13516
    # -library=stlport4 depends on it.
 
13517
    case " $CXX $CXXFLAGS " in
 
13518
    *" -library=stlport4 "*)
 
13519
      solaris_use_stlport4=yes
 
13520
      ;;
 
13521
    esac
 
13522
 
 
13523
    if test "$solaris_use_stlport4" != yes; then
 
13524
      postdeps_CXX='-library=Cstd -library=Crun'
 
13525
    fi
 
13526
    ;;
 
13527
  esac
 
13528
  ;;
 
13529
 
 
13530
solaris*)
 
13531
  case $cc_basename in
 
13532
  CC* | sunCC*)
 
13533
    # The more standards-conforming stlport4 library is
 
13534
    # incompatible with the Cstd library. Avoid specifying
 
13535
    # it if it's in CXXFLAGS. Ignore libCrun as
 
13536
    # -library=stlport4 depends on it.
 
13537
    case " $CXX $CXXFLAGS " in
 
13538
    *" -library=stlport4 "*)
 
13539
      solaris_use_stlport4=yes
 
13540
      ;;
 
13541
    esac
 
13542
 
 
13543
    # Adding this requires a known-good setup of shared libraries for
 
13544
    # Sun compiler versions before 5.6, else PIC objects from an old
 
13545
    # archive will be linked into the output, leading to subtle bugs.
 
13546
    if test "$solaris_use_stlport4" != yes; then
 
13547
      postdeps_CXX='-library=Cstd -library=Crun'
 
13548
    fi
 
13549
    ;;
 
13550
  esac
 
13551
  ;;
 
13552
esac
 
13553
 
 
13554
 
 
13555
case " $postdeps_CXX " in
 
13556
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
13557
esac
 
13558
 compiler_lib_search_dirs_CXX=
 
13559
if test -n "${compiler_lib_search_path_CXX}"; then
 
13560
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
13561
fi
 
13562
 
 
13563
 
 
13564
 
 
13565
 
 
13566
 
 
13567
 
 
13568
 
 
13569
 
 
13570
 
 
13571
 
 
13572
 
 
13573
 
 
13574
 
 
13575
 
 
13576
 
 
13577
 
 
13578
 
 
13579
 
 
13580
 
 
13581
 
 
13582
 
 
13583
 
 
13584
 
 
13585
 
 
13586
 
 
13587
 
 
13588
 
 
13589
 
 
13590
 
 
13591
 
 
13592
 
 
13593
    lt_prog_compiler_wl_CXX=
 
13594
lt_prog_compiler_pic_CXX=
 
13595
lt_prog_compiler_static_CXX=
 
13596
 
 
13597
 
 
13598
  # C++ specific cases for pic, static, wl, etc.
 
13599
  if test "$GXX" = yes; then
 
13600
    lt_prog_compiler_wl_CXX='-Wl,'
 
13601
    lt_prog_compiler_static_CXX='-static'
 
13602
 
 
13603
    case $host_os in
 
13604
    aix*)
 
13605
      # All AIX code is PIC.
 
13606
      if test "$host_cpu" = ia64; then
 
13607
        # AIX 5 now supports IA64 processor
 
13608
        lt_prog_compiler_static_CXX='-Bstatic'
 
13609
      fi
 
13610
      ;;
 
13611
 
 
13612
    amigaos*)
 
13613
      case $host_cpu in
 
13614
      powerpc)
 
13615
            # see comment about AmigaOS4 .so support
 
13616
            lt_prog_compiler_pic_CXX='-fPIC'
 
13617
        ;;
 
13618
      m68k)
 
13619
            # FIXME: we need at least 68020 code to build shared libraries, but
 
13620
            # adding the `-m68020' flag to GCC prevents building anything better,
 
13621
            # like `-m68040'.
 
13622
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
13623
        ;;
 
13624
      esac
 
13625
      ;;
 
13626
 
 
13627
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13628
      # PIC is the default for these OSes.
 
13629
      ;;
 
13630
    mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13631
      # This hack is so that the source file can tell whether it is being
 
13632
      # built for inclusion in a dll (and should export symbols for example).
 
13633
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13634
      # (--disable-auto-import) libraries
 
13635
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13636
      ;;
 
13637
    darwin* | rhapsody*)
 
13638
      # PIC is the default on this platform
 
13639
      # Common symbols not allowed in MH_DYLIB files
 
13640
      lt_prog_compiler_pic_CXX='-fno-common'
 
13641
      ;;
 
13642
    *djgpp*)
 
13643
      # DJGPP does not support shared libraries at all
 
13644
      lt_prog_compiler_pic_CXX=
 
13645
      ;;
 
13646
    haiku*)
 
13647
      # PIC is the default for Haiku.
 
13648
      # The "-static" flag exists, but is broken.
 
13649
      lt_prog_compiler_static_CXX=
 
13650
      ;;
 
13651
    interix[3-9]*)
 
13652
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13653
      # Instead, we relocate shared libraries at runtime.
 
13654
      ;;
 
13655
    sysv4*MP*)
 
13656
      if test -d /usr/nec; then
 
13657
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
13658
      fi
 
13659
      ;;
 
13660
    hpux*)
 
13661
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
13662
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
13663
      # sets the default TLS model and affects inlining.
 
13664
      case $host_cpu in
 
13665
      hppa*64*)
 
13666
        ;;
 
13667
      *)
 
13668
        lt_prog_compiler_pic_CXX='-fPIC'
 
13669
        ;;
 
13670
      esac
 
13671
      ;;
 
13672
    *qnx* | *nto*)
 
13673
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13674
      # it will coredump.
 
13675
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13676
      ;;
 
13677
    *)
 
13678
      lt_prog_compiler_pic_CXX='-fPIC'
 
13679
      ;;
 
13680
    esac
 
13681
  else
 
13682
    case $host_os in
 
13683
      aix[4-9]*)
 
13684
        # All AIX code is PIC.
 
13685
        if test "$host_cpu" = ia64; then
 
13686
          # AIX 5 now supports IA64 processor
 
13687
          lt_prog_compiler_static_CXX='-Bstatic'
 
13688
        else
 
13689
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
13690
        fi
 
13691
        ;;
 
13692
      chorus*)
 
13693
        case $cc_basename in
 
13694
        cxch68*)
 
13695
          # Green Hills C++ Compiler
 
13696
          # _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"
 
13697
          ;;
 
13698
        esac
 
13699
        ;;
 
13700
      mingw* | cygwin* | os2* | pw32* | cegcc*)
 
13701
        # This hack is so that the source file can tell whether it is being
 
13702
        # built for inclusion in a dll (and should export symbols for example).
 
13703
        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
13704
        ;;
 
13705
      dgux*)
 
13706
        case $cc_basename in
 
13707
          ec++*)
 
13708
            lt_prog_compiler_pic_CXX='-KPIC'
 
13709
            ;;
 
13710
          ghcx*)
 
13711
            # Green Hills C++ Compiler
 
13712
            lt_prog_compiler_pic_CXX='-pic'
 
13713
            ;;
 
13714
          *)
 
13715
            ;;
 
13716
        esac
 
13717
        ;;
 
13718
      freebsd* | dragonfly*)
 
13719
        # FreeBSD uses GNU C++
 
13720
        ;;
 
13721
      hpux9* | hpux10* | hpux11*)
 
13722
        case $cc_basename in
 
13723
          CC*)
 
13724
            lt_prog_compiler_wl_CXX='-Wl,'
 
13725
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13726
            if test "$host_cpu" != ia64; then
 
13727
              lt_prog_compiler_pic_CXX='+Z'
 
13728
            fi
 
13729
            ;;
 
13730
          aCC*)
 
13731
            lt_prog_compiler_wl_CXX='-Wl,'
 
13732
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13733
            case $host_cpu in
 
13734
            hppa*64*|ia64*)
 
13735
              # +Z the default
 
13736
              ;;
 
13737
            *)
 
13738
              lt_prog_compiler_pic_CXX='+Z'
 
13739
              ;;
 
13740
            esac
 
13741
            ;;
 
13742
          *)
 
13743
            ;;
 
13744
        esac
 
13745
        ;;
 
13746
      interix*)
 
13747
        # This is c89, which is MS Visual C++ (no shared libs)
 
13748
        # Anyone wants to do a port?
 
13749
        ;;
 
13750
      irix5* | irix6* | nonstopux*)
 
13751
        case $cc_basename in
 
13752
          CC*)
 
13753
            lt_prog_compiler_wl_CXX='-Wl,'
 
13754
            lt_prog_compiler_static_CXX='-non_shared'
 
13755
            # CC pic flag -KPIC is the default.
 
13756
            ;;
 
13757
          *)
 
13758
            ;;
 
13759
        esac
 
13760
        ;;
 
13761
      linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
13762
        case $cc_basename in
 
13763
          KCC*)
 
13764
            # KAI C++ Compiler
 
13765
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13766
            lt_prog_compiler_pic_CXX='-fPIC'
 
13767
            ;;
 
13768
          ecpc* )
 
13769
            # old Intel C++ for x86_64 which still supported -KPIC.
 
13770
            lt_prog_compiler_wl_CXX='-Wl,'
 
13771
            lt_prog_compiler_pic_CXX='-KPIC'
 
13772
            lt_prog_compiler_static_CXX='-static'
 
13773
            ;;
 
13774
          icpc* )
 
13775
            # Intel C++, used to be incompatible with GCC.
 
13776
            # ICC 10 doesn't accept -KPIC any more.
 
13777
            lt_prog_compiler_wl_CXX='-Wl,'
 
13778
            lt_prog_compiler_pic_CXX='-fPIC'
 
13779
            lt_prog_compiler_static_CXX='-static'
 
13780
            ;;
 
13781
          pgCC* | pgcpp*)
 
13782
            # Portland Group C++ compiler
 
13783
            lt_prog_compiler_wl_CXX='-Wl,'
 
13784
            lt_prog_compiler_pic_CXX='-fpic'
 
13785
            lt_prog_compiler_static_CXX='-Bstatic'
 
13786
            ;;
 
13787
          cxx*)
 
13788
            # Compaq C++
 
13789
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13790
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13791
            lt_prog_compiler_pic_CXX=
 
13792
            lt_prog_compiler_static_CXX='-non_shared'
 
13793
            ;;
 
13794
          xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
 
13795
            # IBM XL 8.0, 9.0 on PPC and BlueGene
 
13796
            lt_prog_compiler_wl_CXX='-Wl,'
 
13797
            lt_prog_compiler_pic_CXX='-qpic'
 
13798
            lt_prog_compiler_static_CXX='-qstaticlink'
 
13799
            ;;
 
13800
          *)
 
13801
            case `$CC -V 2>&1 | sed 5q` in
 
13802
            *Sun\ C*)
 
13803
              # Sun C++ 5.9
 
13804
              lt_prog_compiler_pic_CXX='-KPIC'
 
13805
              lt_prog_compiler_static_CXX='-Bstatic'
 
13806
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13807
              ;;
 
13808
            esac
 
13809
            ;;
 
13810
        esac
 
13811
        ;;
 
13812
      lynxos*)
 
13813
        ;;
 
13814
      m88k*)
 
13815
        ;;
 
13816
      mvs*)
 
13817
        case $cc_basename in
 
13818
          cxx*)
 
13819
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13820
            ;;
 
13821
          *)
 
13822
            ;;
 
13823
        esac
 
13824
        ;;
 
13825
      netbsd* | netbsdelf*-gnu)
 
13826
        ;;
 
13827
      *qnx* | *nto*)
 
13828
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
13829
        # it will coredump.
 
13830
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
13831
        ;;
 
13832
      osf3* | osf4* | osf5*)
 
13833
        case $cc_basename in
 
13834
          KCC*)
 
13835
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13836
            ;;
 
13837
          RCC*)
 
13838
            # Rational C++ 2.4.1
 
13839
            lt_prog_compiler_pic_CXX='-pic'
 
13840
            ;;
 
13841
          cxx*)
 
13842
            # Digital/Compaq C++
 
13843
            lt_prog_compiler_wl_CXX='-Wl,'
 
13844
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13845
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13846
            lt_prog_compiler_pic_CXX=
 
13847
            lt_prog_compiler_static_CXX='-non_shared'
 
13848
            ;;
 
13849
          *)
 
13850
            ;;
 
13851
        esac
 
13852
        ;;
 
13853
      psos*)
 
13854
        ;;
 
13855
      solaris*)
 
13856
        case $cc_basename in
 
13857
          CC* | sunCC*)
 
13858
            # Sun C++ 4.2, 5.x and Centerline C++
 
13859
            lt_prog_compiler_pic_CXX='-KPIC'
 
13860
            lt_prog_compiler_static_CXX='-Bstatic'
 
13861
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13862
            ;;
 
13863
          gcx*)
 
13864
            # Green Hills C++ Compiler
 
13865
            lt_prog_compiler_pic_CXX='-PIC'
 
13866
            ;;
 
13867
          *)
 
13868
            ;;
 
13869
        esac
 
13870
        ;;
 
13871
      sunos4*)
 
13872
        case $cc_basename in
 
13873
          CC*)
 
13874
            # Sun C++ 4.x
 
13875
            lt_prog_compiler_pic_CXX='-pic'
 
13876
            lt_prog_compiler_static_CXX='-Bstatic'
 
13877
            ;;
 
13878
          lcc*)
 
13879
            # Lucid
 
13880
            lt_prog_compiler_pic_CXX='-pic'
 
13881
            ;;
 
13882
          *)
 
13883
            ;;
 
13884
        esac
 
13885
        ;;
 
13886
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13887
        case $cc_basename in
 
13888
          CC*)
 
13889
            lt_prog_compiler_wl_CXX='-Wl,'
 
13890
            lt_prog_compiler_pic_CXX='-KPIC'
 
13891
            lt_prog_compiler_static_CXX='-Bstatic'
 
13892
            ;;
 
13893
        esac
 
13894
        ;;
 
13895
      tandem*)
 
13896
        case $cc_basename in
 
13897
          NCC*)
 
13898
            # NonStop-UX NCC 3.20
 
13899
            lt_prog_compiler_pic_CXX='-KPIC'
 
13900
            ;;
 
13901
          *)
 
13902
            ;;
 
13903
        esac
 
13904
        ;;
 
13905
      vxworks*)
 
13906
        ;;
 
13907
      *)
 
13908
        lt_prog_compiler_can_build_shared_CXX=no
 
13909
        ;;
 
13910
    esac
 
13911
  fi
 
13912
 
 
13913
case $host_os in
 
13914
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13915
  *djgpp*)
 
13916
    lt_prog_compiler_pic_CXX=
 
13917
    ;;
 
13918
  *)
 
13919
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13920
    ;;
 
13921
esac
 
13922
 
 
13923
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
13924
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
13925
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
 
13926
  $as_echo_n "(cached) " >&6
 
13927
else
 
13928
  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
 
13929
fi
 
13930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
 
13931
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
 
13932
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
 
13933
 
 
13934
#
 
13935
# Check to make sure the PIC flag actually works.
 
13936
#
 
13937
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13938
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13939
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13940
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
 
13941
  $as_echo_n "(cached) " >&6
 
13942
else
 
13943
  lt_cv_prog_compiler_pic_works_CXX=no
 
13944
   ac_outfile=conftest.$ac_objext
 
13945
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13946
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13947
   # Insert the option either (1) after the last *FLAGS variable, or
 
13948
   # (2) before a word containing "conftest.", or (3) at the end.
 
13949
   # Note that $ac_compile itself does not contain backslashes and begins
 
13950
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13951
   # The option is referenced via a variable to avoid confusing sed.
 
13952
   lt_compile=`echo "$ac_compile" | $SED \
 
13953
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13954
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13955
   -e 's:$: $lt_compiler_flag:'`
 
13956
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
13957
   (eval "$lt_compile" 2>conftest.err)
 
13958
   ac_status=$?
 
13959
   cat conftest.err >&5
 
13960
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13961
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13962
     # The compiler can only warn and ignore the option if not recognized
 
13963
     # So say no if there are warnings other than the usual output.
 
13964
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
13965
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13966
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13967
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13968
     fi
 
13969
   fi
 
13970
   $RM conftest*
 
13971
 
 
13972
fi
 
13973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13974
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13975
 
 
13976
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13977
    case $lt_prog_compiler_pic_CXX in
 
13978
     "" | " "*) ;;
 
13979
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13980
     esac
 
13981
else
 
13982
    lt_prog_compiler_pic_CXX=
 
13983
     lt_prog_compiler_can_build_shared_CXX=no
 
13984
fi
 
13985
 
 
13986
fi
 
13987
 
 
13988
 
 
13989
 
 
13990
 
 
13991
 
 
13992
#
 
13993
# Check to make sure the static flag actually works.
 
13994
#
 
13995
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13997
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13998
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
 
13999
  $as_echo_n "(cached) " >&6
 
14000
else
 
14001
  lt_cv_prog_compiler_static_works_CXX=no
 
14002
   save_LDFLAGS="$LDFLAGS"
 
14003
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14004
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14005
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14006
     # The linker can only warn and ignore the option if not recognized
 
14007
     # So say no if there are warnings
 
14008
     if test -s conftest.err; then
 
14009
       # Append any errors to the config.log.
 
14010
       cat conftest.err 1>&5
 
14011
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
14012
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14013
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14014
         lt_cv_prog_compiler_static_works_CXX=yes
 
14015
       fi
 
14016
     else
 
14017
       lt_cv_prog_compiler_static_works_CXX=yes
 
14018
     fi
 
14019
   fi
 
14020
   $RM -r conftest*
 
14021
   LDFLAGS="$save_LDFLAGS"
 
14022
 
 
14023
fi
 
14024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14025
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14026
 
 
14027
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14028
    :
 
14029
else
 
14030
    lt_prog_compiler_static_CXX=
 
14031
fi
 
14032
 
 
14033
 
 
14034
 
 
14035
 
 
14036
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14037
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14038
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14039
  $as_echo_n "(cached) " >&6
 
14040
else
 
14041
  lt_cv_prog_compiler_c_o_CXX=no
 
14042
   $RM -r conftest 2>/dev/null
 
14043
   mkdir conftest
 
14044
   cd conftest
 
14045
   mkdir out
 
14046
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14047
 
 
14048
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14049
   # Insert the option either (1) after the last *FLAGS variable, or
 
14050
   # (2) before a word containing "conftest.", or (3) at the end.
 
14051
   # Note that $ac_compile itself does not contain backslashes and begins
 
14052
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14053
   lt_compile=`echo "$ac_compile" | $SED \
 
14054
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14055
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14056
   -e 's:$: $lt_compiler_flag:'`
 
14057
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14058
   (eval "$lt_compile" 2>out/conftest.err)
 
14059
   ac_status=$?
 
14060
   cat out/conftest.err >&5
 
14061
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14062
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14063
   then
 
14064
     # The compiler can only warn and ignore the option if not recognized
 
14065
     # So say no if there are warnings
 
14066
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14067
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14068
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14069
       lt_cv_prog_compiler_c_o_CXX=yes
 
14070
     fi
 
14071
   fi
 
14072
   chmod u+w . 2>&5
 
14073
   $RM conftest*
 
14074
   # SGI C++ compiler will create directory out/ii_files/ for
 
14075
   # template instantiation
 
14076
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14077
   $RM out/* && rmdir out
 
14078
   cd ..
 
14079
   $RM -r conftest
 
14080
   $RM conftest*
 
14081
 
 
14082
fi
 
14083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14084
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14085
 
 
14086
 
 
14087
 
 
14088
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14089
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14090
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
 
14091
  $as_echo_n "(cached) " >&6
 
14092
else
 
14093
  lt_cv_prog_compiler_c_o_CXX=no
 
14094
   $RM -r conftest 2>/dev/null
 
14095
   mkdir conftest
 
14096
   cd conftest
 
14097
   mkdir out
 
14098
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14099
 
 
14100
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14101
   # Insert the option either (1) after the last *FLAGS variable, or
 
14102
   # (2) before a word containing "conftest.", or (3) at the end.
 
14103
   # Note that $ac_compile itself does not contain backslashes and begins
 
14104
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14105
   lt_compile=`echo "$ac_compile" | $SED \
 
14106
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14107
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14108
   -e 's:$: $lt_compiler_flag:'`
 
14109
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
14110
   (eval "$lt_compile" 2>out/conftest.err)
 
14111
   ac_status=$?
 
14112
   cat out/conftest.err >&5
 
14113
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14114
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14115
   then
 
14116
     # The compiler can only warn and ignore the option if not recognized
 
14117
     # So say no if there are warnings
 
14118
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
14119
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14120
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14121
       lt_cv_prog_compiler_c_o_CXX=yes
 
14122
     fi
 
14123
   fi
 
14124
   chmod u+w . 2>&5
 
14125
   $RM conftest*
 
14126
   # SGI C++ compiler will create directory out/ii_files/ for
 
14127
   # template instantiation
 
14128
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14129
   $RM out/* && rmdir out
 
14130
   cd ..
 
14131
   $RM -r conftest
 
14132
   $RM conftest*
 
14133
 
 
14134
fi
 
14135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14136
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14137
 
 
14138
 
 
14139
 
 
14140
 
 
14141
hard_links="nottested"
 
14142
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14143
  # do not overwrite the value of need_locks provided by the user
 
14144
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
14145
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14146
  hard_links=yes
 
14147
  $RM conftest*
 
14148
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14149
  touch conftest.a
 
14150
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14151
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14152
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
14153
$as_echo "$hard_links" >&6; }
 
14154
  if test "$hard_links" = no; then
 
14155
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14156
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14157
    need_locks=warn
 
14158
  fi
 
14159
else
 
14160
  need_locks=no
 
14161
fi
 
14162
 
 
14163
 
 
14164
 
 
14165
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14166
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14167
 
 
14168
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14169
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14170
  case $host_os in
 
14171
  aix[4-9]*)
 
14172
    # If we're using GNU nm, then we don't want the "-C" option.
 
14173
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14174
    # Also, AIX nm treats weak defined symbols like other global defined
 
14175
    # symbols, whereas GNU nm marks them as "W".
 
14176
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
14177
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14178
    else
 
14179
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
14180
    fi
 
14181
    ;;
 
14182
  pw32*)
 
14183
    export_symbols_cmds_CXX="$ltdll_cmds"
 
14184
    ;;
 
14185
  cygwin* | mingw* | cegcc*)
 
14186
    case $cc_basename in
 
14187
    cl*)
 
14188
      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
14189
      ;;
 
14190
    *)
 
14191
      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'
 
14192
      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
14193
      ;;
 
14194
    esac
 
14195
    ;;
 
14196
  linux* | k*bsd*-gnu | gnu*)
 
14197
    link_all_deplibs_CXX=no
 
14198
    ;;
 
14199
  *)
 
14200
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14201
    ;;
 
14202
  esac
 
14203
 
 
14204
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
 
14205
$as_echo "$ld_shlibs_CXX" >&6; }
 
14206
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14207
 
 
14208
with_gnu_ld_CXX=$with_gnu_ld
 
14209
 
 
14210
 
 
14211
 
 
14212
 
 
14213
 
 
14214
 
 
14215
#
 
14216
# Do we need to explicitly link libc?
 
14217
#
 
14218
case "x$archive_cmds_need_lc_CXX" in
 
14219
x|xyes)
 
14220
  # Assume -lc should be added
 
14221
  archive_cmds_need_lc_CXX=yes
 
14222
 
 
14223
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14224
    case $archive_cmds_CXX in
 
14225
    *'~'*)
 
14226
      # FIXME: we may have to deal with multi-command sequences.
 
14227
      ;;
 
14228
    '$CC '*)
 
14229
      # Test whether the compiler implicitly links with -lc since on some
 
14230
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14231
      # to ld, don't add -lc before -lgcc.
 
14232
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
14233
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
14234
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
 
14235
  $as_echo_n "(cached) " >&6
 
14236
else
 
14237
  $RM conftest*
 
14238
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14239
 
 
14240
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
14241
  (eval $ac_compile) 2>&5
 
14242
  ac_status=$?
 
14243
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14244
  test $ac_status = 0; } 2>conftest.err; then
 
14245
          soname=conftest
 
14246
          lib=conftest
 
14247
          libobjs=conftest.$ac_objext
 
14248
          deplibs=
 
14249
          wl=$lt_prog_compiler_wl_CXX
 
14250
          pic_flag=$lt_prog_compiler_pic_CXX
 
14251
          compiler_flags=-v
 
14252
          linker_flags=-v
 
14253
          verstring=
 
14254
          output_objdir=.
 
14255
          libname=conftest
 
14256
          lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
14257
          allow_undefined_flag_CXX=
 
14258
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
14259
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14260
  ac_status=$?
 
14261
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
14262
  test $ac_status = 0; }
 
14263
          then
 
14264
            lt_cv_archive_cmds_need_lc_CXX=no
 
14265
          else
 
14266
            lt_cv_archive_cmds_need_lc_CXX=yes
 
14267
          fi
 
14268
          allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
14269
        else
 
14270
          cat conftest.err 1>&5
 
14271
        fi
 
14272
        $RM conftest*
 
14273
 
 
14274
fi
 
14275
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
 
14276
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
 
14277
      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
 
14278
      ;;
 
14279
    esac
 
14280
  fi
 
14281
  ;;
 
14282
esac
 
14283
 
 
14284
 
 
14285
 
 
14286
 
 
14287
 
 
14288
 
 
14289
 
 
14290
 
 
14291
 
 
14292
 
 
14293
 
 
14294
 
 
14295
 
 
14296
 
 
14297
 
 
14298
 
 
14299
 
 
14300
 
 
14301
 
 
14302
 
 
14303
 
 
14304
 
 
14305
 
 
14306
 
 
14307
 
 
14308
 
 
14309
 
 
14310
 
 
14311
 
 
14312
 
 
14313
 
 
14314
 
 
14315
 
 
14316
 
 
14317
 
 
14318
 
 
14319
 
 
14320
 
 
14321
 
 
14322
 
 
14323
 
 
14324
 
 
14325
 
 
14326
 
 
14327
 
 
14328
 
 
14329
 
 
14330
 
 
14331
 
 
14332
 
 
14333
 
 
14334
 
 
14335
 
 
14336
 
 
14337
 
 
14338
 
 
14339
 
 
14340
 
 
14341
 
 
14342
 
 
14343
 
 
14344
 
 
14345
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
14346
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
14347
 
 
14348
library_names_spec=
 
14349
libname_spec='lib$name'
 
14350
soname_spec=
 
14351
shrext_cmds=".so"
 
14352
postinstall_cmds=
 
14353
postuninstall_cmds=
 
14354
finish_cmds=
 
14355
finish_eval=
 
14356
shlibpath_var=
 
14357
shlibpath_overrides_runpath=unknown
 
14358
version_type=none
 
14359
dynamic_linker="$host_os ld.so"
 
14360
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14361
need_lib_prefix=unknown
 
14362
hardcode_into_libs=no
 
14363
 
 
14364
# when you set need_version to no, make sure it does not cause -set_version
 
14365
# flags to be left without arguments
 
14366
need_version=unknown
 
14367
 
 
14368
case $host_os in
 
14369
aix3*)
 
14370
  version_type=linux # correct to gnu/linux during the next big refactor
 
14371
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14372
  shlibpath_var=LIBPATH
 
14373
 
 
14374
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14375
  soname_spec='${libname}${release}${shared_ext}$major'
 
14376
  ;;
 
14377
 
 
14378
aix[4-9]*)
 
14379
  version_type=linux # correct to gnu/linux during the next big refactor
 
14380
  need_lib_prefix=no
 
14381
  need_version=no
 
14382
  hardcode_into_libs=yes
 
14383
  if test "$host_cpu" = ia64; then
 
14384
    # AIX 5 supports IA64
 
14385
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14386
    shlibpath_var=LD_LIBRARY_PATH
 
14387
  else
 
14388
    # With GCC up to 2.95.x, collect2 would create an import file
 
14389
    # for dependence libraries.  The import file would start with
 
14390
    # the line `#! .'.  This would cause the generated library to
 
14391
    # depend on `.', always an invalid library.  This was fixed in
 
14392
    # development snapshots of GCC prior to 3.0.
 
14393
    case $host_os in
 
14394
      aix4 | aix4.[01] | aix4.[01].*)
 
14395
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14396
           echo ' yes '
 
14397
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
14398
        :
 
14399
      else
 
14400
        can_build_shared=no
 
14401
      fi
 
14402
      ;;
 
14403
    esac
 
14404
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14405
    # soname into executable. Probably we can add versioning support to
 
14406
    # collect2, so additional links can be useful in future.
 
14407
    if test "$aix_use_runtimelinking" = yes; then
 
14408
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14409
      # instead of lib<name>.a to let people know that these are not
 
14410
      # typical AIX shared libraries.
 
14411
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14412
    else
 
14413
      # We preserve .a as extension for shared libraries through AIX4.2
 
14414
      # and later when we are not doing run time linking.
 
14415
      library_names_spec='${libname}${release}.a $libname.a'
 
14416
      soname_spec='${libname}${release}${shared_ext}$major'
 
14417
    fi
 
14418
    shlibpath_var=LIBPATH
 
14419
  fi
 
14420
  ;;
 
14421
 
 
14422
amigaos*)
 
14423
  case $host_cpu in
 
14424
  powerpc)
 
14425
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
14426
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
14427
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14428
    ;;
 
14429
  m68k)
 
14430
    library_names_spec='$libname.ixlibrary $libname.a'
 
14431
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14432
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
14433
    ;;
 
14434
  esac
 
14435
  ;;
 
14436
 
 
14437
beos*)
 
14438
  library_names_spec='${libname}${shared_ext}'
 
14439
  dynamic_linker="$host_os ld.so"
 
14440
  shlibpath_var=LIBRARY_PATH
 
14441
  ;;
 
14442
 
 
14443
bsdi[45]*)
 
14444
  version_type=linux # correct to gnu/linux during the next big refactor
 
14445
  need_version=no
 
14446
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14447
  soname_spec='${libname}${release}${shared_ext}$major'
 
14448
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14449
  shlibpath_var=LD_LIBRARY_PATH
 
14450
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14451
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14452
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14453
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14454
  # libtool to hard-code these into programs
 
14455
  ;;
 
14456
 
 
14457
cygwin* | mingw* | pw32* | cegcc*)
 
14458
  version_type=windows
 
14459
  shrext_cmds=".dll"
 
14460
  need_version=no
 
14461
  need_lib_prefix=no
 
14462
 
 
14463
  case $GCC,$cc_basename in
 
14464
  yes,*)
 
14465
    # gcc
 
14466
    library_names_spec='$libname.dll.a'
 
14467
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14468
    postinstall_cmds='base_file=`basename \${file}`~
 
14469
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14470
      dldir=$destdir/`dirname \$dlpath`~
 
14471
      test -d \$dldir || mkdir -p \$dldir~
 
14472
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14473
      chmod a+x \$dldir/$dlname~
 
14474
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
14475
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
14476
      fi'
 
14477
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14478
      dlpath=$dir/\$dldll~
 
14479
       $RM \$dlpath'
 
14480
    shlibpath_overrides_runpath=yes
 
14481
 
 
14482
    case $host_os in
 
14483
    cygwin*)
 
14484
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14485
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14486
 
 
14487
      ;;
 
14488
    mingw* | cegcc*)
 
14489
      # MinGW DLLs use traditional 'lib' prefix
 
14490
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14491
      ;;
 
14492
    pw32*)
 
14493
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14494
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14495
      ;;
 
14496
    esac
 
14497
    dynamic_linker='Win32 ld.exe'
 
14498
    ;;
 
14499
 
 
14500
  *,cl*)
 
14501
    # Native MSVC
 
14502
    libname_spec='$name'
 
14503
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14504
    library_names_spec='${libname}.dll.lib'
 
14505
 
 
14506
    case $build_os in
 
14507
    mingw*)
 
14508
      sys_lib_search_path_spec=
 
14509
      lt_save_ifs=$IFS
 
14510
      IFS=';'
 
14511
      for lt_path in $LIB
 
14512
      do
 
14513
        IFS=$lt_save_ifs
 
14514
        # Let DOS variable expansion print the short 8.3 style file name.
 
14515
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
14516
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
14517
      done
 
14518
      IFS=$lt_save_ifs
 
14519
      # Convert to MSYS style.
 
14520
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
14521
      ;;
 
14522
    cygwin*)
 
14523
      # Convert to unix form, then to dos form, then back to unix form
 
14524
      # but this time dos style (no spaces!) so that the unix form looks
 
14525
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
14526
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
14527
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
14528
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14529
      ;;
 
14530
    *)
 
14531
      sys_lib_search_path_spec="$LIB"
 
14532
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
14533
        # It is most probably a Windows format PATH.
 
14534
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14535
      else
 
14536
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
14537
      fi
 
14538
      # FIXME: find the short name or the path components, as spaces are
 
14539
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
14540
      ;;
 
14541
    esac
 
14542
 
 
14543
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14544
    postinstall_cmds='base_file=`basename \${file}`~
 
14545
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
14546
      dldir=$destdir/`dirname \$dlpath`~
 
14547
      test -d \$dldir || mkdir -p \$dldir~
 
14548
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14549
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14550
      dlpath=$dir/\$dldll~
 
14551
       $RM \$dlpath'
 
14552
    shlibpath_overrides_runpath=yes
 
14553
    dynamic_linker='Win32 link.exe'
 
14554
    ;;
 
14555
 
 
14556
  *)
 
14557
    # Assume MSVC wrapper
 
14558
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14559
    dynamic_linker='Win32 ld.exe'
 
14560
    ;;
 
14561
  esac
 
14562
  # FIXME: first we should search . and the directory the executable is in
 
14563
  shlibpath_var=PATH
 
14564
  ;;
 
14565
 
 
14566
darwin* | rhapsody*)
 
14567
  dynamic_linker="$host_os dyld"
 
14568
  version_type=darwin
 
14569
  need_lib_prefix=no
 
14570
  need_version=no
 
14571
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14572
  soname_spec='${libname}${release}${major}$shared_ext'
 
14573
  shlibpath_overrides_runpath=yes
 
14574
  shlibpath_var=DYLD_LIBRARY_PATH
 
14575
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14576
 
 
14577
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14578
  ;;
 
14579
 
 
14580
dgux*)
 
14581
  version_type=linux # correct to gnu/linux during the next big refactor
 
14582
  need_lib_prefix=no
 
14583
  need_version=no
 
14584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14585
  soname_spec='${libname}${release}${shared_ext}$major'
 
14586
  shlibpath_var=LD_LIBRARY_PATH
 
14587
  ;;
 
14588
 
 
14589
freebsd* | dragonfly*)
 
14590
  # DragonFly does not have aout.  When/if they implement a new
 
14591
  # versioning mechanism, adjust this.
 
14592
  if test -x /usr/bin/objformat; then
 
14593
    objformat=`/usr/bin/objformat`
 
14594
  else
 
14595
    case $host_os in
 
14596
    freebsd[23].*) objformat=aout ;;
 
14597
    *) objformat=elf ;;
 
14598
    esac
 
14599
  fi
 
14600
  version_type=freebsd-$objformat
 
14601
  case $version_type in
 
14602
    freebsd-elf*)
 
14603
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14604
      need_version=no
 
14605
      need_lib_prefix=no
 
14606
      ;;
 
14607
    freebsd-*)
 
14608
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14609
      need_version=yes
 
14610
      ;;
 
14611
  esac
 
14612
  shlibpath_var=LD_LIBRARY_PATH
 
14613
  case $host_os in
 
14614
  freebsd2.*)
 
14615
    shlibpath_overrides_runpath=yes
 
14616
    ;;
 
14617
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14618
    shlibpath_overrides_runpath=yes
 
14619
    hardcode_into_libs=yes
 
14620
    ;;
 
14621
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14622
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14623
    shlibpath_overrides_runpath=no
 
14624
    hardcode_into_libs=yes
 
14625
    ;;
 
14626
  *) # from 4.6 on, and DragonFly
 
14627
    shlibpath_overrides_runpath=yes
 
14628
    hardcode_into_libs=yes
 
14629
    ;;
 
14630
  esac
 
14631
  ;;
 
14632
 
 
14633
gnu*)
 
14634
  version_type=linux # correct to gnu/linux during the next big refactor
 
14635
  need_lib_prefix=no
 
14636
  need_version=no
 
14637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14638
  soname_spec='${libname}${release}${shared_ext}$major'
 
14639
  shlibpath_var=LD_LIBRARY_PATH
 
14640
  shlibpath_overrides_runpath=no
 
14641
  hardcode_into_libs=yes
 
14642
  ;;
 
14643
 
 
14644
haiku*)
 
14645
  version_type=linux # correct to gnu/linux during the next big refactor
 
14646
  need_lib_prefix=no
 
14647
  need_version=no
 
14648
  dynamic_linker="$host_os runtime_loader"
 
14649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14650
  soname_spec='${libname}${release}${shared_ext}$major'
 
14651
  shlibpath_var=LIBRARY_PATH
 
14652
  shlibpath_overrides_runpath=yes
 
14653
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
14654
  hardcode_into_libs=yes
 
14655
  ;;
 
14656
 
 
14657
hpux9* | hpux10* | hpux11*)
 
14658
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14659
  # link against other versions.
 
14660
  version_type=sunos
 
14661
  need_lib_prefix=no
 
14662
  need_version=no
 
14663
  case $host_cpu in
 
14664
  ia64*)
 
14665
    shrext_cmds='.so'
 
14666
    hardcode_into_libs=yes
 
14667
    dynamic_linker="$host_os dld.so"
 
14668
    shlibpath_var=LD_LIBRARY_PATH
 
14669
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14670
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14671
    soname_spec='${libname}${release}${shared_ext}$major'
 
14672
    if test "X$HPUX_IA64_MODE" = X32; then
 
14673
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14674
    else
 
14675
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14676
    fi
 
14677
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14678
    ;;
 
14679
  hppa*64*)
 
14680
    shrext_cmds='.sl'
 
14681
    hardcode_into_libs=yes
 
14682
    dynamic_linker="$host_os dld.sl"
 
14683
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14684
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14685
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14686
    soname_spec='${libname}${release}${shared_ext}$major'
 
14687
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14688
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14689
    ;;
 
14690
  *)
 
14691
    shrext_cmds='.sl'
 
14692
    dynamic_linker="$host_os dld.sl"
 
14693
    shlibpath_var=SHLIB_PATH
 
14694
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14695
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14696
    soname_spec='${libname}${release}${shared_ext}$major'
 
14697
    ;;
 
14698
  esac
 
14699
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
14700
  postinstall_cmds='chmod 555 $lib'
 
14701
  # or fails outright, so override atomically:
 
14702
  install_override_mode=555
 
14703
  ;;
 
14704
 
 
14705
interix[3-9]*)
 
14706
  version_type=linux # correct to gnu/linux during the next big refactor
 
14707
  need_lib_prefix=no
 
14708
  need_version=no
 
14709
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14710
  soname_spec='${libname}${release}${shared_ext}$major'
 
14711
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14712
  shlibpath_var=LD_LIBRARY_PATH
 
14713
  shlibpath_overrides_runpath=no
 
14714
  hardcode_into_libs=yes
 
14715
  ;;
 
14716
 
 
14717
irix5* | irix6* | nonstopux*)
 
14718
  case $host_os in
 
14719
    nonstopux*) version_type=nonstopux ;;
 
14720
    *)
 
14721
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14722
                version_type=linux # correct to gnu/linux during the next big refactor
 
14723
        else
 
14724
                version_type=irix
 
14725
        fi ;;
 
14726
  esac
 
14727
  need_lib_prefix=no
 
14728
  need_version=no
 
14729
  soname_spec='${libname}${release}${shared_ext}$major'
 
14730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14731
  case $host_os in
 
14732
  irix5* | nonstopux*)
 
14733
    libsuff= shlibsuff=
 
14734
    ;;
 
14735
  *)
 
14736
    case $LD in # libtool.m4 will add one of these switches to LD
 
14737
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14738
      libsuff= shlibsuff= libmagic=32-bit;;
 
14739
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14740
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14741
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14742
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14743
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14744
    esac
 
14745
    ;;
 
14746
  esac
 
14747
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14748
  shlibpath_overrides_runpath=no
 
14749
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14750
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14751
  hardcode_into_libs=yes
 
14752
  ;;
 
14753
 
 
14754
# No shared lib support for Linux oldld, aout, or coff.
 
14755
linux*oldld* | linux*aout* | linux*coff*)
 
14756
  dynamic_linker=no
 
14757
  ;;
 
14758
 
 
14759
# This must be glibc/ELF.
 
14760
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
14761
  version_type=linux # correct to gnu/linux during the next big refactor
 
14762
  need_lib_prefix=no
 
14763
  need_version=no
 
14764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14765
  soname_spec='${libname}${release}${shared_ext}$major'
 
14766
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14767
  shlibpath_var=LD_LIBRARY_PATH
 
14768
  shlibpath_overrides_runpath=no
 
14769
 
 
14770
  # Some binutils ld are patched to set DT_RUNPATH
 
14771
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
14772
  $as_echo_n "(cached) " >&6
 
14773
else
 
14774
  lt_cv_shlibpath_overrides_runpath=no
 
14775
    save_LDFLAGS=$LDFLAGS
 
14776
    save_libdir=$libdir
 
14777
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
14778
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
14779
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
14780
/* end confdefs.h.  */
 
14781
 
 
14782
int
 
14783
main ()
 
14784
{
 
14785
 
 
14786
  ;
 
14787
  return 0;
 
14788
}
 
14789
_ACEOF
 
14790
if ac_fn_cxx_try_link "$LINENO"; then :
 
14791
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
14792
  lt_cv_shlibpath_overrides_runpath=yes
 
14793
fi
 
14794
fi
 
14795
rm -f core conftest.err conftest.$ac_objext \
 
14796
    conftest$ac_exeext conftest.$ac_ext
 
14797
    LDFLAGS=$save_LDFLAGS
 
14798
    libdir=$save_libdir
 
14799
 
 
14800
fi
 
14801
 
 
14802
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
14803
 
 
14804
  # This implies no fast_install, which is unacceptable.
 
14805
  # Some rework will be needed to allow for fast_install
 
14806
  # before this can be enabled.
 
14807
  hardcode_into_libs=yes
 
14808
 
 
14809
  # Append ld.so.conf contents to the search path
 
14810
  if test -f /etc/ld.so.conf; then
 
14811
    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' ' '`
 
14812
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14813
  fi
 
14814
 
 
14815
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14816
  # powerpc, because MkLinux only supported shared libraries with the
 
14817
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14818
  # most powerpc-linux boxes support dynamic linking these days and
 
14819
  # people can always --disable-shared, the test was removed, and we
 
14820
  # assume the GNU/Linux dynamic linker is in use.
 
14821
  dynamic_linker='GNU/Linux ld.so'
 
14822
  ;;
 
14823
 
 
14824
netbsdelf*-gnu)
 
14825
  version_type=linux
 
14826
  need_lib_prefix=no
 
14827
  need_version=no
 
14828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14829
  soname_spec='${libname}${release}${shared_ext}$major'
 
14830
  shlibpath_var=LD_LIBRARY_PATH
 
14831
  shlibpath_overrides_runpath=no
 
14832
  hardcode_into_libs=yes
 
14833
  dynamic_linker='NetBSD ld.elf_so'
 
14834
  ;;
 
14835
 
 
14836
netbsd*)
 
14837
  version_type=sunos
 
14838
  need_lib_prefix=no
 
14839
  need_version=no
 
14840
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
14841
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14842
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14843
    dynamic_linker='NetBSD (a.out) ld.so'
 
14844
  else
 
14845
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14846
    soname_spec='${libname}${release}${shared_ext}$major'
 
14847
    dynamic_linker='NetBSD ld.elf_so'
 
14848
  fi
 
14849
  shlibpath_var=LD_LIBRARY_PATH
 
14850
  shlibpath_overrides_runpath=yes
 
14851
  hardcode_into_libs=yes
 
14852
  ;;
 
14853
 
 
14854
newsos6)
 
14855
  version_type=linux # correct to gnu/linux during the next big refactor
 
14856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14857
  shlibpath_var=LD_LIBRARY_PATH
 
14858
  shlibpath_overrides_runpath=yes
 
14859
  ;;
 
14860
 
 
14861
*nto* | *qnx*)
 
14862
  version_type=qnx
 
14863
  need_lib_prefix=no
 
14864
  need_version=no
 
14865
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14866
  soname_spec='${libname}${release}${shared_ext}$major'
 
14867
  shlibpath_var=LD_LIBRARY_PATH
 
14868
  shlibpath_overrides_runpath=no
 
14869
  hardcode_into_libs=yes
 
14870
  dynamic_linker='ldqnx.so'
 
14871
  ;;
 
14872
 
 
14873
openbsd*)
 
14874
  version_type=sunos
 
14875
  sys_lib_dlsearch_path_spec="/usr/lib"
 
14876
  need_lib_prefix=no
 
14877
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14878
  case $host_os in
 
14879
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
14880
    *)                          need_version=no  ;;
 
14881
  esac
 
14882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14883
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14884
  shlibpath_var=LD_LIBRARY_PATH
 
14885
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14886
    case $host_os in
 
14887
      openbsd2.[89] | openbsd2.[89].*)
 
14888
        shlibpath_overrides_runpath=no
 
14889
        ;;
 
14890
      *)
 
14891
        shlibpath_overrides_runpath=yes
 
14892
        ;;
 
14893
      esac
 
14894
  else
 
14895
    shlibpath_overrides_runpath=yes
 
14896
  fi
 
14897
  ;;
 
14898
 
 
14899
os2*)
 
14900
  libname_spec='$name'
 
14901
  shrext_cmds=".dll"
 
14902
  need_lib_prefix=no
 
14903
  library_names_spec='$libname${shared_ext} $libname.a'
 
14904
  dynamic_linker='OS/2 ld.exe'
 
14905
  shlibpath_var=LIBPATH
 
14906
  ;;
 
14907
 
 
14908
osf3* | osf4* | osf5*)
 
14909
  version_type=osf
 
14910
  need_lib_prefix=no
 
14911
  need_version=no
 
14912
  soname_spec='${libname}${release}${shared_ext}$major'
 
14913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14914
  shlibpath_var=LD_LIBRARY_PATH
 
14915
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14916
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14917
  ;;
 
14918
 
 
14919
rdos*)
 
14920
  dynamic_linker=no
 
14921
  ;;
 
14922
 
 
14923
solaris*)
 
14924
  version_type=linux # correct to gnu/linux during the next big refactor
 
14925
  need_lib_prefix=no
 
14926
  need_version=no
 
14927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14928
  soname_spec='${libname}${release}${shared_ext}$major'
 
14929
  shlibpath_var=LD_LIBRARY_PATH
 
14930
  shlibpath_overrides_runpath=yes
 
14931
  hardcode_into_libs=yes
 
14932
  # ldd complains unless libraries are executable
 
14933
  postinstall_cmds='chmod +x $lib'
 
14934
  ;;
 
14935
 
 
14936
sunos4*)
 
14937
  version_type=sunos
 
14938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14939
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14940
  shlibpath_var=LD_LIBRARY_PATH
 
14941
  shlibpath_overrides_runpath=yes
 
14942
  if test "$with_gnu_ld" = yes; then
 
14943
    need_lib_prefix=no
 
14944
  fi
 
14945
  need_version=yes
 
14946
  ;;
 
14947
 
 
14948
sysv4 | sysv4.3*)
 
14949
  version_type=linux # correct to gnu/linux during the next big refactor
 
14950
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14951
  soname_spec='${libname}${release}${shared_ext}$major'
 
14952
  shlibpath_var=LD_LIBRARY_PATH
 
14953
  case $host_vendor in
 
14954
    sni)
 
14955
      shlibpath_overrides_runpath=no
 
14956
      need_lib_prefix=no
 
14957
      runpath_var=LD_RUN_PATH
 
14958
      ;;
 
14959
    siemens)
 
14960
      need_lib_prefix=no
 
14961
      ;;
 
14962
    motorola)
 
14963
      need_lib_prefix=no
 
14964
      need_version=no
 
14965
      shlibpath_overrides_runpath=no
 
14966
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14967
      ;;
 
14968
  esac
 
14969
  ;;
 
14970
 
 
14971
sysv4*MP*)
 
14972
  if test -d /usr/nec ;then
 
14973
    version_type=linux # correct to gnu/linux during the next big refactor
 
14974
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14975
    soname_spec='$libname${shared_ext}.$major'
 
14976
    shlibpath_var=LD_LIBRARY_PATH
 
14977
  fi
 
14978
  ;;
 
14979
 
 
14980
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14981
  version_type=freebsd-elf
 
14982
  need_lib_prefix=no
 
14983
  need_version=no
 
14984
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14985
  soname_spec='${libname}${release}${shared_ext}$major'
 
14986
  shlibpath_var=LD_LIBRARY_PATH
 
14987
  shlibpath_overrides_runpath=yes
 
14988
  hardcode_into_libs=yes
 
14989
  if test "$with_gnu_ld" = yes; then
 
14990
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14991
  else
 
14992
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14993
    case $host_os in
 
14994
      sco3.2v5*)
 
14995
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14996
        ;;
 
14997
    esac
 
14998
  fi
 
14999
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15000
  ;;
 
15001
 
 
15002
tpf*)
 
15003
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15004
  version_type=linux # correct to gnu/linux during the next big refactor
 
15005
  need_lib_prefix=no
 
15006
  need_version=no
 
15007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15008
  shlibpath_var=LD_LIBRARY_PATH
 
15009
  shlibpath_overrides_runpath=no
 
15010
  hardcode_into_libs=yes
 
15011
  ;;
 
15012
 
 
15013
uts4*)
 
15014
  version_type=linux # correct to gnu/linux during the next big refactor
 
15015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15016
  soname_spec='${libname}${release}${shared_ext}$major'
 
15017
  shlibpath_var=LD_LIBRARY_PATH
 
15018
  ;;
 
15019
 
 
15020
*)
 
15021
  dynamic_linker=no
 
15022
  ;;
 
15023
esac
 
15024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
15025
$as_echo "$dynamic_linker" >&6; }
 
15026
test "$dynamic_linker" = no && can_build_shared=no
 
15027
 
 
15028
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15029
if test "$GCC" = yes; then
 
15030
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15031
fi
 
15032
 
 
15033
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15034
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15035
fi
 
15036
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15037
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15038
fi
 
15039
 
 
15040
 
 
15041
 
 
15042
 
 
15043
 
 
15044
 
 
15045
 
 
15046
 
 
15047
 
 
15048
 
 
15049
 
 
15050
 
 
15051
 
 
15052
 
 
15053
 
 
15054
 
 
15055
 
 
15056
 
 
15057
 
 
15058
 
 
15059
 
 
15060
 
 
15061
 
 
15062
 
 
15063
 
 
15064
 
 
15065
 
 
15066
 
 
15067
 
 
15068
 
 
15069
 
 
15070
 
 
15071
 
 
15072
 
 
15073
 
 
15074
 
 
15075
 
 
15076
 
 
15077
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
15078
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
15079
hardcode_action_CXX=
 
15080
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15081
   test -n "$runpath_var_CXX" ||
 
15082
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15083
 
 
15084
  # We can hardcode non-existent directories.
 
15085
  if test "$hardcode_direct_CXX" != no &&
 
15086
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15087
     # have to relink, otherwise we might link with an installed library
 
15088
     # when we should be linking with a yet-to-be-installed one
 
15089
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15090
     test "$hardcode_minus_L_CXX" != no; then
 
15091
    # Linking always hardcodes the temporary library directory.
 
15092
    hardcode_action_CXX=relink
 
15093
  else
 
15094
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15095
    hardcode_action_CXX=immediate
 
15096
  fi
 
15097
else
 
15098
  # We cannot hardcode anything, or else we can only hardcode existing
 
15099
  # directories.
 
15100
  hardcode_action_CXX=unsupported
 
15101
fi
 
15102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
 
15103
$as_echo "$hardcode_action_CXX" >&6; }
 
15104
 
 
15105
if test "$hardcode_action_CXX" = relink ||
 
15106
   test "$inherit_rpath_CXX" = yes; then
 
15107
  # Fast installation is not supported
 
15108
  enable_fast_install=no
 
15109
elif test "$shlibpath_overrides_runpath" = yes ||
 
15110
     test "$enable_shared" = no; then
 
15111
  # Fast installation is not necessary
 
15112
  enable_fast_install=needless
 
15113
fi
 
15114
 
 
15115
 
 
15116
 
 
15117
 
 
15118
 
 
15119
 
 
15120
 
 
15121
  fi # test -n "$compiler"
 
15122
 
 
15123
  CC=$lt_save_CC
 
15124
  CFLAGS=$lt_save_CFLAGS
 
15125
  LDCXX=$LD
 
15126
  LD=$lt_save_LD
 
15127
  GCC=$lt_save_GCC
 
15128
  with_gnu_ld=$lt_save_with_gnu_ld
 
15129
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15130
  lt_cv_path_LD=$lt_save_path_LD
 
15131
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15132
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15133
fi # test "$_lt_caught_CXX_error" != yes
 
15134
 
 
15135
ac_ext=c
 
15136
ac_cpp='$CPP $CPPFLAGS'
 
15137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15140
 
 
15141
 
 
15142
ac_ext=c
 
15143
ac_cpp='$CPP $CPPFLAGS'
 
15144
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15145
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15146
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15147
if test -n "$ac_tool_prefix"; then
 
15148
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
15149
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
15150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15151
$as_echo_n "checking for $ac_word... " >&6; }
 
15152
if ${ac_cv_prog_CC+:} false; then :
 
15153
  $as_echo_n "(cached) " >&6
 
15154
else
 
15155
  if test -n "$CC"; then
 
15156
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
15157
else
 
15158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15159
for as_dir in $PATH
 
15160
do
 
15161
  IFS=$as_save_IFS
 
15162
  test -z "$as_dir" && as_dir=.
 
15163
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15165
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
15166
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15167
    break 2
 
15168
  fi
 
15169
done
 
15170
  done
 
15171
IFS=$as_save_IFS
 
15172
 
 
15173
fi
 
15174
fi
 
15175
CC=$ac_cv_prog_CC
 
15176
if test -n "$CC"; then
 
15177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
15178
$as_echo "$CC" >&6; }
 
15179
else
 
15180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15181
$as_echo "no" >&6; }
 
15182
fi
 
15183
 
 
15184
 
 
15185
fi
 
15186
if test -z "$ac_cv_prog_CC"; then
 
15187
  ac_ct_CC=$CC
 
15188
  # Extract the first word of "gcc", so it can be a program name with args.
 
15189
set dummy gcc; ac_word=$2
 
15190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15191
$as_echo_n "checking for $ac_word... " >&6; }
 
15192
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
15193
  $as_echo_n "(cached) " >&6
 
15194
else
 
15195
  if test -n "$ac_ct_CC"; then
 
15196
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
15197
else
 
15198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15199
for as_dir in $PATH
 
15200
do
 
15201
  IFS=$as_save_IFS
 
15202
  test -z "$as_dir" && as_dir=.
 
15203
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15204
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15205
    ac_cv_prog_ac_ct_CC="gcc"
 
15206
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15207
    break 2
 
15208
  fi
 
15209
done
 
15210
  done
 
15211
IFS=$as_save_IFS
 
15212
 
 
15213
fi
 
15214
fi
 
15215
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
15216
if test -n "$ac_ct_CC"; then
 
15217
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
15218
$as_echo "$ac_ct_CC" >&6; }
 
15219
else
 
15220
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15221
$as_echo "no" >&6; }
 
15222
fi
 
15223
 
 
15224
  if test "x$ac_ct_CC" = x; then
 
15225
    CC=""
 
15226
  else
 
15227
    case $cross_compiling:$ac_tool_warned in
 
15228
yes:)
 
15229
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
15230
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
15231
ac_tool_warned=yes ;;
 
15232
esac
 
15233
    CC=$ac_ct_CC
 
15234
  fi
 
15235
else
 
15236
  CC="$ac_cv_prog_CC"
 
15237
fi
 
15238
 
 
15239
if test -z "$CC"; then
 
15240
          if test -n "$ac_tool_prefix"; then
 
15241
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
15242
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
15243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15244
$as_echo_n "checking for $ac_word... " >&6; }
 
15245
if ${ac_cv_prog_CC+:} false; then :
 
15246
  $as_echo_n "(cached) " >&6
 
15247
else
 
15248
  if test -n "$CC"; then
 
15249
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
15250
else
 
15251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15252
for as_dir in $PATH
 
15253
do
 
15254
  IFS=$as_save_IFS
 
15255
  test -z "$as_dir" && as_dir=.
 
15256
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15257
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15258
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
15259
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15260
    break 2
 
15261
  fi
 
15262
done
 
15263
  done
 
15264
IFS=$as_save_IFS
 
15265
 
 
15266
fi
 
15267
fi
 
15268
CC=$ac_cv_prog_CC
 
15269
if test -n "$CC"; then
 
15270
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
15271
$as_echo "$CC" >&6; }
 
15272
else
 
15273
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15274
$as_echo "no" >&6; }
 
15275
fi
 
15276
 
 
15277
 
 
15278
  fi
 
15279
fi
 
15280
if test -z "$CC"; then
 
15281
  # Extract the first word of "cc", so it can be a program name with args.
 
15282
set dummy cc; ac_word=$2
 
15283
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15284
$as_echo_n "checking for $ac_word... " >&6; }
 
15285
if ${ac_cv_prog_CC+:} false; then :
 
15286
  $as_echo_n "(cached) " >&6
 
15287
else
 
15288
  if test -n "$CC"; then
 
15289
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
15290
else
 
15291
  ac_prog_rejected=no
 
15292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15293
for as_dir in $PATH
 
15294
do
 
15295
  IFS=$as_save_IFS
 
15296
  test -z "$as_dir" && as_dir=.
 
15297
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15298
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15299
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
15300
       ac_prog_rejected=yes
 
15301
       continue
 
15302
     fi
 
15303
    ac_cv_prog_CC="cc"
 
15304
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15305
    break 2
 
15306
  fi
 
15307
done
 
15308
  done
 
15309
IFS=$as_save_IFS
 
15310
 
 
15311
if test $ac_prog_rejected = yes; then
 
15312
  # We found a bogon in the path, so make sure we never use it.
 
15313
  set dummy $ac_cv_prog_CC
 
15314
  shift
 
15315
  if test $# != 0; then
 
15316
    # We chose a different compiler from the bogus one.
 
15317
    # However, it has the same basename, so the bogon will be chosen
 
15318
    # first if we set CC to just the basename; use the full file name.
 
15319
    shift
 
15320
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
15321
  fi
 
15322
fi
 
15323
fi
 
15324
fi
 
15325
CC=$ac_cv_prog_CC
 
15326
if test -n "$CC"; then
 
15327
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
15328
$as_echo "$CC" >&6; }
 
15329
else
 
15330
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15331
$as_echo "no" >&6; }
 
15332
fi
 
15333
 
 
15334
 
 
15335
fi
 
15336
if test -z "$CC"; then
 
15337
  if test -n "$ac_tool_prefix"; then
 
15338
  for ac_prog in cl.exe
 
15339
  do
 
15340
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
15341
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
15342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15343
$as_echo_n "checking for $ac_word... " >&6; }
 
15344
if ${ac_cv_prog_CC+:} false; then :
 
15345
  $as_echo_n "(cached) " >&6
 
15346
else
 
15347
  if test -n "$CC"; then
 
15348
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
15349
else
 
15350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15351
for as_dir in $PATH
 
15352
do
 
15353
  IFS=$as_save_IFS
 
15354
  test -z "$as_dir" && as_dir=.
 
15355
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15357
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
15358
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15359
    break 2
 
15360
  fi
 
15361
done
 
15362
  done
 
15363
IFS=$as_save_IFS
 
15364
 
 
15365
fi
 
15366
fi
 
15367
CC=$ac_cv_prog_CC
 
15368
if test -n "$CC"; then
 
15369
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
15370
$as_echo "$CC" >&6; }
 
15371
else
 
15372
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15373
$as_echo "no" >&6; }
 
15374
fi
 
15375
 
 
15376
 
 
15377
    test -n "$CC" && break
 
15378
  done
 
15379
fi
 
15380
if test -z "$CC"; then
 
15381
  ac_ct_CC=$CC
 
15382
  for ac_prog in cl.exe
 
15383
do
 
15384
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
15385
set dummy $ac_prog; ac_word=$2
 
15386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15387
$as_echo_n "checking for $ac_word... " >&6; }
 
15388
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
15389
  $as_echo_n "(cached) " >&6
 
15390
else
 
15391
  if test -n "$ac_ct_CC"; then
 
15392
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
15393
else
 
15394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15395
for as_dir in $PATH
 
15396
do
 
15397
  IFS=$as_save_IFS
 
15398
  test -z "$as_dir" && as_dir=.
 
15399
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15400
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15401
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
15402
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15403
    break 2
 
15404
  fi
 
15405
done
 
15406
  done
 
15407
IFS=$as_save_IFS
 
15408
 
 
15409
fi
 
15410
fi
 
15411
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
15412
if test -n "$ac_ct_CC"; then
 
15413
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
15414
$as_echo "$ac_ct_CC" >&6; }
 
15415
else
 
15416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15417
$as_echo "no" >&6; }
 
15418
fi
 
15419
 
 
15420
 
 
15421
  test -n "$ac_ct_CC" && break
 
15422
done
 
15423
 
 
15424
  if test "x$ac_ct_CC" = x; then
 
15425
    CC=""
 
15426
  else
 
15427
    case $cross_compiling:$ac_tool_warned in
 
15428
yes:)
 
15429
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
15430
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
15431
ac_tool_warned=yes ;;
 
15432
esac
 
15433
    CC=$ac_ct_CC
 
15434
  fi
 
15435
fi
 
15436
 
 
15437
fi
 
15438
 
 
15439
 
 
15440
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
15441
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
15442
as_fn_error $? "no acceptable C compiler found in \$PATH
 
15443
See \`config.log' for more details" "$LINENO" 5; }
 
15444
 
 
15445
# Provide some information about the compiler.
 
15446
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
15447
set X $ac_compile
 
15448
ac_compiler=$2
 
15449
for ac_option in --version -v -V -qversion; do
 
15450
  { { ac_try="$ac_compiler $ac_option >&5"
 
15451
case "(($ac_try" in
 
15452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15453
  *) ac_try_echo=$ac_try;;
 
15454
esac
 
15455
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
15456
$as_echo "$ac_try_echo"; } >&5
 
15457
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
15458
  ac_status=$?
 
15459
  if test -s conftest.err; then
 
15460
    sed '10a\
 
15461
... rest of stderr output deleted ...
 
15462
         10q' conftest.err >conftest.er1
 
15463
    cat conftest.er1 >&5
 
15464
  fi
 
15465
  rm -f conftest.er1 conftest.err
 
15466
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15467
  test $ac_status = 0; }
 
15468
done
 
15469
 
 
15470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
15471
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
15472
if ${ac_cv_c_compiler_gnu+:} false; then :
 
15473
  $as_echo_n "(cached) " >&6
 
15474
else
 
15475
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15476
/* end confdefs.h.  */
 
15477
 
 
15478
int
 
15479
main ()
 
15480
{
 
15481
#ifndef __GNUC__
 
15482
       choke me
 
15483
#endif
 
15484
 
 
15485
  ;
 
15486
  return 0;
 
15487
}
 
15488
_ACEOF
 
15489
if ac_fn_c_try_compile "$LINENO"; then :
 
15490
  ac_compiler_gnu=yes
 
15491
else
 
15492
  ac_compiler_gnu=no
 
15493
fi
 
15494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15495
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
15496
 
 
15497
fi
 
15498
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
15499
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
15500
if test $ac_compiler_gnu = yes; then
 
15501
  GCC=yes
 
15502
else
 
15503
  GCC=
 
15504
fi
 
15505
ac_test_CFLAGS=${CFLAGS+set}
 
15506
ac_save_CFLAGS=$CFLAGS
 
15507
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
15508
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
15509
if ${ac_cv_prog_cc_g+:} false; then :
 
15510
  $as_echo_n "(cached) " >&6
 
15511
else
 
15512
  ac_save_c_werror_flag=$ac_c_werror_flag
 
15513
   ac_c_werror_flag=yes
 
15514
   ac_cv_prog_cc_g=no
 
15515
   CFLAGS="-g"
 
15516
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15517
/* end confdefs.h.  */
 
15518
 
 
15519
int
 
15520
main ()
 
15521
{
 
15522
 
 
15523
  ;
 
15524
  return 0;
 
15525
}
 
15526
_ACEOF
 
15527
if ac_fn_c_try_compile "$LINENO"; then :
 
15528
  ac_cv_prog_cc_g=yes
 
15529
else
 
15530
  CFLAGS=""
 
15531
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15532
/* end confdefs.h.  */
 
15533
 
 
15534
int
 
15535
main ()
 
15536
{
 
15537
 
 
15538
  ;
 
15539
  return 0;
 
15540
}
 
15541
_ACEOF
 
15542
if ac_fn_c_try_compile "$LINENO"; then :
 
15543
 
 
15544
else
 
15545
  ac_c_werror_flag=$ac_save_c_werror_flag
 
15546
         CFLAGS="-g"
 
15547
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15548
/* end confdefs.h.  */
 
15549
 
 
15550
int
 
15551
main ()
 
15552
{
 
15553
 
 
15554
  ;
 
15555
  return 0;
 
15556
}
 
15557
_ACEOF
 
15558
if ac_fn_c_try_compile "$LINENO"; then :
 
15559
  ac_cv_prog_cc_g=yes
 
15560
fi
 
15561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15562
fi
 
15563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15564
fi
 
15565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15566
   ac_c_werror_flag=$ac_save_c_werror_flag
 
15567
fi
 
15568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
15569
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
15570
if test "$ac_test_CFLAGS" = set; then
 
15571
  CFLAGS=$ac_save_CFLAGS
 
15572
elif test $ac_cv_prog_cc_g = yes; then
 
15573
  if test "$GCC" = yes; then
 
15574
    CFLAGS="-g -O2"
 
15575
  else
 
15576
    CFLAGS="-g"
 
15577
  fi
 
15578
else
 
15579
  if test "$GCC" = yes; then
 
15580
    CFLAGS="-O2"
 
15581
  else
 
15582
    CFLAGS=
 
15583
  fi
 
15584
fi
 
15585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
15586
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
15587
if ${ac_cv_prog_cc_c89+:} false; then :
 
15588
  $as_echo_n "(cached) " >&6
 
15589
else
 
15590
  ac_cv_prog_cc_c89=no
 
15591
ac_save_CC=$CC
 
15592
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
15593
/* end confdefs.h.  */
 
15594
#include <stdarg.h>
 
15595
#include <stdio.h>
 
15596
#include <sys/types.h>
 
15597
#include <sys/stat.h>
 
15598
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
15599
struct buf { int x; };
 
15600
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
15601
static char *e (p, i)
 
15602
     char **p;
 
15603
     int i;
 
15604
{
 
15605
  return p[i];
 
15606
}
 
15607
static char *f (char * (*g) (char **, int), char **p, ...)
 
15608
{
 
15609
  char *s;
 
15610
  va_list v;
 
15611
  va_start (v,p);
 
15612
  s = g (p, va_arg (v,int));
 
15613
  va_end (v);
 
15614
  return s;
 
15615
}
 
15616
 
 
15617
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
15618
   function prototypes and stuff, but not '\xHH' hex character constants.
 
15619
   These don't provoke an error unfortunately, instead are silently treated
 
15620
   as 'x'.  The following induces an error, until -std is added to get
 
15621
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
15622
   array size at least.  It's necessary to write '\x00'==0 to get something
 
15623
   that's true only with -std.  */
 
15624
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
15625
 
 
15626
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
15627
   inside strings and character constants.  */
 
15628
#define FOO(x) 'x'
 
15629
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
15630
 
 
15631
int test (int i, double x);
 
15632
struct s1 {int (*f) (int a);};
 
15633
struct s2 {int (*f) (double a);};
 
15634
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
15635
int argc;
 
15636
char **argv;
 
15637
int
 
15638
main ()
 
15639
{
 
15640
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
15641
  ;
 
15642
  return 0;
 
15643
}
 
15644
_ACEOF
 
15645
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
15646
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
15647
do
 
15648
  CC="$ac_save_CC $ac_arg"
 
15649
  if ac_fn_c_try_compile "$LINENO"; then :
 
15650
  ac_cv_prog_cc_c89=$ac_arg
 
15651
fi
 
15652
rm -f core conftest.err conftest.$ac_objext
 
15653
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
15654
done
 
15655
rm -f conftest.$ac_ext
 
15656
CC=$ac_save_CC
 
15657
 
 
15658
fi
 
15659
# AC_CACHE_VAL
 
15660
case "x$ac_cv_prog_cc_c89" in
 
15661
  x)
 
15662
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
15663
$as_echo "none needed" >&6; } ;;
 
15664
  xno)
 
15665
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
15666
$as_echo "unsupported" >&6; } ;;
 
15667
  *)
 
15668
    CC="$CC $ac_cv_prog_cc_c89"
 
15669
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
15670
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
15671
esac
 
15672
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
15673
 
 
15674
fi
 
15675
 
 
15676
ac_ext=c
 
15677
ac_cpp='$CPP $CPPFLAGS'
 
15678
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15679
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15680
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15681
 
 
15682
depcc="$CC"   am_compiler_list=
 
15683
 
 
15684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
15685
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
15686
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
15687
  $as_echo_n "(cached) " >&6
 
15688
else
 
15689
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
15690
  # We make a subdir and do the tests there.  Otherwise we can end up
 
15691
  # making bogus files that we don't know about and never remove.  For
 
15692
  # instance it was reported that on HP-UX the gcc test will end up
 
15693
  # making a dummy file named `D' -- because `-MD' means `put the output
 
15694
  # in D'.
 
15695
  rm -rf conftest.dir
 
15696
  mkdir conftest.dir
 
15697
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
15698
  # using a relative directory.
 
15699
  cp "$am_depcomp" conftest.dir
 
15700
  cd conftest.dir
 
15701
  # We will build objects and dependencies in a subdirectory because
 
15702
  # it helps to detect inapplicable dependency modes.  For instance
 
15703
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
15704
  # side effect of compilation, but ICC will put the dependencies in
 
15705
  # the current directory while Tru64 will put them in the object
 
15706
  # directory.
 
15707
  mkdir sub
 
15708
 
 
15709
  am_cv_CC_dependencies_compiler_type=none
 
15710
  if test "$am_compiler_list" = ""; then
 
15711
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
15712
  fi
 
15713
  am__universal=false
 
15714
  case " $depcc " in #(
 
15715
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
15716
     esac
 
15717
 
 
15718
  for depmode in $am_compiler_list; do
 
15719
    # Setup a source with many dependencies, because some compilers
 
15720
    # like to wrap large dependency lists on column 80 (with \), and
 
15721
    # we should not choose a depcomp mode which is confused by this.
 
15722
    #
 
15723
    # We need to recreate these files for each test, as the compiler may
 
15724
    # overwrite some of them when testing with obscure command lines.
 
15725
    # This happens at least with the AIX C compiler.
 
15726
    : > sub/conftest.c
 
15727
    for i in 1 2 3 4 5 6; do
 
15728
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
15729
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
15730
      # Solaris 8's {/usr,}/bin/sh.
 
15731
      touch sub/conftst$i.h
 
15732
    done
 
15733
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
15734
 
 
15735
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
15736
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
15737
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
15738
    # versions had trouble with output in subdirs
 
15739
    am__obj=sub/conftest.${OBJEXT-o}
 
15740
    am__minus_obj="-o $am__obj"
 
15741
    case $depmode in
 
15742
    gcc)
 
15743
      # This depmode causes a compiler race in universal mode.
 
15744
      test "$am__universal" = false || continue
 
15745
      ;;
 
15746
    nosideeffect)
 
15747
      # after this tag, mechanisms are not by side-effect, so they'll
 
15748
      # only be used when explicitly requested
 
15749
      if test "x$enable_dependency_tracking" = xyes; then
 
15750
        continue
 
15751
      else
 
15752
        break
 
15753
      fi
 
15754
      ;;
 
15755
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
15756
      # This compiler won't grok `-c -o', but also, the minuso test has
 
15757
      # not run yet.  These depmodes are late enough in the game, and
 
15758
      # so weak that their functioning should not be impacted.
 
15759
      am__obj=conftest.${OBJEXT-o}
 
15760
      am__minus_obj=
 
15761
      ;;
 
15762
    none) break ;;
 
15763
    esac
 
15764
    if depmode=$depmode \
 
15765
       source=sub/conftest.c object=$am__obj \
 
15766
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
15767
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
15768
         >/dev/null 2>conftest.err &&
 
15769
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
15770
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
15771
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
15772
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
15773
      # icc doesn't choke on unknown options, it will just issue warnings
 
15774
      # or remarks (even with -Werror).  So we grep stderr for any message
 
15775
      # that says an option was ignored or not supported.
 
15776
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
15777
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
15778
      # The diagnosis changed in icc 8.0:
 
15779
      #   icc: Command line remark: option '-MP' not supported
 
15780
      if (grep 'ignoring option' conftest.err ||
 
15781
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
15782
        am_cv_CC_dependencies_compiler_type=$depmode
 
15783
        break
 
15784
      fi
 
15785
    fi
 
15786
  done
 
15787
 
 
15788
  cd ..
 
15789
  rm -rf conftest.dir
 
15790
else
 
15791
  am_cv_CC_dependencies_compiler_type=none
 
15792
fi
 
15793
 
 
15794
fi
 
15795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
15796
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
15797
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
15798
 
 
15799
 if
 
15800
  test "x$enable_dependency_tracking" != xno \
 
15801
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
15802
  am__fastdepCC_TRUE=
 
15803
  am__fastdepCC_FALSE='#'
 
15804
else
 
15805
  am__fastdepCC_TRUE='#'
 
15806
  am__fastdepCC_FALSE=
 
15807
fi
 
15808
 
 
15809
 
 
15810
ac_ext=f
 
15811
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15812
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15813
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15814
if test -n "$ac_tool_prefix"; then
 
15815
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
 
15816
  do
 
15817
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
15818
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
15819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15820
$as_echo_n "checking for $ac_word... " >&6; }
 
15821
if ${ac_cv_prog_F77+:} false; then :
 
15822
  $as_echo_n "(cached) " >&6
 
15823
else
 
15824
  if test -n "$F77"; then
 
15825
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
15826
else
 
15827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15828
for as_dir in $PATH
 
15829
do
 
15830
  IFS=$as_save_IFS
 
15831
  test -z "$as_dir" && as_dir=.
 
15832
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15833
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15834
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
15835
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15836
    break 2
 
15837
  fi
 
15838
done
 
15839
  done
 
15840
IFS=$as_save_IFS
 
15841
 
 
15842
fi
 
15843
fi
 
15844
F77=$ac_cv_prog_F77
 
15845
if test -n "$F77"; then
 
15846
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
 
15847
$as_echo "$F77" >&6; }
 
15848
else
 
15849
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15850
$as_echo "no" >&6; }
 
15851
fi
 
15852
 
 
15853
 
 
15854
    test -n "$F77" && break
 
15855
  done
 
15856
fi
 
15857
if test -z "$F77"; then
 
15858
  ac_ct_F77=$F77
 
15859
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
 
15860
do
 
15861
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
15862
set dummy $ac_prog; ac_word=$2
 
15863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
15864
$as_echo_n "checking for $ac_word... " >&6; }
 
15865
if ${ac_cv_prog_ac_ct_F77+:} false; then :
 
15866
  $as_echo_n "(cached) " >&6
 
15867
else
 
15868
  if test -n "$ac_ct_F77"; then
 
15869
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
15870
else
 
15871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15872
for as_dir in $PATH
 
15873
do
 
15874
  IFS=$as_save_IFS
 
15875
  test -z "$as_dir" && as_dir=.
 
15876
    for ac_exec_ext in '' $ac_executable_extensions; do
 
15877
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
15878
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
15879
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15880
    break 2
 
15881
  fi
 
15882
done
 
15883
  done
 
15884
IFS=$as_save_IFS
 
15885
 
 
15886
fi
 
15887
fi
 
15888
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
15889
if test -n "$ac_ct_F77"; then
 
15890
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
 
15891
$as_echo "$ac_ct_F77" >&6; }
 
15892
else
 
15893
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
15894
$as_echo "no" >&6; }
 
15895
fi
 
15896
 
 
15897
 
 
15898
  test -n "$ac_ct_F77" && break
 
15899
done
 
15900
 
 
15901
  if test "x$ac_ct_F77" = x; then
 
15902
    F77=""
 
15903
  else
 
15904
    case $cross_compiling:$ac_tool_warned in
 
15905
yes:)
 
15906
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
15907
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
15908
ac_tool_warned=yes ;;
 
15909
esac
 
15910
    F77=$ac_ct_F77
 
15911
  fi
 
15912
fi
 
15913
 
 
15914
 
 
15915
# Provide some information about the compiler.
 
15916
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
 
15917
set X $ac_compile
 
15918
ac_compiler=$2
 
15919
for ac_option in --version -v -V -qversion; do
 
15920
  { { ac_try="$ac_compiler $ac_option >&5"
 
15921
case "(($ac_try" in
 
15922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15923
  *) ac_try_echo=$ac_try;;
 
15924
esac
 
15925
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
15926
$as_echo "$ac_try_echo"; } >&5
 
15927
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
15928
  ac_status=$?
 
15929
  if test -s conftest.err; then
 
15930
    sed '10a\
 
15931
... rest of stderr output deleted ...
 
15932
         10q' conftest.err >conftest.er1
 
15933
    cat conftest.er1 >&5
 
15934
  fi
 
15935
  rm -f conftest.er1 conftest.err
 
15936
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
15937
  test $ac_status = 0; }
 
15938
done
 
15939
rm -f a.out
 
15940
 
 
15941
# If we don't use `.F' as extension, the preprocessor is not run on the
 
15942
# input file.  (Note that this only needs to work for GNU compilers.)
 
15943
ac_save_ext=$ac_ext
 
15944
ac_ext=F
 
15945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
 
15946
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
15947
if ${ac_cv_f77_compiler_gnu+:} false; then :
 
15948
  $as_echo_n "(cached) " >&6
 
15949
else
 
15950
  cat > conftest.$ac_ext <<_ACEOF
 
15951
      program main
 
15952
#ifndef __GNUC__
 
15953
       choke me
 
15954
#endif
 
15955
 
 
15956
      end
 
15957
_ACEOF
 
15958
if ac_fn_f77_try_compile "$LINENO"; then :
 
15959
  ac_compiler_gnu=yes
 
15960
else
 
15961
  ac_compiler_gnu=no
 
15962
fi
 
15963
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15964
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
15965
 
 
15966
fi
 
15967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
 
15968
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
15969
ac_ext=$ac_save_ext
 
15970
ac_test_FFLAGS=${FFLAGS+set}
 
15971
ac_save_FFLAGS=$FFLAGS
 
15972
FFLAGS=
 
15973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
 
15974
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
15975
if ${ac_cv_prog_f77_g+:} false; then :
 
15976
  $as_echo_n "(cached) " >&6
 
15977
else
 
15978
  FFLAGS=-g
 
15979
cat > conftest.$ac_ext <<_ACEOF
 
15980
      program main
 
15981
 
 
15982
      end
 
15983
_ACEOF
 
15984
if ac_fn_f77_try_compile "$LINENO"; then :
 
15985
  ac_cv_prog_f77_g=yes
 
15986
else
 
15987
  ac_cv_prog_f77_g=no
 
15988
fi
 
15989
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15990
 
 
15991
fi
 
15992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
 
15993
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
15994
if test "$ac_test_FFLAGS" = set; then
 
15995
  FFLAGS=$ac_save_FFLAGS
 
15996
elif test $ac_cv_prog_f77_g = yes; then
 
15997
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
15998
    FFLAGS="-g -O2"
 
15999
  else
 
16000
    FFLAGS="-g"
 
16001
  fi
 
16002
else
 
16003
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
16004
    FFLAGS="-O2"
 
16005
  else
 
16006
    FFLAGS=
 
16007
  fi
 
16008
fi
 
16009
 
 
16010
if test $ac_compiler_gnu = yes; then
 
16011
  G77=yes
 
16012
else
 
16013
  G77=
 
16014
fi
 
16015
ac_ext=c
 
16016
ac_cpp='$CPP $CPPFLAGS'
 
16017
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16018
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16019
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16020
 
 
16021
      ac_ext=f
 
16022
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
16023
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16024
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
16025
 
 
16026
if test -z "$F77" || test "X$F77" = "Xno"; then
 
16027
  _lt_disable_F77=yes
 
16028
fi
 
16029
 
 
16030
archive_cmds_need_lc_F77=no
 
16031
allow_undefined_flag_F77=
 
16032
always_export_symbols_F77=no
 
16033
archive_expsym_cmds_F77=
 
16034
export_dynamic_flag_spec_F77=
 
16035
hardcode_direct_F77=no
 
16036
hardcode_direct_absolute_F77=no
 
16037
hardcode_libdir_flag_spec_F77=
 
16038
hardcode_libdir_separator_F77=
 
16039
hardcode_minus_L_F77=no
 
16040
hardcode_automatic_F77=no
 
16041
inherit_rpath_F77=no
 
16042
module_cmds_F77=
 
16043
module_expsym_cmds_F77=
 
16044
link_all_deplibs_F77=unknown
 
16045
old_archive_cmds_F77=$old_archive_cmds
 
16046
reload_flag_F77=$reload_flag
 
16047
reload_cmds_F77=$reload_cmds
 
16048
no_undefined_flag_F77=
 
16049
whole_archive_flag_spec_F77=
 
16050
enable_shared_with_static_runtimes_F77=no
 
16051
 
 
16052
# Source file extension for f77 test sources.
 
16053
ac_ext=f
 
16054
 
 
16055
# Object file extension for compiled f77 test sources.
 
16056
objext=o
 
16057
objext_F77=$objext
 
16058
 
 
16059
# No sense in running all these tests if we already determined that
 
16060
# the F77 compiler isn't working.  Some variables (like enable_shared)
 
16061
# are currently assumed to apply to all compilers on this platform,
 
16062
# and will be corrupted by setting them based on a non-working compiler.
 
16063
if test "$_lt_disable_F77" != yes; then
 
16064
  # Code to be used in simple compile tests
 
16065
  lt_simple_compile_test_code="\
 
16066
      subroutine t
 
16067
      return
 
16068
      end
 
16069
"
 
16070
 
 
16071
  # Code to be used in simple link tests
 
16072
  lt_simple_link_test_code="\
 
16073
      program t
 
16074
      end
 
16075
"
 
16076
 
 
16077
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16078
 
 
16079
 
 
16080
 
 
16081
 
 
16082
 
 
16083
 
 
16084
# If no C compiler was specified, use CC.
 
16085
LTCC=${LTCC-"$CC"}
 
16086
 
 
16087
# If no C compiler flags were specified, use CFLAGS.
 
16088
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16089
 
 
16090
# Allow CC to be a program name with arguments.
 
16091
compiler=$CC
 
16092
 
 
16093
 
 
16094
  # save warnings/boilerplate of simple test code
 
16095
  ac_outfile=conftest.$ac_objext
 
16096
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16097
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16098
_lt_compiler_boilerplate=`cat conftest.err`
 
16099
$RM conftest*
 
16100
 
 
16101
  ac_outfile=conftest.$ac_objext
 
16102
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16103
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16104
_lt_linker_boilerplate=`cat conftest.err`
 
16105
$RM -r conftest*
 
16106
 
 
16107
 
 
16108
  # Allow CC to be a program name with arguments.
 
16109
  lt_save_CC="$CC"
 
16110
  lt_save_GCC=$GCC
 
16111
  lt_save_CFLAGS=$CFLAGS
 
16112
  CC=${F77-"f77"}
 
16113
  CFLAGS=$FFLAGS
 
16114
  compiler=$CC
 
16115
  compiler_F77=$CC
 
16116
  for cc_temp in $compiler""; do
 
16117
  case $cc_temp in
 
16118
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16119
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16120
    \-*) ;;
 
16121
    *) break;;
 
16122
  esac
 
16123
done
 
16124
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
16125
 
 
16126
  GCC=$G77
 
16127
  if test -n "$compiler"; then
 
16128
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
16129
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
16130
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
16131
$as_echo "$can_build_shared" >&6; }
 
16132
 
 
16133
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
16134
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
16135
    test "$can_build_shared" = "no" && enable_shared=no
 
16136
 
 
16137
    # On AIX, shared libraries and static libraries use the same namespace, and
 
16138
    # are all built from PIC.
 
16139
    case $host_os in
 
16140
      aix3*)
 
16141
        test "$enable_shared" = yes && enable_static=no
 
16142
        if test -n "$RANLIB"; then
 
16143
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
16144
          postinstall_cmds='$RANLIB $lib'
 
16145
        fi
 
16146
        ;;
 
16147
      aix[4-9]*)
 
16148
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
16149
          test "$enable_shared" = yes && enable_static=no
 
16150
        fi
 
16151
        ;;
 
16152
    esac
 
16153
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
16154
$as_echo "$enable_shared" >&6; }
 
16155
 
 
16156
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
16157
$as_echo_n "checking whether to build static libraries... " >&6; }
 
16158
    # Make sure either enable_shared or enable_static is yes.
 
16159
    test "$enable_shared" = yes || enable_static=yes
 
16160
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
16161
$as_echo "$enable_static" >&6; }
 
16162
 
 
16163
    GCC_F77="$G77"
 
16164
    LD_F77="$LD"
 
16165
 
 
16166
    ## CAVEAT EMPTOR:
 
16167
    ## There is no encapsulation within the following macros, do not change
 
16168
    ## the running order or otherwise move them around unless you know exactly
 
16169
    ## what you are doing...
 
16170
    lt_prog_compiler_wl_F77=
 
16171
lt_prog_compiler_pic_F77=
 
16172
lt_prog_compiler_static_F77=
 
16173
 
 
16174
 
 
16175
  if test "$GCC" = yes; then
 
16176
    lt_prog_compiler_wl_F77='-Wl,'
 
16177
    lt_prog_compiler_static_F77='-static'
 
16178
 
 
16179
    case $host_os in
 
16180
      aix*)
 
16181
      # All AIX code is PIC.
 
16182
      if test "$host_cpu" = ia64; then
 
16183
        # AIX 5 now supports IA64 processor
 
16184
        lt_prog_compiler_static_F77='-Bstatic'
 
16185
      fi
 
16186
      ;;
 
16187
 
 
16188
    amigaos*)
 
16189
      case $host_cpu in
 
16190
      powerpc)
 
16191
            # see comment about AmigaOS4 .so support
 
16192
            lt_prog_compiler_pic_F77='-fPIC'
 
16193
        ;;
 
16194
      m68k)
 
16195
            # FIXME: we need at least 68020 code to build shared libraries, but
 
16196
            # adding the `-m68020' flag to GCC prevents building anything better,
 
16197
            # like `-m68040'.
 
16198
            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
16199
        ;;
 
16200
      esac
 
16201
      ;;
 
16202
 
 
16203
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16204
      # PIC is the default for these OSes.
 
16205
      ;;
 
16206
 
 
16207
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
16208
      # This hack is so that the source file can tell whether it is being
 
16209
      # built for inclusion in a dll (and should export symbols for example).
 
16210
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16211
      # (--disable-auto-import) libraries
 
16212
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16213
      ;;
 
16214
 
 
16215
    darwin* | rhapsody*)
 
16216
      # PIC is the default on this platform
 
16217
      # Common symbols not allowed in MH_DYLIB files
 
16218
      lt_prog_compiler_pic_F77='-fno-common'
 
16219
      ;;
 
16220
 
 
16221
    haiku*)
 
16222
      # PIC is the default for Haiku.
 
16223
      # The "-static" flag exists, but is broken.
 
16224
      lt_prog_compiler_static_F77=
 
16225
      ;;
 
16226
 
 
16227
    hpux*)
 
16228
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
16229
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
16230
      # sets the default TLS model and affects inlining.
 
16231
      case $host_cpu in
 
16232
      hppa*64*)
 
16233
        # +Z the default
 
16234
        ;;
 
16235
      *)
 
16236
        lt_prog_compiler_pic_F77='-fPIC'
 
16237
        ;;
 
16238
      esac
 
16239
      ;;
 
16240
 
 
16241
    interix[3-9]*)
 
16242
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16243
      # Instead, we relocate shared libraries at runtime.
 
16244
      ;;
 
16245
 
 
16246
    msdosdjgpp*)
 
16247
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16248
      # on systems that don't support them.
 
16249
      lt_prog_compiler_can_build_shared_F77=no
 
16250
      enable_shared=no
 
16251
      ;;
 
16252
 
 
16253
    *nto* | *qnx*)
 
16254
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
16255
      # it will coredump.
 
16256
      lt_prog_compiler_pic_F77='-fPIC -shared'
 
16257
      ;;
 
16258
 
 
16259
    sysv4*MP*)
 
16260
      if test -d /usr/nec; then
 
16261
        lt_prog_compiler_pic_F77=-Kconform_pic
 
16262
      fi
 
16263
      ;;
 
16264
 
 
16265
    *)
 
16266
      lt_prog_compiler_pic_F77='-fPIC'
 
16267
      ;;
 
16268
    esac
 
16269
 
 
16270
    case $cc_basename in
 
16271
    nvcc*) # Cuda Compiler Driver 2.2
 
16272
      lt_prog_compiler_wl_F77='-Xlinker '
 
16273
      if test -n "$lt_prog_compiler_pic_F77"; then
 
16274
        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
 
16275
      fi
 
16276
      ;;
 
16277
    esac
 
16278
  else
 
16279
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16280
    case $host_os in
 
16281
    aix*)
 
16282
      lt_prog_compiler_wl_F77='-Wl,'
 
16283
      if test "$host_cpu" = ia64; then
 
16284
        # AIX 5 now supports IA64 processor
 
16285
        lt_prog_compiler_static_F77='-Bstatic'
 
16286
      else
 
16287
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
16288
      fi
 
16289
      ;;
 
16290
 
 
16291
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
16292
      # This hack is so that the source file can tell whether it is being
 
16293
      # built for inclusion in a dll (and should export symbols for example).
 
16294
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
16295
      ;;
 
16296
 
 
16297
    hpux9* | hpux10* | hpux11*)
 
16298
      lt_prog_compiler_wl_F77='-Wl,'
 
16299
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16300
      # not for PA HP-UX.
 
16301
      case $host_cpu in
 
16302
      hppa*64*|ia64*)
 
16303
        # +Z the default
 
16304
        ;;
 
16305
      *)
 
16306
        lt_prog_compiler_pic_F77='+Z'
 
16307
        ;;
 
16308
      esac
 
16309
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16310
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
16311
      ;;
 
16312
 
 
16313
    irix5* | irix6* | nonstopux*)
 
16314
      lt_prog_compiler_wl_F77='-Wl,'
 
16315
      # PIC (with -KPIC) is the default.
 
16316
      lt_prog_compiler_static_F77='-non_shared'
 
16317
      ;;
 
16318
 
 
16319
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
16320
      case $cc_basename in
 
16321
      # old Intel for x86_64 which still supported -KPIC.
 
16322
      ecc*)
 
16323
        lt_prog_compiler_wl_F77='-Wl,'
 
16324
        lt_prog_compiler_pic_F77='-KPIC'
 
16325
        lt_prog_compiler_static_F77='-static'
 
16326
        ;;
 
16327
      # icc used to be incompatible with GCC.
 
16328
      # ICC 10 doesn't accept -KPIC any more.
 
16329
      icc* | ifort*)
 
16330
        lt_prog_compiler_wl_F77='-Wl,'
 
16331
        lt_prog_compiler_pic_F77='-fPIC'
 
16332
        lt_prog_compiler_static_F77='-static'
 
16333
        ;;
 
16334
      # Lahey Fortran 8.1.
 
16335
      lf95*)
 
16336
        lt_prog_compiler_wl_F77='-Wl,'
 
16337
        lt_prog_compiler_pic_F77='--shared'
 
16338
        lt_prog_compiler_static_F77='--static'
 
16339
        ;;
 
16340
      nagfor*)
 
16341
        # NAG Fortran compiler
 
16342
        lt_prog_compiler_wl_F77='-Wl,-Wl,,'
 
16343
        lt_prog_compiler_pic_F77='-PIC'
 
16344
        lt_prog_compiler_static_F77='-Bstatic'
 
16345
        ;;
 
16346
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
16347
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16348
        # which looks to be a dead project)
 
16349
        lt_prog_compiler_wl_F77='-Wl,'
 
16350
        lt_prog_compiler_pic_F77='-fpic'
 
16351
        lt_prog_compiler_static_F77='-Bstatic'
 
16352
        ;;
 
16353
      ccc*)
 
16354
        lt_prog_compiler_wl_F77='-Wl,'
 
16355
        # All Alpha code is PIC.
 
16356
        lt_prog_compiler_static_F77='-non_shared'
 
16357
        ;;
 
16358
      xl* | bgxl* | bgf* | mpixl*)
 
16359
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
16360
        lt_prog_compiler_wl_F77='-Wl,'
 
16361
        lt_prog_compiler_pic_F77='-qpic'
 
16362
        lt_prog_compiler_static_F77='-qstaticlink'
 
16363
        ;;
 
16364
      *)
 
16365
        case `$CC -V 2>&1 | sed 5q` in
 
16366
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
16367
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16368
          lt_prog_compiler_pic_F77='-KPIC'
 
16369
          lt_prog_compiler_static_F77='-Bstatic'
 
16370
          lt_prog_compiler_wl_F77=''
 
16371
          ;;
 
16372
        *Sun\ F* | *Sun*Fortran*)
 
16373
          lt_prog_compiler_pic_F77='-KPIC'
 
16374
          lt_prog_compiler_static_F77='-Bstatic'
 
16375
          lt_prog_compiler_wl_F77='-Qoption ld '
 
16376
          ;;
 
16377
        *Sun\ C*)
 
16378
          # Sun C 5.9
 
16379
          lt_prog_compiler_pic_F77='-KPIC'
 
16380
          lt_prog_compiler_static_F77='-Bstatic'
 
16381
          lt_prog_compiler_wl_F77='-Wl,'
 
16382
          ;;
 
16383
        *Intel*\ [CF]*Compiler*)
 
16384
          lt_prog_compiler_wl_F77='-Wl,'
 
16385
          lt_prog_compiler_pic_F77='-fPIC'
 
16386
          lt_prog_compiler_static_F77='-static'
 
16387
          ;;
 
16388
        *Portland\ Group*)
 
16389
          lt_prog_compiler_wl_F77='-Wl,'
 
16390
          lt_prog_compiler_pic_F77='-fpic'
 
16391
          lt_prog_compiler_static_F77='-Bstatic'
 
16392
          ;;
 
16393
        esac
 
16394
        ;;
 
16395
      esac
 
16396
      ;;
 
16397
 
 
16398
    newsos6)
 
16399
      lt_prog_compiler_pic_F77='-KPIC'
 
16400
      lt_prog_compiler_static_F77='-Bstatic'
 
16401
      ;;
 
16402
 
 
16403
    *nto* | *qnx*)
 
16404
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
16405
      # it will coredump.
 
16406
      lt_prog_compiler_pic_F77='-fPIC -shared'
 
16407
      ;;
 
16408
 
 
16409
    osf3* | osf4* | osf5*)
 
16410
      lt_prog_compiler_wl_F77='-Wl,'
 
16411
      # All OSF/1 code is PIC.
 
16412
      lt_prog_compiler_static_F77='-non_shared'
 
16413
      ;;
 
16414
 
 
16415
    rdos*)
 
16416
      lt_prog_compiler_static_F77='-non_shared'
 
16417
      ;;
 
16418
 
 
16419
    solaris*)
 
16420
      lt_prog_compiler_pic_F77='-KPIC'
 
16421
      lt_prog_compiler_static_F77='-Bstatic'
 
16422
      case $cc_basename in
 
16423
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
16424
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
16425
      *)
 
16426
        lt_prog_compiler_wl_F77='-Wl,';;
 
16427
      esac
 
16428
      ;;
 
16429
 
 
16430
    sunos4*)
 
16431
      lt_prog_compiler_wl_F77='-Qoption ld '
 
16432
      lt_prog_compiler_pic_F77='-PIC'
 
16433
      lt_prog_compiler_static_F77='-Bstatic'
 
16434
      ;;
 
16435
 
 
16436
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16437
      lt_prog_compiler_wl_F77='-Wl,'
 
16438
      lt_prog_compiler_pic_F77='-KPIC'
 
16439
      lt_prog_compiler_static_F77='-Bstatic'
 
16440
      ;;
 
16441
 
 
16442
    sysv4*MP*)
 
16443
      if test -d /usr/nec ;then
 
16444
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
16445
        lt_prog_compiler_static_F77='-Bstatic'
 
16446
      fi
 
16447
      ;;
 
16448
 
 
16449
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16450
      lt_prog_compiler_wl_F77='-Wl,'
 
16451
      lt_prog_compiler_pic_F77='-KPIC'
 
16452
      lt_prog_compiler_static_F77='-Bstatic'
 
16453
      ;;
 
16454
 
 
16455
    unicos*)
 
16456
      lt_prog_compiler_wl_F77='-Wl,'
 
16457
      lt_prog_compiler_can_build_shared_F77=no
 
16458
      ;;
 
16459
 
 
16460
    uts4*)
 
16461
      lt_prog_compiler_pic_F77='-pic'
 
16462
      lt_prog_compiler_static_F77='-Bstatic'
 
16463
      ;;
 
16464
 
 
16465
    *)
 
16466
      lt_prog_compiler_can_build_shared_F77=no
 
16467
      ;;
 
16468
    esac
 
16469
  fi
 
16470
 
 
16471
case $host_os in
 
16472
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16473
  *djgpp*)
 
16474
    lt_prog_compiler_pic_F77=
 
16475
    ;;
 
16476
  *)
 
16477
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
16478
    ;;
 
16479
esac
 
16480
 
 
16481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
16482
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
16483
if ${lt_cv_prog_compiler_pic_F77+:} false; then :
 
16484
  $as_echo_n "(cached) " >&6
 
16485
else
 
16486
  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
 
16487
fi
 
16488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
 
16489
$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
 
16490
lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
 
16491
 
 
16492
#
 
16493
# Check to make sure the PIC flag actually works.
 
16494
#
 
16495
if test -n "$lt_prog_compiler_pic_F77"; then
 
16496
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
16497
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
16498
if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
 
16499
  $as_echo_n "(cached) " >&6
 
16500
else
 
16501
  lt_cv_prog_compiler_pic_works_F77=no
 
16502
   ac_outfile=conftest.$ac_objext
 
16503
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16504
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
16505
   # Insert the option either (1) after the last *FLAGS variable, or
 
16506
   # (2) before a word containing "conftest.", or (3) at the end.
 
16507
   # Note that $ac_compile itself does not contain backslashes and begins
 
16508
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16509
   # The option is referenced via a variable to avoid confusing sed.
 
16510
   lt_compile=`echo "$ac_compile" | $SED \
 
16511
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16512
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16513
   -e 's:$: $lt_compiler_flag:'`
 
16514
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
16515
   (eval "$lt_compile" 2>conftest.err)
 
16516
   ac_status=$?
 
16517
   cat conftest.err >&5
 
16518
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16519
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16520
     # The compiler can only warn and ignore the option if not recognized
 
16521
     # So say no if there are warnings other than the usual output.
 
16522
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
16523
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16524
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16525
       lt_cv_prog_compiler_pic_works_F77=yes
 
16526
     fi
 
16527
   fi
 
16528
   $RM conftest*
 
16529
 
 
16530
fi
 
16531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
16532
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
16533
 
 
16534
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
16535
    case $lt_prog_compiler_pic_F77 in
 
16536
     "" | " "*) ;;
 
16537
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
16538
     esac
 
16539
else
 
16540
    lt_prog_compiler_pic_F77=
 
16541
     lt_prog_compiler_can_build_shared_F77=no
 
16542
fi
 
16543
 
 
16544
fi
 
16545
 
 
16546
 
 
16547
 
 
16548
 
 
16549
 
 
16550
#
 
16551
# Check to make sure the static flag actually works.
 
16552
#
 
16553
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
16554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16555
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
16556
if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
 
16557
  $as_echo_n "(cached) " >&6
 
16558
else
 
16559
  lt_cv_prog_compiler_static_works_F77=no
 
16560
   save_LDFLAGS="$LDFLAGS"
 
16561
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16562
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16563
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16564
     # The linker can only warn and ignore the option if not recognized
 
16565
     # So say no if there are warnings
 
16566
     if test -s conftest.err; then
 
16567
       # Append any errors to the config.log.
 
16568
       cat conftest.err 1>&5
 
16569
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
16570
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16571
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16572
         lt_cv_prog_compiler_static_works_F77=yes
 
16573
       fi
 
16574
     else
 
16575
       lt_cv_prog_compiler_static_works_F77=yes
 
16576
     fi
 
16577
   fi
 
16578
   $RM -r conftest*
 
16579
   LDFLAGS="$save_LDFLAGS"
 
16580
 
 
16581
fi
 
16582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
16583
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
16584
 
 
16585
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
16586
    :
 
16587
else
 
16588
    lt_prog_compiler_static_F77=
 
16589
fi
 
16590
 
 
16591
 
 
16592
 
 
16593
 
 
16594
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16595
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
16596
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
 
16597
  $as_echo_n "(cached) " >&6
 
16598
else
 
16599
  lt_cv_prog_compiler_c_o_F77=no
 
16600
   $RM -r conftest 2>/dev/null
 
16601
   mkdir conftest
 
16602
   cd conftest
 
16603
   mkdir out
 
16604
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16605
 
 
16606
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16607
   # Insert the option either (1) after the last *FLAGS variable, or
 
16608
   # (2) before a word containing "conftest.", or (3) at the end.
 
16609
   # Note that $ac_compile itself does not contain backslashes and begins
 
16610
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16611
   lt_compile=`echo "$ac_compile" | $SED \
 
16612
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16613
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16614
   -e 's:$: $lt_compiler_flag:'`
 
16615
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
16616
   (eval "$lt_compile" 2>out/conftest.err)
 
16617
   ac_status=$?
 
16618
   cat out/conftest.err >&5
 
16619
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16620
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16621
   then
 
16622
     # The compiler can only warn and ignore the option if not recognized
 
16623
     # So say no if there are warnings
 
16624
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
16625
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16626
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16627
       lt_cv_prog_compiler_c_o_F77=yes
 
16628
     fi
 
16629
   fi
 
16630
   chmod u+w . 2>&5
 
16631
   $RM conftest*
 
16632
   # SGI C++ compiler will create directory out/ii_files/ for
 
16633
   # template instantiation
 
16634
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
16635
   $RM out/* && rmdir out
 
16636
   cd ..
 
16637
   $RM -r conftest
 
16638
   $RM conftest*
 
16639
 
 
16640
fi
 
16641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16642
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
16643
 
 
16644
 
 
16645
 
 
16646
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16647
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
16648
if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
 
16649
  $as_echo_n "(cached) " >&6
 
16650
else
 
16651
  lt_cv_prog_compiler_c_o_F77=no
 
16652
   $RM -r conftest 2>/dev/null
 
16653
   mkdir conftest
 
16654
   cd conftest
 
16655
   mkdir out
 
16656
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16657
 
 
16658
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16659
   # Insert the option either (1) after the last *FLAGS variable, or
 
16660
   # (2) before a word containing "conftest.", or (3) at the end.
 
16661
   # Note that $ac_compile itself does not contain backslashes and begins
 
16662
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16663
   lt_compile=`echo "$ac_compile" | $SED \
 
16664
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16665
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16666
   -e 's:$: $lt_compiler_flag:'`
 
16667
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
16668
   (eval "$lt_compile" 2>out/conftest.err)
 
16669
   ac_status=$?
 
16670
   cat out/conftest.err >&5
 
16671
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16672
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16673
   then
 
16674
     # The compiler can only warn and ignore the option if not recognized
 
16675
     # So say no if there are warnings
 
16676
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
16677
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16678
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16679
       lt_cv_prog_compiler_c_o_F77=yes
 
16680
     fi
 
16681
   fi
 
16682
   chmod u+w . 2>&5
 
16683
   $RM conftest*
 
16684
   # SGI C++ compiler will create directory out/ii_files/ for
 
16685
   # template instantiation
 
16686
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
16687
   $RM out/* && rmdir out
 
16688
   cd ..
 
16689
   $RM -r conftest
 
16690
   $RM conftest*
 
16691
 
 
16692
fi
 
16693
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
16694
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
16695
 
 
16696
 
 
16697
 
 
16698
 
 
16699
hard_links="nottested"
 
16700
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
16701
  # do not overwrite the value of need_locks provided by the user
 
16702
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
16703
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
16704
  hard_links=yes
 
16705
  $RM conftest*
 
16706
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16707
  touch conftest.a
 
16708
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16709
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16710
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
16711
$as_echo "$hard_links" >&6; }
 
16712
  if test "$hard_links" = no; then
 
16713
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16714
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16715
    need_locks=warn
 
16716
  fi
 
16717
else
 
16718
  need_locks=no
 
16719
fi
 
16720
 
 
16721
 
 
16722
 
 
16723
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16724
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
16725
 
 
16726
  runpath_var=
 
16727
  allow_undefined_flag_F77=
 
16728
  always_export_symbols_F77=no
 
16729
  archive_cmds_F77=
 
16730
  archive_expsym_cmds_F77=
 
16731
  compiler_needs_object_F77=no
 
16732
  enable_shared_with_static_runtimes_F77=no
 
16733
  export_dynamic_flag_spec_F77=
 
16734
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16735
  hardcode_automatic_F77=no
 
16736
  hardcode_direct_F77=no
 
16737
  hardcode_direct_absolute_F77=no
 
16738
  hardcode_libdir_flag_spec_F77=
 
16739
  hardcode_libdir_separator_F77=
 
16740
  hardcode_minus_L_F77=no
 
16741
  hardcode_shlibpath_var_F77=unsupported
 
16742
  inherit_rpath_F77=no
 
16743
  link_all_deplibs_F77=unknown
 
16744
  module_cmds_F77=
 
16745
  module_expsym_cmds_F77=
 
16746
  old_archive_from_new_cmds_F77=
 
16747
  old_archive_from_expsyms_cmds_F77=
 
16748
  thread_safe_flag_spec_F77=
 
16749
  whole_archive_flag_spec_F77=
 
16750
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16751
  # included in the symbol list
 
16752
  include_expsyms_F77=
 
16753
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16754
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16755
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16756
  # as well as any symbol that contains `d'.
 
16757
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
16758
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16759
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16760
  # the symbol is explicitly referenced.  Since portable code cannot
 
16761
  # rely on this symbol name, it's probably fine to never include it in
 
16762
  # preloaded symbol tables.
 
16763
  # Exclude shared library initialization/finalization symbols.
 
16764
  extract_expsyms_cmds=
 
16765
 
 
16766
  case $host_os in
 
16767
  cygwin* | mingw* | pw32* | cegcc*)
 
16768
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16769
    # When not using gcc, we currently assume that we are using
 
16770
    # Microsoft Visual C++.
 
16771
    if test "$GCC" != yes; then
 
16772
      with_gnu_ld=no
 
16773
    fi
 
16774
    ;;
 
16775
  interix*)
 
16776
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16777
    with_gnu_ld=yes
 
16778
    ;;
 
16779
  openbsd*)
 
16780
    with_gnu_ld=no
 
16781
    ;;
 
16782
  linux* | k*bsd*-gnu | gnu*)
 
16783
    link_all_deplibs_F77=no
 
16784
    ;;
 
16785
  esac
 
16786
 
 
16787
  ld_shlibs_F77=yes
 
16788
 
 
16789
  # On some targets, GNU ld is compatible enough with the native linker
 
16790
  # that we're better off using the native interface for both.
 
16791
  lt_use_gnu_ld_interface=no
 
16792
  if test "$with_gnu_ld" = yes; then
 
16793
    case $host_os in
 
16794
      aix*)
 
16795
        # The AIX port of GNU ld has always aspired to compatibility
 
16796
        # with the native linker.  However, as the warning in the GNU ld
 
16797
        # block says, versions before 2.19.5* couldn't really create working
 
16798
        # shared libraries, regardless of the interface used.
 
16799
        case `$LD -v 2>&1` in
 
16800
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
16801
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
16802
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
16803
          *)
 
16804
            lt_use_gnu_ld_interface=yes
 
16805
            ;;
 
16806
        esac
 
16807
        ;;
 
16808
      *)
 
16809
        lt_use_gnu_ld_interface=yes
 
16810
        ;;
 
16811
    esac
 
16812
  fi
 
16813
 
 
16814
  if test "$lt_use_gnu_ld_interface" = yes; then
 
16815
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16816
    wlarc='${wl}'
 
16817
 
 
16818
    # Set some defaults for GNU ld with shared library support. These
 
16819
    # are reset later if shared libraries are not supported. Putting them
 
16820
    # here allows them to be overridden if necessary.
 
16821
    runpath_var=LD_RUN_PATH
 
16822
    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16823
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
16824
    # ancient GNU ld didn't support --whole-archive et. al.
 
16825
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
16826
      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16827
    else
 
16828
      whole_archive_flag_spec_F77=
 
16829
    fi
 
16830
    supports_anon_versioning=no
 
16831
    case `$LD -v 2>&1` in
 
16832
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
16833
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16834
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16835
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16836
      *\ 2.11.*) ;; # other 2.11 versions
 
16837
      *) supports_anon_versioning=yes ;;
 
16838
    esac
 
16839
 
 
16840
    # See if GNU ld supports shared libraries.
 
16841
    case $host_os in
 
16842
    aix[3-9]*)
 
16843
      # On AIX/PPC, the GNU linker is very broken
 
16844
      if test "$host_cpu" != ia64; then
 
16845
        ld_shlibs_F77=no
 
16846
        cat <<_LT_EOF 1>&2
 
16847
 
 
16848
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
16849
*** to be unable to reliably create shared libraries on AIX.
 
16850
*** Therefore, libtool is disabling shared libraries support.  If you
 
16851
*** really care for shared libraries, you may want to install binutils
 
16852
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
16853
*** You will then need to restart the configuration process.
 
16854
 
 
16855
_LT_EOF
 
16856
      fi
 
16857
      ;;
 
16858
 
 
16859
    amigaos*)
 
16860
      case $host_cpu in
 
16861
      powerpc)
 
16862
            # see comment about AmigaOS4 .so support
 
16863
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16864
            archive_expsym_cmds_F77=''
 
16865
        ;;
 
16866
      m68k)
 
16867
            archive_cmds_F77='$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)'
 
16868
            hardcode_libdir_flag_spec_F77='-L$libdir'
 
16869
            hardcode_minus_L_F77=yes
 
16870
        ;;
 
16871
      esac
 
16872
      ;;
 
16873
 
 
16874
    beos*)
 
16875
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
16876
        allow_undefined_flag_F77=unsupported
 
16877
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16878
        # support --undefined.  This deserves some investigation.  FIXME
 
16879
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16880
      else
 
16881
        ld_shlibs_F77=no
 
16882
      fi
 
16883
      ;;
 
16884
 
 
16885
    cygwin* | mingw* | pw32* | cegcc*)
 
16886
      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
16887
      # as there is no search path for DLLs.
 
16888
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16889
      export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
 
16890
      allow_undefined_flag_F77=unsupported
 
16891
      always_export_symbols_F77=no
 
16892
      enable_shared_with_static_runtimes_F77=yes
 
16893
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
16894
      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
16895
 
 
16896
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
16897
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16898
        # If the export-symbols file already is a .def file (1st line
 
16899
        # is EXPORTS), use it as is; otherwise, prepend...
 
16900
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16901
          cp $export_symbols $output_objdir/$soname.def;
 
16902
        else
 
16903
          echo EXPORTS > $output_objdir/$soname.def;
 
16904
          cat $export_symbols >> $output_objdir/$soname.def;
 
16905
        fi~
 
16906
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16907
      else
 
16908
        ld_shlibs_F77=no
 
16909
      fi
 
16910
      ;;
 
16911
 
 
16912
    haiku*)
 
16913
      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16914
      link_all_deplibs_F77=yes
 
16915
      ;;
 
16916
 
 
16917
    interix[3-9]*)
 
16918
      hardcode_direct_F77=no
 
16919
      hardcode_shlibpath_var_F77=no
 
16920
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16921
      export_dynamic_flag_spec_F77='${wl}-E'
 
16922
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16923
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16924
      # default) and relocated if they conflict, which is a slow very memory
 
16925
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16926
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16927
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16928
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16929
      archive_expsym_cmds_F77='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'
 
16930
      ;;
 
16931
 
 
16932
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
16933
      tmp_diet=no
 
16934
      if test "$host_os" = linux-dietlibc; then
 
16935
        case $cc_basename in
 
16936
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
16937
        esac
 
16938
      fi
 
16939
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
16940
         && test "$tmp_diet" = no
 
16941
      then
 
16942
        tmp_addflag=' $pic_flag'
 
16943
        tmp_sharedflag='-shared'
 
16944
        case $cc_basename,$host_cpu in
 
16945
        pgcc*)                          # Portland Group C compiler
 
16946
          whole_archive_flag_spec_F77='${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'
 
16947
          tmp_addflag=' $pic_flag'
 
16948
          ;;
 
16949
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
16950
                                        # Portland Group f77 and f90 compilers
 
16951
          whole_archive_flag_spec_F77='${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'
 
16952
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16953
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
16954
          tmp_addflag=' -i_dynamic' ;;
 
16955
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16956
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16957
        ifc* | ifort*)                  # Intel Fortran compiler
 
16958
          tmp_addflag=' -nofor_main' ;;
 
16959
        lf95*)                          # Lahey Fortran 8.1
 
16960
          whole_archive_flag_spec_F77=
 
16961
          tmp_sharedflag='--shared' ;;
 
16962
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
16963
          tmp_sharedflag='-qmkshrobj'
 
16964
          tmp_addflag= ;;
 
16965
        nvcc*)  # Cuda Compiler Driver 2.2
 
16966
          whole_archive_flag_spec_F77='${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'
 
16967
          compiler_needs_object_F77=yes
 
16968
          ;;
 
16969
        esac
 
16970
        case `$CC -V 2>&1 | sed 5q` in
 
16971
        *Sun\ C*)                       # Sun C 5.9
 
16972
          whole_archive_flag_spec_F77='${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'
 
16973
          compiler_needs_object_F77=yes
 
16974
          tmp_sharedflag='-G' ;;
 
16975
        *Sun\ F*)                       # Sun Fortran 8.3
 
16976
          tmp_sharedflag='-G' ;;
 
16977
        esac
 
16978
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16979
 
 
16980
        if test "x$supports_anon_versioning" = xyes; then
 
16981
          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
 
16982
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16983
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
16984
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16985
        fi
 
16986
 
 
16987
        case $cc_basename in
 
16988
        xlf* | bgf* | bgxlf* | mpixlf*)
 
16989
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
16990
          whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
 
16991
          hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16992
          archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
16993
          if test "x$supports_anon_versioning" = xyes; then
 
16994
            archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
 
16995
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16996
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
16997
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
16998
          fi
 
16999
          ;;
 
17000
        esac
 
17001
      else
 
17002
        ld_shlibs_F77=no
 
17003
      fi
 
17004
      ;;
 
17005
 
 
17006
    netbsd* | netbsdelf*-gnu)
 
17007
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
17008
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17009
        wlarc=
 
17010
      else
 
17011
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17012
        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17013
      fi
 
17014
      ;;
 
17015
 
 
17016
    solaris*)
 
17017
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
17018
        ld_shlibs_F77=no
 
17019
        cat <<_LT_EOF 1>&2
 
17020
 
 
17021
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17022
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17023
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17024
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17025
*** your PATH or compiler configuration so that the native linker is
 
17026
*** used, and then restart.
 
17027
 
 
17028
_LT_EOF
 
17029
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
17030
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17031
        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17032
      else
 
17033
        ld_shlibs_F77=no
 
17034
      fi
 
17035
      ;;
 
17036
 
 
17037
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17038
      case `$LD -v 2>&1` in
 
17039
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17040
        ld_shlibs_F77=no
 
17041
        cat <<_LT_EOF 1>&2
 
17042
 
 
17043
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17044
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17045
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17046
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17047
*** your PATH or compiler configuration so that the native linker is
 
17048
*** used, and then restart.
 
17049
 
 
17050
_LT_EOF
 
17051
        ;;
 
17052
        *)
 
17053
          # For security reasons, it is highly recommended that you always
 
17054
          # use absolute paths for naming shared libraries, and exclude the
 
17055
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
17056
          # requires that you compile everything twice, which is a pain.
 
17057
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
17058
            hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17059
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17060
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17061
          else
 
17062
            ld_shlibs_F77=no
 
17063
          fi
 
17064
        ;;
 
17065
      esac
 
17066
      ;;
 
17067
 
 
17068
    sunos4*)
 
17069
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17070
      wlarc=
 
17071
      hardcode_direct_F77=yes
 
17072
      hardcode_shlibpath_var_F77=no
 
17073
      ;;
 
17074
 
 
17075
    *)
 
17076
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
17077
        archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17078
        archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17079
      else
 
17080
        ld_shlibs_F77=no
 
17081
      fi
 
17082
      ;;
 
17083
    esac
 
17084
 
 
17085
    if test "$ld_shlibs_F77" = no; then
 
17086
      runpath_var=
 
17087
      hardcode_libdir_flag_spec_F77=
 
17088
      export_dynamic_flag_spec_F77=
 
17089
      whole_archive_flag_spec_F77=
 
17090
    fi
 
17091
  else
 
17092
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17093
    case $host_os in
 
17094
    aix3*)
 
17095
      allow_undefined_flag_F77=unsupported
 
17096
      always_export_symbols_F77=yes
 
17097
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17098
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17099
      # are no directories specified by -L.
 
17100
      hardcode_minus_L_F77=yes
 
17101
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17102
        # Neither direct hardcoding nor static linking is supported with a
 
17103
        # broken collect2.
 
17104
        hardcode_direct_F77=unsupported
 
17105
      fi
 
17106
      ;;
 
17107
 
 
17108
    aix[4-9]*)
 
17109
      if test "$host_cpu" = ia64; then
 
17110
        # On IA64, the linker does run time linking by default, so we don't
 
17111
        # have to do anything special.
 
17112
        aix_use_runtimelinking=no
 
17113
        exp_sym_flag='-Bexport'
 
17114
        no_entry_flag=""
 
17115
      else
 
17116
        # If we're using GNU nm, then we don't want the "-C" option.
 
17117
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17118
        # Also, AIX nm treats weak defined symbols like other global
 
17119
        # defined symbols, whereas GNU nm marks them as "W".
 
17120
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
17121
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
17122
        else
 
17123
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
17124
        fi
 
17125
        aix_use_runtimelinking=no
 
17126
 
 
17127
        # Test if we are trying to use run time linking or normal
 
17128
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17129
        # need to do runtime linking.
 
17130
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17131
          for ld_flag in $LDFLAGS; do
 
17132
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17133
            aix_use_runtimelinking=yes
 
17134
            break
 
17135
          fi
 
17136
          done
 
17137
          ;;
 
17138
        esac
 
17139
 
 
17140
        exp_sym_flag='-bexport'
 
17141
        no_entry_flag='-bnoentry'
 
17142
      fi
 
17143
 
 
17144
      # When large executables or shared objects are built, AIX ld can
 
17145
      # have problems creating the table of contents.  If linking a library
 
17146
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17147
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17148
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17149
 
 
17150
      archive_cmds_F77=''
 
17151
      hardcode_direct_F77=yes
 
17152
      hardcode_direct_absolute_F77=yes
 
17153
      hardcode_libdir_separator_F77=':'
 
17154
      link_all_deplibs_F77=yes
 
17155
      file_list_spec_F77='${wl}-f,'
 
17156
 
 
17157
      if test "$GCC" = yes; then
 
17158
        case $host_os in aix4.[012]|aix4.[012].*)
 
17159
        # We only want to do this on AIX 4.2 and lower, the check
 
17160
        # below for broken collect2 doesn't work under 4.3+
 
17161
          collect2name=`${CC} -print-prog-name=collect2`
 
17162
          if test -f "$collect2name" &&
 
17163
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
17164
          then
 
17165
          # We have reworked collect2
 
17166
          :
 
17167
          else
 
17168
          # We have old collect2
 
17169
          hardcode_direct_F77=unsupported
 
17170
          # It fails to find uninstalled libraries when the uninstalled
 
17171
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17172
          # to unsupported forces relinking
 
17173
          hardcode_minus_L_F77=yes
 
17174
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
17175
          hardcode_libdir_separator_F77=
 
17176
          fi
 
17177
          ;;
 
17178
        esac
 
17179
        shared_flag='-shared'
 
17180
        if test "$aix_use_runtimelinking" = yes; then
 
17181
          shared_flag="$shared_flag "'${wl}-G'
 
17182
        fi
 
17183
        link_all_deplibs_F77=no
 
17184
      else
 
17185
        # not using gcc
 
17186
        if test "$host_cpu" = ia64; then
 
17187
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17188
        # chokes on -Wl,-G. The following line is correct:
 
17189
          shared_flag='-G'
 
17190
        else
 
17191
          if test "$aix_use_runtimelinking" = yes; then
 
17192
            shared_flag='${wl}-G'
 
17193
          else
 
17194
            shared_flag='${wl}-bM:SRE'
 
17195
          fi
 
17196
        fi
 
17197
      fi
 
17198
 
 
17199
      export_dynamic_flag_spec_F77='${wl}-bexpall'
 
17200
      # It seems that -bexpall does not export symbols beginning with
 
17201
      # underscore (_), so it is better to generate a list of symbols to export.
 
17202
      always_export_symbols_F77=yes
 
17203
      if test "$aix_use_runtimelinking" = yes; then
 
17204
        # Warning - without using the other runtime loading flags (-brtl),
 
17205
        # -berok will link without error, but may produce a broken library.
 
17206
        allow_undefined_flag_F77='-berok'
 
17207
        # Determine the default libpath from the value encoded in an
 
17208
        # empty executable.
 
17209
        if test "${lt_cv_aix_libpath+set}" = set; then
 
17210
  aix_libpath=$lt_cv_aix_libpath
 
17211
else
 
17212
  if ${lt_cv_aix_libpath__F77+:} false; then :
 
17213
  $as_echo_n "(cached) " >&6
 
17214
else
 
17215
  cat > conftest.$ac_ext <<_ACEOF
 
17216
      program main
 
17217
 
 
17218
      end
 
17219
_ACEOF
 
17220
if ac_fn_f77_try_link "$LINENO"; then :
 
17221
 
 
17222
  lt_aix_libpath_sed='
 
17223
      /Import File Strings/,/^$/ {
 
17224
          /^0/ {
 
17225
              s/^0  *\([^ ]*\) *$/\1/
 
17226
              p
 
17227
          }
 
17228
      }'
 
17229
  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17230
  # Check for a 64-bit object if we didn't find anything.
 
17231
  if test -z "$lt_cv_aix_libpath__F77"; then
 
17232
    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17233
  fi
 
17234
fi
 
17235
rm -f core conftest.err conftest.$ac_objext \
 
17236
    conftest$ac_exeext conftest.$ac_ext
 
17237
  if test -z "$lt_cv_aix_libpath__F77"; then
 
17238
    lt_cv_aix_libpath__F77="/usr/lib:/lib"
 
17239
  fi
 
17240
 
 
17241
fi
 
17242
 
 
17243
  aix_libpath=$lt_cv_aix_libpath__F77
 
17244
fi
 
17245
 
 
17246
        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17247
        archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17248
      else
 
17249
        if test "$host_cpu" = ia64; then
 
17250
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
17251
          allow_undefined_flag_F77="-z nodefs"
 
17252
          archive_expsym_cmds_F77="\$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"
 
17253
        else
 
17254
         # Determine the default libpath from the value encoded in an
 
17255
         # empty executable.
 
17256
         if test "${lt_cv_aix_libpath+set}" = set; then
 
17257
  aix_libpath=$lt_cv_aix_libpath
 
17258
else
 
17259
  if ${lt_cv_aix_libpath__F77+:} false; then :
 
17260
  $as_echo_n "(cached) " >&6
 
17261
else
 
17262
  cat > conftest.$ac_ext <<_ACEOF
 
17263
      program main
 
17264
 
 
17265
      end
 
17266
_ACEOF
 
17267
if ac_fn_f77_try_link "$LINENO"; then :
 
17268
 
 
17269
  lt_aix_libpath_sed='
 
17270
      /Import File Strings/,/^$/ {
 
17271
          /^0/ {
 
17272
              s/^0  *\([^ ]*\) *$/\1/
 
17273
              p
 
17274
          }
 
17275
      }'
 
17276
  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17277
  # Check for a 64-bit object if we didn't find anything.
 
17278
  if test -z "$lt_cv_aix_libpath__F77"; then
 
17279
    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17280
  fi
 
17281
fi
 
17282
rm -f core conftest.err conftest.$ac_objext \
 
17283
    conftest$ac_exeext conftest.$ac_ext
 
17284
  if test -z "$lt_cv_aix_libpath__F77"; then
 
17285
    lt_cv_aix_libpath__F77="/usr/lib:/lib"
 
17286
  fi
 
17287
 
 
17288
fi
 
17289
 
 
17290
  aix_libpath=$lt_cv_aix_libpath__F77
 
17291
fi
 
17292
 
 
17293
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17294
          # Warning - without using the other run time loading flags,
 
17295
          # -berok will link without error, but may produce a broken library.
 
17296
          no_undefined_flag_F77=' ${wl}-bernotok'
 
17297
          allow_undefined_flag_F77=' ${wl}-berok'
 
17298
          if test "$with_gnu_ld" = yes; then
 
17299
            # We only use this code for GNU lds that support --whole-archive.
 
17300
            whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
17301
          else
 
17302
            # Exported symbols can be pulled into shared objects from archives
 
17303
            whole_archive_flag_spec_F77='$convenience'
 
17304
          fi
 
17305
          archive_cmds_need_lc_F77=yes
 
17306
          # This is similar to how AIX traditionally builds its shared libraries.
 
17307
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17308
        fi
 
17309
      fi
 
17310
      ;;
 
17311
 
 
17312
    amigaos*)
 
17313
      case $host_cpu in
 
17314
      powerpc)
 
17315
            # see comment about AmigaOS4 .so support
 
17316
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17317
            archive_expsym_cmds_F77=''
 
17318
        ;;
 
17319
      m68k)
 
17320
            archive_cmds_F77='$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)'
 
17321
            hardcode_libdir_flag_spec_F77='-L$libdir'
 
17322
            hardcode_minus_L_F77=yes
 
17323
        ;;
 
17324
      esac
 
17325
      ;;
 
17326
 
 
17327
    bsdi[45]*)
 
17328
      export_dynamic_flag_spec_F77=-rdynamic
 
17329
      ;;
 
17330
 
 
17331
    cygwin* | mingw* | pw32* | cegcc*)
 
17332
      # When not using gcc, we currently assume that we are using
 
17333
      # Microsoft Visual C++.
 
17334
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17335
      # no search path for DLLs.
 
17336
      case $cc_basename in
 
17337
      cl*)
 
17338
        # Native MSVC
 
17339
        hardcode_libdir_flag_spec_F77=' '
 
17340
        allow_undefined_flag_F77=unsupported
 
17341
        always_export_symbols_F77=yes
 
17342
        file_list_spec_F77='@'
 
17343
        # Tell ltmain to make .lib files, not .a files.
 
17344
        libext=lib
 
17345
        # Tell ltmain to make .dll files, not .so files.
 
17346
        shrext_cmds=".dll"
 
17347
        # FIXME: Setting linknames here is a bad hack.
 
17348
        archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
17349
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17350
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
17351
          else
 
17352
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
17353
          fi~
 
17354
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
17355
          linknames='
 
17356
        # The linker will not automatically build a static lib if we build a DLL.
 
17357
        # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
 
17358
        enable_shared_with_static_runtimes_F77=yes
 
17359
        exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
17360
        export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17361
        # Don't use ranlib
 
17362
        old_postinstall_cmds_F77='chmod 644 $oldlib'
 
17363
        postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
 
17364
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
17365
          case $lt_outputfile in
 
17366
            *.exe|*.EXE) ;;
 
17367
            *)
 
17368
              lt_outputfile="$lt_outputfile.exe"
 
17369
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
17370
              ;;
 
17371
          esac~
 
17372
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
17373
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
17374
            $RM "$lt_outputfile.manifest";
 
17375
          fi'
 
17376
        ;;
 
17377
      *)
 
17378
        # Assume MSVC wrapper
 
17379
        hardcode_libdir_flag_spec_F77=' '
 
17380
        allow_undefined_flag_F77=unsupported
 
17381
        # Tell ltmain to make .lib files, not .a files.
 
17382
        libext=lib
 
17383
        # Tell ltmain to make .dll files, not .so files.
 
17384
        shrext_cmds=".dll"
 
17385
        # FIXME: Setting linknames here is a bad hack.
 
17386
        archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
17387
        # The linker will automatically build a .lib file if we build a DLL.
 
17388
        old_archive_from_new_cmds_F77='true'
 
17389
        # FIXME: Should let the user specify the lib program.
 
17390
        old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17391
        enable_shared_with_static_runtimes_F77=yes
 
17392
        ;;
 
17393
      esac
 
17394
      ;;
 
17395
 
 
17396
    darwin* | rhapsody*)
 
17397
 
 
17398
 
 
17399
  archive_cmds_need_lc_F77=no
 
17400
  hardcode_direct_F77=no
 
17401
  hardcode_automatic_F77=yes
 
17402
  hardcode_shlibpath_var_F77=unsupported
 
17403
  if test "$lt_cv_ld_force_load" = "yes"; then
 
17404
    whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
17405
    compiler_needs_object_F77=yes
 
17406
  else
 
17407
    whole_archive_flag_spec_F77=''
 
17408
  fi
 
17409
  link_all_deplibs_F77=yes
 
17410
  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
 
17411
  case $cc_basename in
 
17412
     ifort*) _lt_dar_can_shared=yes ;;
 
17413
     *) _lt_dar_can_shared=$GCC ;;
 
17414
  esac
 
17415
  if test "$_lt_dar_can_shared" = "yes"; then
 
17416
    output_verbose_link_cmd=func_echo_all
 
17417
    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17418
    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17419
    archive_expsym_cmds_F77="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}"
 
17420
    module_expsym_cmds_F77="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}"
 
17421
 
 
17422
  else
 
17423
  ld_shlibs_F77=no
 
17424
  fi
 
17425
 
 
17426
      ;;
 
17427
 
 
17428
    dgux*)
 
17429
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17430
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17431
      hardcode_shlibpath_var_F77=no
 
17432
      ;;
 
17433
 
 
17434
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17435
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17436
    # does not break anything, and helps significantly (at the cost of a little
 
17437
    # extra space).
 
17438
    freebsd2.2*)
 
17439
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17440
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17441
      hardcode_direct_F77=yes
 
17442
      hardcode_shlibpath_var_F77=no
 
17443
      ;;
 
17444
 
 
17445
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17446
    freebsd2.*)
 
17447
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17448
      hardcode_direct_F77=yes
 
17449
      hardcode_minus_L_F77=yes
 
17450
      hardcode_shlibpath_var_F77=no
 
17451
      ;;
 
17452
 
 
17453
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17454
    freebsd* | dragonfly*)
 
17455
      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17456
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17457
      hardcode_direct_F77=yes
 
17458
      hardcode_shlibpath_var_F77=no
 
17459
      ;;
 
17460
 
 
17461
    hpux9*)
 
17462
      if test "$GCC" = yes; then
 
17463
        archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17464
      else
 
17465
        archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17466
      fi
 
17467
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17468
      hardcode_libdir_separator_F77=:
 
17469
      hardcode_direct_F77=yes
 
17470
 
 
17471
      # hardcode_minus_L: Not really in the search PATH,
 
17472
      # but as the default location of the library.
 
17473
      hardcode_minus_L_F77=yes
 
17474
      export_dynamic_flag_spec_F77='${wl}-E'
 
17475
      ;;
 
17476
 
 
17477
    hpux10*)
 
17478
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
17479
        archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17480
      else
 
17481
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17482
      fi
 
17483
      if test "$with_gnu_ld" = no; then
 
17484
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17485
        hardcode_libdir_separator_F77=:
 
17486
        hardcode_direct_F77=yes
 
17487
        hardcode_direct_absolute_F77=yes
 
17488
        export_dynamic_flag_spec_F77='${wl}-E'
 
17489
        # hardcode_minus_L: Not really in the search PATH,
 
17490
        # but as the default location of the library.
 
17491
        hardcode_minus_L_F77=yes
 
17492
      fi
 
17493
      ;;
 
17494
 
 
17495
    hpux11*)
 
17496
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
17497
        case $host_cpu in
 
17498
        hppa*64*)
 
17499
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17500
          ;;
 
17501
        ia64*)
 
17502
          archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17503
          ;;
 
17504
        *)
 
17505
          archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17506
          ;;
 
17507
        esac
 
17508
      else
 
17509
        case $host_cpu in
 
17510
        hppa*64*)
 
17511
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17512
          ;;
 
17513
        ia64*)
 
17514
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17515
          ;;
 
17516
        *)
 
17517
        archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17518
          ;;
 
17519
        esac
 
17520
      fi
 
17521
      if test "$with_gnu_ld" = no; then
 
17522
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
17523
        hardcode_libdir_separator_F77=:
 
17524
 
 
17525
        case $host_cpu in
 
17526
        hppa*64*|ia64*)
 
17527
          hardcode_direct_F77=no
 
17528
          hardcode_shlibpath_var_F77=no
 
17529
          ;;
 
17530
        *)
 
17531
          hardcode_direct_F77=yes
 
17532
          hardcode_direct_absolute_F77=yes
 
17533
          export_dynamic_flag_spec_F77='${wl}-E'
 
17534
 
 
17535
          # hardcode_minus_L: Not really in the search PATH,
 
17536
          # but as the default location of the library.
 
17537
          hardcode_minus_L_F77=yes
 
17538
          ;;
 
17539
        esac
 
17540
      fi
 
17541
      ;;
 
17542
 
 
17543
    irix5* | irix6* | nonstopux*)
 
17544
      if test "$GCC" = yes; then
 
17545
        archive_cmds_F77='$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'
 
17546
        # Try to use the -exported_symbol ld option, if it does not
 
17547
        # work, assume that -exports_file does not work either and
 
17548
        # implicitly export all symbols.
 
17549
        # This should be the same for all languages, so no per-tag cache variable.
 
17550
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
17551
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
17552
if ${lt_cv_irix_exported_symbol+:} false; then :
 
17553
  $as_echo_n "(cached) " >&6
 
17554
else
 
17555
  save_LDFLAGS="$LDFLAGS"
 
17556
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
17557
           cat > conftest.$ac_ext <<_ACEOF
 
17558
 
 
17559
      subroutine foo
 
17560
      end
 
17561
_ACEOF
 
17562
if ac_fn_f77_try_link "$LINENO"; then :
 
17563
  lt_cv_irix_exported_symbol=yes
 
17564
else
 
17565
  lt_cv_irix_exported_symbol=no
 
17566
fi
 
17567
rm -f core conftest.err conftest.$ac_objext \
 
17568
    conftest$ac_exeext conftest.$ac_ext
 
17569
           LDFLAGS="$save_LDFLAGS"
 
17570
fi
 
17571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
17572
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
17573
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
17574
          archive_expsym_cmds_F77='$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'
 
17575
        fi
 
17576
      else
 
17577
        archive_cmds_F77='$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'
 
17578
        archive_expsym_cmds_F77='$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'
 
17579
      fi
 
17580
      archive_cmds_need_lc_F77='no'
 
17581
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17582
      hardcode_libdir_separator_F77=:
 
17583
      inherit_rpath_F77=yes
 
17584
      link_all_deplibs_F77=yes
 
17585
      ;;
 
17586
 
 
17587
    netbsd* | netbsdelf*-gnu)
 
17588
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
17589
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17590
      else
 
17591
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17592
      fi
 
17593
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17594
      hardcode_direct_F77=yes
 
17595
      hardcode_shlibpath_var_F77=no
 
17596
      ;;
 
17597
 
 
17598
    newsos6)
 
17599
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17600
      hardcode_direct_F77=yes
 
17601
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17602
      hardcode_libdir_separator_F77=:
 
17603
      hardcode_shlibpath_var_F77=no
 
17604
      ;;
 
17605
 
 
17606
    *nto* | *qnx*)
 
17607
      ;;
 
17608
 
 
17609
    openbsd*)
 
17610
      if test -f /usr/libexec/ld.so; then
 
17611
        hardcode_direct_F77=yes
 
17612
        hardcode_shlibpath_var_F77=no
 
17613
        hardcode_direct_absolute_F77=yes
 
17614
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17615
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17616
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17617
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
17618
          export_dynamic_flag_spec_F77='${wl}-E'
 
17619
        else
 
17620
          case $host_os in
 
17621
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17622
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17623
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
17624
             ;;
 
17625
           *)
 
17626
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17627
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
17628
             ;;
 
17629
          esac
 
17630
        fi
 
17631
      else
 
17632
        ld_shlibs_F77=no
 
17633
      fi
 
17634
      ;;
 
17635
 
 
17636
    os2*)
 
17637
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17638
      hardcode_minus_L_F77=yes
 
17639
      allow_undefined_flag_F77=unsupported
 
17640
      archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
17641
      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17642
      ;;
 
17643
 
 
17644
    osf3*)
 
17645
      if test "$GCC" = yes; then
 
17646
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
17647
        archive_cmds_F77='$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'
 
17648
      else
 
17649
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
17650
        archive_cmds_F77='$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'
 
17651
      fi
 
17652
      archive_cmds_need_lc_F77='no'
 
17653
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17654
      hardcode_libdir_separator_F77=:
 
17655
      ;;
 
17656
 
 
17657
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17658
      if test "$GCC" = yes; then
 
17659
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
17660
        archive_cmds_F77='$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'
 
17661
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
17662
      else
 
17663
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
17664
        archive_cmds_F77='$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'
 
17665
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
17666
        $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'
 
17667
 
 
17668
        # Both c and cxx compiler support -rpath directly
 
17669
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
17670
      fi
 
17671
      archive_cmds_need_lc_F77='no'
 
17672
      hardcode_libdir_separator_F77=:
 
17673
      ;;
 
17674
 
 
17675
    solaris*)
 
17676
      no_undefined_flag_F77=' -z defs'
 
17677
      if test "$GCC" = yes; then
 
17678
        wlarc='${wl}'
 
17679
        archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17680
        archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
17681
          $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'
 
17682
      else
 
17683
        case `$CC -V 2>&1` in
 
17684
        *"Compilers 5.0"*)
 
17685
          wlarc=''
 
17686
          archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17687
          archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
17688
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
17689
          ;;
 
17690
        *)
 
17691
          wlarc='${wl}'
 
17692
          archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17693
          archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
17694
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
17695
          ;;
 
17696
        esac
 
17697
      fi
 
17698
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
17699
      hardcode_shlibpath_var_F77=no
 
17700
      case $host_os in
 
17701
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17702
      *)
 
17703
        # The compiler driver will combine and reorder linker options,
 
17704
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17705
        # but is careful enough not to reorder.
 
17706
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17707
        if test "$GCC" = yes; then
 
17708
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17709
        else
 
17710
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
17711
        fi
 
17712
        ;;
 
17713
      esac
 
17714
      link_all_deplibs_F77=yes
 
17715
      ;;
 
17716
 
 
17717
    sunos4*)
 
17718
      if test "x$host_vendor" = xsequent; then
 
17719
        # Use $CC to link under sequent, because it throws in some extra .o
 
17720
        # files that make .init and .fini sections work.
 
17721
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17722
      else
 
17723
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17724
      fi
 
17725
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17726
      hardcode_direct_F77=yes
 
17727
      hardcode_minus_L_F77=yes
 
17728
      hardcode_shlibpath_var_F77=no
 
17729
      ;;
 
17730
 
 
17731
    sysv4)
 
17732
      case $host_vendor in
 
17733
        sni)
 
17734
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17735
          hardcode_direct_F77=yes # is this really true???
 
17736
        ;;
 
17737
        siemens)
 
17738
          ## LD is ld it makes a PLAMLIB
 
17739
          ## CC just makes a GrossModule.
 
17740
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17741
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
17742
          hardcode_direct_F77=no
 
17743
        ;;
 
17744
        motorola)
 
17745
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17746
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
17747
        ;;
 
17748
      esac
 
17749
      runpath_var='LD_RUN_PATH'
 
17750
      hardcode_shlibpath_var_F77=no
 
17751
      ;;
 
17752
 
 
17753
    sysv4.3*)
 
17754
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17755
      hardcode_shlibpath_var_F77=no
 
17756
      export_dynamic_flag_spec_F77='-Bexport'
 
17757
      ;;
 
17758
 
 
17759
    sysv4*MP*)
 
17760
      if test -d /usr/nec; then
 
17761
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17762
        hardcode_shlibpath_var_F77=no
 
17763
        runpath_var=LD_RUN_PATH
 
17764
        hardcode_runpath_var=yes
 
17765
        ld_shlibs_F77=yes
 
17766
      fi
 
17767
      ;;
 
17768
 
 
17769
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
17770
      no_undefined_flag_F77='${wl}-z,text'
 
17771
      archive_cmds_need_lc_F77=no
 
17772
      hardcode_shlibpath_var_F77=no
 
17773
      runpath_var='LD_RUN_PATH'
 
17774
 
 
17775
      if test "$GCC" = yes; then
 
17776
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17777
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17778
      else
 
17779
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17780
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17781
      fi
 
17782
      ;;
 
17783
 
 
17784
    sysv5* | sco3.2v5* | sco5v6*)
 
17785
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17786
      # link with -lc, and that would cause any symbols used from libc to
 
17787
      # always be unresolved, which means just about no library would
 
17788
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17789
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17790
      # as -z defs.
 
17791
      no_undefined_flag_F77='${wl}-z,text'
 
17792
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
17793
      archive_cmds_need_lc_F77=no
 
17794
      hardcode_shlibpath_var_F77=no
 
17795
      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
 
17796
      hardcode_libdir_separator_F77=':'
 
17797
      link_all_deplibs_F77=yes
 
17798
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
17799
      runpath_var='LD_RUN_PATH'
 
17800
 
 
17801
      if test "$GCC" = yes; then
 
17802
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17803
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17804
      else
 
17805
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17806
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17807
      fi
 
17808
      ;;
 
17809
 
 
17810
    uts4*)
 
17811
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17812
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
17813
      hardcode_shlibpath_var_F77=no
 
17814
      ;;
 
17815
 
 
17816
    *)
 
17817
      ld_shlibs_F77=no
 
17818
      ;;
 
17819
    esac
 
17820
 
 
17821
    if test x$host_vendor = xsni; then
 
17822
      case $host in
 
17823
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17824
        export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
 
17825
        ;;
 
17826
      esac
 
17827
    fi
 
17828
  fi
 
17829
 
 
17830
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
 
17831
$as_echo "$ld_shlibs_F77" >&6; }
 
17832
test "$ld_shlibs_F77" = no && can_build_shared=no
 
17833
 
 
17834
with_gnu_ld_F77=$with_gnu_ld
 
17835
 
 
17836
 
 
17837
 
 
17838
 
 
17839
 
 
17840
 
 
17841
#
 
17842
# Do we need to explicitly link libc?
 
17843
#
 
17844
case "x$archive_cmds_need_lc_F77" in
 
17845
x|xyes)
 
17846
  # Assume -lc should be added
 
17847
  archive_cmds_need_lc_F77=yes
 
17848
 
 
17849
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17850
    case $archive_cmds_F77 in
 
17851
    *'~'*)
 
17852
      # FIXME: we may have to deal with multi-command sequences.
 
17853
      ;;
 
17854
    '$CC '*)
 
17855
      # Test whether the compiler implicitly links with -lc since on some
 
17856
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17857
      # to ld, don't add -lc before -lgcc.
 
17858
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
17859
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
17860
if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
 
17861
  $as_echo_n "(cached) " >&6
 
17862
else
 
17863
  $RM conftest*
 
17864
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17865
 
 
17866
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
17867
  (eval $ac_compile) 2>&5
 
17868
  ac_status=$?
 
17869
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17870
  test $ac_status = 0; } 2>conftest.err; then
 
17871
          soname=conftest
 
17872
          lib=conftest
 
17873
          libobjs=conftest.$ac_objext
 
17874
          deplibs=
 
17875
          wl=$lt_prog_compiler_wl_F77
 
17876
          pic_flag=$lt_prog_compiler_pic_F77
 
17877
          compiler_flags=-v
 
17878
          linker_flags=-v
 
17879
          verstring=
 
17880
          output_objdir=.
 
17881
          libname=conftest
 
17882
          lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
17883
          allow_undefined_flag_F77=
 
17884
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
17885
  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17886
  ac_status=$?
 
17887
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
17888
  test $ac_status = 0; }
 
17889
          then
 
17890
            lt_cv_archive_cmds_need_lc_F77=no
 
17891
          else
 
17892
            lt_cv_archive_cmds_need_lc_F77=yes
 
17893
          fi
 
17894
          allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
17895
        else
 
17896
          cat conftest.err 1>&5
 
17897
        fi
 
17898
        $RM conftest*
 
17899
 
 
17900
fi
 
17901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
 
17902
$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
 
17903
      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
 
17904
      ;;
 
17905
    esac
 
17906
  fi
 
17907
  ;;
 
17908
esac
 
17909
 
 
17910
 
 
17911
 
 
17912
 
 
17913
 
 
17914
 
 
17915
 
 
17916
 
 
17917
 
 
17918
 
 
17919
 
 
17920
 
 
17921
 
 
17922
 
 
17923
 
 
17924
 
 
17925
 
 
17926
 
 
17927
 
 
17928
 
 
17929
 
 
17930
 
 
17931
 
 
17932
 
 
17933
 
 
17934
 
 
17935
 
 
17936
 
 
17937
 
 
17938
 
 
17939
 
 
17940
 
 
17941
 
 
17942
 
 
17943
 
 
17944
 
 
17945
 
 
17946
 
 
17947
 
 
17948
 
 
17949
 
 
17950
 
 
17951
 
 
17952
 
 
17953
 
 
17954
 
 
17955
 
 
17956
 
 
17957
 
 
17958
 
 
17959
 
 
17960
 
 
17961
 
 
17962
 
 
17963
 
 
17964
 
 
17965
 
 
17966
 
 
17967
 
 
17968
 
 
17969
 
 
17970
 
 
17971
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
17972
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
17973
 
 
17974
library_names_spec=
 
17975
libname_spec='lib$name'
 
17976
soname_spec=
 
17977
shrext_cmds=".so"
 
17978
postinstall_cmds=
 
17979
postuninstall_cmds=
 
17980
finish_cmds=
 
17981
finish_eval=
 
17982
shlibpath_var=
 
17983
shlibpath_overrides_runpath=unknown
 
17984
version_type=none
 
17985
dynamic_linker="$host_os ld.so"
 
17986
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17987
need_lib_prefix=unknown
 
17988
hardcode_into_libs=no
 
17989
 
 
17990
# when you set need_version to no, make sure it does not cause -set_version
 
17991
# flags to be left without arguments
 
17992
need_version=unknown
 
17993
 
 
17994
case $host_os in
 
17995
aix3*)
 
17996
  version_type=linux # correct to gnu/linux during the next big refactor
 
17997
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17998
  shlibpath_var=LIBPATH
 
17999
 
 
18000
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18001
  soname_spec='${libname}${release}${shared_ext}$major'
 
18002
  ;;
 
18003
 
 
18004
aix[4-9]*)
 
18005
  version_type=linux # correct to gnu/linux during the next big refactor
 
18006
  need_lib_prefix=no
 
18007
  need_version=no
 
18008
  hardcode_into_libs=yes
 
18009
  if test "$host_cpu" = ia64; then
 
18010
    # AIX 5 supports IA64
 
18011
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18012
    shlibpath_var=LD_LIBRARY_PATH
 
18013
  else
 
18014
    # With GCC up to 2.95.x, collect2 would create an import file
 
18015
    # for dependence libraries.  The import file would start with
 
18016
    # the line `#! .'.  This would cause the generated library to
 
18017
    # depend on `.', always an invalid library.  This was fixed in
 
18018
    # development snapshots of GCC prior to 3.0.
 
18019
    case $host_os in
 
18020
      aix4 | aix4.[01] | aix4.[01].*)
 
18021
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18022
           echo ' yes '
 
18023
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
18024
        :
 
18025
      else
 
18026
        can_build_shared=no
 
18027
      fi
 
18028
      ;;
 
18029
    esac
 
18030
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18031
    # soname into executable. Probably we can add versioning support to
 
18032
    # collect2, so additional links can be useful in future.
 
18033
    if test "$aix_use_runtimelinking" = yes; then
 
18034
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18035
      # instead of lib<name>.a to let people know that these are not
 
18036
      # typical AIX shared libraries.
 
18037
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18038
    else
 
18039
      # We preserve .a as extension for shared libraries through AIX4.2
 
18040
      # and later when we are not doing run time linking.
 
18041
      library_names_spec='${libname}${release}.a $libname.a'
 
18042
      soname_spec='${libname}${release}${shared_ext}$major'
 
18043
    fi
 
18044
    shlibpath_var=LIBPATH
 
18045
  fi
 
18046
  ;;
 
18047
 
 
18048
amigaos*)
 
18049
  case $host_cpu in
 
18050
  powerpc)
 
18051
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
18052
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
18053
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18054
    ;;
 
18055
  m68k)
 
18056
    library_names_spec='$libname.ixlibrary $libname.a'
 
18057
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18058
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18059
    ;;
 
18060
  esac
 
18061
  ;;
 
18062
 
 
18063
beos*)
 
18064
  library_names_spec='${libname}${shared_ext}'
 
18065
  dynamic_linker="$host_os ld.so"
 
18066
  shlibpath_var=LIBRARY_PATH
 
18067
  ;;
 
18068
 
 
18069
bsdi[45]*)
 
18070
  version_type=linux # correct to gnu/linux during the next big refactor
 
18071
  need_version=no
 
18072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18073
  soname_spec='${libname}${release}${shared_ext}$major'
 
18074
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18075
  shlibpath_var=LD_LIBRARY_PATH
 
18076
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18077
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18078
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18079
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18080
  # libtool to hard-code these into programs
 
18081
  ;;
 
18082
 
 
18083
cygwin* | mingw* | pw32* | cegcc*)
 
18084
  version_type=windows
 
18085
  shrext_cmds=".dll"
 
18086
  need_version=no
 
18087
  need_lib_prefix=no
 
18088
 
 
18089
  case $GCC,$cc_basename in
 
18090
  yes,*)
 
18091
    # gcc
 
18092
    library_names_spec='$libname.dll.a'
 
18093
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18094
    postinstall_cmds='base_file=`basename \${file}`~
 
18095
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
18096
      dldir=$destdir/`dirname \$dlpath`~
 
18097
      test -d \$dldir || mkdir -p \$dldir~
 
18098
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18099
      chmod a+x \$dldir/$dlname~
 
18100
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
18101
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
18102
      fi'
 
18103
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18104
      dlpath=$dir/\$dldll~
 
18105
       $RM \$dlpath'
 
18106
    shlibpath_overrides_runpath=yes
 
18107
 
 
18108
    case $host_os in
 
18109
    cygwin*)
 
18110
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18111
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18112
 
 
18113
      ;;
 
18114
    mingw* | cegcc*)
 
18115
      # MinGW DLLs use traditional 'lib' prefix
 
18116
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18117
      ;;
 
18118
    pw32*)
 
18119
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18120
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18121
      ;;
 
18122
    esac
 
18123
    dynamic_linker='Win32 ld.exe'
 
18124
    ;;
 
18125
 
 
18126
  *,cl*)
 
18127
    # Native MSVC
 
18128
    libname_spec='$name'
 
18129
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18130
    library_names_spec='${libname}.dll.lib'
 
18131
 
 
18132
    case $build_os in
 
18133
    mingw*)
 
18134
      sys_lib_search_path_spec=
 
18135
      lt_save_ifs=$IFS
 
18136
      IFS=';'
 
18137
      for lt_path in $LIB
 
18138
      do
 
18139
        IFS=$lt_save_ifs
 
18140
        # Let DOS variable expansion print the short 8.3 style file name.
 
18141
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
18142
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
18143
      done
 
18144
      IFS=$lt_save_ifs
 
18145
      # Convert to MSYS style.
 
18146
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
18147
      ;;
 
18148
    cygwin*)
 
18149
      # Convert to unix form, then to dos form, then back to unix form
 
18150
      # but this time dos style (no spaces!) so that the unix form looks
 
18151
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
18152
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
18153
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
18154
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
18155
      ;;
 
18156
    *)
 
18157
      sys_lib_search_path_spec="$LIB"
 
18158
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
18159
        # It is most probably a Windows format PATH.
 
18160
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18161
      else
 
18162
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
18163
      fi
 
18164
      # FIXME: find the short name or the path components, as spaces are
 
18165
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
18166
      ;;
 
18167
    esac
 
18168
 
 
18169
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18170
    postinstall_cmds='base_file=`basename \${file}`~
 
18171
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
18172
      dldir=$destdir/`dirname \$dlpath`~
 
18173
      test -d \$dldir || mkdir -p \$dldir~
 
18174
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18175
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18176
      dlpath=$dir/\$dldll~
 
18177
       $RM \$dlpath'
 
18178
    shlibpath_overrides_runpath=yes
 
18179
    dynamic_linker='Win32 link.exe'
 
18180
    ;;
 
18181
 
 
18182
  *)
 
18183
    # Assume MSVC wrapper
 
18184
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18185
    dynamic_linker='Win32 ld.exe'
 
18186
    ;;
 
18187
  esac
 
18188
  # FIXME: first we should search . and the directory the executable is in
 
18189
  shlibpath_var=PATH
 
18190
  ;;
 
18191
 
 
18192
darwin* | rhapsody*)
 
18193
  dynamic_linker="$host_os dyld"
 
18194
  version_type=darwin
 
18195
  need_lib_prefix=no
 
18196
  need_version=no
 
18197
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18198
  soname_spec='${libname}${release}${major}$shared_ext'
 
18199
  shlibpath_overrides_runpath=yes
 
18200
  shlibpath_var=DYLD_LIBRARY_PATH
 
18201
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18202
 
 
18203
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18204
  ;;
 
18205
 
 
18206
dgux*)
 
18207
  version_type=linux # correct to gnu/linux during the next big refactor
 
18208
  need_lib_prefix=no
 
18209
  need_version=no
 
18210
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18211
  soname_spec='${libname}${release}${shared_ext}$major'
 
18212
  shlibpath_var=LD_LIBRARY_PATH
 
18213
  ;;
 
18214
 
 
18215
freebsd* | dragonfly*)
 
18216
  # DragonFly does not have aout.  When/if they implement a new
 
18217
  # versioning mechanism, adjust this.
 
18218
  if test -x /usr/bin/objformat; then
 
18219
    objformat=`/usr/bin/objformat`
 
18220
  else
 
18221
    case $host_os in
 
18222
    freebsd[23].*) objformat=aout ;;
 
18223
    *) objformat=elf ;;
 
18224
    esac
 
18225
  fi
 
18226
  version_type=freebsd-$objformat
 
18227
  case $version_type in
 
18228
    freebsd-elf*)
 
18229
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18230
      need_version=no
 
18231
      need_lib_prefix=no
 
18232
      ;;
 
18233
    freebsd-*)
 
18234
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18235
      need_version=yes
 
18236
      ;;
 
18237
  esac
 
18238
  shlibpath_var=LD_LIBRARY_PATH
 
18239
  case $host_os in
 
18240
  freebsd2.*)
 
18241
    shlibpath_overrides_runpath=yes
 
18242
    ;;
 
18243
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18244
    shlibpath_overrides_runpath=yes
 
18245
    hardcode_into_libs=yes
 
18246
    ;;
 
18247
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18248
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18249
    shlibpath_overrides_runpath=no
 
18250
    hardcode_into_libs=yes
 
18251
    ;;
 
18252
  *) # from 4.6 on, and DragonFly
 
18253
    shlibpath_overrides_runpath=yes
 
18254
    hardcode_into_libs=yes
 
18255
    ;;
 
18256
  esac
 
18257
  ;;
 
18258
 
 
18259
gnu*)
 
18260
  version_type=linux # correct to gnu/linux during the next big refactor
 
18261
  need_lib_prefix=no
 
18262
  need_version=no
 
18263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18264
  soname_spec='${libname}${release}${shared_ext}$major'
 
18265
  shlibpath_var=LD_LIBRARY_PATH
 
18266
  shlibpath_overrides_runpath=no
 
18267
  hardcode_into_libs=yes
 
18268
  ;;
 
18269
 
 
18270
haiku*)
 
18271
  version_type=linux # correct to gnu/linux during the next big refactor
 
18272
  need_lib_prefix=no
 
18273
  need_version=no
 
18274
  dynamic_linker="$host_os runtime_loader"
 
18275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18276
  soname_spec='${libname}${release}${shared_ext}$major'
 
18277
  shlibpath_var=LIBRARY_PATH
 
18278
  shlibpath_overrides_runpath=yes
 
18279
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
18280
  hardcode_into_libs=yes
 
18281
  ;;
 
18282
 
 
18283
hpux9* | hpux10* | hpux11*)
 
18284
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18285
  # link against other versions.
 
18286
  version_type=sunos
 
18287
  need_lib_prefix=no
 
18288
  need_version=no
 
18289
  case $host_cpu in
 
18290
  ia64*)
 
18291
    shrext_cmds='.so'
 
18292
    hardcode_into_libs=yes
 
18293
    dynamic_linker="$host_os dld.so"
 
18294
    shlibpath_var=LD_LIBRARY_PATH
 
18295
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18296
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18297
    soname_spec='${libname}${release}${shared_ext}$major'
 
18298
    if test "X$HPUX_IA64_MODE" = X32; then
 
18299
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18300
    else
 
18301
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18302
    fi
 
18303
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18304
    ;;
 
18305
  hppa*64*)
 
18306
    shrext_cmds='.sl'
 
18307
    hardcode_into_libs=yes
 
18308
    dynamic_linker="$host_os dld.sl"
 
18309
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18310
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18311
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18312
    soname_spec='${libname}${release}${shared_ext}$major'
 
18313
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18314
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18315
    ;;
 
18316
  *)
 
18317
    shrext_cmds='.sl'
 
18318
    dynamic_linker="$host_os dld.sl"
 
18319
    shlibpath_var=SHLIB_PATH
 
18320
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18322
    soname_spec='${libname}${release}${shared_ext}$major'
 
18323
    ;;
 
18324
  esac
 
18325
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
18326
  postinstall_cmds='chmod 555 $lib'
 
18327
  # or fails outright, so override atomically:
 
18328
  install_override_mode=555
 
18329
  ;;
 
18330
 
 
18331
interix[3-9]*)
 
18332
  version_type=linux # correct to gnu/linux during the next big refactor
 
18333
  need_lib_prefix=no
 
18334
  need_version=no
 
18335
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18336
  soname_spec='${libname}${release}${shared_ext}$major'
 
18337
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18338
  shlibpath_var=LD_LIBRARY_PATH
 
18339
  shlibpath_overrides_runpath=no
 
18340
  hardcode_into_libs=yes
 
18341
  ;;
 
18342
 
 
18343
irix5* | irix6* | nonstopux*)
 
18344
  case $host_os in
 
18345
    nonstopux*) version_type=nonstopux ;;
 
18346
    *)
 
18347
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18348
                version_type=linux # correct to gnu/linux during the next big refactor
 
18349
        else
 
18350
                version_type=irix
 
18351
        fi ;;
 
18352
  esac
 
18353
  need_lib_prefix=no
 
18354
  need_version=no
 
18355
  soname_spec='${libname}${release}${shared_ext}$major'
 
18356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18357
  case $host_os in
 
18358
  irix5* | nonstopux*)
 
18359
    libsuff= shlibsuff=
 
18360
    ;;
 
18361
  *)
 
18362
    case $LD in # libtool.m4 will add one of these switches to LD
 
18363
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18364
      libsuff= shlibsuff= libmagic=32-bit;;
 
18365
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18366
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18367
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18368
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18369
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18370
    esac
 
18371
    ;;
 
18372
  esac
 
18373
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18374
  shlibpath_overrides_runpath=no
 
18375
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18376
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18377
  hardcode_into_libs=yes
 
18378
  ;;
 
18379
 
 
18380
# No shared lib support for Linux oldld, aout, or coff.
 
18381
linux*oldld* | linux*aout* | linux*coff*)
 
18382
  dynamic_linker=no
 
18383
  ;;
 
18384
 
 
18385
# This must be glibc/ELF.
 
18386
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
18387
  version_type=linux # correct to gnu/linux during the next big refactor
 
18388
  need_lib_prefix=no
 
18389
  need_version=no
 
18390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18391
  soname_spec='${libname}${release}${shared_ext}$major'
 
18392
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18393
  shlibpath_var=LD_LIBRARY_PATH
 
18394
  shlibpath_overrides_runpath=no
 
18395
 
 
18396
  # Some binutils ld are patched to set DT_RUNPATH
 
18397
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
18398
  $as_echo_n "(cached) " >&6
 
18399
else
 
18400
  lt_cv_shlibpath_overrides_runpath=no
 
18401
    save_LDFLAGS=$LDFLAGS
 
18402
    save_libdir=$libdir
 
18403
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
 
18404
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
 
18405
    cat > conftest.$ac_ext <<_ACEOF
 
18406
      program main
 
18407
 
 
18408
      end
 
18409
_ACEOF
 
18410
if ac_fn_f77_try_link "$LINENO"; then :
 
18411
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
18412
  lt_cv_shlibpath_overrides_runpath=yes
 
18413
fi
 
18414
fi
 
18415
rm -f core conftest.err conftest.$ac_objext \
 
18416
    conftest$ac_exeext conftest.$ac_ext
 
18417
    LDFLAGS=$save_LDFLAGS
 
18418
    libdir=$save_libdir
 
18419
 
 
18420
fi
 
18421
 
 
18422
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
18423
 
 
18424
  # This implies no fast_install, which is unacceptable.
 
18425
  # Some rework will be needed to allow for fast_install
 
18426
  # before this can be enabled.
 
18427
  hardcode_into_libs=yes
 
18428
 
 
18429
  # Append ld.so.conf contents to the search path
 
18430
  if test -f /etc/ld.so.conf; then
 
18431
    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' ' '`
 
18432
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18433
  fi
 
18434
 
 
18435
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18436
  # powerpc, because MkLinux only supported shared libraries with the
 
18437
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18438
  # most powerpc-linux boxes support dynamic linking these days and
 
18439
  # people can always --disable-shared, the test was removed, and we
 
18440
  # assume the GNU/Linux dynamic linker is in use.
 
18441
  dynamic_linker='GNU/Linux ld.so'
 
18442
  ;;
 
18443
 
 
18444
netbsdelf*-gnu)
 
18445
  version_type=linux
 
18446
  need_lib_prefix=no
 
18447
  need_version=no
 
18448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18449
  soname_spec='${libname}${release}${shared_ext}$major'
 
18450
  shlibpath_var=LD_LIBRARY_PATH
 
18451
  shlibpath_overrides_runpath=no
 
18452
  hardcode_into_libs=yes
 
18453
  dynamic_linker='NetBSD ld.elf_so'
 
18454
  ;;
 
18455
 
 
18456
netbsd*)
 
18457
  version_type=sunos
 
18458
  need_lib_prefix=no
 
18459
  need_version=no
 
18460
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
18461
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18462
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18463
    dynamic_linker='NetBSD (a.out) ld.so'
 
18464
  else
 
18465
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18466
    soname_spec='${libname}${release}${shared_ext}$major'
 
18467
    dynamic_linker='NetBSD ld.elf_so'
 
18468
  fi
 
18469
  shlibpath_var=LD_LIBRARY_PATH
 
18470
  shlibpath_overrides_runpath=yes
 
18471
  hardcode_into_libs=yes
 
18472
  ;;
 
18473
 
 
18474
newsos6)
 
18475
  version_type=linux # correct to gnu/linux during the next big refactor
 
18476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18477
  shlibpath_var=LD_LIBRARY_PATH
 
18478
  shlibpath_overrides_runpath=yes
 
18479
  ;;
 
18480
 
 
18481
*nto* | *qnx*)
 
18482
  version_type=qnx
 
18483
  need_lib_prefix=no
 
18484
  need_version=no
 
18485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18486
  soname_spec='${libname}${release}${shared_ext}$major'
 
18487
  shlibpath_var=LD_LIBRARY_PATH
 
18488
  shlibpath_overrides_runpath=no
 
18489
  hardcode_into_libs=yes
 
18490
  dynamic_linker='ldqnx.so'
 
18491
  ;;
 
18492
 
 
18493
openbsd*)
 
18494
  version_type=sunos
 
18495
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18496
  need_lib_prefix=no
 
18497
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18498
  case $host_os in
 
18499
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
18500
    *)                          need_version=no  ;;
 
18501
  esac
 
18502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18503
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18504
  shlibpath_var=LD_LIBRARY_PATH
 
18505
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18506
    case $host_os in
 
18507
      openbsd2.[89] | openbsd2.[89].*)
 
18508
        shlibpath_overrides_runpath=no
 
18509
        ;;
 
18510
      *)
 
18511
        shlibpath_overrides_runpath=yes
 
18512
        ;;
 
18513
      esac
 
18514
  else
 
18515
    shlibpath_overrides_runpath=yes
 
18516
  fi
 
18517
  ;;
 
18518
 
 
18519
os2*)
 
18520
  libname_spec='$name'
 
18521
  shrext_cmds=".dll"
 
18522
  need_lib_prefix=no
 
18523
  library_names_spec='$libname${shared_ext} $libname.a'
 
18524
  dynamic_linker='OS/2 ld.exe'
 
18525
  shlibpath_var=LIBPATH
 
18526
  ;;
 
18527
 
 
18528
osf3* | osf4* | osf5*)
 
18529
  version_type=osf
 
18530
  need_lib_prefix=no
 
18531
  need_version=no
 
18532
  soname_spec='${libname}${release}${shared_ext}$major'
 
18533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18534
  shlibpath_var=LD_LIBRARY_PATH
 
18535
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18536
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18537
  ;;
 
18538
 
 
18539
rdos*)
 
18540
  dynamic_linker=no
 
18541
  ;;
 
18542
 
 
18543
solaris*)
 
18544
  version_type=linux # correct to gnu/linux during the next big refactor
 
18545
  need_lib_prefix=no
 
18546
  need_version=no
 
18547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18548
  soname_spec='${libname}${release}${shared_ext}$major'
 
18549
  shlibpath_var=LD_LIBRARY_PATH
 
18550
  shlibpath_overrides_runpath=yes
 
18551
  hardcode_into_libs=yes
 
18552
  # ldd complains unless libraries are executable
 
18553
  postinstall_cmds='chmod +x $lib'
 
18554
  ;;
 
18555
 
 
18556
sunos4*)
 
18557
  version_type=sunos
 
18558
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18559
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18560
  shlibpath_var=LD_LIBRARY_PATH
 
18561
  shlibpath_overrides_runpath=yes
 
18562
  if test "$with_gnu_ld" = yes; then
 
18563
    need_lib_prefix=no
 
18564
  fi
 
18565
  need_version=yes
 
18566
  ;;
 
18567
 
 
18568
sysv4 | sysv4.3*)
 
18569
  version_type=linux # correct to gnu/linux during the next big refactor
 
18570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18571
  soname_spec='${libname}${release}${shared_ext}$major'
 
18572
  shlibpath_var=LD_LIBRARY_PATH
 
18573
  case $host_vendor in
 
18574
    sni)
 
18575
      shlibpath_overrides_runpath=no
 
18576
      need_lib_prefix=no
 
18577
      runpath_var=LD_RUN_PATH
 
18578
      ;;
 
18579
    siemens)
 
18580
      need_lib_prefix=no
 
18581
      ;;
 
18582
    motorola)
 
18583
      need_lib_prefix=no
 
18584
      need_version=no
 
18585
      shlibpath_overrides_runpath=no
 
18586
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18587
      ;;
 
18588
  esac
 
18589
  ;;
 
18590
 
 
18591
sysv4*MP*)
 
18592
  if test -d /usr/nec ;then
 
18593
    version_type=linux # correct to gnu/linux during the next big refactor
 
18594
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18595
    soname_spec='$libname${shared_ext}.$major'
 
18596
    shlibpath_var=LD_LIBRARY_PATH
 
18597
  fi
 
18598
  ;;
 
18599
 
 
18600
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18601
  version_type=freebsd-elf
 
18602
  need_lib_prefix=no
 
18603
  need_version=no
 
18604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18605
  soname_spec='${libname}${release}${shared_ext}$major'
 
18606
  shlibpath_var=LD_LIBRARY_PATH
 
18607
  shlibpath_overrides_runpath=yes
 
18608
  hardcode_into_libs=yes
 
18609
  if test "$with_gnu_ld" = yes; then
 
18610
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18611
  else
 
18612
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18613
    case $host_os in
 
18614
      sco3.2v5*)
 
18615
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18616
        ;;
 
18617
    esac
 
18618
  fi
 
18619
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18620
  ;;
 
18621
 
 
18622
tpf*)
 
18623
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
18624
  version_type=linux # correct to gnu/linux during the next big refactor
 
18625
  need_lib_prefix=no
 
18626
  need_version=no
 
18627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18628
  shlibpath_var=LD_LIBRARY_PATH
 
18629
  shlibpath_overrides_runpath=no
 
18630
  hardcode_into_libs=yes
 
18631
  ;;
 
18632
 
 
18633
uts4*)
 
18634
  version_type=linux # correct to gnu/linux during the next big refactor
 
18635
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18636
  soname_spec='${libname}${release}${shared_ext}$major'
 
18637
  shlibpath_var=LD_LIBRARY_PATH
 
18638
  ;;
 
18639
 
 
18640
*)
 
18641
  dynamic_linker=no
 
18642
  ;;
 
18643
esac
 
18644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
18645
$as_echo "$dynamic_linker" >&6; }
 
18646
test "$dynamic_linker" = no && can_build_shared=no
 
18647
 
 
18648
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18649
if test "$GCC" = yes; then
 
18650
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18651
fi
 
18652
 
 
18653
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18654
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18655
fi
 
18656
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18657
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18658
fi
 
18659
 
 
18660
 
 
18661
 
 
18662
 
 
18663
 
 
18664
 
 
18665
 
 
18666
 
 
18667
 
 
18668
 
 
18669
 
 
18670
 
 
18671
 
 
18672
 
 
18673
 
 
18674
 
 
18675
 
 
18676
 
 
18677
 
 
18678
 
 
18679
 
 
18680
 
 
18681
 
 
18682
 
 
18683
 
 
18684
 
 
18685
 
 
18686
 
 
18687
 
 
18688
 
 
18689
 
 
18690
 
 
18691
 
 
18692
 
 
18693
 
 
18694
 
 
18695
 
 
18696
 
 
18697
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
18698
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
18699
hardcode_action_F77=
 
18700
if test -n "$hardcode_libdir_flag_spec_F77" ||
 
18701
   test -n "$runpath_var_F77" ||
 
18702
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
18703
 
 
18704
  # We can hardcode non-existent directories.
 
18705
  if test "$hardcode_direct_F77" != no &&
 
18706
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18707
     # have to relink, otherwise we might link with an installed library
 
18708
     # when we should be linking with a yet-to-be-installed one
 
18709
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
18710
     test "$hardcode_minus_L_F77" != no; then
 
18711
    # Linking always hardcodes the temporary library directory.
 
18712
    hardcode_action_F77=relink
 
18713
  else
 
18714
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18715
    hardcode_action_F77=immediate
 
18716
  fi
 
18717
else
 
18718
  # We cannot hardcode anything, or else we can only hardcode existing
 
18719
  # directories.
 
18720
  hardcode_action_F77=unsupported
 
18721
fi
 
18722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
 
18723
$as_echo "$hardcode_action_F77" >&6; }
 
18724
 
 
18725
if test "$hardcode_action_F77" = relink ||
 
18726
   test "$inherit_rpath_F77" = yes; then
 
18727
  # Fast installation is not supported
 
18728
  enable_fast_install=no
 
18729
elif test "$shlibpath_overrides_runpath" = yes ||
 
18730
     test "$enable_shared" = no; then
 
18731
  # Fast installation is not necessary
 
18732
  enable_fast_install=needless
 
18733
fi
 
18734
 
 
18735
 
 
18736
 
 
18737
 
 
18738
 
 
18739
 
 
18740
 
 
18741
  fi # test -n "$compiler"
 
18742
 
 
18743
  GCC=$lt_save_GCC
 
18744
  CC="$lt_save_CC"
 
18745
  CFLAGS="$lt_save_CFLAGS"
 
18746
fi # test "$_lt_disable_F77" != yes
 
18747
 
 
18748
ac_ext=c
 
18749
ac_cpp='$CPP $CPPFLAGS'
 
18750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18753
 
 
18754
 
 
18755
 
 
18756
# Checks for libraries.
 
18757
 
 
18758
# Checks for header files.
 
18759
for ac_header in string.h
 
18760
do :
 
18761
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
18762
if test "x$ac_cv_header_string_h" = xyes; then :
 
18763
  cat >>confdefs.h <<_ACEOF
 
18764
#define HAVE_STRING_H 1
 
18765
_ACEOF
 
18766
 
 
18767
fi
 
18768
 
 
18769
done
 
18770
 
 
18771
 
 
18772
# Checks for typedefs, structures, and compiler characteristics.
 
18773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
18774
$as_echo_n "checking for inline... " >&6; }
 
18775
if ${ac_cv_c_inline+:} false; then :
 
18776
  $as_echo_n "(cached) " >&6
 
18777
else
 
18778
  ac_cv_c_inline=no
 
18779
for ac_kw in inline __inline__ __inline; do
 
18780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
18781
/* end confdefs.h.  */
 
18782
#ifndef __cplusplus
 
18783
typedef int foo_t;
 
18784
static $ac_kw foo_t static_foo () {return 0; }
 
18785
$ac_kw foo_t foo () {return 0; }
 
18786
#endif
 
18787
 
 
18788
_ACEOF
 
18789
if ac_fn_c_try_compile "$LINENO"; then :
 
18790
  ac_cv_c_inline=$ac_kw
 
18791
fi
 
18792
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
18793
  test "$ac_cv_c_inline" != no && break
 
18794
done
 
18795
 
 
18796
fi
 
18797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
 
18798
$as_echo "$ac_cv_c_inline" >&6; }
 
18799
 
 
18800
case $ac_cv_c_inline in
 
18801
  inline | yes) ;;
 
18802
  *)
 
18803
    case $ac_cv_c_inline in
 
18804
      no) ac_val=;;
 
18805
      *) ac_val=$ac_cv_c_inline;;
 
18806
    esac
 
18807
    cat >>confdefs.h <<_ACEOF
 
18808
#ifndef __cplusplus
 
18809
#define inline $ac_val
 
18810
#endif
 
18811
_ACEOF
 
18812
    ;;
 
18813
esac
 
18814
 
 
18815
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
 
18816
if test "x$ac_cv_type_size_t" = xyes; then :
 
18817
 
 
18818
else
 
18819
 
 
18820
cat >>confdefs.h <<_ACEOF
 
18821
#define size_t unsigned int
 
18822
_ACEOF
 
18823
 
 
18824
fi
 
18825
 
 
18826
 
 
18827
# Checks for library functions.
 
18828
 
 
18829
ac_config_files="$ac_config_files Makefile liborthpol-1.0.pc"
 
18830
 
 
18831
cat >confcache <<\_ACEOF
 
18832
# This file is a shell script that caches the results of configure
 
18833
# tests run on this system so they can be shared between configure
 
18834
# scripts and configure runs, see configure's option --config-cache.
 
18835
# It is not useful on other systems.  If it contains results you don't
 
18836
# want to keep, you may remove or edit it.
 
18837
#
 
18838
# config.status only pays attention to the cache file if you give it
 
18839
# the --recheck option to rerun configure.
 
18840
#
 
18841
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18842
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18843
# following values.
 
18844
 
 
18845
_ACEOF
 
18846
 
 
18847
# The following way of writing the cache mishandles newlines in values,
 
18848
# but we know of no workaround that is simple, portable, and efficient.
 
18849
# So, we kill variables containing newlines.
 
18850
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18851
# and sets the high bit in the cache file unless we assign to the vars.
 
18852
(
 
18853
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
18854
    eval ac_val=\$$ac_var
 
18855
    case $ac_val in #(
 
18856
    *${as_nl}*)
 
18857
      case $ac_var in #(
 
18858
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
18859
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
18860
      esac
 
18861
      case $ac_var in #(
 
18862
      _ | IFS | as_nl) ;; #(
 
18863
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
18864
      *) { eval $ac_var=; unset $ac_var;} ;;
 
18865
      esac ;;
 
18866
    esac
 
18867
  done
 
18868
 
 
18869
  (set) 2>&1 |
 
18870
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
18871
    *${as_nl}ac_space=\ *)
 
18872
      # `set' does not quote correctly, so add quotes: double-quote
 
18873
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
18874
      sed -n \
 
18875
        "s/'/'\\\\''/g;
 
18876
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18877
      ;; #(
 
18878
    *)
 
18879
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18880
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
18881
      ;;
 
18882
    esac |
 
18883
    sort
 
18884
) |
 
18885
  sed '
 
18886
     /^ac_cv_env_/b end
 
18887
     t clear
 
18888
     :clear
 
18889
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18890
     t end
 
18891
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18892
     :end' >>confcache
 
18893
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
18894
  if test -w "$cache_file"; then
 
18895
    if test "x$cache_file" != "x/dev/null"; then
 
18896
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
18897
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
18898
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
18899
        cat confcache >"$cache_file"
 
18900
      else
 
18901
        case $cache_file in #(
 
18902
        */* | ?:*)
 
18903
          mv -f confcache "$cache_file"$$ &&
 
18904
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
18905
        *)
 
18906
          mv -f confcache "$cache_file" ;;
 
18907
        esac
 
18908
      fi
 
18909
    fi
 
18910
  else
 
18911
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
18912
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
18913
  fi
 
18914
fi
 
18915
rm -f confcache
 
18916
 
 
18917
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18918
# Let make expand exec_prefix.
 
18919
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18920
 
 
18921
DEFS=-DHAVE_CONFIG_H
 
18922
 
 
18923
ac_libobjs=
 
18924
ac_ltlibobjs=
 
18925
U=
 
18926
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18927
  # 1. Remove the extension, and $U if already installed.
 
18928
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
18929
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
18930
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
18931
  #    will be set to the directory where LIBOBJS objects are built.
 
18932
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18933
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
18934
done
 
18935
LIBOBJS=$ac_libobjs
 
18936
 
 
18937
LTLIBOBJS=$ac_ltlibobjs
 
18938
 
 
18939
 
 
18940
 if test -n "$EXEEXT"; then
 
18941
  am__EXEEXT_TRUE=
 
18942
  am__EXEEXT_FALSE='#'
 
18943
else
 
18944
  am__EXEEXT_TRUE='#'
 
18945
  am__EXEEXT_FALSE=
 
18946
fi
 
18947
 
 
18948
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18949
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
18950
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18951
fi
 
18952
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18953
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
18954
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18955
fi
 
18956
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18957
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
 
18958
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18959
fi
 
18960
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18961
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
18962
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
18963
fi
 
18964
 
 
18965
: "${CONFIG_STATUS=./config.status}"
 
18966
ac_write_fail=0
 
18967
ac_clean_files_save=$ac_clean_files
 
18968
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18969
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
18970
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18971
as_write_fail=0
 
18972
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
18973
#! $SHELL
 
18974
# Generated by $as_me.
 
18975
# Run this file to recreate the current configuration.
 
18976
# Compiler output produced by configure, useful for debugging
 
18977
# configure, is in config.log if it exists.
 
18978
 
 
18979
debug=false
 
18980
ac_cs_recheck=false
 
18981
ac_cs_silent=false
 
18982
 
 
18983
SHELL=\${CONFIG_SHELL-$SHELL}
 
18984
export SHELL
 
18985
_ASEOF
 
18986
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
18987
## -------------------- ##
 
18988
## M4sh Initialization. ##
 
18989
## -------------------- ##
 
18990
 
 
18991
# Be more Bourne compatible
 
18992
DUALCASE=1; export DUALCASE # for MKS sh
 
18993
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
18994
  emulate sh
 
18995
  NULLCMD=:
 
18996
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
18997
  # is contrary to our usage.  Disable this feature.
 
18998
  alias -g '${1+"$@"}'='"$@"'
 
18999
  setopt NO_GLOB_SUBST
 
19000
else
 
19001
  case `(set -o) 2>/dev/null` in #(
 
19002
  *posix*) :
 
19003
    set -o posix ;; #(
 
19004
  *) :
 
19005
     ;;
 
19006
esac
 
19007
fi
 
19008
 
 
19009
 
 
19010
as_nl='
 
19011
'
 
19012
export as_nl
 
19013
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
19014
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
19015
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
19016
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
19017
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
19018
# but without wasting forks for bash or zsh.
 
19019
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
19020
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19021
  as_echo='print -r --'
 
19022
  as_echo_n='print -rn --'
 
19023
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
19024
  as_echo='printf %s\n'
 
19025
  as_echo_n='printf %s'
 
19026
else
 
19027
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
19028
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
19029
    as_echo_n='/usr/ucb/echo -n'
 
19030
  else
 
19031
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
19032
    as_echo_n_body='eval
 
19033
      arg=$1;
 
19034
      case $arg in #(
 
19035
      *"$as_nl"*)
 
19036
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
19037
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
19038
      esac;
 
19039
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
19040
    '
 
19041
    export as_echo_n_body
 
19042
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
19043
  fi
 
19044
  export as_echo_body
 
19045
  as_echo='sh -c $as_echo_body as_echo'
 
19046
fi
 
19047
 
 
19048
# The user is always right.
 
19049
if test "${PATH_SEPARATOR+set}" != set; then
 
19050
  PATH_SEPARATOR=:
 
19051
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
19052
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
19053
      PATH_SEPARATOR=';'
 
19054
  }
 
19055
fi
 
19056
 
 
19057
 
 
19058
# IFS
 
19059
# We need space, tab and new line, in precisely that order.  Quoting is
 
19060
# there to prevent editors from complaining about space-tab.
 
19061
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
19062
# splitting by setting IFS to empty value.)
 
19063
IFS=" ""        $as_nl"
 
19064
 
 
19065
# Find who we are.  Look in the path if we contain no directory separator.
 
19066
as_myself=
 
19067
case $0 in #((
 
19068
  *[\\/]* ) as_myself=$0 ;;
 
19069
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19070
for as_dir in $PATH
 
19071
do
 
19072
  IFS=$as_save_IFS
 
19073
  test -z "$as_dir" && as_dir=.
 
19074
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19075
  done
 
19076
IFS=$as_save_IFS
 
19077
 
 
19078
     ;;
 
19079
esac
 
19080
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
19081
# in which case we are not to be found in the path.
 
19082
if test "x$as_myself" = x; then
 
19083
  as_myself=$0
 
19084
fi
 
19085
if test ! -f "$as_myself"; then
 
19086
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
19087
  exit 1
 
19088
fi
 
19089
 
 
19090
# Unset variables that we do not need and which cause bugs (e.g. in
 
19091
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
19092
# suppresses any "Segmentation fault" message there.  '((' could
 
19093
# trigger a bug in pdksh 5.2.14.
 
19094
for as_var in BASH_ENV ENV MAIL MAILPATH
 
19095
do eval test x\${$as_var+set} = xset \
 
19096
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
19097
done
 
19098
PS1='$ '
 
19099
PS2='> '
 
19100
PS4='+ '
 
19101
 
 
19102
# NLS nuisances.
 
19103
LC_ALL=C
 
19104
export LC_ALL
 
19105
LANGUAGE=C
 
19106
export LANGUAGE
 
19107
 
 
19108
# CDPATH.
 
19109
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
19110
 
 
19111
 
 
19112
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
19113
# ----------------------------------------
 
19114
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
19115
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
19116
# script with STATUS, using 1 if that was 0.
 
19117
as_fn_error ()
 
19118
{
 
19119
  as_status=$1; test $as_status -eq 0 && as_status=1
 
19120
  if test "$4"; then
 
19121
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
19122
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
19123
  fi
 
19124
  $as_echo "$as_me: error: $2" >&2
 
19125
  as_fn_exit $as_status
 
19126
} # as_fn_error
 
19127
 
 
19128
 
 
19129
# as_fn_set_status STATUS
 
19130
# -----------------------
 
19131
# Set $? to STATUS, without forking.
 
19132
as_fn_set_status ()
 
19133
{
 
19134
  return $1
 
19135
} # as_fn_set_status
 
19136
 
 
19137
# as_fn_exit STATUS
 
19138
# -----------------
 
19139
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
19140
as_fn_exit ()
 
19141
{
 
19142
  set +e
 
19143
  as_fn_set_status $1
 
19144
  exit $1
 
19145
} # as_fn_exit
 
19146
 
 
19147
# as_fn_unset VAR
 
19148
# ---------------
 
19149
# Portably unset VAR.
 
19150
as_fn_unset ()
 
19151
{
 
19152
  { eval $1=; unset $1;}
 
19153
}
 
19154
as_unset=as_fn_unset
 
19155
# as_fn_append VAR VALUE
 
19156
# ----------------------
 
19157
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
19158
# advantage of any shell optimizations that allow amortized linear growth over
 
19159
# repeated appends, instead of the typical quadratic growth present in naive
 
19160
# implementations.
 
19161
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
19162
  eval 'as_fn_append ()
 
19163
  {
 
19164
    eval $1+=\$2
 
19165
  }'
 
19166
else
 
19167
  as_fn_append ()
 
19168
  {
 
19169
    eval $1=\$$1\$2
 
19170
  }
 
19171
fi # as_fn_append
 
19172
 
 
19173
# as_fn_arith ARG...
 
19174
# ------------------
 
19175
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
19176
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
19177
# must be portable across $(()) and expr.
 
19178
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
19179
  eval 'as_fn_arith ()
 
19180
  {
 
19181
    as_val=$(( $* ))
 
19182
  }'
 
19183
else
 
19184
  as_fn_arith ()
 
19185
  {
 
19186
    as_val=`expr "$@" || test $? -eq 1`
 
19187
  }
 
19188
fi # as_fn_arith
 
19189
 
 
19190
 
 
19191
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
19192
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
19193
  as_expr=expr
 
19194
else
 
19195
  as_expr=false
 
19196
fi
 
19197
 
 
19198
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
19199
  as_basename=basename
 
19200
else
 
19201
  as_basename=false
 
19202
fi
 
19203
 
 
19204
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
19205
  as_dirname=dirname
 
19206
else
 
19207
  as_dirname=false
 
19208
fi
 
19209
 
 
19210
as_me=`$as_basename -- "$0" ||
 
19211
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19212
         X"$0" : 'X\(//\)$' \| \
 
19213
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
19214
$as_echo X/"$0" |
 
19215
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
19216
            s//\1/
 
19217
            q
 
19218
          }
 
19219
          /^X\/\(\/\/\)$/{
 
19220
            s//\1/
 
19221
            q
 
19222
          }
 
19223
          /^X\/\(\/\).*/{
 
19224
            s//\1/
 
19225
            q
 
19226
          }
 
19227
          s/.*/./; q'`
 
19228
 
 
19229
# Avoid depending upon Character Ranges.
 
19230
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19231
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19232
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19233
as_cr_digits='0123456789'
 
19234
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19235
 
 
19236
ECHO_C= ECHO_N= ECHO_T=
 
19237
case `echo -n x` in #(((((
 
19238
-n*)
 
19239
  case `echo 'xy\c'` in
 
19240
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
19241
  xy)  ECHO_C='\c';;
 
19242
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
19243
       ECHO_T=' ';;
 
19244
  esac;;
 
19245
*)
 
19246
  ECHO_N='-n';;
 
19247
esac
 
19248
 
 
19249
rm -f conf$$ conf$$.exe conf$$.file
 
19250
if test -d conf$$.dir; then
 
19251
  rm -f conf$$.dir/conf$$.file
 
19252
else
 
19253
  rm -f conf$$.dir
 
19254
  mkdir conf$$.dir 2>/dev/null
 
19255
fi
 
19256
if (echo >conf$$.file) 2>/dev/null; then
 
19257
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19258
    as_ln_s='ln -s'
 
19259
    # ... but there are two gotchas:
 
19260
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
19261
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
19262
    # In both cases, we have to default to `cp -p'.
 
19263
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
19264
      as_ln_s='cp -p'
 
19265
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
19266
    as_ln_s=ln
 
19267
  else
 
19268
    as_ln_s='cp -p'
 
19269
  fi
 
19270
else
 
19271
  as_ln_s='cp -p'
 
19272
fi
 
19273
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
19274
rmdir conf$$.dir 2>/dev/null
 
19275
 
 
19276
 
 
19277
# as_fn_mkdir_p
 
19278
# -------------
 
19279
# Create "$as_dir" as a directory, including parents if necessary.
 
19280
as_fn_mkdir_p ()
 
19281
{
 
19282
 
 
19283
  case $as_dir in #(
 
19284
  -*) as_dir=./$as_dir;;
 
19285
  esac
 
19286
  test -d "$as_dir" || eval $as_mkdir_p || {
 
19287
    as_dirs=
 
19288
    while :; do
 
19289
      case $as_dir in #(
 
19290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
19291
      *) as_qdir=$as_dir;;
 
19292
      esac
 
19293
      as_dirs="'$as_qdir' $as_dirs"
 
19294
      as_dir=`$as_dirname -- "$as_dir" ||
 
19295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19296
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19297
         X"$as_dir" : 'X\(//\)$' \| \
 
19298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
19299
$as_echo X"$as_dir" |
 
19300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
19301
            s//\1/
 
19302
            q
 
19303
          }
 
19304
          /^X\(\/\/\)[^/].*/{
 
19305
            s//\1/
 
19306
            q
 
19307
          }
 
19308
          /^X\(\/\/\)$/{
 
19309
            s//\1/
 
19310
            q
 
19311
          }
 
19312
          /^X\(\/\).*/{
 
19313
            s//\1/
 
19314
            q
 
19315
          }
 
19316
          s/.*/./; q'`
 
19317
      test -d "$as_dir" && break
 
19318
    done
 
19319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
19320
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
19321
 
 
19322
 
 
19323
} # as_fn_mkdir_p
 
19324
if mkdir -p . 2>/dev/null; then
 
19325
  as_mkdir_p='mkdir -p "$as_dir"'
 
19326
else
 
19327
  test -d ./-p && rmdir ./-p
 
19328
  as_mkdir_p=false
 
19329
fi
 
19330
 
 
19331
if test -x / >/dev/null 2>&1; then
 
19332
  as_test_x='test -x'
 
19333
else
 
19334
  if ls -dL / >/dev/null 2>&1; then
 
19335
    as_ls_L_option=L
 
19336
  else
 
19337
    as_ls_L_option=
 
19338
  fi
 
19339
  as_test_x='
 
19340
    eval sh -c '\''
 
19341
      if test -d "$1"; then
 
19342
        test -d "$1/.";
 
19343
      else
 
19344
        case $1 in #(
 
19345
        -*)set "./$1";;
 
19346
        esac;
 
19347
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
19348
        ???[sx]*):;;*)false;;esac;fi
 
19349
    '\'' sh
 
19350
  '
 
19351
fi
 
19352
as_executable_p=$as_test_x
 
19353
 
 
19354
# Sed expression to map a string onto a valid CPP name.
 
19355
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19356
 
 
19357
# Sed expression to map a string onto a valid variable name.
 
19358
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19359
 
 
19360
 
 
19361
exec 6>&1
 
19362
## ----------------------------------- ##
 
19363
## Main body of $CONFIG_STATUS script. ##
 
19364
## ----------------------------------- ##
 
19365
_ASEOF
 
19366
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
19367
 
 
19368
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19369
# Save the log message, to keep $0 and so on meaningful, and to
 
19370
# report actual input values of CONFIG_FILES etc. instead of their
 
19371
# values after options handling.
 
19372
ac_log="
 
19373
This file was extended by ORTHPOLxx $as_me 1.0, which was
 
19374
generated by GNU Autoconf 2.68.  Invocation command line was
 
19375
 
 
19376
  CONFIG_FILES    = $CONFIG_FILES
 
19377
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19378
  CONFIG_LINKS    = $CONFIG_LINKS
 
19379
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19380
  $ $0 $@
 
19381
 
 
19382
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
19383
"
 
19384
 
 
19385
_ACEOF
 
19386
 
 
19387
case $ac_config_files in *"
 
19388
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
19389
esac
 
19390
 
 
19391
case $ac_config_headers in *"
 
19392
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
19393
esac
 
19394
 
 
19395
 
 
19396
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19397
# Files that config.status was made for.
 
19398
config_files="$ac_config_files"
 
19399
config_headers="$ac_config_headers"
 
19400
config_commands="$ac_config_commands"
 
19401
 
 
19402
_ACEOF
 
19403
 
 
19404
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19405
ac_cs_usage="\
 
19406
\`$as_me' instantiates files and other configuration actions
 
19407
from templates according to the current configuration.  Unless the files
 
19408
and actions are specified as TAGs, all are instantiated by default.
 
19409
 
 
19410
Usage: $0 [OPTION]... [TAG]...
 
19411
 
 
19412
  -h, --help       print this help, then exit
 
19413
  -V, --version    print version number and configuration settings, then exit
 
19414
      --config     print configuration, then exit
 
19415
  -q, --quiet, --silent
 
19416
                   do not print progress messages
 
19417
  -d, --debug      don't remove temporary files
 
19418
      --recheck    update $as_me by reconfiguring in the same conditions
 
19419
      --file=FILE[:TEMPLATE]
 
19420
                   instantiate the configuration file FILE
 
19421
      --header=FILE[:TEMPLATE]
 
19422
                   instantiate the configuration header FILE
 
19423
 
 
19424
Configuration files:
 
19425
$config_files
 
19426
 
 
19427
Configuration headers:
 
19428
$config_headers
 
19429
 
 
19430
Configuration commands:
 
19431
$config_commands
 
19432
 
 
19433
Report bugs to <dabi@imm.dtu.dk>."
 
19434
 
 
19435
_ACEOF
 
19436
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19437
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
19438
ac_cs_version="\\
 
19439
ORTHPOLxx config.status 1.0
 
19440
configured by $0, generated by GNU Autoconf 2.68,
 
19441
  with options \\"\$ac_cs_config\\"
 
19442
 
 
19443
Copyright (C) 2010 Free Software Foundation, Inc.
 
19444
This config.status script is free software; the Free Software Foundation
 
19445
gives unlimited permission to copy, distribute and modify it."
 
19446
 
 
19447
ac_pwd='$ac_pwd'
 
19448
srcdir='$srcdir'
 
19449
INSTALL='$INSTALL'
 
19450
MKDIR_P='$MKDIR_P'
 
19451
AWK='$AWK'
 
19452
test -n "\$AWK" || AWK=awk
 
19453
_ACEOF
 
19454
 
 
19455
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19456
# The default lists apply if the user does not specify any file.
 
19457
ac_need_defaults=:
 
19458
while test $# != 0
 
19459
do
 
19460
  case $1 in
 
19461
  --*=?*)
 
19462
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
19463
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
19464
    ac_shift=:
 
19465
    ;;
 
19466
  --*=)
 
19467
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
19468
    ac_optarg=
 
19469
    ac_shift=:
 
19470
    ;;
 
19471
  *)
 
19472
    ac_option=$1
 
19473
    ac_optarg=$2
 
19474
    ac_shift=shift
 
19475
    ;;
 
19476
  esac
 
19477
 
 
19478
  case $ac_option in
 
19479
  # Handling of the options.
 
19480
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19481
    ac_cs_recheck=: ;;
 
19482
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
19483
    $as_echo "$ac_cs_version"; exit ;;
 
19484
  --config | --confi | --conf | --con | --co | --c )
 
19485
    $as_echo "$ac_cs_config"; exit ;;
 
19486
  --debug | --debu | --deb | --de | --d | -d )
 
19487
    debug=: ;;
 
19488
  --file | --fil | --fi | --f )
 
19489
    $ac_shift
 
19490
    case $ac_optarg in
 
19491
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
19492
    '') as_fn_error $? "missing file argument" ;;
 
19493
    esac
 
19494
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
19495
    ac_need_defaults=false;;
 
19496
  --header | --heade | --head | --hea )
 
19497
    $ac_shift
 
19498
    case $ac_optarg in
 
19499
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
19500
    esac
 
19501
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
19502
    ac_need_defaults=false;;
 
19503
  --he | --h)
 
19504
    # Conflict between --help and --header
 
19505
    as_fn_error $? "ambiguous option: \`$1'
 
19506
Try \`$0 --help' for more information.";;
 
19507
  --help | --hel | -h )
 
19508
    $as_echo "$ac_cs_usage"; exit ;;
 
19509
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
19510
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
19511
    ac_cs_silent=: ;;
 
19512
 
 
19513
  # This is an error.
 
19514
  -*) as_fn_error $? "unrecognized option: \`$1'
 
19515
Try \`$0 --help' for more information." ;;
 
19516
 
 
19517
  *) as_fn_append ac_config_targets " $1"
 
19518
     ac_need_defaults=false ;;
 
19519
 
 
19520
  esac
 
19521
  shift
 
19522
done
 
19523
 
 
19524
ac_configure_extra_args=
 
19525
 
 
19526
if $ac_cs_silent; then
 
19527
  exec 6>/dev/null
 
19528
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
19529
fi
 
19530
 
 
19531
_ACEOF
 
19532
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19533
if \$ac_cs_recheck; then
 
19534
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19535
  shift
 
19536
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
19537
  CONFIG_SHELL='$SHELL'
 
19538
  export CONFIG_SHELL
 
19539
  exec "\$@"
 
19540
fi
 
19541
 
 
19542
_ACEOF
 
19543
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
19544
exec 5>>config.log
 
19545
{
 
19546
  echo
 
19547
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19548
## Running $as_me. ##
 
19549
_ASBOX
 
19550
  $as_echo "$ac_log"
 
19551
} >&5
 
19552
 
 
19553
_ACEOF
 
19554
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
19555
#
 
19556
# INIT-COMMANDS
 
19557
#
 
19558
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
19559
 
 
19560
 
 
19561
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
19562
# if CDPATH is set.
 
19563
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
19564
 
 
19565
sed_quote_subst='$sed_quote_subst'
 
19566
double_quote_subst='$double_quote_subst'
 
19567
delay_variable_subst='$delay_variable_subst'
 
19568
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
19569
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
19570
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
19571
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
19572
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
19573
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
19574
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
19575
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
19576
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
19577
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
19578
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
19579
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
19580
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
19581
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
19582
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
19583
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
19584
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
19585
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
19586
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
19587
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
19588
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
19589
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
19590
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
19591
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
19592
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
19593
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
19594
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
19595
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
19596
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
19597
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
19598
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
19599
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
19600
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
19601
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
19602
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
19603
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
19604
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
19605
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
19606
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
19607
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
19608
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
19609
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
19610
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
19611
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
19612
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
19613
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
19614
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
19615
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
19616
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
19617
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
19618
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
19619
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
19620
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
19621
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
19622
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
19623
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
19624
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"`'
 
19625
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
19626
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
19627
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
19628
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
19629
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
19630
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
19631
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
19632
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
19633
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
19634
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
19635
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
19636
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
19637
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
19638
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
19639
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
19640
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
19641
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
19642
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
19643
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
19644
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
19645
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
19646
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
19647
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
19648
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
19649
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
19650
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
19651
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
19652
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
19653
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
19654
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
19655
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
19656
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
19657
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
19658
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
19659
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
19660
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
19661
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
19662
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
19663
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
19664
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
19665
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
19666
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
19667
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
19668
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
19669
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
19670
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
19671
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
19672
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
19673
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
19674
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
19675
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
19676
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
19677
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
19678
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
19679
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
19680
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
19681
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
19682
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
19683
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
19684
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
19685
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
19686
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
19687
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
19688
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
19689
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
19690
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
19691
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
19692
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
19693
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
19694
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
19695
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
19696
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
19697
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
19698
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
 
19699
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
 
19700
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
 
19701
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
 
19702
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
 
19703
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
 
19704
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
 
19705
LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
 
19706
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
19707
reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
 
19708
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19709
reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19710
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19711
old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19712
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
 
19713
compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
 
19714
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
 
19715
GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
 
19716
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
19717
lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
 
19718
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
 
19719
lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
 
19720
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
 
19721
lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
 
19722
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
 
19723
lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
 
19724
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
 
19725
lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
 
19726
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
 
19727
archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
 
19728
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
 
19729
enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
 
19730
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
19731
export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
 
19732
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
19733
whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
 
19734
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
 
19735
compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
 
19736
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19737
old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19738
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19739
old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19740
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19741
archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19742
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19743
archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19744
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19745
module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19746
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19747
module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19748
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
 
19749
with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
 
19750
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
19751
allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
 
19752
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
 
19753
no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
 
19754
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
19755
hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
 
19756
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
 
19757
hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
 
19758
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
 
19759
hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
 
19760
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
 
19761
hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
 
19762
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
 
19763
hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
 
19764
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
 
19765
hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
 
19766
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
 
19767
hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
 
19768
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
 
19769
inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
 
19770
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
 
19771
link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
 
19772
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
 
19773
always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
 
19774
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19775
export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19776
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
19777
exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
 
19778
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
 
19779
include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
 
19780
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19781
prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19782
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
 
19783
postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
 
19784
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
 
19785
file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
 
19786
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
 
19787
hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
 
19788
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
 
19789
compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
 
19790
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
19791
predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
 
19792
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
 
19793
postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
 
19794
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
 
19795
predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
 
19796
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
 
19797
postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
 
19798
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
 
19799
compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
 
19800
 
 
19801
LTCC='$LTCC'
 
19802
LTCFLAGS='$LTCFLAGS'
 
19803
compiler='$compiler_DEFAULT'
 
19804
 
 
19805
# A function that is used when there is no print builtin or printf.
 
19806
func_fallback_echo ()
 
19807
{
 
19808
  eval 'cat <<_LTECHO_EOF
 
19809
\$1
 
19810
_LTECHO_EOF'
 
19811
}
 
19812
 
 
19813
# Quote evaled strings.
 
19814
for var in SHELL \
 
19815
ECHO \
 
19816
PATH_SEPARATOR \
 
19817
SED \
 
19818
GREP \
 
19819
EGREP \
 
19820
FGREP \
 
19821
LD \
 
19822
NM \
 
19823
LN_S \
 
19824
lt_SP2NL \
 
19825
lt_NL2SP \
 
19826
reload_flag \
 
19827
OBJDUMP \
 
19828
deplibs_check_method \
 
19829
file_magic_cmd \
 
19830
file_magic_glob \
 
19831
want_nocaseglob \
 
19832
DLLTOOL \
 
19833
sharedlib_from_linklib_cmd \
 
19834
AR \
 
19835
AR_FLAGS \
 
19836
archiver_list_spec \
 
19837
STRIP \
 
19838
RANLIB \
 
19839
CC \
 
19840
CFLAGS \
 
19841
compiler \
 
19842
lt_cv_sys_global_symbol_pipe \
 
19843
lt_cv_sys_global_symbol_to_cdecl \
 
19844
lt_cv_sys_global_symbol_to_c_name_address \
 
19845
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
19846
nm_file_list_spec \
 
19847
lt_prog_compiler_no_builtin_flag \
 
19848
lt_prog_compiler_pic \
 
19849
lt_prog_compiler_wl \
 
19850
lt_prog_compiler_static \
 
19851
lt_cv_prog_compiler_c_o \
 
19852
need_locks \
 
19853
MANIFEST_TOOL \
 
19854
DSYMUTIL \
 
19855
NMEDIT \
 
19856
LIPO \
 
19857
OTOOL \
 
19858
OTOOL64 \
 
19859
shrext_cmds \
 
19860
export_dynamic_flag_spec \
 
19861
whole_archive_flag_spec \
 
19862
compiler_needs_object \
 
19863
with_gnu_ld \
 
19864
allow_undefined_flag \
 
19865
no_undefined_flag \
 
19866
hardcode_libdir_flag_spec \
 
19867
hardcode_libdir_separator \
 
19868
exclude_expsyms \
 
19869
include_expsyms \
 
19870
file_list_spec \
 
19871
variables_saved_for_relink \
 
19872
libname_spec \
 
19873
library_names_spec \
 
19874
soname_spec \
 
19875
install_override_mode \
 
19876
finish_eval \
 
19877
old_striplib \
 
19878
striplib \
 
19879
compiler_lib_search_dirs \
 
19880
predep_objects \
 
19881
postdep_objects \
 
19882
predeps \
 
19883
postdeps \
 
19884
compiler_lib_search_path \
 
19885
LD_CXX \
 
19886
LD_F77 \
 
19887
reload_flag_CXX \
 
19888
reload_flag_F77 \
 
19889
compiler_CXX \
 
19890
compiler_F77 \
 
19891
lt_prog_compiler_no_builtin_flag_CXX \
 
19892
lt_prog_compiler_no_builtin_flag_F77 \
 
19893
lt_prog_compiler_pic_CXX \
 
19894
lt_prog_compiler_pic_F77 \
 
19895
lt_prog_compiler_wl_CXX \
 
19896
lt_prog_compiler_wl_F77 \
 
19897
lt_prog_compiler_static_CXX \
 
19898
lt_prog_compiler_static_F77 \
 
19899
lt_cv_prog_compiler_c_o_CXX \
 
19900
lt_cv_prog_compiler_c_o_F77 \
 
19901
export_dynamic_flag_spec_CXX \
 
19902
export_dynamic_flag_spec_F77 \
 
19903
whole_archive_flag_spec_CXX \
 
19904
whole_archive_flag_spec_F77 \
 
19905
compiler_needs_object_CXX \
 
19906
compiler_needs_object_F77 \
 
19907
with_gnu_ld_CXX \
 
19908
with_gnu_ld_F77 \
 
19909
allow_undefined_flag_CXX \
 
19910
allow_undefined_flag_F77 \
 
19911
no_undefined_flag_CXX \
 
19912
no_undefined_flag_F77 \
 
19913
hardcode_libdir_flag_spec_CXX \
 
19914
hardcode_libdir_flag_spec_F77 \
 
19915
hardcode_libdir_separator_CXX \
 
19916
hardcode_libdir_separator_F77 \
 
19917
exclude_expsyms_CXX \
 
19918
exclude_expsyms_F77 \
 
19919
include_expsyms_CXX \
 
19920
include_expsyms_F77 \
 
19921
file_list_spec_CXX \
 
19922
file_list_spec_F77 \
 
19923
compiler_lib_search_dirs_CXX \
 
19924
compiler_lib_search_dirs_F77 \
 
19925
predep_objects_CXX \
 
19926
predep_objects_F77 \
 
19927
postdep_objects_CXX \
 
19928
postdep_objects_F77 \
 
19929
predeps_CXX \
 
19930
predeps_F77 \
 
19931
postdeps_CXX \
 
19932
postdeps_F77 \
 
19933
compiler_lib_search_path_CXX \
 
19934
compiler_lib_search_path_F77; do
 
19935
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
19936
    *[\\\\\\\`\\"\\\$]*)
 
19937
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
19938
      ;;
 
19939
    *)
 
19940
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19941
      ;;
 
19942
    esac
 
19943
done
 
19944
 
 
19945
# Double-quote double-evaled strings.
 
19946
for var in reload_cmds \
 
19947
old_postinstall_cmds \
 
19948
old_postuninstall_cmds \
 
19949
old_archive_cmds \
 
19950
extract_expsyms_cmds \
 
19951
old_archive_from_new_cmds \
 
19952
old_archive_from_expsyms_cmds \
 
19953
archive_cmds \
 
19954
archive_expsym_cmds \
 
19955
module_cmds \
 
19956
module_expsym_cmds \
 
19957
export_symbols_cmds \
 
19958
prelink_cmds \
 
19959
postlink_cmds \
 
19960
postinstall_cmds \
 
19961
postuninstall_cmds \
 
19962
finish_cmds \
 
19963
sys_lib_search_path_spec \
 
19964
sys_lib_dlsearch_path_spec \
 
19965
reload_cmds_CXX \
 
19966
reload_cmds_F77 \
 
19967
old_archive_cmds_CXX \
 
19968
old_archive_cmds_F77 \
 
19969
old_archive_from_new_cmds_CXX \
 
19970
old_archive_from_new_cmds_F77 \
 
19971
old_archive_from_expsyms_cmds_CXX \
 
19972
old_archive_from_expsyms_cmds_F77 \
 
19973
archive_cmds_CXX \
 
19974
archive_cmds_F77 \
 
19975
archive_expsym_cmds_CXX \
 
19976
archive_expsym_cmds_F77 \
 
19977
module_cmds_CXX \
 
19978
module_cmds_F77 \
 
19979
module_expsym_cmds_CXX \
 
19980
module_expsym_cmds_F77 \
 
19981
export_symbols_cmds_CXX \
 
19982
export_symbols_cmds_F77 \
 
19983
prelink_cmds_CXX \
 
19984
prelink_cmds_F77 \
 
19985
postlink_cmds_CXX \
 
19986
postlink_cmds_F77; do
 
19987
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
19988
    *[\\\\\\\`\\"\\\$]*)
 
19989
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
19990
      ;;
 
19991
    *)
 
19992
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19993
      ;;
 
19994
    esac
 
19995
done
 
19996
 
 
19997
ac_aux_dir='$ac_aux_dir'
 
19998
xsi_shell='$xsi_shell'
 
19999
lt_shell_append='$lt_shell_append'
 
20000
 
 
20001
# See if we are running on zsh, and set the options which allow our
 
20002
# commands through without removal of \ escapes INIT.
 
20003
if test -n "\${ZSH_VERSION+set}" ; then
 
20004
   setopt NO_GLOB_SUBST
 
20005
fi
 
20006
 
 
20007
 
 
20008
    PACKAGE='$PACKAGE'
 
20009
    VERSION='$VERSION'
 
20010
    TIMESTAMP='$TIMESTAMP'
 
20011
    RM='$RM'
 
20012
    ofile='$ofile'
 
20013
 
 
20014
 
 
20015
 
 
20016
 
 
20017
 
 
20018
 
 
20019
 
 
20020
 
 
20021
_ACEOF
 
20022
 
 
20023
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20024
 
 
20025
# Handling of arguments.
 
20026
for ac_config_target in $ac_config_targets
 
20027
do
 
20028
  case $ac_config_target in
 
20029
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
20030
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20031
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
20032
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20033
    "liborthpol-1.0.pc") CONFIG_FILES="$CONFIG_FILES liborthpol-1.0.pc" ;;
 
20034
 
 
20035
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
20036
  esac
 
20037
done
 
20038
 
 
20039
 
 
20040
# If the user did not use the arguments to specify the items to instantiate,
 
20041
# then the envvar interface is used.  Set only those that are not.
 
20042
# We use the long form for the default assignment because of an extremely
 
20043
# bizarre bug on SunOS 4.1.3.
 
20044
if $ac_need_defaults; then
 
20045
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20046
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20047
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20048
fi
 
20049
 
 
20050
# Have a temporary directory for convenience.  Make it in the build tree
 
20051
# simply because there is no reason against having it here, and in addition,
 
20052
# creating and moving files from /tmp can sometimes cause problems.
 
20053
# Hook for its removal unless debugging.
 
20054
# Note that there is a small window in which the directory will not be cleaned:
 
20055
# after its creation but before its name has been assigned to `$tmp'.
 
20056
$debug ||
 
20057
{
 
20058
  tmp= ac_tmp=
 
20059
  trap 'exit_status=$?
 
20060
  : "${ac_tmp:=$tmp}"
 
20061
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
20062
' 0
 
20063
  trap 'as_fn_exit 1' 1 2 13 15
 
20064
}
 
20065
# Create a (secure) tmp directory for tmp files.
 
20066
 
 
20067
{
 
20068
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
20069
  test -d "$tmp"
 
20070
}  ||
 
20071
{
 
20072
  tmp=./conf$$-$RANDOM
 
20073
  (umask 077 && mkdir "$tmp")
 
20074
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
20075
ac_tmp=$tmp
 
20076
 
 
20077
# Set up the scripts for CONFIG_FILES section.
 
20078
# No need to generate them if there are no CONFIG_FILES.
 
20079
# This happens for instance with `./config.status config.h'.
 
20080
if test -n "$CONFIG_FILES"; then
 
20081
 
 
20082
 
 
20083
ac_cr=`echo X | tr X '\015'`
 
20084
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
20085
# But we know of no other shell where ac_cr would be empty at this
 
20086
# point, so we can use a bashism as a fallback.
 
20087
if test "x$ac_cr" = x; then
 
20088
  eval ac_cr=\$\'\\r\'
 
20089
fi
 
20090
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
20091
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
20092
  ac_cs_awk_cr='\\r'
 
20093
else
 
20094
  ac_cs_awk_cr=$ac_cr
 
20095
fi
 
20096
 
 
20097
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
20098
_ACEOF
 
20099
 
 
20100
 
 
20101
{
 
20102
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
20103
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
20104
  echo "_ACEOF"
 
20105
} >conf$$subs.sh ||
 
20106
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20107
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
20108
ac_delim='%!_!# '
 
20109
for ac_last_try in false false false false false :; do
 
20110
  . ./conf$$subs.sh ||
 
20111
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20112
 
 
20113
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
20114
  if test $ac_delim_n = $ac_delim_num; then
 
20115
    break
 
20116
  elif $ac_last_try; then
 
20117
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
20118
  else
 
20119
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20120
  fi
 
20121
done
 
20122
rm -f conf$$subs.sh
 
20123
 
 
20124
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20125
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
20126
_ACEOF
 
20127
sed -n '
 
20128
h
 
20129
s/^/S["/; s/!.*/"]=/
 
20130
p
 
20131
g
 
20132
s/^[^!]*!//
 
20133
:repl
 
20134
t repl
 
20135
s/'"$ac_delim"'$//
 
20136
t delim
 
20137
:nl
 
20138
h
 
20139
s/\(.\{148\}\)..*/\1/
 
20140
t more1
 
20141
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
20142
p
 
20143
n
 
20144
b repl
 
20145
:more1
 
20146
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20147
p
 
20148
g
 
20149
s/.\{148\}//
 
20150
t nl
 
20151
:delim
 
20152
h
 
20153
s/\(.\{148\}\)..*/\1/
 
20154
t more2
 
20155
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
20156
p
 
20157
b
 
20158
:more2
 
20159
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
20160
p
 
20161
g
 
20162
s/.\{148\}//
 
20163
t delim
 
20164
' <conf$$subs.awk | sed '
 
20165
/^[^""]/{
 
20166
  N
 
20167
  s/\n//
 
20168
}
 
20169
' >>$CONFIG_STATUS || ac_write_fail=1
 
20170
rm -f conf$$subs.awk
 
20171
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20172
_ACAWK
 
20173
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
20174
  for (key in S) S_is_set[key] = 1
 
20175
  FS = ""
 
20176
 
 
20177
}
 
20178
{
 
20179
  line = $ 0
 
20180
  nfields = split(line, field, "@")
 
20181
  substed = 0
 
20182
  len = length(field[1])
 
20183
  for (i = 2; i < nfields; i++) {
 
20184
    key = field[i]
 
20185
    keylen = length(key)
 
20186
    if (S_is_set[key]) {
 
20187
      value = S[key]
 
20188
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
20189
      len += length(value) + length(field[++i])
 
20190
      substed = 1
 
20191
    } else
 
20192
      len += 1 + keylen
 
20193
  }
 
20194
 
 
20195
  print line
 
20196
}
 
20197
 
 
20198
_ACAWK
 
20199
_ACEOF
 
20200
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20201
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
20202
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
20203
else
 
20204
  cat
 
20205
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
20206
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
20207
_ACEOF
 
20208
 
 
20209
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
20210
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
20211
# trailing colons and then remove the whole line if VPATH becomes empty
 
20212
# (actually we leave an empty line to preserve line numbers).
 
20213
if test "x$srcdir" = x.; then
 
20214
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
20215
h
 
20216
s///
 
20217
s/^/:/
 
20218
s/[      ]*$/:/
 
20219
s/:\$(srcdir):/:/g
 
20220
s/:\${srcdir}:/:/g
 
20221
s/:@srcdir@:/:/g
 
20222
s/^:*//
 
20223
s/:*$//
 
20224
x
 
20225
s/\(=[   ]*\).*/\1/
 
20226
G
 
20227
s/\n//
 
20228
s/^[^=]*=[       ]*$//
 
20229
}'
 
20230
fi
 
20231
 
 
20232
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20233
fi # test -n "$CONFIG_FILES"
 
20234
 
 
20235
# Set up the scripts for CONFIG_HEADERS section.
 
20236
# No need to generate them if there are no CONFIG_HEADERS.
 
20237
# This happens for instance with `./config.status Makefile'.
 
20238
if test -n "$CONFIG_HEADERS"; then
 
20239
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
20240
BEGIN {
 
20241
_ACEOF
 
20242
 
 
20243
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
20244
# here-document in config.status, that substitutes the proper values into
 
20245
# config.h.in to produce config.h.
 
20246
 
 
20247
# Create a delimiter string that does not exist in confdefs.h, to ease
 
20248
# handling of long lines.
 
20249
ac_delim='%!_!# '
 
20250
for ac_last_try in false false :; do
 
20251
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
20252
  if test -z "$ac_tt"; then
 
20253
    break
 
20254
  elif $ac_last_try; then
 
20255
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
20256
  else
 
20257
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20258
  fi
 
20259
done
 
20260
 
 
20261
# For the awk script, D is an array of macro values keyed by name,
 
20262
# likewise P contains macro parameters if any.  Preserve backslash
 
20263
# newline sequences.
 
20264
 
 
20265
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
20266
sed -n '
 
20267
s/.\{148\}/&'"$ac_delim"'/g
 
20268
t rset
 
20269
:rset
 
20270
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
20271
t def
 
20272
d
 
20273
:def
 
20274
s/\\$//
 
20275
t bsnl
 
20276
s/["\\]/\\&/g
 
20277
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20278
D["\1"]=" \3"/p
 
20279
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
20280
d
 
20281
:bsnl
 
20282
s/["\\]/\\&/g
 
20283
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
20284
D["\1"]=" \3\\\\\\n"\\/p
 
20285
t cont
 
20286
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
20287
t cont
 
20288
d
 
20289
:cont
 
20290
n
 
20291
s/.\{148\}/&'"$ac_delim"'/g
 
20292
t clear
 
20293
:clear
 
20294
s/\\$//
 
20295
t bsnlc
 
20296
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
20297
d
 
20298
:bsnlc
 
20299
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
20300
b cont
 
20301
' <confdefs.h | sed '
 
20302
s/'"$ac_delim"'/"\\\
 
20303
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
20304
 
 
20305
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20306
  for (key in D) D_is_set[key] = 1
 
20307
  FS = ""
 
20308
}
 
20309
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
20310
  line = \$ 0
 
20311
  split(line, arg, " ")
 
20312
  if (arg[1] == "#") {
 
20313
    defundef = arg[2]
 
20314
    mac1 = arg[3]
 
20315
  } else {
 
20316
    defundef = substr(arg[1], 2)
 
20317
    mac1 = arg[2]
 
20318
  }
 
20319
  split(mac1, mac2, "(") #)
 
20320
  macro = mac2[1]
 
20321
  prefix = substr(line, 1, index(line, defundef) - 1)
 
20322
  if (D_is_set[macro]) {
 
20323
    # Preserve the white space surrounding the "#".
 
20324
    print prefix "define", macro P[macro] D[macro]
 
20325
    next
 
20326
  } else {
 
20327
    # Replace #undef with comments.  This is necessary, for example,
 
20328
    # in the case of _POSIX_SOURCE, which is predefined and required
 
20329
    # on some systems where configure will not decide to define it.
 
20330
    if (defundef == "undef") {
 
20331
      print "/*", prefix defundef, macro, "*/"
 
20332
      next
 
20333
    }
 
20334
  }
 
20335
}
 
20336
{ print }
 
20337
_ACAWK
 
20338
_ACEOF
 
20339
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20340
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
20341
fi # test -n "$CONFIG_HEADERS"
 
20342
 
 
20343
 
 
20344
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
20345
shift
 
20346
for ac_tag
 
20347
do
 
20348
  case $ac_tag in
 
20349
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
20350
  esac
 
20351
  case $ac_mode$ac_tag in
 
20352
  :[FHL]*:*);;
 
20353
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
20354
  :[FH]-) ac_tag=-:-;;
 
20355
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
20356
  esac
 
20357
  ac_save_IFS=$IFS
 
20358
  IFS=:
 
20359
  set x $ac_tag
 
20360
  IFS=$ac_save_IFS
 
20361
  shift
 
20362
  ac_file=$1
 
20363
  shift
 
20364
 
 
20365
  case $ac_mode in
 
20366
  :L) ac_source=$1;;
 
20367
  :[FH])
 
20368
    ac_file_inputs=
 
20369
    for ac_f
 
20370
    do
 
20371
      case $ac_f in
 
20372
      -) ac_f="$ac_tmp/stdin";;
 
20373
      *) # Look for the file first in the build tree, then in the source tree
 
20374
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
20375
         # because $ac_f cannot contain `:'.
 
20376
         test -f "$ac_f" ||
 
20377
           case $ac_f in
 
20378
           [\\/$]*) false;;
 
20379
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
20380
           esac ||
 
20381
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
20382
      esac
 
20383
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
20384
      as_fn_append ac_file_inputs " '$ac_f'"
 
20385
    done
 
20386
 
 
20387
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20388
    # use $as_me), people would be surprised to read:
 
20389
    #    /* config.h.  Generated by config.status.  */
 
20390
    configure_input='Generated from '`
 
20391
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
20392
        `' by configure.'
 
20393
    if test x"$ac_file" != x-; then
 
20394
      configure_input="$ac_file.  $configure_input"
 
20395
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
20396
$as_echo "$as_me: creating $ac_file" >&6;}
 
20397
    fi
 
20398
    # Neutralize special characters interpreted by sed in replacement strings.
 
20399
    case $configure_input in #(
 
20400
    *\&* | *\|* | *\\* )
 
20401
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
20402
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
20403
    *) ac_sed_conf_input=$configure_input;;
 
20404
    esac
 
20405
 
 
20406
    case $ac_tag in
 
20407
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
20408
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
20409
    esac
 
20410
    ;;
 
20411
  esac
 
20412
 
 
20413
  ac_dir=`$as_dirname -- "$ac_file" ||
 
20414
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20415
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20416
         X"$ac_file" : 'X\(//\)$' \| \
 
20417
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
20418
$as_echo X"$ac_file" |
 
20419
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20420
            s//\1/
 
20421
            q
 
20422
          }
 
20423
          /^X\(\/\/\)[^/].*/{
 
20424
            s//\1/
 
20425
            q
 
20426
          }
 
20427
          /^X\(\/\/\)$/{
 
20428
            s//\1/
 
20429
            q
 
20430
          }
 
20431
          /^X\(\/\).*/{
 
20432
            s//\1/
 
20433
            q
 
20434
          }
 
20435
          s/.*/./; q'`
 
20436
  as_dir="$ac_dir"; as_fn_mkdir_p
 
20437
  ac_builddir=.
 
20438
 
 
20439
case "$ac_dir" in
 
20440
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20441
*)
 
20442
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
20443
  # A ".." for each directory in $ac_dir_suffix.
 
20444
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
20445
  case $ac_top_builddir_sub in
 
20446
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20447
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
20448
  esac ;;
 
20449
esac
 
20450
ac_abs_top_builddir=$ac_pwd
 
20451
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
20452
# for backward compatibility:
 
20453
ac_top_builddir=$ac_top_build_prefix
 
20454
 
 
20455
case $srcdir in
 
20456
  .)  # We are building in place.
 
20457
    ac_srcdir=.
 
20458
    ac_top_srcdir=$ac_top_builddir_sub
 
20459
    ac_abs_top_srcdir=$ac_pwd ;;
 
20460
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
20461
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20462
    ac_top_srcdir=$srcdir
 
20463
    ac_abs_top_srcdir=$srcdir ;;
 
20464
  *) # Relative name.
 
20465
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
20466
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
20467
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
20468
esac
 
20469
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
20470
 
 
20471
 
 
20472
  case $ac_mode in
 
20473
  :F)
 
20474
  #
 
20475
  # CONFIG_FILE
 
20476
  #
 
20477
 
 
20478
  case $INSTALL in
 
20479
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20480
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
20481
  esac
 
20482
  ac_MKDIR_P=$MKDIR_P
 
20483
  case $MKDIR_P in
 
20484
  [\\/$]* | ?:[\\/]* ) ;;
 
20485
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
20486
  esac
 
20487
_ACEOF
 
20488
 
 
20489
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20490
# If the template does not know about datarootdir, expand it.
 
20491
# FIXME: This hack should be removed a few years after 2.60.
 
20492
ac_datarootdir_hack=; ac_datarootdir_seen=
 
20493
ac_sed_dataroot='
 
20494
/datarootdir/ {
 
20495
  p
 
20496
  q
 
20497
}
 
20498
/@datadir@/p
 
20499
/@docdir@/p
 
20500
/@infodir@/p
 
20501
/@localedir@/p
 
20502
/@mandir@/p'
 
20503
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
20504
*datarootdir*) ac_datarootdir_seen=yes;;
 
20505
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
20506
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
20507
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
20508
_ACEOF
 
20509
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20510
  ac_datarootdir_hack='
 
20511
  s&@datadir@&$datadir&g
 
20512
  s&@docdir@&$docdir&g
 
20513
  s&@infodir@&$infodir&g
 
20514
  s&@localedir@&$localedir&g
 
20515
  s&@mandir@&$mandir&g
 
20516
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
20517
esac
 
20518
_ACEOF
 
20519
 
 
20520
# Neutralize VPATH when `$srcdir' = `.'.
 
20521
# Shell code in configure.ac might set extrasub.
 
20522
# FIXME: do we really want to maintain this feature?
 
20523
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
20524
ac_sed_extra="$ac_vpsub
 
20525
$extrasub
 
20526
_ACEOF
 
20527
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
20528
:t
 
20529
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20530
s|@configure_input@|$ac_sed_conf_input|;t t
 
20531
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
20532
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
20533
s&@srcdir@&$ac_srcdir&;t t
 
20534
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
20535
s&@top_srcdir@&$ac_top_srcdir&;t t
 
20536
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
20537
s&@builddir@&$ac_builddir&;t t
 
20538
s&@abs_builddir@&$ac_abs_builddir&;t t
 
20539
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
20540
s&@INSTALL@&$ac_INSTALL&;t t
 
20541
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
20542
$ac_datarootdir_hack
 
20543
"
 
20544
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
20545
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
20546
 
 
20547
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
20548
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
20549
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
20550
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
20551
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20552
which seems to be undefined.  Please make sure it is defined" >&5
 
20553
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20554
which seems to be undefined.  Please make sure it is defined" >&2;}
 
20555
 
 
20556
  rm -f "$ac_tmp/stdin"
 
20557
  case $ac_file in
 
20558
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
20559
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
20560
  esac \
 
20561
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
20562
 ;;
 
20563
  :H)
 
20564
  #
 
20565
  # CONFIG_HEADER
 
20566
  #
 
20567
  if test x"$ac_file" != x-; then
 
20568
    {
 
20569
      $as_echo "/* $configure_input  */" \
 
20570
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
20571
    } >"$ac_tmp/config.h" \
 
20572
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
20573
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
20574
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
20575
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
20576
    else
 
20577
      rm -f "$ac_file"
 
20578
      mv "$ac_tmp/config.h" "$ac_file" \
 
20579
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
20580
    fi
 
20581
  else
 
20582
    $as_echo "/* $configure_input  */" \
 
20583
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
20584
      || as_fn_error $? "could not create -" "$LINENO" 5
 
20585
  fi
 
20586
# Compute "$ac_file"'s index in $config_headers.
 
20587
_am_arg="$ac_file"
 
20588
_am_stamp_count=1
 
20589
for _am_header in $config_headers :; do
 
20590
  case $_am_header in
 
20591
    $_am_arg | $_am_arg:* )
 
20592
      break ;;
 
20593
    * )
 
20594
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
20595
  esac
 
20596
done
 
20597
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
20598
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20599
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
20600
         X"$_am_arg" : 'X\(//\)$' \| \
 
20601
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
20602
$as_echo X"$_am_arg" |
 
20603
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20604
            s//\1/
 
20605
            q
 
20606
          }
 
20607
          /^X\(\/\/\)[^/].*/{
 
20608
            s//\1/
 
20609
            q
 
20610
          }
 
20611
          /^X\(\/\/\)$/{
 
20612
            s//\1/
 
20613
            q
 
20614
          }
 
20615
          /^X\(\/\).*/{
 
20616
            s//\1/
 
20617
            q
 
20618
          }
 
20619
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
20620
 ;;
 
20621
 
 
20622
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
20623
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
20624
 ;;
 
20625
  esac
 
20626
 
 
20627
 
 
20628
  case $ac_file$ac_mode in
 
20629
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
20630
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
20631
  # are listed without --file.  Let's play safe and only enable the eval
 
20632
  # if we detect the quoting.
 
20633
  case $CONFIG_FILES in
 
20634
  *\'*) eval set x "$CONFIG_FILES" ;;
 
20635
  *)   set x $CONFIG_FILES ;;
 
20636
  esac
 
20637
  shift
 
20638
  for mf
 
20639
  do
 
20640
    # Strip MF so we end up with the name of the file.
 
20641
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
20642
    # Check whether this is an Automake generated Makefile or not.
 
20643
    # We used to match only the files named `Makefile.in', but
 
20644
    # some people rename them; so instead we look at the file content.
 
20645
    # Grep'ing the first line is not enough: some people post-process
 
20646
    # each Makefile.in and add a new line on top of each file to say so.
 
20647
    # Grep'ing the whole file is not good either: AIX grep has a line
 
20648
    # limit of 2048, but all sed's we know have understand at least 4000.
 
20649
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
20650
      dirpart=`$as_dirname -- "$mf" ||
 
20651
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20652
         X"$mf" : 'X\(//\)[^/]' \| \
 
20653
         X"$mf" : 'X\(//\)$' \| \
 
20654
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
20655
$as_echo X"$mf" |
 
20656
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20657
            s//\1/
 
20658
            q
 
20659
          }
 
20660
          /^X\(\/\/\)[^/].*/{
 
20661
            s//\1/
 
20662
            q
 
20663
          }
 
20664
          /^X\(\/\/\)$/{
 
20665
            s//\1/
 
20666
            q
 
20667
          }
 
20668
          /^X\(\/\).*/{
 
20669
            s//\1/
 
20670
            q
 
20671
          }
 
20672
          s/.*/./; q'`
 
20673
    else
 
20674
      continue
 
20675
    fi
 
20676
    # Extract the definition of DEPDIR, am__include, and am__quote
 
20677
    # from the Makefile without running `make'.
 
20678
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
20679
    test -z "$DEPDIR" && continue
 
20680
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
20681
    test -z "am__include" && continue
 
20682
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
20683
    # When using ansi2knr, U may be empty or an underscore; expand it
 
20684
    U=`sed -n 's/^U = //p' < "$mf"`
 
20685
    # Find all dependency output files, they are included files with
 
20686
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
20687
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
20688
    # expansion.
 
20689
    for file in `sed -n "
 
20690
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
20691
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20692
      # Make sure the directory exists.
 
20693
      test -f "$dirpart/$file" && continue
 
20694
      fdir=`$as_dirname -- "$file" ||
 
20695
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20696
         X"$file" : 'X\(//\)[^/]' \| \
 
20697
         X"$file" : 'X\(//\)$' \| \
 
20698
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
20699
$as_echo X"$file" |
 
20700
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20701
            s//\1/
 
20702
            q
 
20703
          }
 
20704
          /^X\(\/\/\)[^/].*/{
 
20705
            s//\1/
 
20706
            q
 
20707
          }
 
20708
          /^X\(\/\/\)$/{
 
20709
            s//\1/
 
20710
            q
 
20711
          }
 
20712
          /^X\(\/\).*/{
 
20713
            s//\1/
 
20714
            q
 
20715
          }
 
20716
          s/.*/./; q'`
 
20717
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
20718
      # echo "creating $dirpart/$file"
 
20719
      echo '# dummy' > "$dirpart/$file"
 
20720
    done
 
20721
  done
 
20722
}
 
20723
 ;;
 
20724
    "libtool":C)
 
20725
 
 
20726
    # See if we are running on zsh, and set the options which allow our
 
20727
    # commands through without removal of \ escapes.
 
20728
    if test -n "${ZSH_VERSION+set}" ; then
 
20729
      setopt NO_GLOB_SUBST
 
20730
    fi
 
20731
 
 
20732
    cfgfile="${ofile}T"
 
20733
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
20734
    $RM "$cfgfile"
 
20735
 
 
20736
    cat <<_LT_EOF >> "$cfgfile"
 
20737
#! $SHELL
 
20738
 
 
20739
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
20740
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
20741
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20742
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
20743
#
 
20744
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
20745
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
20746
#                 Foundation, Inc.
 
20747
#   Written by Gordon Matzigkeit, 1996
 
20748
#
 
20749
#   This file is part of GNU Libtool.
 
20750
#
 
20751
# GNU Libtool is free software; you can redistribute it and/or
 
20752
# modify it under the terms of the GNU General Public License as
 
20753
# published by the Free Software Foundation; either version 2 of
 
20754
# the License, or (at your option) any later version.
 
20755
#
 
20756
# As a special exception to the GNU General Public License,
 
20757
# if you distribute this file as part of a program or library that
 
20758
# is built using GNU Libtool, you may include this file under the
 
20759
# same distribution terms that you use for the rest of that program.
 
20760
#
 
20761
# GNU Libtool is distributed in the hope that it will be useful,
 
20762
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20763
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20764
# GNU General Public License for more details.
 
20765
#
 
20766
# You should have received a copy of the GNU General Public License
 
20767
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
20768
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
20769
# obtained by writing to the Free Software Foundation, Inc.,
 
20770
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20771
 
 
20772
 
 
20773
# The names of the tagged configurations supported by this script.
 
20774
available_tags="CXX F77 "
 
20775
 
 
20776
# ### BEGIN LIBTOOL CONFIG
 
20777
 
 
20778
# Which release of libtool.m4 was used?
 
20779
macro_version=$macro_version
 
20780
macro_revision=$macro_revision
 
20781
 
 
20782
# Whether or not to build shared libraries.
 
20783
build_libtool_libs=$enable_shared
 
20784
 
 
20785
# Whether or not to build static libraries.
 
20786
build_old_libs=$enable_static
 
20787
 
 
20788
# What type of objects to build.
 
20789
pic_mode=$pic_mode
 
20790
 
 
20791
# Whether or not to optimize for fast installation.
 
20792
fast_install=$enable_fast_install
 
20793
 
 
20794
# Shell to use when invoking shell scripts.
 
20795
SHELL=$lt_SHELL
 
20796
 
 
20797
# An echo program that protects backslashes.
 
20798
ECHO=$lt_ECHO
 
20799
 
 
20800
# The PATH separator for the build system.
 
20801
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
20802
 
 
20803
# The host system.
 
20804
host_alias=$host_alias
 
20805
host=$host
 
20806
host_os=$host_os
 
20807
 
 
20808
# The build system.
 
20809
build_alias=$build_alias
 
20810
build=$build
 
20811
build_os=$build_os
 
20812
 
 
20813
# A sed program that does not truncate output.
 
20814
SED=$lt_SED
 
20815
 
 
20816
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
20817
Xsed="\$SED -e 1s/^X//"
 
20818
 
 
20819
# A grep program that handles long lines.
 
20820
GREP=$lt_GREP
 
20821
 
 
20822
# An ERE matcher.
 
20823
EGREP=$lt_EGREP
 
20824
 
 
20825
# A literal string matcher.
 
20826
FGREP=$lt_FGREP
 
20827
 
 
20828
# A BSD- or MS-compatible name lister.
 
20829
NM=$lt_NM
 
20830
 
 
20831
# Whether we need soft or hard links.
 
20832
LN_S=$lt_LN_S
 
20833
 
 
20834
# What is the maximum length of a command?
 
20835
max_cmd_len=$max_cmd_len
 
20836
 
 
20837
# Object file suffix (normally "o").
 
20838
objext=$ac_objext
 
20839
 
 
20840
# Executable file suffix (normally "").
 
20841
exeext=$exeext
 
20842
 
 
20843
# whether the shell understands "unset".
 
20844
lt_unset=$lt_unset
 
20845
 
 
20846
# turn spaces into newlines.
 
20847
SP2NL=$lt_lt_SP2NL
 
20848
 
 
20849
# turn newlines into spaces.
 
20850
NL2SP=$lt_lt_NL2SP
 
20851
 
 
20852
# convert \$build file names to \$host format.
 
20853
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
20854
 
 
20855
# convert \$build files to toolchain format.
 
20856
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
20857
 
 
20858
# An object symbol dumper.
 
20859
OBJDUMP=$lt_OBJDUMP
 
20860
 
 
20861
# Method to check whether dependent libraries are shared objects.
 
20862
deplibs_check_method=$lt_deplibs_check_method
 
20863
 
 
20864
# Command to use when deplibs_check_method = "file_magic".
 
20865
file_magic_cmd=$lt_file_magic_cmd
 
20866
 
 
20867
# How to find potential files when deplibs_check_method = "file_magic".
 
20868
file_magic_glob=$lt_file_magic_glob
 
20869
 
 
20870
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
20871
want_nocaseglob=$lt_want_nocaseglob
 
20872
 
 
20873
# DLL creation program.
 
20874
DLLTOOL=$lt_DLLTOOL
 
20875
 
 
20876
# Command to associate shared and link libraries.
 
20877
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
20878
 
 
20879
# The archiver.
 
20880
AR=$lt_AR
 
20881
 
 
20882
# Flags to create an archive.
 
20883
AR_FLAGS=$lt_AR_FLAGS
 
20884
 
 
20885
# How to feed a file listing to the archiver.
 
20886
archiver_list_spec=$lt_archiver_list_spec
 
20887
 
 
20888
# A symbol stripping program.
 
20889
STRIP=$lt_STRIP
 
20890
 
 
20891
# Commands used to install an old-style archive.
 
20892
RANLIB=$lt_RANLIB
 
20893
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20894
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20895
 
 
20896
# Whether to use a lock for old archive extraction.
 
20897
lock_old_archive_extraction=$lock_old_archive_extraction
 
20898
 
 
20899
# A C compiler.
 
20900
LTCC=$lt_CC
 
20901
 
 
20902
# LTCC compiler flags.
 
20903
LTCFLAGS=$lt_CFLAGS
 
20904
 
 
20905
# Take the output of nm and produce a listing of raw symbols and C names.
 
20906
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20907
 
 
20908
# Transform the output of nm in a proper C declaration.
 
20909
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20910
 
 
20911
# Transform the output of nm in a C name address pair.
 
20912
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20913
 
 
20914
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
20915
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
20916
 
 
20917
# Specify filename containing input files for \$NM.
 
20918
nm_file_list_spec=$lt_nm_file_list_spec
 
20919
 
 
20920
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
20921
lt_sysroot=$lt_sysroot
 
20922
 
 
20923
# The name of the directory that contains temporary libtool files.
 
20924
objdir=$objdir
 
20925
 
 
20926
# Used to examine libraries when file_magic_cmd begins with "file".
 
20927
MAGIC_CMD=$MAGIC_CMD
 
20928
 
 
20929
# Must we lock files when doing compilation?
 
20930
need_locks=$lt_need_locks
 
20931
 
 
20932
# Manifest tool.
 
20933
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
20934
 
 
20935
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
20936
DSYMUTIL=$lt_DSYMUTIL
 
20937
 
 
20938
# Tool to change global to local symbols on Mac OS X.
 
20939
NMEDIT=$lt_NMEDIT
 
20940
 
 
20941
# Tool to manipulate fat objects and archives on Mac OS X.
 
20942
LIPO=$lt_LIPO
 
20943
 
 
20944
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
20945
OTOOL=$lt_OTOOL
 
20946
 
 
20947
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
20948
OTOOL64=$lt_OTOOL64
 
20949
 
 
20950
# Old archive suffix (normally "a").
 
20951
libext=$libext
 
20952
 
 
20953
# Shared library suffix (normally ".so").
 
20954
shrext_cmds=$lt_shrext_cmds
 
20955
 
 
20956
# The commands to extract the exported symbol list from a shared archive.
 
20957
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20958
 
 
20959
# Variables whose values should be saved in libtool wrapper scripts and
 
20960
# restored at link time.
 
20961
variables_saved_for_relink=$lt_variables_saved_for_relink
 
20962
 
 
20963
# Do we need the "lib" prefix for modules?
 
20964
need_lib_prefix=$need_lib_prefix
 
20965
 
 
20966
# Do we need a version for libraries?
 
20967
need_version=$need_version
 
20968
 
 
20969
# Library versioning type.
 
20970
version_type=$version_type
 
20971
 
 
20972
# Shared library runtime path variable.
 
20973
runpath_var=$runpath_var
 
20974
 
 
20975
# Shared library path variable.
 
20976
shlibpath_var=$shlibpath_var
 
20977
 
 
20978
# Is shlibpath searched before the hard-coded library search path?
 
20979
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20980
 
 
20981
# Format of library name prefix.
 
20982
libname_spec=$lt_libname_spec
 
20983
 
 
20984
# List of archive names.  First name is the real one, the rest are links.
 
20985
# The last name is the one that the linker finds with -lNAME
 
20986
library_names_spec=$lt_library_names_spec
 
20987
 
 
20988
# The coded name of the library, if different from the real name.
 
20989
soname_spec=$lt_soname_spec
 
20990
 
 
20991
# Permission mode override for installation of shared libraries.
 
20992
install_override_mode=$lt_install_override_mode
 
20993
 
 
20994
# Command to use after installation of a shared archive.
 
20995
postinstall_cmds=$lt_postinstall_cmds
 
20996
 
 
20997
# Command to use after uninstallation of a shared archive.
 
20998
postuninstall_cmds=$lt_postuninstall_cmds
 
20999
 
 
21000
# Commands used to finish a libtool library installation in a directory.
 
21001
finish_cmds=$lt_finish_cmds
 
21002
 
 
21003
# As "finish_cmds", except a single script fragment to be evaled but
 
21004
# not shown.
 
21005
finish_eval=$lt_finish_eval
 
21006
 
 
21007
# Whether we should hardcode library paths into libraries.
 
21008
hardcode_into_libs=$hardcode_into_libs
 
21009
 
 
21010
# Compile-time system search path for libraries.
 
21011
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21012
 
 
21013
# Run-time system search path for libraries.
 
21014
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21015
 
 
21016
# Whether dlopen is supported.
 
21017
dlopen_support=$enable_dlopen
 
21018
 
 
21019
# Whether dlopen of programs is supported.
 
21020
dlopen_self=$enable_dlopen_self
 
21021
 
 
21022
# Whether dlopen of statically linked programs is supported.
 
21023
dlopen_self_static=$enable_dlopen_self_static
 
21024
 
 
21025
# Commands to strip libraries.
 
21026
old_striplib=$lt_old_striplib
 
21027
striplib=$lt_striplib
 
21028
 
 
21029
 
 
21030
# The linker used to build libraries.
 
21031
LD=$lt_LD
 
21032
 
 
21033
# How to create reloadable object files.
 
21034
reload_flag=$lt_reload_flag
 
21035
reload_cmds=$lt_reload_cmds
 
21036
 
 
21037
# Commands used to build an old-style archive.
 
21038
old_archive_cmds=$lt_old_archive_cmds
 
21039
 
 
21040
# A language specific compiler.
 
21041
CC=$lt_compiler
 
21042
 
 
21043
# Is the compiler the GNU compiler?
 
21044
with_gcc=$GCC
 
21045
 
 
21046
# Compiler flag to turn off builtin functions.
 
21047
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
21048
 
 
21049
# Additional compiler flags for building library objects.
 
21050
pic_flag=$lt_lt_prog_compiler_pic
 
21051
 
 
21052
# How to pass a linker flag through the compiler.
 
21053
wl=$lt_lt_prog_compiler_wl
 
21054
 
 
21055
# Compiler flag to prevent dynamic linking.
 
21056
link_static_flag=$lt_lt_prog_compiler_static
 
21057
 
 
21058
# Does compiler simultaneously support -c and -o options?
 
21059
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
21060
 
 
21061
# Whether or not to add -lc for building shared libraries.
 
21062
build_libtool_need_lc=$archive_cmds_need_lc
 
21063
 
 
21064
# Whether or not to disallow shared libs when runtime libs are static.
 
21065
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
21066
 
 
21067
# Compiler flag to allow reflexive dlopens.
 
21068
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
21069
 
 
21070
# Compiler flag to generate shared objects directly from archives.
 
21071
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
21072
 
 
21073
# Whether the compiler copes with passing no objects directly.
 
21074
compiler_needs_object=$lt_compiler_needs_object
 
21075
 
 
21076
# Create an old-style archive from a shared archive.
 
21077
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
21078
 
 
21079
# Create a temporary old-style archive to link instead of a shared archive.
 
21080
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
21081
 
 
21082
# Commands used to build a shared archive.
 
21083
archive_cmds=$lt_archive_cmds
 
21084
archive_expsym_cmds=$lt_archive_expsym_cmds
 
21085
 
 
21086
# Commands used to build a loadable module if different from building
 
21087
# a shared archive.
 
21088
module_cmds=$lt_module_cmds
 
21089
module_expsym_cmds=$lt_module_expsym_cmds
 
21090
 
 
21091
# Whether we are building with GNU ld or not.
 
21092
with_gnu_ld=$lt_with_gnu_ld
 
21093
 
 
21094
# Flag that allows shared libraries with undefined symbols to be built.
 
21095
allow_undefined_flag=$lt_allow_undefined_flag
 
21096
 
 
21097
# Flag that enforces no undefined symbols.
 
21098
no_undefined_flag=$lt_no_undefined_flag
 
21099
 
 
21100
# Flag to hardcode \$libdir into a binary during linking.
 
21101
# This must work even if \$libdir does not exist
 
21102
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
21103
 
 
21104
# Whether we need a single "-rpath" flag with a separated argument.
 
21105
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
21106
 
 
21107
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21108
# DIR into the resulting binary.
 
21109
hardcode_direct=$hardcode_direct
 
21110
 
 
21111
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21112
# DIR into the resulting binary and the resulting library dependency is
 
21113
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
21114
# library is relocated.
 
21115
hardcode_direct_absolute=$hardcode_direct_absolute
 
21116
 
 
21117
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21118
# into the resulting binary.
 
21119
hardcode_minus_L=$hardcode_minus_L
 
21120
 
 
21121
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21122
# into the resulting binary.
 
21123
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
21124
 
 
21125
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21126
# into the library and all subsequent libraries and executables linked
 
21127
# against it.
 
21128
hardcode_automatic=$hardcode_automatic
 
21129
 
 
21130
# Set to yes if linker adds runtime paths of dependent libraries
 
21131
# to runtime path list.
 
21132
inherit_rpath=$inherit_rpath
 
21133
 
 
21134
# Whether libtool must link a program against all its dependency libraries.
 
21135
link_all_deplibs=$link_all_deplibs
 
21136
 
 
21137
# Set to "yes" if exported symbols are required.
 
21138
always_export_symbols=$always_export_symbols
 
21139
 
 
21140
# The commands to list exported symbols.
 
21141
export_symbols_cmds=$lt_export_symbols_cmds
 
21142
 
 
21143
# Symbols that should not be listed in the preloaded symbols.
 
21144
exclude_expsyms=$lt_exclude_expsyms
 
21145
 
 
21146
# Symbols that must always be exported.
 
21147
include_expsyms=$lt_include_expsyms
 
21148
 
 
21149
# Commands necessary for linking programs (against libraries) with templates.
 
21150
prelink_cmds=$lt_prelink_cmds
 
21151
 
 
21152
# Commands necessary for finishing linking programs.
 
21153
postlink_cmds=$lt_postlink_cmds
 
21154
 
 
21155
# Specify filename containing input files.
 
21156
file_list_spec=$lt_file_list_spec
 
21157
 
 
21158
# How to hardcode a shared library path into an executable.
 
21159
hardcode_action=$hardcode_action
 
21160
 
 
21161
# The directories searched by this compiler when creating a shared library.
 
21162
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
21163
 
 
21164
# Dependencies to place before and after the objects being linked to
 
21165
# create a shared library.
 
21166
predep_objects=$lt_predep_objects
 
21167
postdep_objects=$lt_postdep_objects
 
21168
predeps=$lt_predeps
 
21169
postdeps=$lt_postdeps
 
21170
 
 
21171
# The library search path used internally by the compiler when linking
 
21172
# a shared library.
 
21173
compiler_lib_search_path=$lt_compiler_lib_search_path
 
21174
 
 
21175
# ### END LIBTOOL CONFIG
 
21176
 
 
21177
_LT_EOF
 
21178
 
 
21179
  case $host_os in
 
21180
  aix3*)
 
21181
    cat <<\_LT_EOF >> "$cfgfile"
 
21182
# AIX sometimes has problems with the GCC collect2 program.  For some
 
21183
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
21184
# vanish in a puff of smoke.
 
21185
if test "X${COLLECT_NAMES+set}" != Xset; then
 
21186
  COLLECT_NAMES=
 
21187
  export COLLECT_NAMES
 
21188
fi
 
21189
_LT_EOF
 
21190
    ;;
 
21191
  esac
 
21192
 
 
21193
 
 
21194
ltmain="$ac_aux_dir/ltmain.sh"
 
21195
 
 
21196
 
 
21197
  # We use sed instead of cat because bash on DJGPP gets confused if
 
21198
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
21199
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
21200
  # is reportedly fixed, but why not run on old versions too?
 
21201
  sed '$q' "$ltmain" >> "$cfgfile" \
 
21202
     || (rm -f "$cfgfile"; exit 1)
 
21203
 
 
21204
  if test x"$xsi_shell" = xyes; then
 
21205
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
21206
func_dirname ()\
 
21207
{\
 
21208
\    case ${1} in\
 
21209
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
21210
\      *  ) func_dirname_result="${3}" ;;\
 
21211
\    esac\
 
21212
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
21213
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21214
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21215
test 0 -eq $? || _lt_function_replace_fail=:
 
21216
 
 
21217
 
 
21218
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
21219
func_basename ()\
 
21220
{\
 
21221
\    func_basename_result="${1##*/}"\
 
21222
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
21223
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21224
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21225
test 0 -eq $? || _lt_function_replace_fail=:
 
21226
 
 
21227
 
 
21228
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
21229
func_dirname_and_basename ()\
 
21230
{\
 
21231
\    case ${1} in\
 
21232
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
21233
\      *  ) func_dirname_result="${3}" ;;\
 
21234
\    esac\
 
21235
\    func_basename_result="${1##*/}"\
 
21236
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
21237
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21238
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21239
test 0 -eq $? || _lt_function_replace_fail=:
 
21240
 
 
21241
 
 
21242
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
21243
func_stripname ()\
 
21244
{\
 
21245
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
21246
\    # positional parameters, so assign one to ordinary parameter first.\
 
21247
\    func_stripname_result=${3}\
 
21248
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
21249
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
21250
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
21251
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21252
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21253
test 0 -eq $? || _lt_function_replace_fail=:
 
21254
 
 
21255
 
 
21256
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
21257
func_split_long_opt ()\
 
21258
{\
 
21259
\    func_split_long_opt_name=${1%%=*}\
 
21260
\    func_split_long_opt_arg=${1#*=}\
 
21261
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
21262
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21263
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21264
test 0 -eq $? || _lt_function_replace_fail=:
 
21265
 
 
21266
 
 
21267
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
21268
func_split_short_opt ()\
 
21269
{\
 
21270
\    func_split_short_opt_arg=${1#??}\
 
21271
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
21272
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
21273
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21274
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21275
test 0 -eq $? || _lt_function_replace_fail=:
 
21276
 
 
21277
 
 
21278
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
21279
func_lo2o ()\
 
21280
{\
 
21281
\    case ${1} in\
 
21282
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
21283
\      *)    func_lo2o_result=${1} ;;\
 
21284
\    esac\
 
21285
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
21286
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21287
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21288
test 0 -eq $? || _lt_function_replace_fail=:
 
21289
 
 
21290
 
 
21291
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
21292
func_xform ()\
 
21293
{\
 
21294
    func_xform_result=${1%.*}.lo\
 
21295
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
21296
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21297
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21298
test 0 -eq $? || _lt_function_replace_fail=:
 
21299
 
 
21300
 
 
21301
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
21302
func_arith ()\
 
21303
{\
 
21304
    func_arith_result=$(( $* ))\
 
21305
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
21306
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21307
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21308
test 0 -eq $? || _lt_function_replace_fail=:
 
21309
 
 
21310
 
 
21311
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
21312
func_len ()\
 
21313
{\
 
21314
    func_len_result=${#1}\
 
21315
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
21316
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21317
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21318
test 0 -eq $? || _lt_function_replace_fail=:
 
21319
 
 
21320
fi
 
21321
 
 
21322
if test x"$lt_shell_append" = xyes; then
 
21323
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
21324
func_append ()\
 
21325
{\
 
21326
    eval "${1}+=\\${2}"\
 
21327
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
21328
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21329
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21330
test 0 -eq $? || _lt_function_replace_fail=:
 
21331
 
 
21332
 
 
21333
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
21334
func_append_quoted ()\
 
21335
{\
 
21336
\    func_quote_for_eval "${2}"\
 
21337
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
21338
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
21339
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21340
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21341
test 0 -eq $? || _lt_function_replace_fail=:
 
21342
 
 
21343
 
 
21344
  # Save a `func_append' function call where possible by direct use of '+='
 
21345
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
21346
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21347
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21348
  test 0 -eq $? || _lt_function_replace_fail=:
 
21349
else
 
21350
  # Save a `func_append' function call even when '+=' is not available
 
21351
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
21352
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
21353
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
21354
  test 0 -eq $? || _lt_function_replace_fail=:
 
21355
fi
 
21356
 
 
21357
if test x"$_lt_function_replace_fail" = x":"; then
 
21358
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
21359
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
21360
fi
 
21361
 
 
21362
 
 
21363
   mv -f "$cfgfile" "$ofile" ||
 
21364
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
21365
  chmod +x "$ofile"
 
21366
 
 
21367
 
 
21368
    cat <<_LT_EOF >> "$ofile"
 
21369
 
 
21370
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
21371
 
 
21372
# The linker used to build libraries.
 
21373
LD=$lt_LD_CXX
 
21374
 
 
21375
# How to create reloadable object files.
 
21376
reload_flag=$lt_reload_flag_CXX
 
21377
reload_cmds=$lt_reload_cmds_CXX
 
21378
 
 
21379
# Commands used to build an old-style archive.
 
21380
old_archive_cmds=$lt_old_archive_cmds_CXX
 
21381
 
 
21382
# A language specific compiler.
 
21383
CC=$lt_compiler_CXX
 
21384
 
 
21385
# Is the compiler the GNU compiler?
 
21386
with_gcc=$GCC_CXX
 
21387
 
 
21388
# Compiler flag to turn off builtin functions.
 
21389
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
21390
 
 
21391
# Additional compiler flags for building library objects.
 
21392
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
21393
 
 
21394
# How to pass a linker flag through the compiler.
 
21395
wl=$lt_lt_prog_compiler_wl_CXX
 
21396
 
 
21397
# Compiler flag to prevent dynamic linking.
 
21398
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
21399
 
 
21400
# Does compiler simultaneously support -c and -o options?
 
21401
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
21402
 
 
21403
# Whether or not to add -lc for building shared libraries.
 
21404
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
21405
 
 
21406
# Whether or not to disallow shared libs when runtime libs are static.
 
21407
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
21408
 
 
21409
# Compiler flag to allow reflexive dlopens.
 
21410
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
21411
 
 
21412
# Compiler flag to generate shared objects directly from archives.
 
21413
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
21414
 
 
21415
# Whether the compiler copes with passing no objects directly.
 
21416
compiler_needs_object=$lt_compiler_needs_object_CXX
 
21417
 
 
21418
# Create an old-style archive from a shared archive.
 
21419
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
21420
 
 
21421
# Create a temporary old-style archive to link instead of a shared archive.
 
21422
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
21423
 
 
21424
# Commands used to build a shared archive.
 
21425
archive_cmds=$lt_archive_cmds_CXX
 
21426
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
21427
 
 
21428
# Commands used to build a loadable module if different from building
 
21429
# a shared archive.
 
21430
module_cmds=$lt_module_cmds_CXX
 
21431
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
21432
 
 
21433
# Whether we are building with GNU ld or not.
 
21434
with_gnu_ld=$lt_with_gnu_ld_CXX
 
21435
 
 
21436
# Flag that allows shared libraries with undefined symbols to be built.
 
21437
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
21438
 
 
21439
# Flag that enforces no undefined symbols.
 
21440
no_undefined_flag=$lt_no_undefined_flag_CXX
 
21441
 
 
21442
# Flag to hardcode \$libdir into a binary during linking.
 
21443
# This must work even if \$libdir does not exist
 
21444
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
21445
 
 
21446
# Whether we need a single "-rpath" flag with a separated argument.
 
21447
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
21448
 
 
21449
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21450
# DIR into the resulting binary.
 
21451
hardcode_direct=$hardcode_direct_CXX
 
21452
 
 
21453
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21454
# DIR into the resulting binary and the resulting library dependency is
 
21455
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
21456
# library is relocated.
 
21457
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
21458
 
 
21459
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21460
# into the resulting binary.
 
21461
hardcode_minus_L=$hardcode_minus_L_CXX
 
21462
 
 
21463
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21464
# into the resulting binary.
 
21465
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
21466
 
 
21467
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21468
# into the library and all subsequent libraries and executables linked
 
21469
# against it.
 
21470
hardcode_automatic=$hardcode_automatic_CXX
 
21471
 
 
21472
# Set to yes if linker adds runtime paths of dependent libraries
 
21473
# to runtime path list.
 
21474
inherit_rpath=$inherit_rpath_CXX
 
21475
 
 
21476
# Whether libtool must link a program against all its dependency libraries.
 
21477
link_all_deplibs=$link_all_deplibs_CXX
 
21478
 
 
21479
# Set to "yes" if exported symbols are required.
 
21480
always_export_symbols=$always_export_symbols_CXX
 
21481
 
 
21482
# The commands to list exported symbols.
 
21483
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
21484
 
 
21485
# Symbols that should not be listed in the preloaded symbols.
 
21486
exclude_expsyms=$lt_exclude_expsyms_CXX
 
21487
 
 
21488
# Symbols that must always be exported.
 
21489
include_expsyms=$lt_include_expsyms_CXX
 
21490
 
 
21491
# Commands necessary for linking programs (against libraries) with templates.
 
21492
prelink_cmds=$lt_prelink_cmds_CXX
 
21493
 
 
21494
# Commands necessary for finishing linking programs.
 
21495
postlink_cmds=$lt_postlink_cmds_CXX
 
21496
 
 
21497
# Specify filename containing input files.
 
21498
file_list_spec=$lt_file_list_spec_CXX
 
21499
 
 
21500
# How to hardcode a shared library path into an executable.
 
21501
hardcode_action=$hardcode_action_CXX
 
21502
 
 
21503
# The directories searched by this compiler when creating a shared library.
 
21504
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
21505
 
 
21506
# Dependencies to place before and after the objects being linked to
 
21507
# create a shared library.
 
21508
predep_objects=$lt_predep_objects_CXX
 
21509
postdep_objects=$lt_postdep_objects_CXX
 
21510
predeps=$lt_predeps_CXX
 
21511
postdeps=$lt_postdeps_CXX
 
21512
 
 
21513
# The library search path used internally by the compiler when linking
 
21514
# a shared library.
 
21515
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
21516
 
 
21517
# ### END LIBTOOL TAG CONFIG: CXX
 
21518
_LT_EOF
 
21519
 
 
21520
 
 
21521
    cat <<_LT_EOF >> "$ofile"
 
21522
 
 
21523
# ### BEGIN LIBTOOL TAG CONFIG: F77
 
21524
 
 
21525
# The linker used to build libraries.
 
21526
LD=$lt_LD_F77
 
21527
 
 
21528
# How to create reloadable object files.
 
21529
reload_flag=$lt_reload_flag_F77
 
21530
reload_cmds=$lt_reload_cmds_F77
 
21531
 
 
21532
# Commands used to build an old-style archive.
 
21533
old_archive_cmds=$lt_old_archive_cmds_F77
 
21534
 
 
21535
# A language specific compiler.
 
21536
CC=$lt_compiler_F77
 
21537
 
 
21538
# Is the compiler the GNU compiler?
 
21539
with_gcc=$GCC_F77
 
21540
 
 
21541
# Compiler flag to turn off builtin functions.
 
21542
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
21543
 
 
21544
# Additional compiler flags for building library objects.
 
21545
pic_flag=$lt_lt_prog_compiler_pic_F77
 
21546
 
 
21547
# How to pass a linker flag through the compiler.
 
21548
wl=$lt_lt_prog_compiler_wl_F77
 
21549
 
 
21550
# Compiler flag to prevent dynamic linking.
 
21551
link_static_flag=$lt_lt_prog_compiler_static_F77
 
21552
 
 
21553
# Does compiler simultaneously support -c and -o options?
 
21554
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
21555
 
 
21556
# Whether or not to add -lc for building shared libraries.
 
21557
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
21558
 
 
21559
# Whether or not to disallow shared libs when runtime libs are static.
 
21560
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
21561
 
 
21562
# Compiler flag to allow reflexive dlopens.
 
21563
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
21564
 
 
21565
# Compiler flag to generate shared objects directly from archives.
 
21566
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
21567
 
 
21568
# Whether the compiler copes with passing no objects directly.
 
21569
compiler_needs_object=$lt_compiler_needs_object_F77
 
21570
 
 
21571
# Create an old-style archive from a shared archive.
 
21572
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
21573
 
 
21574
# Create a temporary old-style archive to link instead of a shared archive.
 
21575
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
21576
 
 
21577
# Commands used to build a shared archive.
 
21578
archive_cmds=$lt_archive_cmds_F77
 
21579
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
21580
 
 
21581
# Commands used to build a loadable module if different from building
 
21582
# a shared archive.
 
21583
module_cmds=$lt_module_cmds_F77
 
21584
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
21585
 
 
21586
# Whether we are building with GNU ld or not.
 
21587
with_gnu_ld=$lt_with_gnu_ld_F77
 
21588
 
 
21589
# Flag that allows shared libraries with undefined symbols to be built.
 
21590
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
21591
 
 
21592
# Flag that enforces no undefined symbols.
 
21593
no_undefined_flag=$lt_no_undefined_flag_F77
 
21594
 
 
21595
# Flag to hardcode \$libdir into a binary during linking.
 
21596
# This must work even if \$libdir does not exist
 
21597
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
21598
 
 
21599
# Whether we need a single "-rpath" flag with a separated argument.
 
21600
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
21601
 
 
21602
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21603
# DIR into the resulting binary.
 
21604
hardcode_direct=$hardcode_direct_F77
 
21605
 
 
21606
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21607
# DIR into the resulting binary and the resulting library dependency is
 
21608
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
21609
# library is relocated.
 
21610
hardcode_direct_absolute=$hardcode_direct_absolute_F77
 
21611
 
 
21612
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21613
# into the resulting binary.
 
21614
hardcode_minus_L=$hardcode_minus_L_F77
 
21615
 
 
21616
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21617
# into the resulting binary.
 
21618
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
21619
 
 
21620
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21621
# into the library and all subsequent libraries and executables linked
 
21622
# against it.
 
21623
hardcode_automatic=$hardcode_automatic_F77
 
21624
 
 
21625
# Set to yes if linker adds runtime paths of dependent libraries
 
21626
# to runtime path list.
 
21627
inherit_rpath=$inherit_rpath_F77
 
21628
 
 
21629
# Whether libtool must link a program against all its dependency libraries.
 
21630
link_all_deplibs=$link_all_deplibs_F77
 
21631
 
 
21632
# Set to "yes" if exported symbols are required.
 
21633
always_export_symbols=$always_export_symbols_F77
 
21634
 
 
21635
# The commands to list exported symbols.
 
21636
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
21637
 
 
21638
# Symbols that should not be listed in the preloaded symbols.
 
21639
exclude_expsyms=$lt_exclude_expsyms_F77
 
21640
 
 
21641
# Symbols that must always be exported.
 
21642
include_expsyms=$lt_include_expsyms_F77
 
21643
 
 
21644
# Commands necessary for linking programs (against libraries) with templates.
 
21645
prelink_cmds=$lt_prelink_cmds_F77
 
21646
 
 
21647
# Commands necessary for finishing linking programs.
 
21648
postlink_cmds=$lt_postlink_cmds_F77
 
21649
 
 
21650
# Specify filename containing input files.
 
21651
file_list_spec=$lt_file_list_spec_F77
 
21652
 
 
21653
# How to hardcode a shared library path into an executable.
 
21654
hardcode_action=$hardcode_action_F77
 
21655
 
 
21656
# The directories searched by this compiler when creating a shared library.
 
21657
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
21658
 
 
21659
# Dependencies to place before and after the objects being linked to
 
21660
# create a shared library.
 
21661
predep_objects=$lt_predep_objects_F77
 
21662
postdep_objects=$lt_postdep_objects_F77
 
21663
predeps=$lt_predeps_F77
 
21664
postdeps=$lt_postdeps_F77
 
21665
 
 
21666
# The library search path used internally by the compiler when linking
 
21667
# a shared library.
 
21668
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
21669
 
 
21670
# ### END LIBTOOL TAG CONFIG: F77
 
21671
_LT_EOF
 
21672
 
 
21673
 ;;
 
21674
 
 
21675
  esac
 
21676
done # for ac_tag
 
21677
 
 
21678
 
 
21679
as_fn_exit 0
 
21680
_ACEOF
 
21681
ac_clean_files=$ac_clean_files_save
 
21682
 
 
21683
test $ac_write_fail = 0 ||
 
21684
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
21685
 
 
21686
 
 
21687
# configure is writing to config.log, and then calls config.status.
 
21688
# config.status does its own redirection, appending to config.log.
 
21689
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21690
# by configure, so config.status won't be able to write to it; its
 
21691
# output is simply discarded.  So we exec the FD to /dev/null,
 
21692
# effectively closing config.log, so it can be properly (re)opened and
 
21693
# appended to by config.status.  When coming back to configure, we
 
21694
# need to make the FD available again.
 
21695
if test "$no_create" != yes; then
 
21696
  ac_cs_success=:
 
21697
  ac_config_status_args=
 
21698
  test "$silent" = yes &&
 
21699
    ac_config_status_args="$ac_config_status_args --quiet"
 
21700
  exec 5>/dev/null
 
21701
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21702
  exec 5>>config.log
 
21703
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21704
  # would make configure fail if this is the last instruction.
 
21705
  $ac_cs_success || as_fn_exit 1
 
21706
fi
 
21707
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
21708
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
21709
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
21710
fi
 
21711