~ara/mtdev/apport_hook_lp_622817

« back to all changes in this revision

Viewing changes to configure

  • Committer: Chase Douglas
  • Date: 2010-08-04 16:00:21 UTC
  • mfrom: (37.2.1 upstream)
  • Revision ID: chase.douglas@canonical.com-20100804160021-c8dyom6mhetm17vu
New upstream release.

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.65 for Multitouch Protocol Translation Library 1.0.8.
 
4
#
 
5
#
 
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
 
8
# Inc.
 
9
#
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
 
123
PS1='$ '
 
124
PS2='> '
 
125
PS4='+ '
 
126
 
 
127
# NLS nuisances.
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
186
do
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
 
232
$0: including any error possibly output before this
 
233
$0: message. Then install a modern shell, or manually run
 
234
$0: the script under such a shell if you do have one."
 
235
  fi
 
236
  exit 1
 
237
fi
 
238
fi
 
239
fi
 
240
SHELL=${CONFIG_SHELL-/bin/sh}
 
241
export SHELL
 
242
# Unset more variables known to interfere with behavior of common tools.
 
243
CLICOLOR_FORCE= GREP_OPTIONS=
 
244
unset CLICOLOR_FORCE GREP_OPTIONS
 
245
 
 
246
## --------------------- ##
 
247
## M4sh Shell Functions. ##
 
248
## --------------------- ##
 
249
# as_fn_unset VAR
 
250
# ---------------
 
251
# Portably unset VAR.
 
252
as_fn_unset ()
 
253
{
 
254
  { eval $1=; unset $1;}
 
255
}
 
256
as_unset=as_fn_unset
 
257
 
 
258
# as_fn_set_status STATUS
 
259
# -----------------------
 
260
# Set $? to STATUS, without forking.
 
261
as_fn_set_status ()
 
262
{
 
263
  return $1
 
264
} # as_fn_set_status
 
265
 
 
266
# as_fn_exit STATUS
 
267
# -----------------
 
268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
269
as_fn_exit ()
 
270
{
 
271
  set +e
 
272
  as_fn_set_status $1
 
273
  exit $1
 
274
} # as_fn_exit
 
275
 
 
276
# as_fn_mkdir_p
 
277
# -------------
 
278
# Create "$as_dir" as a directory, including parents if necessary.
 
279
as_fn_mkdir_p ()
 
280
{
 
281
 
 
282
  case $as_dir in #(
 
283
  -*) as_dir=./$as_dir;;
 
284
  esac
 
285
  test -d "$as_dir" || eval $as_mkdir_p || {
 
286
    as_dirs=
 
287
    while :; do
 
288
      case $as_dir in #(
 
289
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
290
      *) as_qdir=$as_dir;;
 
291
      esac
 
292
      as_dirs="'$as_qdir' $as_dirs"
 
293
      as_dir=`$as_dirname -- "$as_dir" ||
 
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
295
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
296
         X"$as_dir" : 'X\(//\)$' \| \
 
297
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
298
$as_echo X"$as_dir" |
 
299
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
300
            s//\1/
 
301
            q
 
302
          }
 
303
          /^X\(\/\/\)[^/].*/{
 
304
            s//\1/
 
305
            q
 
306
          }
 
307
          /^X\(\/\/\)$/{
 
308
            s//\1/
 
309
            q
 
310
          }
 
311
          /^X\(\/\).*/{
 
312
            s//\1/
 
313
            q
 
314
          }
 
315
          s/.*/./; q'`
 
316
      test -d "$as_dir" && break
 
317
    done
 
318
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
319
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
320
 
 
321
 
 
322
} # as_fn_mkdir_p
 
323
# as_fn_append VAR VALUE
 
324
# ----------------------
 
325
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
326
# advantage of any shell optimizations that allow amortized linear growth over
 
327
# repeated appends, instead of the typical quadratic growth present in naive
 
328
# implementations.
 
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
330
  eval 'as_fn_append ()
 
331
  {
 
332
    eval $1+=\$2
 
333
  }'
 
334
else
 
335
  as_fn_append ()
 
336
  {
 
337
    eval $1=\$$1\$2
 
338
  }
 
339
fi # as_fn_append
 
340
 
 
341
# as_fn_arith ARG...
 
342
# ------------------
 
343
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
344
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
345
# must be portable across $(()) and expr.
 
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
347
  eval 'as_fn_arith ()
 
348
  {
 
349
    as_val=$(( $* ))
 
350
  }'
 
351
else
 
352
  as_fn_arith ()
 
353
  {
 
354
    as_val=`expr "$@" || test $? -eq 1`
 
355
  }
 
356
fi # as_fn_arith
 
357
 
 
358
 
 
359
# as_fn_error ERROR [LINENO LOG_FD]
 
360
# ---------------------------------
 
361
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
362
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
363
# script with status $?, using 1 if that was 0.
 
364
as_fn_error ()
 
365
{
 
366
  as_status=$?; test $as_status -eq 0 && as_status=1
 
367
  if test "$3"; then
 
368
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
369
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
370
  fi
 
371
  $as_echo "$as_me: error: $1" >&2
 
372
  as_fn_exit $as_status
 
373
} # as_fn_error
 
374
 
 
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
376
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
377
  as_expr=expr
 
378
else
 
379
  as_expr=false
 
380
fi
 
381
 
 
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
383
  as_basename=basename
 
384
else
 
385
  as_basename=false
 
386
fi
 
387
 
 
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
389
  as_dirname=dirname
 
390
else
 
391
  as_dirname=false
 
392
fi
 
393
 
 
394
as_me=`$as_basename -- "$0" ||
 
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
396
         X"$0" : 'X\(//\)$' \| \
 
397
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
398
$as_echo X/"$0" |
 
399
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
400
            s//\1/
 
401
            q
 
402
          }
 
403
          /^X\/\(\/\/\)$/{
 
404
            s//\1/
 
405
            q
 
406
          }
 
407
          /^X\/\(\/\).*/{
 
408
            s//\1/
 
409
            q
 
410
          }
 
411
          s/.*/./; q'`
 
412
 
 
413
# Avoid depending upon Character Ranges.
 
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
417
as_cr_digits='0123456789'
 
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
419
 
 
420
 
 
421
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
422
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
423
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
424
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
425
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
426
  sed -n '
 
427
    p
 
428
    /[$]LINENO/=
 
429
  ' <$as_myself |
 
430
    sed '
 
431
      s/[$]LINENO.*/&-/
 
432
      t lineno
 
433
      b
 
434
      :lineno
 
435
      N
 
436
      :loop
 
437
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
438
      t loop
 
439
      s/-\n.*//
 
440
    ' >$as_me.lineno &&
 
441
  chmod +x "$as_me.lineno" ||
 
442
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
443
 
 
444
  # Don't try to exec as it changes $[0], causing all sort of problems
 
445
  # (the dirname of $[0] is not the place where we might find the
 
446
  # original and so on.  Autoconf is especially sensitive to this).
 
447
  . "./$as_me.lineno"
 
448
  # Exit status is that of the last command.
 
449
  exit
 
450
}
 
451
 
 
452
ECHO_C= ECHO_N= ECHO_T=
 
453
case `echo -n x` in #(((((
 
454
-n*)
 
455
  case `echo 'xy\c'` in
 
456
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
457
  xy)  ECHO_C='\c';;
 
458
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
459
       ECHO_T=' ';;
 
460
  esac;;
 
461
*)
 
462
  ECHO_N='-n';;
 
463
esac
 
464
 
 
465
rm -f conf$$ conf$$.exe conf$$.file
 
466
if test -d conf$$.dir; then
 
467
  rm -f conf$$.dir/conf$$.file
 
468
else
 
469
  rm -f conf$$.dir
 
470
  mkdir conf$$.dir 2>/dev/null
 
471
fi
 
472
if (echo >conf$$.file) 2>/dev/null; then
 
473
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
474
    as_ln_s='ln -s'
 
475
    # ... but there are two gotchas:
 
476
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
477
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
478
    # In both cases, we have to default to `cp -p'.
 
479
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
480
      as_ln_s='cp -p'
 
481
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
482
    as_ln_s=ln
 
483
  else
 
484
    as_ln_s='cp -p'
 
485
  fi
 
486
else
 
487
  as_ln_s='cp -p'
 
488
fi
 
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
490
rmdir conf$$.dir 2>/dev/null
 
491
 
 
492
if mkdir -p . 2>/dev/null; then
 
493
  as_mkdir_p='mkdir -p "$as_dir"'
 
494
else
 
495
  test -d ./-p && rmdir ./-p
 
496
  as_mkdir_p=false
 
497
fi
 
498
 
 
499
if test -x / >/dev/null 2>&1; then
 
500
  as_test_x='test -x'
 
501
else
 
502
  if ls -dL / >/dev/null 2>&1; then
 
503
    as_ls_L_option=L
 
504
  else
 
505
    as_ls_L_option=
 
506
  fi
 
507
  as_test_x='
 
508
    eval sh -c '\''
 
509
      if test -d "$1"; then
 
510
        test -d "$1/.";
 
511
      else
 
512
        case $1 in #(
 
513
        -*)set "./$1";;
 
514
        esac;
 
515
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
516
        ???[sx]*):;;*)false;;esac;fi
 
517
    '\'' sh
 
518
  '
 
519
fi
 
520
as_executable_p=$as_test_x
 
521
 
 
522
# Sed expression to map a string onto a valid CPP name.
 
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
524
 
 
525
# Sed expression to map a string onto a valid variable name.
 
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
 
 
529
 
 
530
# Check that we are running under the correct shell.
 
531
SHELL=${CONFIG_SHELL-/bin/sh}
 
532
 
 
533
case X$lt_ECHO in
 
534
X*--fallback-echo)
 
535
  # Remove one level of quotation (which was required for Make).
 
536
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
537
  ;;
 
538
esac
 
539
 
 
540
ECHO=${lt_ECHO-echo}
 
541
if test "X$1" = X--no-reexec; then
 
542
  # Discard the --no-reexec flag, and continue.
 
543
  shift
 
544
elif test "X$1" = X--fallback-echo; then
 
545
  # Avoid inline document here, it may be left over
 
546
  :
 
547
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
 
548
  # Yippee, $ECHO works!
 
549
  :
 
550
else
 
551
  # Restart under the correct shell.
 
552
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
553
fi
 
554
 
 
555
if test "X$1" = X--fallback-echo; then
 
556
  # used as fallback echo
 
557
  shift
 
558
  cat <<_LT_EOF
 
559
$*
 
560
_LT_EOF
 
561
  exit 0
 
562
fi
 
563
 
 
564
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
565
# if CDPATH is set.
 
566
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
567
 
 
568
if test -z "$lt_ECHO"; then
 
569
  if test "X${echo_test_string+set}" != Xset; then
 
570
    # find a string as large as possible, as long as the shell can cope with it
 
571
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
572
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
573
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
 
574
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
575
      then
 
576
        break
 
577
      fi
 
578
    done
 
579
  fi
 
580
 
 
581
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
582
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
583
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
584
    :
 
585
  else
 
586
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
587
    # backslashes.  This makes it impossible to quote backslashes using
 
588
    #   echo "$something" | sed 's/\\/\\\\/g'
 
589
    #
 
590
    # So, first we look for a working echo in the user's PATH.
 
591
 
 
592
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
593
    for dir in $PATH /usr/ucb; do
 
594
      IFS="$lt_save_ifs"
 
595
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
596
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
597
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
598
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
599
        ECHO="$dir/echo"
 
600
        break
 
601
      fi
 
602
    done
 
603
    IFS="$lt_save_ifs"
 
604
 
 
605
    if test "X$ECHO" = Xecho; then
 
606
      # We didn't find a better echo, so look for alternatives.
 
607
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
608
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
609
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
        # This shell has a builtin print -r that does the trick.
 
611
        ECHO='print -r'
 
612
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
613
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
614
        # If we have ksh, try running configure again with it.
 
615
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
616
        export ORIGINAL_CONFIG_SHELL
 
617
        CONFIG_SHELL=/bin/ksh
 
618
        export CONFIG_SHELL
 
619
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
620
      else
 
621
        # Try using printf.
 
622
        ECHO='printf %s\n'
 
623
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
624
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
625
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
626
          # Cool, printf works
 
627
          :
 
628
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
629
             test "X$echo_testing_string" = 'X\t' &&
 
630
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
631
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
632
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
633
          export CONFIG_SHELL
 
634
          SHELL="$CONFIG_SHELL"
 
635
          export SHELL
 
636
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
637
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
638
             test "X$echo_testing_string" = 'X\t' &&
 
639
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
640
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
641
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
642
        else
 
643
          # maybe with a smaller string...
 
644
          prev=:
 
645
 
 
646
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
647
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
648
            then
 
649
              break
 
650
            fi
 
651
            prev="$cmd"
 
652
          done
 
653
 
 
654
          if test "$prev" != 'sed 50q "$0"'; then
 
655
            echo_test_string=`eval $prev`
 
656
            export echo_test_string
 
657
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
658
          else
 
659
            # Oops.  We lost completely, so just stick with echo.
 
660
            ECHO=echo
 
661
          fi
 
662
        fi
 
663
      fi
 
664
    fi
 
665
  fi
 
666
fi
 
667
 
 
668
# Copy echo and quote the copy suitably for passing to libtool from
 
669
# the Makefile, instead of quoting the original, which is used later.
 
670
lt_ECHO=$ECHO
 
671
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
672
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
673
fi
 
674
 
 
675
 
 
676
 
 
677
 
 
678
test -n "$DJDIR" || exec 7<&0 </dev/null
 
679
exec 6>&1
 
680
 
 
681
# Name of the host.
 
682
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
683
# so uname gets run too.
 
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
685
 
 
686
#
 
687
# Initializations.
 
688
#
 
689
ac_default_prefix=/usr/local
 
690
ac_clean_files=
 
691
ac_config_libobj_dir=.
 
692
LIBOBJS=
 
693
cross_compiling=no
 
694
subdirs=
 
695
MFLAGS=
 
696
MAKEFLAGS=
 
697
 
 
698
# Identity of this package.
 
699
PACKAGE_NAME='Multitouch Protocol Translation Library'
 
700
PACKAGE_TARNAME='mtdev'
 
701
PACKAGE_VERSION='1.0.8'
 
702
PACKAGE_STRING='Multitouch Protocol Translation Library 1.0.8'
 
703
PACKAGE_BUGREPORT=''
 
704
PACKAGE_URL=''
 
705
 
 
706
ac_unique_file="Makefile.am"
 
707
# Factoring default headers for most tests.
 
708
ac_includes_default="\
 
709
#include <stdio.h>
 
710
#ifdef HAVE_SYS_TYPES_H
 
711
# include <sys/types.h>
 
712
#endif
 
713
#ifdef HAVE_SYS_STAT_H
 
714
# include <sys/stat.h>
 
715
#endif
 
716
#ifdef STDC_HEADERS
 
717
# include <stdlib.h>
 
718
# include <stddef.h>
 
719
#else
 
720
# ifdef HAVE_STDLIB_H
 
721
#  include <stdlib.h>
 
722
# endif
 
723
#endif
 
724
#ifdef HAVE_STRING_H
 
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
726
#  include <memory.h>
 
727
# endif
 
728
# include <string.h>
 
729
#endif
 
730
#ifdef HAVE_STRINGS_H
 
731
# include <strings.h>
 
732
#endif
 
733
#ifdef HAVE_INTTYPES_H
 
734
# include <inttypes.h>
 
735
#endif
 
736
#ifdef HAVE_STDINT_H
 
737
# include <stdint.h>
 
738
#endif
 
739
#ifdef HAVE_UNISTD_H
 
740
# include <unistd.h>
 
741
#endif"
 
742
 
 
743
ac_subst_vars='am__EXEEXT_FALSE
 
744
am__EXEEXT_TRUE
 
745
LTLIBOBJS
 
746
LIBOBJS
 
747
CPP
 
748
OTOOL64
 
749
OTOOL
 
750
LIPO
 
751
NMEDIT
 
752
DSYMUTIL
 
753
lt_ECHO
 
754
RANLIB
 
755
AR
 
756
OBJDUMP
 
757
LN_S
 
758
NM
 
759
ac_ct_DUMPBIN
 
760
DUMPBIN
 
761
LD
 
762
FGREP
 
763
EGREP
 
764
GREP
 
765
SED
 
766
am__fastdepCC_FALSE
 
767
am__fastdepCC_TRUE
 
768
CCDEPMODE
 
769
AMDEPBACKSLASH
 
770
AMDEP_FALSE
 
771
AMDEP_TRUE
 
772
am__quote
 
773
am__include
 
774
DEPDIR
 
775
OBJEXT
 
776
EXEEXT
 
777
ac_ct_CC
 
778
CPPFLAGS
 
779
LDFLAGS
 
780
CFLAGS
 
781
CC
 
782
host_os
 
783
host_vendor
 
784
host_cpu
 
785
host
 
786
build_os
 
787
build_vendor
 
788
build_cpu
 
789
build
 
790
LIBTOOL
 
791
LIB_VERSION
 
792
MAINT
 
793
MAINTAINER_MODE_FALSE
 
794
MAINTAINER_MODE_TRUE
 
795
am__untar
 
796
am__tar
 
797
AMTAR
 
798
am__leading_dot
 
799
SET_MAKE
 
800
AWK
 
801
mkdir_p
 
802
MKDIR_P
 
803
INSTALL_STRIP_PROGRAM
 
804
STRIP
 
805
install_sh
 
806
MAKEINFO
 
807
AUTOHEADER
 
808
AUTOMAKE
 
809
AUTOCONF
 
810
ACLOCAL
 
811
VERSION
 
812
PACKAGE
 
813
CYGPATH_W
 
814
am__isrc
 
815
INSTALL_DATA
 
816
INSTALL_SCRIPT
 
817
INSTALL_PROGRAM
 
818
target_alias
 
819
host_alias
 
820
build_alias
 
821
LIBS
 
822
ECHO_T
 
823
ECHO_N
 
824
ECHO_C
 
825
DEFS
 
826
mandir
 
827
localedir
 
828
libdir
 
829
psdir
 
830
pdfdir
 
831
dvidir
 
832
htmldir
 
833
infodir
 
834
docdir
 
835
oldincludedir
 
836
includedir
 
837
localstatedir
 
838
sharedstatedir
 
839
sysconfdir
 
840
datadir
 
841
datarootdir
 
842
libexecdir
 
843
sbindir
 
844
bindir
 
845
program_transform_name
 
846
prefix
 
847
exec_prefix
 
848
PACKAGE_URL
 
849
PACKAGE_BUGREPORT
 
850
PACKAGE_STRING
 
851
PACKAGE_VERSION
 
852
PACKAGE_TARNAME
 
853
PACKAGE_NAME
 
854
PATH_SEPARATOR
 
855
SHELL'
 
856
ac_subst_files=''
 
857
ac_user_opts='
 
858
enable_option_checking
 
859
enable_maintainer_mode
 
860
enable_shared
 
861
enable_static
 
862
with_pic
 
863
enable_fast_install
 
864
enable_dependency_tracking
 
865
with_gnu_ld
 
866
enable_libtool_lock
 
867
'
 
868
      ac_precious_vars='build_alias
 
869
host_alias
 
870
target_alias
 
871
CC
 
872
CFLAGS
 
873
LDFLAGS
 
874
LIBS
 
875
CPPFLAGS
 
876
CPP'
 
877
 
 
878
 
 
879
# Initialize some variables set by options.
 
880
ac_init_help=
 
881
ac_init_version=false
 
882
ac_unrecognized_opts=
 
883
ac_unrecognized_sep=
 
884
# The variables have the same names as the options, with
 
885
# dashes changed to underlines.
 
886
cache_file=/dev/null
 
887
exec_prefix=NONE
 
888
no_create=
 
889
no_recursion=
 
890
prefix=NONE
 
891
program_prefix=NONE
 
892
program_suffix=NONE
 
893
program_transform_name=s,x,x,
 
894
silent=
 
895
site=
 
896
srcdir=
 
897
verbose=
 
898
x_includes=NONE
 
899
x_libraries=NONE
 
900
 
 
901
# Installation directory options.
 
902
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
903
# and all the variables that are supposed to be based on exec_prefix
 
904
# by default will actually change.
 
905
# Use braces instead of parens because sh, perl, etc. also accept them.
 
906
# (The list follows the same order as the GNU Coding Standards.)
 
907
bindir='${exec_prefix}/bin'
 
908
sbindir='${exec_prefix}/sbin'
 
909
libexecdir='${exec_prefix}/libexec'
 
910
datarootdir='${prefix}/share'
 
911
datadir='${datarootdir}'
 
912
sysconfdir='${prefix}/etc'
 
913
sharedstatedir='${prefix}/com'
 
914
localstatedir='${prefix}/var'
 
915
includedir='${prefix}/include'
 
916
oldincludedir='/usr/include'
 
917
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
918
infodir='${datarootdir}/info'
 
919
htmldir='${docdir}'
 
920
dvidir='${docdir}'
 
921
pdfdir='${docdir}'
 
922
psdir='${docdir}'
 
923
libdir='${exec_prefix}/lib'
 
924
localedir='${datarootdir}/locale'
 
925
mandir='${datarootdir}/man'
 
926
 
 
927
ac_prev=
 
928
ac_dashdash=
 
929
for ac_option
 
930
do
 
931
  # If the previous option needs an argument, assign it.
 
932
  if test -n "$ac_prev"; then
 
933
    eval $ac_prev=\$ac_option
 
934
    ac_prev=
 
935
    continue
 
936
  fi
 
937
 
 
938
  case $ac_option in
 
939
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
940
  *)    ac_optarg=yes ;;
 
941
  esac
 
942
 
 
943
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
944
 
 
945
  case $ac_dashdash$ac_option in
 
946
  --)
 
947
    ac_dashdash=yes ;;
 
948
 
 
949
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
950
    ac_prev=bindir ;;
 
951
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
952
    bindir=$ac_optarg ;;
 
953
 
 
954
  -build | --build | --buil | --bui | --bu)
 
955
    ac_prev=build_alias ;;
 
956
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
957
    build_alias=$ac_optarg ;;
 
958
 
 
959
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
960
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
961
    ac_prev=cache_file ;;
 
962
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
963
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
964
    cache_file=$ac_optarg ;;
 
965
 
 
966
  --config-cache | -C)
 
967
    cache_file=config.cache ;;
 
968
 
 
969
  -datadir | --datadir | --datadi | --datad)
 
970
    ac_prev=datadir ;;
 
971
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
972
    datadir=$ac_optarg ;;
 
973
 
 
974
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
975
  | --dataroo | --dataro | --datar)
 
976
    ac_prev=datarootdir ;;
 
977
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
978
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
979
    datarootdir=$ac_optarg ;;
 
980
 
 
981
  -disable-* | --disable-*)
 
982
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
983
    # Reject names that are not valid shell variable names.
 
984
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
985
      as_fn_error "invalid feature name: $ac_useropt"
 
986
    ac_useropt_orig=$ac_useropt
 
987
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
988
    case $ac_user_opts in
 
989
      *"
 
990
"enable_$ac_useropt"
 
991
"*) ;;
 
992
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
993
         ac_unrecognized_sep=', ';;
 
994
    esac
 
995
    eval enable_$ac_useropt=no ;;
 
996
 
 
997
  -docdir | --docdir | --docdi | --doc | --do)
 
998
    ac_prev=docdir ;;
 
999
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1000
    docdir=$ac_optarg ;;
 
1001
 
 
1002
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1003
    ac_prev=dvidir ;;
 
1004
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1005
    dvidir=$ac_optarg ;;
 
1006
 
 
1007
  -enable-* | --enable-*)
 
1008
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1009
    # Reject names that are not valid shell variable names.
 
1010
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1011
      as_fn_error "invalid feature name: $ac_useropt"
 
1012
    ac_useropt_orig=$ac_useropt
 
1013
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1014
    case $ac_user_opts in
 
1015
      *"
 
1016
"enable_$ac_useropt"
 
1017
"*) ;;
 
1018
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1019
         ac_unrecognized_sep=', ';;
 
1020
    esac
 
1021
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1022
 
 
1023
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1024
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1025
  | --exec | --exe | --ex)
 
1026
    ac_prev=exec_prefix ;;
 
1027
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1028
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1029
  | --exec=* | --exe=* | --ex=*)
 
1030
    exec_prefix=$ac_optarg ;;
 
1031
 
 
1032
  -gas | --gas | --ga | --g)
 
1033
    # Obsolete; use --with-gas.
 
1034
    with_gas=yes ;;
 
1035
 
 
1036
  -help | --help | --hel | --he | -h)
 
1037
    ac_init_help=long ;;
 
1038
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1039
    ac_init_help=recursive ;;
 
1040
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1041
    ac_init_help=short ;;
 
1042
 
 
1043
  -host | --host | --hos | --ho)
 
1044
    ac_prev=host_alias ;;
 
1045
  -host=* | --host=* | --hos=* | --ho=*)
 
1046
    host_alias=$ac_optarg ;;
 
1047
 
 
1048
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1049
    ac_prev=htmldir ;;
 
1050
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1051
  | --ht=*)
 
1052
    htmldir=$ac_optarg ;;
 
1053
 
 
1054
  -includedir | --includedir | --includedi | --included | --include \
 
1055
  | --includ | --inclu | --incl | --inc)
 
1056
    ac_prev=includedir ;;
 
1057
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1058
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1059
    includedir=$ac_optarg ;;
 
1060
 
 
1061
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1062
    ac_prev=infodir ;;
 
1063
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1064
    infodir=$ac_optarg ;;
 
1065
 
 
1066
  -libdir | --libdir | --libdi | --libd)
 
1067
    ac_prev=libdir ;;
 
1068
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1069
    libdir=$ac_optarg ;;
 
1070
 
 
1071
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1072
  | --libexe | --libex | --libe)
 
1073
    ac_prev=libexecdir ;;
 
1074
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1075
  | --libexe=* | --libex=* | --libe=*)
 
1076
    libexecdir=$ac_optarg ;;
 
1077
 
 
1078
  -localedir | --localedir | --localedi | --localed | --locale)
 
1079
    ac_prev=localedir ;;
 
1080
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1081
    localedir=$ac_optarg ;;
 
1082
 
 
1083
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1084
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1085
    ac_prev=localstatedir ;;
 
1086
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1087
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1088
    localstatedir=$ac_optarg ;;
 
1089
 
 
1090
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1091
    ac_prev=mandir ;;
 
1092
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1093
    mandir=$ac_optarg ;;
 
1094
 
 
1095
  -nfp | --nfp | --nf)
 
1096
    # Obsolete; use --without-fp.
 
1097
    with_fp=no ;;
 
1098
 
 
1099
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1100
  | --no-cr | --no-c | -n)
 
1101
    no_create=yes ;;
 
1102
 
 
1103
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1104
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1105
    no_recursion=yes ;;
 
1106
 
 
1107
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1108
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1109
  | --oldin | --oldi | --old | --ol | --o)
 
1110
    ac_prev=oldincludedir ;;
 
1111
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1112
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1113
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1114
    oldincludedir=$ac_optarg ;;
 
1115
 
 
1116
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1117
    ac_prev=prefix ;;
 
1118
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1119
    prefix=$ac_optarg ;;
 
1120
 
 
1121
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1122
  | --program-pre | --program-pr | --program-p)
 
1123
    ac_prev=program_prefix ;;
 
1124
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1125
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1126
    program_prefix=$ac_optarg ;;
 
1127
 
 
1128
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1129
  | --program-suf | --program-su | --program-s)
 
1130
    ac_prev=program_suffix ;;
 
1131
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1132
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1133
    program_suffix=$ac_optarg ;;
 
1134
 
 
1135
  -program-transform-name | --program-transform-name \
 
1136
  | --program-transform-nam | --program-transform-na \
 
1137
  | --program-transform-n | --program-transform- \
 
1138
  | --program-transform | --program-transfor \
 
1139
  | --program-transfo | --program-transf \
 
1140
  | --program-trans | --program-tran \
 
1141
  | --progr-tra | --program-tr | --program-t)
 
1142
    ac_prev=program_transform_name ;;
 
1143
  -program-transform-name=* | --program-transform-name=* \
 
1144
  | --program-transform-nam=* | --program-transform-na=* \
 
1145
  | --program-transform-n=* | --program-transform-=* \
 
1146
  | --program-transform=* | --program-transfor=* \
 
1147
  | --program-transfo=* | --program-transf=* \
 
1148
  | --program-trans=* | --program-tran=* \
 
1149
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1150
    program_transform_name=$ac_optarg ;;
 
1151
 
 
1152
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1153
    ac_prev=pdfdir ;;
 
1154
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1155
    pdfdir=$ac_optarg ;;
 
1156
 
 
1157
  -psdir | --psdir | --psdi | --psd | --ps)
 
1158
    ac_prev=psdir ;;
 
1159
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1160
    psdir=$ac_optarg ;;
 
1161
 
 
1162
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1163
  | -silent | --silent | --silen | --sile | --sil)
 
1164
    silent=yes ;;
 
1165
 
 
1166
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1167
    ac_prev=sbindir ;;
 
1168
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1169
  | --sbi=* | --sb=*)
 
1170
    sbindir=$ac_optarg ;;
 
1171
 
 
1172
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1173
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1174
  | --sharedst | --shareds | --shared | --share | --shar \
 
1175
  | --sha | --sh)
 
1176
    ac_prev=sharedstatedir ;;
 
1177
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1178
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1179
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1180
  | --sha=* | --sh=*)
 
1181
    sharedstatedir=$ac_optarg ;;
 
1182
 
 
1183
  -site | --site | --sit)
 
1184
    ac_prev=site ;;
 
1185
  -site=* | --site=* | --sit=*)
 
1186
    site=$ac_optarg ;;
 
1187
 
 
1188
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1189
    ac_prev=srcdir ;;
 
1190
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1191
    srcdir=$ac_optarg ;;
 
1192
 
 
1193
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1194
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1195
    ac_prev=sysconfdir ;;
 
1196
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1197
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1198
    sysconfdir=$ac_optarg ;;
 
1199
 
 
1200
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1201
    ac_prev=target_alias ;;
 
1202
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1203
    target_alias=$ac_optarg ;;
 
1204
 
 
1205
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1206
    verbose=yes ;;
 
1207
 
 
1208
  -version | --version | --versio | --versi | --vers | -V)
 
1209
    ac_init_version=: ;;
 
1210
 
 
1211
  -with-* | --with-*)
 
1212
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1213
    # Reject names that are not valid shell variable names.
 
1214
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1215
      as_fn_error "invalid package name: $ac_useropt"
 
1216
    ac_useropt_orig=$ac_useropt
 
1217
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1218
    case $ac_user_opts in
 
1219
      *"
 
1220
"with_$ac_useropt"
 
1221
"*) ;;
 
1222
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1223
         ac_unrecognized_sep=', ';;
 
1224
    esac
 
1225
    eval with_$ac_useropt=\$ac_optarg ;;
 
1226
 
 
1227
  -without-* | --without-*)
 
1228
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1229
    # Reject names that are not valid shell variable names.
 
1230
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1231
      as_fn_error "invalid package name: $ac_useropt"
 
1232
    ac_useropt_orig=$ac_useropt
 
1233
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1234
    case $ac_user_opts in
 
1235
      *"
 
1236
"with_$ac_useropt"
 
1237
"*) ;;
 
1238
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1239
         ac_unrecognized_sep=', ';;
 
1240
    esac
 
1241
    eval with_$ac_useropt=no ;;
 
1242
 
 
1243
  --x)
 
1244
    # Obsolete; use --with-x.
 
1245
    with_x=yes ;;
 
1246
 
 
1247
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1248
  | --x-incl | --x-inc | --x-in | --x-i)
 
1249
    ac_prev=x_includes ;;
 
1250
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1251
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1252
    x_includes=$ac_optarg ;;
 
1253
 
 
1254
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1255
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1256
    ac_prev=x_libraries ;;
 
1257
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1258
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1259
    x_libraries=$ac_optarg ;;
 
1260
 
 
1261
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1262
Try \`$0 --help' for more information."
 
1263
    ;;
 
1264
 
 
1265
  *=*)
 
1266
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1267
    # Reject names that are not valid shell variable names.
 
1268
    case $ac_envvar in #(
 
1269
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1270
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1271
    esac
 
1272
    eval $ac_envvar=\$ac_optarg
 
1273
    export $ac_envvar ;;
 
1274
 
 
1275
  *)
 
1276
    # FIXME: should be removed in autoconf 3.0.
 
1277
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1278
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1279
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1280
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1281
    ;;
 
1282
 
 
1283
  esac
 
1284
done
 
1285
 
 
1286
if test -n "$ac_prev"; then
 
1287
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1288
  as_fn_error "missing argument to $ac_option"
 
1289
fi
 
1290
 
 
1291
if test -n "$ac_unrecognized_opts"; then
 
1292
  case $enable_option_checking in
 
1293
    no) ;;
 
1294
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1295
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1296
  esac
 
1297
fi
 
1298
 
 
1299
# Check all directory arguments for consistency.
 
1300
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1301
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1302
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1303
                libdir localedir mandir
 
1304
do
 
1305
  eval ac_val=\$$ac_var
 
1306
  # Remove trailing slashes.
 
1307
  case $ac_val in
 
1308
    */ )
 
1309
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1310
      eval $ac_var=\$ac_val;;
 
1311
  esac
 
1312
  # Be sure to have absolute directory names.
 
1313
  case $ac_val in
 
1314
    [\\/$]* | ?:[\\/]* )  continue;;
 
1315
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1316
  esac
 
1317
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1318
done
 
1319
 
 
1320
# There might be people who depend on the old broken behavior: `$host'
 
1321
# used to hold the argument of --host etc.
 
1322
# FIXME: To remove some day.
 
1323
build=$build_alias
 
1324
host=$host_alias
 
1325
target=$target_alias
 
1326
 
 
1327
# FIXME: To remove some day.
 
1328
if test "x$host_alias" != x; then
 
1329
  if test "x$build_alias" = x; then
 
1330
    cross_compiling=maybe
 
1331
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1332
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1333
  elif test "x$build_alias" != "x$host_alias"; then
 
1334
    cross_compiling=yes
 
1335
  fi
 
1336
fi
 
1337
 
 
1338
ac_tool_prefix=
 
1339
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1340
 
 
1341
test "$silent" = yes && exec 6>/dev/null
 
1342
 
 
1343
 
 
1344
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1345
ac_ls_di=`ls -di .` &&
 
1346
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1347
  as_fn_error "working directory cannot be determined"
 
1348
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1349
  as_fn_error "pwd does not report name of working directory"
 
1350
 
 
1351
 
 
1352
# Find the source files, if location was not specified.
 
1353
if test -z "$srcdir"; then
 
1354
  ac_srcdir_defaulted=yes
 
1355
  # Try the directory containing this script, then the parent directory.
 
1356
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1357
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1358
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1359
         X"$as_myself" : 'X\(//\)$' \| \
 
1360
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1361
$as_echo X"$as_myself" |
 
1362
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1363
            s//\1/
 
1364
            q
 
1365
          }
 
1366
          /^X\(\/\/\)[^/].*/{
 
1367
            s//\1/
 
1368
            q
 
1369
          }
 
1370
          /^X\(\/\/\)$/{
 
1371
            s//\1/
 
1372
            q
 
1373
          }
 
1374
          /^X\(\/\).*/{
 
1375
            s//\1/
 
1376
            q
 
1377
          }
 
1378
          s/.*/./; q'`
 
1379
  srcdir=$ac_confdir
 
1380
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1381
    srcdir=..
 
1382
  fi
 
1383
else
 
1384
  ac_srcdir_defaulted=no
 
1385
fi
 
1386
if test ! -r "$srcdir/$ac_unique_file"; then
 
1387
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1388
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1389
fi
 
1390
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1391
ac_abs_confdir=`(
 
1392
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1393
        pwd)`
 
1394
# When building in place, set srcdir=.
 
1395
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1396
  srcdir=.
 
1397
fi
 
1398
# Remove unnecessary trailing slashes from srcdir.
 
1399
# Double slashes in file names in object file debugging info
 
1400
# mess up M-x gdb in Emacs.
 
1401
case $srcdir in
 
1402
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1403
esac
 
1404
for ac_var in $ac_precious_vars; do
 
1405
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1406
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1407
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1408
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1409
done
 
1410
 
 
1411
#
 
1412
# Report the --help message.
 
1413
#
 
1414
if test "$ac_init_help" = "long"; then
 
1415
  # Omit some internal or obsolete options to make the list less imposing.
 
1416
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1417
  cat <<_ACEOF
 
1418
\`configure' configures Multitouch Protocol Translation Library 1.0.8 to adapt to many kinds of systems.
 
1419
 
 
1420
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1421
 
 
1422
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1423
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1424
 
 
1425
Defaults for the options are specified in brackets.
 
1426
 
 
1427
Configuration:
 
1428
  -h, --help              display this help and exit
 
1429
      --help=short        display options specific to this package
 
1430
      --help=recursive    display the short help of all the included packages
 
1431
  -V, --version           display version information and exit
 
1432
  -q, --quiet, --silent   do not print \`checking...' messages
 
1433
      --cache-file=FILE   cache test results in FILE [disabled]
 
1434
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1435
  -n, --no-create         do not create output files
 
1436
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1437
 
 
1438
Installation directories:
 
1439
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1440
                          [$ac_default_prefix]
 
1441
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1442
                          [PREFIX]
 
1443
 
 
1444
By default, \`make install' will install all the files in
 
1445
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1446
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1447
for instance \`--prefix=\$HOME'.
 
1448
 
 
1449
For better control, use the options below.
 
1450
 
 
1451
Fine tuning of the installation directories:
 
1452
  --bindir=DIR            user executables [EPREFIX/bin]
 
1453
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1454
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1455
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1456
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1457
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1458
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1459
  --includedir=DIR        C header files [PREFIX/include]
 
1460
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1461
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1462
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1463
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1464
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1465
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1466
  --docdir=DIR            documentation root [DATAROOTDIR/doc/mtdev]
 
1467
  --htmldir=DIR           html documentation [DOCDIR]
 
1468
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1469
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1470
  --psdir=DIR             ps documentation [DOCDIR]
 
1471
_ACEOF
 
1472
 
 
1473
  cat <<\_ACEOF
 
1474
 
 
1475
Program names:
 
1476
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1477
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1478
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1479
 
 
1480
System types:
 
1481
  --build=BUILD     configure for building on BUILD [guessed]
 
1482
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1483
_ACEOF
 
1484
fi
 
1485
 
 
1486
if test -n "$ac_init_help"; then
 
1487
  case $ac_init_help in
 
1488
     short | recursive ) echo "Configuration of Multitouch Protocol Translation Library 1.0.8:";;
 
1489
   esac
 
1490
  cat <<\_ACEOF
 
1491
 
 
1492
Optional Features:
 
1493
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1494
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1495
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1496
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1497
                          (and sometimes confusing) to the casual installer
 
1498
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1499
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1500
  --enable-fast-install[=PKGS]
 
1501
                          optimize for fast installation [default=yes]
 
1502
  --disable-dependency-tracking  speeds up one-time build
 
1503
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1504
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1505
 
 
1506
Optional Packages:
 
1507
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1508
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1509
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1510
                          both]
 
1511
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1512
 
 
1513
Some influential environment variables:
 
1514
  CC          C compiler command
 
1515
  CFLAGS      C compiler flags
 
1516
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1517
              nonstandard directory <lib dir>
 
1518
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1519
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1520
              you have headers in a nonstandard directory <include dir>
 
1521
  CPP         C preprocessor
 
1522
 
 
1523
Use these variables to override the choices made by `configure' or to help
 
1524
it to find libraries and programs with nonstandard names/locations.
 
1525
 
 
1526
Report bugs to the package provider.
 
1527
_ACEOF
 
1528
ac_status=$?
 
1529
fi
 
1530
 
 
1531
if test "$ac_init_help" = "recursive"; then
 
1532
  # If there are subdirs, report their specific --help.
 
1533
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1534
    test -d "$ac_dir" ||
 
1535
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1536
      continue
 
1537
    ac_builddir=.
 
1538
 
 
1539
case "$ac_dir" in
 
1540
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1541
*)
 
1542
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1543
  # A ".." for each directory in $ac_dir_suffix.
 
1544
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1545
  case $ac_top_builddir_sub in
 
1546
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1547
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1548
  esac ;;
 
1549
esac
 
1550
ac_abs_top_builddir=$ac_pwd
 
1551
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1552
# for backward compatibility:
 
1553
ac_top_builddir=$ac_top_build_prefix
 
1554
 
 
1555
case $srcdir in
 
1556
  .)  # We are building in place.
 
1557
    ac_srcdir=.
 
1558
    ac_top_srcdir=$ac_top_builddir_sub
 
1559
    ac_abs_top_srcdir=$ac_pwd ;;
 
1560
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1561
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1562
    ac_top_srcdir=$srcdir
 
1563
    ac_abs_top_srcdir=$srcdir ;;
 
1564
  *) # Relative name.
 
1565
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1566
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1567
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1568
esac
 
1569
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1570
 
 
1571
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1572
    # Check for guested configure.
 
1573
    if test -f "$ac_srcdir/configure.gnu"; then
 
1574
      echo &&
 
1575
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1576
    elif test -f "$ac_srcdir/configure"; then
 
1577
      echo &&
 
1578
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1579
    else
 
1580
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1581
    fi || ac_status=$?
 
1582
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1583
  done
 
1584
fi
 
1585
 
 
1586
test -n "$ac_init_help" && exit $ac_status
 
1587
if $ac_init_version; then
 
1588
  cat <<\_ACEOF
 
1589
Multitouch Protocol Translation Library configure 1.0.8
 
1590
generated by GNU Autoconf 2.65
 
1591
 
 
1592
Copyright (C) 2009 Free Software Foundation, Inc.
 
1593
This configure script is free software; the Free Software Foundation
 
1594
gives unlimited permission to copy, distribute and modify it.
 
1595
_ACEOF
 
1596
  exit
 
1597
fi
 
1598
 
 
1599
## ------------------------ ##
 
1600
## Autoconf initialization. ##
 
1601
## ------------------------ ##
 
1602
 
 
1603
# ac_fn_c_try_compile LINENO
 
1604
# --------------------------
 
1605
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1606
ac_fn_c_try_compile ()
 
1607
{
 
1608
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1609
  rm -f conftest.$ac_objext
 
1610
  if { { ac_try="$ac_compile"
 
1611
case "(($ac_try" in
 
1612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1613
  *) ac_try_echo=$ac_try;;
 
1614
esac
 
1615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1616
$as_echo "$ac_try_echo"; } >&5
 
1617
  (eval "$ac_compile") 2>conftest.err
 
1618
  ac_status=$?
 
1619
  if test -s conftest.err; then
 
1620
    grep -v '^ *+' conftest.err >conftest.er1
 
1621
    cat conftest.er1 >&5
 
1622
    mv -f conftest.er1 conftest.err
 
1623
  fi
 
1624
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1625
  test $ac_status = 0; } && {
 
1626
         test -z "$ac_c_werror_flag" ||
 
1627
         test ! -s conftest.err
 
1628
       } && test -s conftest.$ac_objext; then :
 
1629
  ac_retval=0
 
1630
else
 
1631
  $as_echo "$as_me: failed program was:" >&5
 
1632
sed 's/^/| /' conftest.$ac_ext >&5
 
1633
 
 
1634
        ac_retval=1
 
1635
fi
 
1636
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1637
  as_fn_set_status $ac_retval
 
1638
 
 
1639
} # ac_fn_c_try_compile
 
1640
 
 
1641
# ac_fn_c_try_link LINENO
 
1642
# -----------------------
 
1643
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1644
ac_fn_c_try_link ()
 
1645
{
 
1646
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1647
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1648
  if { { ac_try="$ac_link"
 
1649
case "(($ac_try" in
 
1650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1651
  *) ac_try_echo=$ac_try;;
 
1652
esac
 
1653
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1654
$as_echo "$ac_try_echo"; } >&5
 
1655
  (eval "$ac_link") 2>conftest.err
 
1656
  ac_status=$?
 
1657
  if test -s conftest.err; then
 
1658
    grep -v '^ *+' conftest.err >conftest.er1
 
1659
    cat conftest.er1 >&5
 
1660
    mv -f conftest.er1 conftest.err
 
1661
  fi
 
1662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1663
  test $ac_status = 0; } && {
 
1664
         test -z "$ac_c_werror_flag" ||
 
1665
         test ! -s conftest.err
 
1666
       } && test -s conftest$ac_exeext && {
 
1667
         test "$cross_compiling" = yes ||
 
1668
         $as_test_x conftest$ac_exeext
 
1669
       }; then :
 
1670
  ac_retval=0
 
1671
else
 
1672
  $as_echo "$as_me: failed program was:" >&5
 
1673
sed 's/^/| /' conftest.$ac_ext >&5
 
1674
 
 
1675
        ac_retval=1
 
1676
fi
 
1677
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1678
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1679
  # interfere with the next link command; also delete a directory that is
 
1680
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1681
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1682
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1683
  as_fn_set_status $ac_retval
 
1684
 
 
1685
} # ac_fn_c_try_link
 
1686
 
 
1687
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1688
# -------------------------------------------------------
 
1689
# Tests whether HEADER exists and can be compiled using the include files in
 
1690
# INCLUDES, setting the cache variable VAR accordingly.
 
1691
ac_fn_c_check_header_compile ()
 
1692
{
 
1693
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1694
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1695
$as_echo_n "checking for $2... " >&6; }
 
1696
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1697
  $as_echo_n "(cached) " >&6
 
1698
else
 
1699
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1700
/* end confdefs.h.  */
 
1701
$4
 
1702
#include <$2>
 
1703
_ACEOF
 
1704
if ac_fn_c_try_compile "$LINENO"; then :
 
1705
  eval "$3=yes"
 
1706
else
 
1707
  eval "$3=no"
 
1708
fi
 
1709
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1710
fi
 
1711
eval ac_res=\$$3
 
1712
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1713
$as_echo "$ac_res" >&6; }
 
1714
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1715
 
 
1716
} # ac_fn_c_check_header_compile
 
1717
 
 
1718
# ac_fn_c_try_cpp LINENO
 
1719
# ----------------------
 
1720
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1721
ac_fn_c_try_cpp ()
 
1722
{
 
1723
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1724
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1725
case "(($ac_try" in
 
1726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1727
  *) ac_try_echo=$ac_try;;
 
1728
esac
 
1729
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1730
$as_echo "$ac_try_echo"; } >&5
 
1731
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1732
  ac_status=$?
 
1733
  if test -s conftest.err; then
 
1734
    grep -v '^ *+' conftest.err >conftest.er1
 
1735
    cat conftest.er1 >&5
 
1736
    mv -f conftest.er1 conftest.err
 
1737
  fi
 
1738
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1739
  test $ac_status = 0; } >/dev/null && {
 
1740
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1741
         test ! -s conftest.err
 
1742
       }; then :
 
1743
  ac_retval=0
 
1744
else
 
1745
  $as_echo "$as_me: failed program was:" >&5
 
1746
sed 's/^/| /' conftest.$ac_ext >&5
 
1747
 
 
1748
    ac_retval=1
 
1749
fi
 
1750
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1751
  as_fn_set_status $ac_retval
 
1752
 
 
1753
} # ac_fn_c_try_cpp
 
1754
 
 
1755
# ac_fn_c_try_run LINENO
 
1756
# ----------------------
 
1757
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1758
# that executables *can* be run.
 
1759
ac_fn_c_try_run ()
 
1760
{
 
1761
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1762
  if { { ac_try="$ac_link"
 
1763
case "(($ac_try" in
 
1764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1765
  *) ac_try_echo=$ac_try;;
 
1766
esac
 
1767
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1768
$as_echo "$ac_try_echo"; } >&5
 
1769
  (eval "$ac_link") 2>&5
 
1770
  ac_status=$?
 
1771
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1772
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1773
  { { case "(($ac_try" in
 
1774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1775
  *) ac_try_echo=$ac_try;;
 
1776
esac
 
1777
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1778
$as_echo "$ac_try_echo"; } >&5
 
1779
  (eval "$ac_try") 2>&5
 
1780
  ac_status=$?
 
1781
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1782
  test $ac_status = 0; }; }; then :
 
1783
  ac_retval=0
 
1784
else
 
1785
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1786
       $as_echo "$as_me: failed program was:" >&5
 
1787
sed 's/^/| /' conftest.$ac_ext >&5
 
1788
 
 
1789
       ac_retval=$ac_status
 
1790
fi
 
1791
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1792
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1793
  as_fn_set_status $ac_retval
 
1794
 
 
1795
} # ac_fn_c_try_run
 
1796
 
 
1797
# ac_fn_c_check_func LINENO FUNC VAR
 
1798
# ----------------------------------
 
1799
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1800
ac_fn_c_check_func ()
 
1801
{
 
1802
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1803
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1804
$as_echo_n "checking for $2... " >&6; }
 
1805
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1806
  $as_echo_n "(cached) " >&6
 
1807
else
 
1808
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1809
/* end confdefs.h.  */
 
1810
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1811
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1812
#define $2 innocuous_$2
 
1813
 
 
1814
/* System header to define __stub macros and hopefully few prototypes,
 
1815
    which can conflict with char $2 (); below.
 
1816
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1817
    <limits.h> exists even on freestanding compilers.  */
 
1818
 
 
1819
#ifdef __STDC__
 
1820
# include <limits.h>
 
1821
#else
 
1822
# include <assert.h>
 
1823
#endif
 
1824
 
 
1825
#undef $2
 
1826
 
 
1827
/* Override any GCC internal prototype to avoid an error.
 
1828
   Use char because int might match the return type of a GCC
 
1829
   builtin and then its argument prototype would still apply.  */
 
1830
#ifdef __cplusplus
 
1831
extern "C"
 
1832
#endif
 
1833
char $2 ();
 
1834
/* The GNU C library defines this for functions which it implements
 
1835
    to always fail with ENOSYS.  Some functions are actually named
 
1836
    something starting with __ and the normal name is an alias.  */
 
1837
#if defined __stub_$2 || defined __stub___$2
 
1838
choke me
 
1839
#endif
 
1840
 
 
1841
int
 
1842
main ()
 
1843
{
 
1844
return $2 ();
 
1845
  ;
 
1846
  return 0;
 
1847
}
 
1848
_ACEOF
 
1849
if ac_fn_c_try_link "$LINENO"; then :
 
1850
  eval "$3=yes"
 
1851
else
 
1852
  eval "$3=no"
 
1853
fi
 
1854
rm -f core conftest.err conftest.$ac_objext \
 
1855
    conftest$ac_exeext conftest.$ac_ext
 
1856
fi
 
1857
eval ac_res=\$$3
 
1858
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1859
$as_echo "$ac_res" >&6; }
 
1860
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1861
 
 
1862
} # ac_fn_c_check_func
 
1863
cat >config.log <<_ACEOF
 
1864
This file contains any messages produced by compilers while
 
1865
running configure, to aid debugging if configure makes a mistake.
 
1866
 
 
1867
It was created by Multitouch Protocol Translation Library $as_me 1.0.8, which was
 
1868
generated by GNU Autoconf 2.65.  Invocation command line was
 
1869
 
 
1870
  $ $0 $@
 
1871
 
 
1872
_ACEOF
 
1873
exec 5>>config.log
 
1874
{
 
1875
cat <<_ASUNAME
 
1876
## --------- ##
 
1877
## Platform. ##
 
1878
## --------- ##
 
1879
 
 
1880
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1881
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1882
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1883
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1884
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1885
 
 
1886
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1887
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1888
 
 
1889
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1890
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1891
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1892
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1893
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1894
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1895
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1896
 
 
1897
_ASUNAME
 
1898
 
 
1899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1900
for as_dir in $PATH
 
1901
do
 
1902
  IFS=$as_save_IFS
 
1903
  test -z "$as_dir" && as_dir=.
 
1904
    $as_echo "PATH: $as_dir"
 
1905
  done
 
1906
IFS=$as_save_IFS
 
1907
 
 
1908
} >&5
 
1909
 
 
1910
cat >&5 <<_ACEOF
 
1911
 
 
1912
 
 
1913
## ----------- ##
 
1914
## Core tests. ##
 
1915
## ----------- ##
 
1916
 
 
1917
_ACEOF
 
1918
 
 
1919
 
 
1920
# Keep a trace of the command line.
 
1921
# Strip out --no-create and --no-recursion so they do not pile up.
 
1922
# Strip out --silent because we don't want to record it for future runs.
 
1923
# Also quote any args containing shell meta-characters.
 
1924
# Make two passes to allow for proper duplicate-argument suppression.
 
1925
ac_configure_args=
 
1926
ac_configure_args0=
 
1927
ac_configure_args1=
 
1928
ac_must_keep_next=false
 
1929
for ac_pass in 1 2
 
1930
do
 
1931
  for ac_arg
 
1932
  do
 
1933
    case $ac_arg in
 
1934
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1935
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1936
    | -silent | --silent | --silen | --sile | --sil)
 
1937
      continue ;;
 
1938
    *\'*)
 
1939
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1940
    esac
 
1941
    case $ac_pass in
 
1942
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1943
    2)
 
1944
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1945
      if test $ac_must_keep_next = true; then
 
1946
        ac_must_keep_next=false # Got value, back to normal.
 
1947
      else
 
1948
        case $ac_arg in
 
1949
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1950
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1951
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1952
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1953
            case "$ac_configure_args0 " in
 
1954
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1955
            esac
 
1956
            ;;
 
1957
          -* ) ac_must_keep_next=true ;;
 
1958
        esac
 
1959
      fi
 
1960
      as_fn_append ac_configure_args " '$ac_arg'"
 
1961
      ;;
 
1962
    esac
 
1963
  done
 
1964
done
 
1965
{ ac_configure_args0=; unset ac_configure_args0;}
 
1966
{ ac_configure_args1=; unset ac_configure_args1;}
 
1967
 
 
1968
# When interrupted or exit'd, cleanup temporary files, and complete
 
1969
# config.log.  We remove comments because anyway the quotes in there
 
1970
# would cause problems or look ugly.
 
1971
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1972
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1973
trap 'exit_status=$?
 
1974
  # Save into config.log some information that might help in debugging.
 
1975
  {
 
1976
    echo
 
1977
 
 
1978
    cat <<\_ASBOX
 
1979
## ---------------- ##
 
1980
## Cache variables. ##
 
1981
## ---------------- ##
 
1982
_ASBOX
 
1983
    echo
 
1984
    # The following way of writing the cache mishandles newlines in values,
 
1985
(
 
1986
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1987
    eval ac_val=\$$ac_var
 
1988
    case $ac_val in #(
 
1989
    *${as_nl}*)
 
1990
      case $ac_var in #(
 
1991
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1992
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1993
      esac
 
1994
      case $ac_var in #(
 
1995
      _ | IFS | as_nl) ;; #(
 
1996
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1997
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1998
      esac ;;
 
1999
    esac
 
2000
  done
 
2001
  (set) 2>&1 |
 
2002
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2003
    *${as_nl}ac_space=\ *)
 
2004
      sed -n \
 
2005
        "s/'\''/'\''\\\\'\'''\''/g;
 
2006
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2007
      ;; #(
 
2008
    *)
 
2009
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2010
      ;;
 
2011
    esac |
 
2012
    sort
 
2013
)
 
2014
    echo
 
2015
 
 
2016
    cat <<\_ASBOX
 
2017
## ----------------- ##
 
2018
## Output variables. ##
 
2019
## ----------------- ##
 
2020
_ASBOX
 
2021
    echo
 
2022
    for ac_var in $ac_subst_vars
 
2023
    do
 
2024
      eval ac_val=\$$ac_var
 
2025
      case $ac_val in
 
2026
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2027
      esac
 
2028
      $as_echo "$ac_var='\''$ac_val'\''"
 
2029
    done | sort
 
2030
    echo
 
2031
 
 
2032
    if test -n "$ac_subst_files"; then
 
2033
      cat <<\_ASBOX
 
2034
## ------------------- ##
 
2035
## File substitutions. ##
 
2036
## ------------------- ##
 
2037
_ASBOX
 
2038
      echo
 
2039
      for ac_var in $ac_subst_files
 
2040
      do
 
2041
        eval ac_val=\$$ac_var
 
2042
        case $ac_val in
 
2043
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2044
        esac
 
2045
        $as_echo "$ac_var='\''$ac_val'\''"
 
2046
      done | sort
 
2047
      echo
 
2048
    fi
 
2049
 
 
2050
    if test -s confdefs.h; then
 
2051
      cat <<\_ASBOX
 
2052
## ----------- ##
 
2053
## confdefs.h. ##
 
2054
## ----------- ##
 
2055
_ASBOX
 
2056
      echo
 
2057
      cat confdefs.h
 
2058
      echo
 
2059
    fi
 
2060
    test "$ac_signal" != 0 &&
 
2061
      $as_echo "$as_me: caught signal $ac_signal"
 
2062
    $as_echo "$as_me: exit $exit_status"
 
2063
  } >&5
 
2064
  rm -f core *.core core.conftest.* &&
 
2065
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2066
    exit $exit_status
 
2067
' 0
 
2068
for ac_signal in 1 2 13 15; do
 
2069
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2070
done
 
2071
ac_signal=0
 
2072
 
 
2073
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2074
rm -f -r conftest* confdefs.h
 
2075
 
 
2076
$as_echo "/* confdefs.h */" > confdefs.h
 
2077
 
 
2078
# Predefined preprocessor variables.
 
2079
 
 
2080
cat >>confdefs.h <<_ACEOF
 
2081
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2082
_ACEOF
 
2083
 
 
2084
cat >>confdefs.h <<_ACEOF
 
2085
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2086
_ACEOF
 
2087
 
 
2088
cat >>confdefs.h <<_ACEOF
 
2089
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2090
_ACEOF
 
2091
 
 
2092
cat >>confdefs.h <<_ACEOF
 
2093
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2094
_ACEOF
 
2095
 
 
2096
cat >>confdefs.h <<_ACEOF
 
2097
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2098
_ACEOF
 
2099
 
 
2100
cat >>confdefs.h <<_ACEOF
 
2101
#define PACKAGE_URL "$PACKAGE_URL"
 
2102
_ACEOF
 
2103
 
 
2104
 
 
2105
# Let the site file select an alternate cache file if it wants to.
 
2106
# Prefer an explicitly selected file to automatically selected ones.
 
2107
ac_site_file1=NONE
 
2108
ac_site_file2=NONE
 
2109
if test -n "$CONFIG_SITE"; then
 
2110
  ac_site_file1=$CONFIG_SITE
 
2111
elif test "x$prefix" != xNONE; then
 
2112
  ac_site_file1=$prefix/share/config.site
 
2113
  ac_site_file2=$prefix/etc/config.site
 
2114
else
 
2115
  ac_site_file1=$ac_default_prefix/share/config.site
 
2116
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2117
fi
 
2118
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2119
do
 
2120
  test "x$ac_site_file" = xNONE && continue
 
2121
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2122
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2123
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2124
    sed 's/^/| /' "$ac_site_file" >&5
 
2125
    . "$ac_site_file"
 
2126
  fi
 
2127
done
 
2128
 
 
2129
if test -r "$cache_file"; then
 
2130
  # Some versions of bash will fail to source /dev/null (special files
 
2131
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2132
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2133
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2134
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2135
    case $cache_file in
 
2136
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2137
      *)                      . "./$cache_file";;
 
2138
    esac
 
2139
  fi
 
2140
else
 
2141
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2142
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2143
  >$cache_file
 
2144
fi
 
2145
 
 
2146
# Check that the precious variables saved in the cache have kept the same
 
2147
# value.
 
2148
ac_cache_corrupted=false
 
2149
for ac_var in $ac_precious_vars; do
 
2150
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2151
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2152
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2153
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2154
  case $ac_old_set,$ac_new_set in
 
2155
    set,)
 
2156
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2157
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2158
      ac_cache_corrupted=: ;;
 
2159
    ,set)
 
2160
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2161
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2162
      ac_cache_corrupted=: ;;
 
2163
    ,);;
 
2164
    *)
 
2165
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2166
        # differences in whitespace do not lead to failure.
 
2167
        ac_old_val_w=`echo x $ac_old_val`
 
2168
        ac_new_val_w=`echo x $ac_new_val`
 
2169
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2170
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2171
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2172
          ac_cache_corrupted=:
 
2173
        else
 
2174
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2175
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2176
          eval $ac_var=\$ac_old_val
 
2177
        fi
 
2178
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2179
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2180
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2181
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2182
      fi;;
 
2183
  esac
 
2184
  # Pass precious variables to config.status.
 
2185
  if test "$ac_new_set" = set; then
 
2186
    case $ac_new_val in
 
2187
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2188
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2189
    esac
 
2190
    case " $ac_configure_args " in
 
2191
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2192
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2193
    esac
 
2194
  fi
 
2195
done
 
2196
if $ac_cache_corrupted; then
 
2197
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2198
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2199
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2200
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2201
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2202
fi
 
2203
## -------------------- ##
 
2204
## Main body of script. ##
 
2205
## -------------------- ##
 
2206
 
 
2207
ac_ext=c
 
2208
ac_cpp='$CPP $CPPFLAGS'
 
2209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2212
 
 
2213
 
 
2214
 
 
2215
ac_config_headers="$ac_config_headers config.h"
 
2216
 
 
2217
ac_aux_dir=
 
2218
for ac_dir in config-aux "$srcdir"/config-aux; do
 
2219
  for ac_t in install-sh install.sh shtool; do
 
2220
    if test -f "$ac_dir/$ac_t"; then
 
2221
      ac_aux_dir=$ac_dir
 
2222
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2223
      break 2
 
2224
    fi
 
2225
  done
 
2226
done
 
2227
if test -z "$ac_aux_dir"; then
 
2228
  as_fn_error "cannot find install-sh, install.sh, or shtool in config-aux \"$srcdir\"/config-aux" "$LINENO" 5
 
2229
fi
 
2230
 
 
2231
# These three variables are undocumented and unsupported,
 
2232
# and are intended to be withdrawn in a future Autoconf release.
 
2233
# They can cause serious problems if a builder's source tree is in a directory
 
2234
# whose full name contains unusual characters.
 
2235
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2236
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2237
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2238
 
 
2239
 
 
2240
 
 
2241
# Initialize Automake
 
2242
am__api_version='1.11'
 
2243
 
 
2244
# Find a good install program.  We prefer a C program (faster),
 
2245
# so one script is as good as another.  But avoid the broken or
 
2246
# incompatible versions:
 
2247
# SysV /etc/install, /usr/sbin/install
 
2248
# SunOS /usr/etc/install
 
2249
# IRIX /sbin/install
 
2250
# AIX /bin/install
 
2251
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2252
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2253
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2254
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2255
# OS/2's system install, which has a completely different semantic
 
2256
# ./install, which can be erroneously created by make from ./install.sh.
 
2257
# Reject install programs that cannot install multiple files.
 
2258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2259
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2260
if test -z "$INSTALL"; then
 
2261
if test "${ac_cv_path_install+set}" = set; then :
 
2262
  $as_echo_n "(cached) " >&6
 
2263
else
 
2264
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2265
for as_dir in $PATH
 
2266
do
 
2267
  IFS=$as_save_IFS
 
2268
  test -z "$as_dir" && as_dir=.
 
2269
    # Account for people who put trailing slashes in PATH elements.
 
2270
case $as_dir/ in #((
 
2271
  ./ | .// | /[cC]/* | \
 
2272
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2273
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2274
  /usr/ucb/* ) ;;
 
2275
  *)
 
2276
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2277
    # Don't use installbsd from OSF since it installs stuff as root
 
2278
    # by default.
 
2279
    for ac_prog in ginstall scoinst install; do
 
2280
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2281
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2282
          if test $ac_prog = install &&
 
2283
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2284
            # AIX install.  It has an incompatible calling convention.
 
2285
            :
 
2286
          elif test $ac_prog = install &&
 
2287
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2288
            # program-specific install script used by HP pwplus--don't use.
 
2289
            :
 
2290
          else
 
2291
            rm -rf conftest.one conftest.two conftest.dir
 
2292
            echo one > conftest.one
 
2293
            echo two > conftest.two
 
2294
            mkdir conftest.dir
 
2295
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2296
              test -s conftest.one && test -s conftest.two &&
 
2297
              test -s conftest.dir/conftest.one &&
 
2298
              test -s conftest.dir/conftest.two
 
2299
            then
 
2300
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2301
              break 3
 
2302
            fi
 
2303
          fi
 
2304
        fi
 
2305
      done
 
2306
    done
 
2307
    ;;
 
2308
esac
 
2309
 
 
2310
  done
 
2311
IFS=$as_save_IFS
 
2312
 
 
2313
rm -rf conftest.one conftest.two conftest.dir
 
2314
 
 
2315
fi
 
2316
  if test "${ac_cv_path_install+set}" = set; then
 
2317
    INSTALL=$ac_cv_path_install
 
2318
  else
 
2319
    # As a last resort, use the slow shell script.  Don't cache a
 
2320
    # value for INSTALL within a source directory, because that will
 
2321
    # break other packages using the cache if that directory is
 
2322
    # removed, or if the value is a relative name.
 
2323
    INSTALL=$ac_install_sh
 
2324
  fi
 
2325
fi
 
2326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2327
$as_echo "$INSTALL" >&6; }
 
2328
 
 
2329
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2330
# It thinks the first close brace ends the variable substitution.
 
2331
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2332
 
 
2333
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2334
 
 
2335
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2336
 
 
2337
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2338
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2339
# Just in case
 
2340
sleep 1
 
2341
echo timestamp > conftest.file
 
2342
# Reject unsafe characters in $srcdir or the absolute working directory
 
2343
# name.  Accept space and tab only in the latter.
 
2344
am_lf='
 
2345
'
 
2346
case `pwd` in
 
2347
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2348
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2349
esac
 
2350
case $srcdir in
 
2351
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2352
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2353
esac
 
2354
 
 
2355
# Do `set' in a subshell so we don't clobber the current shell's
 
2356
# arguments.  Must try -L first in case configure is actually a
 
2357
# symlink; some systems play weird games with the mod time of symlinks
 
2358
# (eg FreeBSD returns the mod time of the symlink's containing
 
2359
# directory).
 
2360
if (
 
2361
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2362
   if test "$*" = "X"; then
 
2363
      # -L didn't work.
 
2364
      set X `ls -t "$srcdir/configure" conftest.file`
 
2365
   fi
 
2366
   rm -f conftest.file
 
2367
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2368
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2369
 
 
2370
      # If neither matched, then we have a broken ls.  This can happen
 
2371
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2372
      # broken ls alias from the environment.  This has actually
 
2373
      # happened.  Such a system could not be considered "sane".
 
2374
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2375
alias in your environment" "$LINENO" 5
 
2376
   fi
 
2377
 
 
2378
   test "$2" = conftest.file
 
2379
   )
 
2380
then
 
2381
   # Ok.
 
2382
   :
 
2383
else
 
2384
   as_fn_error "newly created file is older than distributed files!
 
2385
Check your system clock" "$LINENO" 5
 
2386
fi
 
2387
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2388
$as_echo "yes" >&6; }
 
2389
test "$program_prefix" != NONE &&
 
2390
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2391
# Use a double $ so make ignores it.
 
2392
test "$program_suffix" != NONE &&
 
2393
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2394
# Double any \ or $.
 
2395
# By default was `s,x,x', remove it if useless.
 
2396
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2397
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2398
 
 
2399
# expand $ac_aux_dir to an absolute path
 
2400
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2401
 
 
2402
if test x"${MISSING+set}" != xset; then
 
2403
  case $am_aux_dir in
 
2404
  *\ * | *\     *)
 
2405
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2406
  *)
 
2407
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2408
  esac
 
2409
fi
 
2410
# Use eval to expand $SHELL
 
2411
if eval "$MISSING --run true"; then
 
2412
  am_missing_run="$MISSING --run "
 
2413
else
 
2414
  am_missing_run=
 
2415
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2416
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2417
fi
 
2418
 
 
2419
if test x"${install_sh}" != xset; then
 
2420
  case $am_aux_dir in
 
2421
  *\ * | *\     *)
 
2422
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2423
  *)
 
2424
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2425
  esac
 
2426
fi
 
2427
 
 
2428
# Installed binaries are usually stripped using `strip' when the user
 
2429
# run `make install-strip'.  However `strip' might not be the right
 
2430
# tool to use in cross-compilation environments, therefore Automake
 
2431
# will honor the `STRIP' environment variable to overrule this program.
 
2432
if test "$cross_compiling" != no; then
 
2433
  if test -n "$ac_tool_prefix"; then
 
2434
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2435
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2437
$as_echo_n "checking for $ac_word... " >&6; }
 
2438
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2439
  $as_echo_n "(cached) " >&6
 
2440
else
 
2441
  if test -n "$STRIP"; then
 
2442
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2443
else
 
2444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2445
for as_dir in $PATH
 
2446
do
 
2447
  IFS=$as_save_IFS
 
2448
  test -z "$as_dir" && as_dir=.
 
2449
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2450
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2451
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2452
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2453
    break 2
 
2454
  fi
 
2455
done
 
2456
  done
 
2457
IFS=$as_save_IFS
 
2458
 
 
2459
fi
 
2460
fi
 
2461
STRIP=$ac_cv_prog_STRIP
 
2462
if test -n "$STRIP"; then
 
2463
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2464
$as_echo "$STRIP" >&6; }
 
2465
else
 
2466
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2467
$as_echo "no" >&6; }
 
2468
fi
 
2469
 
 
2470
 
 
2471
fi
 
2472
if test -z "$ac_cv_prog_STRIP"; then
 
2473
  ac_ct_STRIP=$STRIP
 
2474
  # Extract the first word of "strip", so it can be a program name with args.
 
2475
set dummy strip; ac_word=$2
 
2476
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2477
$as_echo_n "checking for $ac_word... " >&6; }
 
2478
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2479
  $as_echo_n "(cached) " >&6
 
2480
else
 
2481
  if test -n "$ac_ct_STRIP"; then
 
2482
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2483
else
 
2484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2485
for as_dir in $PATH
 
2486
do
 
2487
  IFS=$as_save_IFS
 
2488
  test -z "$as_dir" && as_dir=.
 
2489
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2490
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2491
    ac_cv_prog_ac_ct_STRIP="strip"
 
2492
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2493
    break 2
 
2494
  fi
 
2495
done
 
2496
  done
 
2497
IFS=$as_save_IFS
 
2498
 
 
2499
fi
 
2500
fi
 
2501
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2502
if test -n "$ac_ct_STRIP"; then
 
2503
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2504
$as_echo "$ac_ct_STRIP" >&6; }
 
2505
else
 
2506
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2507
$as_echo "no" >&6; }
 
2508
fi
 
2509
 
 
2510
  if test "x$ac_ct_STRIP" = x; then
 
2511
    STRIP=":"
 
2512
  else
 
2513
    case $cross_compiling:$ac_tool_warned in
 
2514
yes:)
 
2515
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2516
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2517
ac_tool_warned=yes ;;
 
2518
esac
 
2519
    STRIP=$ac_ct_STRIP
 
2520
  fi
 
2521
else
 
2522
  STRIP="$ac_cv_prog_STRIP"
 
2523
fi
 
2524
 
 
2525
fi
 
2526
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2527
 
 
2528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2529
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2530
if test -z "$MKDIR_P"; then
 
2531
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2532
  $as_echo_n "(cached) " >&6
 
2533
else
 
2534
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2535
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2536
do
 
2537
  IFS=$as_save_IFS
 
2538
  test -z "$as_dir" && as_dir=.
 
2539
    for ac_prog in mkdir gmkdir; do
 
2540
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2541
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2542
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2543
             'mkdir (GNU coreutils) '* | \
 
2544
             'mkdir (coreutils) '* | \
 
2545
             'mkdir (fileutils) '4.1*)
 
2546
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2547
               break 3;;
 
2548
           esac
 
2549
         done
 
2550
       done
 
2551
  done
 
2552
IFS=$as_save_IFS
 
2553
 
 
2554
fi
 
2555
 
 
2556
  test -d ./--version && rmdir ./--version
 
2557
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2558
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2559
  else
 
2560
    # As a last resort, use the slow shell script.  Don't cache a
 
2561
    # value for MKDIR_P within a source directory, because that will
 
2562
    # break other packages using the cache if that directory is
 
2563
    # removed, or if the value is a relative name.
 
2564
    MKDIR_P="$ac_install_sh -d"
 
2565
  fi
 
2566
fi
 
2567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2568
$as_echo "$MKDIR_P" >&6; }
 
2569
 
 
2570
mkdir_p="$MKDIR_P"
 
2571
case $mkdir_p in
 
2572
  [\\/$]* | ?:[\\/]*) ;;
 
2573
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2574
esac
 
2575
 
 
2576
for ac_prog in gawk mawk nawk awk
 
2577
do
 
2578
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2579
set dummy $ac_prog; ac_word=$2
 
2580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2581
$as_echo_n "checking for $ac_word... " >&6; }
 
2582
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2583
  $as_echo_n "(cached) " >&6
 
2584
else
 
2585
  if test -n "$AWK"; then
 
2586
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2587
else
 
2588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2589
for as_dir in $PATH
 
2590
do
 
2591
  IFS=$as_save_IFS
 
2592
  test -z "$as_dir" && as_dir=.
 
2593
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2594
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2595
    ac_cv_prog_AWK="$ac_prog"
 
2596
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2597
    break 2
 
2598
  fi
 
2599
done
 
2600
  done
 
2601
IFS=$as_save_IFS
 
2602
 
 
2603
fi
 
2604
fi
 
2605
AWK=$ac_cv_prog_AWK
 
2606
if test -n "$AWK"; then
 
2607
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2608
$as_echo "$AWK" >&6; }
 
2609
else
 
2610
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2611
$as_echo "no" >&6; }
 
2612
fi
 
2613
 
 
2614
 
 
2615
  test -n "$AWK" && break
 
2616
done
 
2617
 
 
2618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2619
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2620
set x ${MAKE-make}
 
2621
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2622
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2623
  $as_echo_n "(cached) " >&6
 
2624
else
 
2625
  cat >conftest.make <<\_ACEOF
 
2626
SHELL = /bin/sh
 
2627
all:
 
2628
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2629
_ACEOF
 
2630
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2631
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2632
  *@@@%%%=?*=@@@%%%*)
 
2633
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2634
  *)
 
2635
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2636
esac
 
2637
rm -f conftest.make
 
2638
fi
 
2639
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2640
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2641
$as_echo "yes" >&6; }
 
2642
  SET_MAKE=
 
2643
else
 
2644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2645
$as_echo "no" >&6; }
 
2646
  SET_MAKE="MAKE=${MAKE-make}"
 
2647
fi
 
2648
 
 
2649
rm -rf .tst 2>/dev/null
 
2650
mkdir .tst 2>/dev/null
 
2651
if test -d .tst; then
 
2652
  am__leading_dot=.
 
2653
else
 
2654
  am__leading_dot=_
 
2655
fi
 
2656
rmdir .tst 2>/dev/null
 
2657
 
 
2658
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2659
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2660
  # is not polluted with repeated "-I."
 
2661
  am__isrc=' -I$(srcdir)'
 
2662
  # test to see if srcdir already configured
 
2663
  if test -f $srcdir/config.status; then
 
2664
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2665
  fi
 
2666
fi
 
2667
 
 
2668
# test whether we have cygpath
 
2669
if test -z "$CYGPATH_W"; then
 
2670
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2671
    CYGPATH_W='cygpath -w'
 
2672
  else
 
2673
    CYGPATH_W=echo
 
2674
  fi
 
2675
fi
 
2676
 
 
2677
 
 
2678
# Define the identity of the package.
 
2679
 PACKAGE='mtdev'
 
2680
 VERSION='1.0.8'
 
2681
 
 
2682
 
 
2683
cat >>confdefs.h <<_ACEOF
 
2684
#define PACKAGE "$PACKAGE"
 
2685
_ACEOF
 
2686
 
 
2687
 
 
2688
cat >>confdefs.h <<_ACEOF
 
2689
#define VERSION "$VERSION"
 
2690
_ACEOF
 
2691
 
 
2692
# Some tools Automake needs.
 
2693
 
 
2694
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2695
 
 
2696
 
 
2697
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2698
 
 
2699
 
 
2700
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2701
 
 
2702
 
 
2703
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2704
 
 
2705
 
 
2706
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2707
 
 
2708
# We need awk for the "check" target.  The system "awk" is bad on
 
2709
# some platforms.
 
2710
# Always define AMTAR for backward compatibility.
 
2711
 
 
2712
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2713
 
 
2714
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2715
 
 
2716
 
 
2717
 
 
2718
 
 
2719
 
 
2720
 
 
2721
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2722
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2723
    # Check whether --enable-maintainer-mode was given.
 
2724
if test "${enable_maintainer_mode+set}" = set; then :
 
2725
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2726
else
 
2727
  USE_MAINTAINER_MODE=no
 
2728
fi
 
2729
 
 
2730
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2731
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2732
   if test $USE_MAINTAINER_MODE = yes; then
 
2733
  MAINTAINER_MODE_TRUE=
 
2734
  MAINTAINER_MODE_FALSE='#'
 
2735
else
 
2736
  MAINTAINER_MODE_TRUE='#'
 
2737
  MAINTAINER_MODE_FALSE=
 
2738
fi
 
2739
 
 
2740
  MAINT=$MAINTAINER_MODE_TRUE
 
2741
 
 
2742
 
 
2743
 
 
2744
LIB_VERSION=1:0:0
 
2745
 
 
2746
 
 
2747
# Initialize libtool
 
2748
case `pwd` in
 
2749
  *\ * | *\     *)
 
2750
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2751
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2752
esac
 
2753
 
 
2754
 
 
2755
 
 
2756
macro_version='2.2.6b'
 
2757
macro_revision='1.3017'
 
2758
 
 
2759
 
 
2760
 
 
2761
 
 
2762
 
 
2763
 
 
2764
 
 
2765
 
 
2766
 
 
2767
 
 
2768
 
 
2769
 
 
2770
 
 
2771
ltmain="$ac_aux_dir/ltmain.sh"
 
2772
 
 
2773
# Make sure we can run config.sub.
 
2774
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2775
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2776
 
 
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2778
$as_echo_n "checking build system type... " >&6; }
 
2779
if test "${ac_cv_build+set}" = set; then :
 
2780
  $as_echo_n "(cached) " >&6
 
2781
else
 
2782
  ac_build_alias=$build_alias
 
2783
test "x$ac_build_alias" = x &&
 
2784
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2785
test "x$ac_build_alias" = x &&
 
2786
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2787
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2788
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2789
 
 
2790
fi
 
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2792
$as_echo "$ac_cv_build" >&6; }
 
2793
case $ac_cv_build in
 
2794
*-*-*) ;;
 
2795
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2796
esac
 
2797
build=$ac_cv_build
 
2798
ac_save_IFS=$IFS; IFS='-'
 
2799
set x $ac_cv_build
 
2800
shift
 
2801
build_cpu=$1
 
2802
build_vendor=$2
 
2803
shift; shift
 
2804
# Remember, the first character of IFS is used to create $*,
 
2805
# except with old shells:
 
2806
build_os=$*
 
2807
IFS=$ac_save_IFS
 
2808
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2809
 
 
2810
 
 
2811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2812
$as_echo_n "checking host system type... " >&6; }
 
2813
if test "${ac_cv_host+set}" = set; then :
 
2814
  $as_echo_n "(cached) " >&6
 
2815
else
 
2816
  if test "x$host_alias" = x; then
 
2817
  ac_cv_host=$ac_cv_build
 
2818
else
 
2819
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2820
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2821
fi
 
2822
 
 
2823
fi
 
2824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2825
$as_echo "$ac_cv_host" >&6; }
 
2826
case $ac_cv_host in
 
2827
*-*-*) ;;
 
2828
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2829
esac
 
2830
host=$ac_cv_host
 
2831
ac_save_IFS=$IFS; IFS='-'
 
2832
set x $ac_cv_host
 
2833
shift
 
2834
host_cpu=$1
 
2835
host_vendor=$2
 
2836
shift; shift
 
2837
# Remember, the first character of IFS is used to create $*,
 
2838
# except with old shells:
 
2839
host_os=$*
 
2840
IFS=$ac_save_IFS
 
2841
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2842
 
 
2843
 
 
2844
DEPDIR="${am__leading_dot}deps"
 
2845
 
 
2846
ac_config_commands="$ac_config_commands depfiles"
 
2847
 
 
2848
 
 
2849
am_make=${MAKE-make}
 
2850
cat > confinc << 'END'
 
2851
am__doit:
 
2852
        @echo this is the am__doit target
 
2853
.PHONY: am__doit
 
2854
END
 
2855
# If we don't find an include directive, just comment out the code.
 
2856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2857
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2858
am__include="#"
 
2859
am__quote=
 
2860
_am_result=none
 
2861
# First try GNU make style include.
 
2862
echo "include confinc" > confmf
 
2863
# Ignore all kinds of additional output from `make'.
 
2864
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2865
*the\ am__doit\ target*)
 
2866
  am__include=include
 
2867
  am__quote=
 
2868
  _am_result=GNU
 
2869
  ;;
 
2870
esac
 
2871
# Now try BSD make style include.
 
2872
if test "$am__include" = "#"; then
 
2873
   echo '.include "confinc"' > confmf
 
2874
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2875
   *the\ am__doit\ target*)
 
2876
     am__include=.include
 
2877
     am__quote="\""
 
2878
     _am_result=BSD
 
2879
     ;;
 
2880
   esac
 
2881
fi
 
2882
 
 
2883
 
 
2884
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
2885
$as_echo "$_am_result" >&6; }
 
2886
rm -f confinc confmf
 
2887
 
 
2888
# Check whether --enable-dependency-tracking was given.
 
2889
if test "${enable_dependency_tracking+set}" = set; then :
 
2890
  enableval=$enable_dependency_tracking;
 
2891
fi
 
2892
 
 
2893
if test "x$enable_dependency_tracking" != xno; then
 
2894
  am_depcomp="$ac_aux_dir/depcomp"
 
2895
  AMDEPBACKSLASH='\'
 
2896
fi
 
2897
 if test "x$enable_dependency_tracking" != xno; then
 
2898
  AMDEP_TRUE=
 
2899
  AMDEP_FALSE='#'
 
2900
else
 
2901
  AMDEP_TRUE='#'
 
2902
  AMDEP_FALSE=
 
2903
fi
 
2904
 
 
2905
 
 
2906
ac_ext=c
 
2907
ac_cpp='$CPP $CPPFLAGS'
 
2908
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2909
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2910
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2911
if test -n "$ac_tool_prefix"; then
 
2912
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2913
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2914
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2915
$as_echo_n "checking for $ac_word... " >&6; }
 
2916
if test "${ac_cv_prog_CC+set}" = set; then :
 
2917
  $as_echo_n "(cached) " >&6
 
2918
else
 
2919
  if test -n "$CC"; then
 
2920
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2921
else
 
2922
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2923
for as_dir in $PATH
 
2924
do
 
2925
  IFS=$as_save_IFS
 
2926
  test -z "$as_dir" && as_dir=.
 
2927
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2928
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2929
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2930
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2931
    break 2
 
2932
  fi
 
2933
done
 
2934
  done
 
2935
IFS=$as_save_IFS
 
2936
 
 
2937
fi
 
2938
fi
 
2939
CC=$ac_cv_prog_CC
 
2940
if test -n "$CC"; then
 
2941
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2942
$as_echo "$CC" >&6; }
 
2943
else
 
2944
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2945
$as_echo "no" >&6; }
 
2946
fi
 
2947
 
 
2948
 
 
2949
fi
 
2950
if test -z "$ac_cv_prog_CC"; then
 
2951
  ac_ct_CC=$CC
 
2952
  # Extract the first word of "gcc", so it can be a program name with args.
 
2953
set dummy gcc; ac_word=$2
 
2954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2955
$as_echo_n "checking for $ac_word... " >&6; }
 
2956
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2957
  $as_echo_n "(cached) " >&6
 
2958
else
 
2959
  if test -n "$ac_ct_CC"; then
 
2960
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2961
else
 
2962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2963
for as_dir in $PATH
 
2964
do
 
2965
  IFS=$as_save_IFS
 
2966
  test -z "$as_dir" && as_dir=.
 
2967
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2968
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2969
    ac_cv_prog_ac_ct_CC="gcc"
 
2970
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2971
    break 2
 
2972
  fi
 
2973
done
 
2974
  done
 
2975
IFS=$as_save_IFS
 
2976
 
 
2977
fi
 
2978
fi
 
2979
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2980
if test -n "$ac_ct_CC"; then
 
2981
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2982
$as_echo "$ac_ct_CC" >&6; }
 
2983
else
 
2984
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2985
$as_echo "no" >&6; }
 
2986
fi
 
2987
 
 
2988
  if test "x$ac_ct_CC" = x; then
 
2989
    CC=""
 
2990
  else
 
2991
    case $cross_compiling:$ac_tool_warned in
 
2992
yes:)
 
2993
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2994
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2995
ac_tool_warned=yes ;;
 
2996
esac
 
2997
    CC=$ac_ct_CC
 
2998
  fi
 
2999
else
 
3000
  CC="$ac_cv_prog_CC"
 
3001
fi
 
3002
 
 
3003
if test -z "$CC"; then
 
3004
          if test -n "$ac_tool_prefix"; then
 
3005
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3006
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3008
$as_echo_n "checking for $ac_word... " >&6; }
 
3009
if test "${ac_cv_prog_CC+set}" = set; then :
 
3010
  $as_echo_n "(cached) " >&6
 
3011
else
 
3012
  if test -n "$CC"; then
 
3013
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3014
else
 
3015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3016
for as_dir in $PATH
 
3017
do
 
3018
  IFS=$as_save_IFS
 
3019
  test -z "$as_dir" && as_dir=.
 
3020
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3021
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3022
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3023
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3024
    break 2
 
3025
  fi
 
3026
done
 
3027
  done
 
3028
IFS=$as_save_IFS
 
3029
 
 
3030
fi
 
3031
fi
 
3032
CC=$ac_cv_prog_CC
 
3033
if test -n "$CC"; then
 
3034
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3035
$as_echo "$CC" >&6; }
 
3036
else
 
3037
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3038
$as_echo "no" >&6; }
 
3039
fi
 
3040
 
 
3041
 
 
3042
  fi
 
3043
fi
 
3044
if test -z "$CC"; then
 
3045
  # Extract the first word of "cc", so it can be a program name with args.
 
3046
set dummy cc; ac_word=$2
 
3047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3048
$as_echo_n "checking for $ac_word... " >&6; }
 
3049
if test "${ac_cv_prog_CC+set}" = set; then :
 
3050
  $as_echo_n "(cached) " >&6
 
3051
else
 
3052
  if test -n "$CC"; then
 
3053
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3054
else
 
3055
  ac_prog_rejected=no
 
3056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3057
for as_dir in $PATH
 
3058
do
 
3059
  IFS=$as_save_IFS
 
3060
  test -z "$as_dir" && as_dir=.
 
3061
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3062
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3063
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3064
       ac_prog_rejected=yes
 
3065
       continue
 
3066
     fi
 
3067
    ac_cv_prog_CC="cc"
 
3068
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3069
    break 2
 
3070
  fi
 
3071
done
 
3072
  done
 
3073
IFS=$as_save_IFS
 
3074
 
 
3075
if test $ac_prog_rejected = yes; then
 
3076
  # We found a bogon in the path, so make sure we never use it.
 
3077
  set dummy $ac_cv_prog_CC
 
3078
  shift
 
3079
  if test $# != 0; then
 
3080
    # We chose a different compiler from the bogus one.
 
3081
    # However, it has the same basename, so the bogon will be chosen
 
3082
    # first if we set CC to just the basename; use the full file name.
 
3083
    shift
 
3084
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3085
  fi
 
3086
fi
 
3087
fi
 
3088
fi
 
3089
CC=$ac_cv_prog_CC
 
3090
if test -n "$CC"; then
 
3091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3092
$as_echo "$CC" >&6; }
 
3093
else
 
3094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3095
$as_echo "no" >&6; }
 
3096
fi
 
3097
 
 
3098
 
 
3099
fi
 
3100
if test -z "$CC"; then
 
3101
  if test -n "$ac_tool_prefix"; then
 
3102
  for ac_prog in cl.exe
 
3103
  do
 
3104
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3105
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3107
$as_echo_n "checking for $ac_word... " >&6; }
 
3108
if test "${ac_cv_prog_CC+set}" = set; then :
 
3109
  $as_echo_n "(cached) " >&6
 
3110
else
 
3111
  if test -n "$CC"; then
 
3112
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3113
else
 
3114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3115
for as_dir in $PATH
 
3116
do
 
3117
  IFS=$as_save_IFS
 
3118
  test -z "$as_dir" && as_dir=.
 
3119
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3121
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3123
    break 2
 
3124
  fi
 
3125
done
 
3126
  done
 
3127
IFS=$as_save_IFS
 
3128
 
 
3129
fi
 
3130
fi
 
3131
CC=$ac_cv_prog_CC
 
3132
if test -n "$CC"; then
 
3133
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3134
$as_echo "$CC" >&6; }
 
3135
else
 
3136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3137
$as_echo "no" >&6; }
 
3138
fi
 
3139
 
 
3140
 
 
3141
    test -n "$CC" && break
 
3142
  done
 
3143
fi
 
3144
if test -z "$CC"; then
 
3145
  ac_ct_CC=$CC
 
3146
  for ac_prog in cl.exe
 
3147
do
 
3148
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3149
set dummy $ac_prog; ac_word=$2
 
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3151
$as_echo_n "checking for $ac_word... " >&6; }
 
3152
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3153
  $as_echo_n "(cached) " >&6
 
3154
else
 
3155
  if test -n "$ac_ct_CC"; then
 
3156
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3157
else
 
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3159
for as_dir in $PATH
 
3160
do
 
3161
  IFS=$as_save_IFS
 
3162
  test -z "$as_dir" && as_dir=.
 
3163
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3165
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3166
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3167
    break 2
 
3168
  fi
 
3169
done
 
3170
  done
 
3171
IFS=$as_save_IFS
 
3172
 
 
3173
fi
 
3174
fi
 
3175
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3176
if test -n "$ac_ct_CC"; then
 
3177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3178
$as_echo "$ac_ct_CC" >&6; }
 
3179
else
 
3180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3181
$as_echo "no" >&6; }
 
3182
fi
 
3183
 
 
3184
 
 
3185
  test -n "$ac_ct_CC" && break
 
3186
done
 
3187
 
 
3188
  if test "x$ac_ct_CC" = x; then
 
3189
    CC=""
 
3190
  else
 
3191
    case $cross_compiling:$ac_tool_warned in
 
3192
yes:)
 
3193
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3194
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3195
ac_tool_warned=yes ;;
 
3196
esac
 
3197
    CC=$ac_ct_CC
 
3198
  fi
 
3199
fi
 
3200
 
 
3201
fi
 
3202
 
 
3203
 
 
3204
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3205
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3206
as_fn_error "no acceptable C compiler found in \$PATH
 
3207
See \`config.log' for more details." "$LINENO" 5; }
 
3208
 
 
3209
# Provide some information about the compiler.
 
3210
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3211
set X $ac_compile
 
3212
ac_compiler=$2
 
3213
for ac_option in --version -v -V -qversion; do
 
3214
  { { ac_try="$ac_compiler $ac_option >&5"
 
3215
case "(($ac_try" in
 
3216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3217
  *) ac_try_echo=$ac_try;;
 
3218
esac
 
3219
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3220
$as_echo "$ac_try_echo"; } >&5
 
3221
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3222
  ac_status=$?
 
3223
  if test -s conftest.err; then
 
3224
    sed '10a\
 
3225
... rest of stderr output deleted ...
 
3226
         10q' conftest.err >conftest.er1
 
3227
    cat conftest.er1 >&5
 
3228
  fi
 
3229
  rm -f conftest.er1 conftest.err
 
3230
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3231
  test $ac_status = 0; }
 
3232
done
 
3233
 
 
3234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3235
/* end confdefs.h.  */
 
3236
 
 
3237
int
 
3238
main ()
 
3239
{
 
3240
 
 
3241
  ;
 
3242
  return 0;
 
3243
}
 
3244
_ACEOF
 
3245
ac_clean_files_save=$ac_clean_files
 
3246
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3247
# Try to create an executable without -o first, disregard a.out.
 
3248
# It will help us diagnose broken compilers, and finding out an intuition
 
3249
# of exeext.
 
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3251
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3252
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3253
 
 
3254
# The possible output files:
 
3255
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3256
 
 
3257
ac_rmfiles=
 
3258
for ac_file in $ac_files
 
3259
do
 
3260
  case $ac_file in
 
3261
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3262
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3263
  esac
 
3264
done
 
3265
rm -f $ac_rmfiles
 
3266
 
 
3267
if { { ac_try="$ac_link_default"
 
3268
case "(($ac_try" in
 
3269
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3270
  *) ac_try_echo=$ac_try;;
 
3271
esac
 
3272
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3273
$as_echo "$ac_try_echo"; } >&5
 
3274
  (eval "$ac_link_default") 2>&5
 
3275
  ac_status=$?
 
3276
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3277
  test $ac_status = 0; }; then :
 
3278
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3279
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3280
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3281
# so that the user can short-circuit this test for compilers unknown to
 
3282
# Autoconf.
 
3283
for ac_file in $ac_files ''
 
3284
do
 
3285
  test -f "$ac_file" || continue
 
3286
  case $ac_file in
 
3287
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3288
        ;;
 
3289
    [ab].out )
 
3290
        # We found the default executable, but exeext='' is most
 
3291
        # certainly right.
 
3292
        break;;
 
3293
    *.* )
 
3294
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3295
        then :; else
 
3296
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3297
        fi
 
3298
        # We set ac_cv_exeext here because the later test for it is not
 
3299
        # safe: cross compilers may not add the suffix if given an `-o'
 
3300
        # argument, so we may need to know it at that point already.
 
3301
        # Even if this section looks crufty: it has the advantage of
 
3302
        # actually working.
 
3303
        break;;
 
3304
    * )
 
3305
        break;;
 
3306
  esac
 
3307
done
 
3308
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3309
 
 
3310
else
 
3311
  ac_file=''
 
3312
fi
 
3313
if test -z "$ac_file"; then :
 
3314
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3315
$as_echo "no" >&6; }
 
3316
$as_echo "$as_me: failed program was:" >&5
 
3317
sed 's/^/| /' conftest.$ac_ext >&5
 
3318
 
 
3319
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3320
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3321
{ as_fn_set_status 77
 
3322
as_fn_error "C compiler cannot create executables
 
3323
See \`config.log' for more details." "$LINENO" 5; }; }
 
3324
else
 
3325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3326
$as_echo "yes" >&6; }
 
3327
fi
 
3328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3329
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3331
$as_echo "$ac_file" >&6; }
 
3332
ac_exeext=$ac_cv_exeext
 
3333
 
 
3334
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3335
ac_clean_files=$ac_clean_files_save
 
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3337
$as_echo_n "checking for suffix of executables... " >&6; }
 
3338
if { { ac_try="$ac_link"
 
3339
case "(($ac_try" in
 
3340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3341
  *) ac_try_echo=$ac_try;;
 
3342
esac
 
3343
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3344
$as_echo "$ac_try_echo"; } >&5
 
3345
  (eval "$ac_link") 2>&5
 
3346
  ac_status=$?
 
3347
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3348
  test $ac_status = 0; }; then :
 
3349
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3350
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3351
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3352
# `rm'.
 
3353
for ac_file in conftest.exe conftest conftest.*; do
 
3354
  test -f "$ac_file" || continue
 
3355
  case $ac_file in
 
3356
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3357
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3358
          break;;
 
3359
    * ) break;;
 
3360
  esac
 
3361
done
 
3362
else
 
3363
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3364
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3365
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3366
See \`config.log' for more details." "$LINENO" 5; }
 
3367
fi
 
3368
rm -f conftest conftest$ac_cv_exeext
 
3369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3370
$as_echo "$ac_cv_exeext" >&6; }
 
3371
 
 
3372
rm -f conftest.$ac_ext
 
3373
EXEEXT=$ac_cv_exeext
 
3374
ac_exeext=$EXEEXT
 
3375
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3376
/* end confdefs.h.  */
 
3377
#include <stdio.h>
 
3378
int
 
3379
main ()
 
3380
{
 
3381
FILE *f = fopen ("conftest.out", "w");
 
3382
 return ferror (f) || fclose (f) != 0;
 
3383
 
 
3384
  ;
 
3385
  return 0;
 
3386
}
 
3387
_ACEOF
 
3388
ac_clean_files="$ac_clean_files conftest.out"
 
3389
# Check that the compiler produces executables we can run.  If not, either
 
3390
# the compiler is broken, or we cross compile.
 
3391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3392
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3393
if test "$cross_compiling" != yes; then
 
3394
  { { ac_try="$ac_link"
 
3395
case "(($ac_try" in
 
3396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3397
  *) ac_try_echo=$ac_try;;
 
3398
esac
 
3399
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3400
$as_echo "$ac_try_echo"; } >&5
 
3401
  (eval "$ac_link") 2>&5
 
3402
  ac_status=$?
 
3403
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3404
  test $ac_status = 0; }
 
3405
  if { ac_try='./conftest$ac_cv_exeext'
 
3406
  { { case "(($ac_try" in
 
3407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3408
  *) ac_try_echo=$ac_try;;
 
3409
esac
 
3410
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3411
$as_echo "$ac_try_echo"; } >&5
 
3412
  (eval "$ac_try") 2>&5
 
3413
  ac_status=$?
 
3414
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3415
  test $ac_status = 0; }; }; then
 
3416
    cross_compiling=no
 
3417
  else
 
3418
    if test "$cross_compiling" = maybe; then
 
3419
        cross_compiling=yes
 
3420
    else
 
3421
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3422
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3423
as_fn_error "cannot run C compiled programs.
 
3424
If you meant to cross compile, use \`--host'.
 
3425
See \`config.log' for more details." "$LINENO" 5; }
 
3426
    fi
 
3427
  fi
 
3428
fi
 
3429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3430
$as_echo "$cross_compiling" >&6; }
 
3431
 
 
3432
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3433
ac_clean_files=$ac_clean_files_save
 
3434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3435
$as_echo_n "checking for suffix of object files... " >&6; }
 
3436
if test "${ac_cv_objext+set}" = set; then :
 
3437
  $as_echo_n "(cached) " >&6
 
3438
else
 
3439
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3440
/* end confdefs.h.  */
 
3441
 
 
3442
int
 
3443
main ()
 
3444
{
 
3445
 
 
3446
  ;
 
3447
  return 0;
 
3448
}
 
3449
_ACEOF
 
3450
rm -f conftest.o conftest.obj
 
3451
if { { ac_try="$ac_compile"
 
3452
case "(($ac_try" in
 
3453
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3454
  *) ac_try_echo=$ac_try;;
 
3455
esac
 
3456
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3457
$as_echo "$ac_try_echo"; } >&5
 
3458
  (eval "$ac_compile") 2>&5
 
3459
  ac_status=$?
 
3460
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3461
  test $ac_status = 0; }; then :
 
3462
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3463
  test -f "$ac_file" || continue;
 
3464
  case $ac_file in
 
3465
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3466
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3467
       break;;
 
3468
  esac
 
3469
done
 
3470
else
 
3471
  $as_echo "$as_me: failed program was:" >&5
 
3472
sed 's/^/| /' conftest.$ac_ext >&5
 
3473
 
 
3474
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3475
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3476
as_fn_error "cannot compute suffix of object files: cannot compile
 
3477
See \`config.log' for more details." "$LINENO" 5; }
 
3478
fi
 
3479
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3480
fi
 
3481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3482
$as_echo "$ac_cv_objext" >&6; }
 
3483
OBJEXT=$ac_cv_objext
 
3484
ac_objext=$OBJEXT
 
3485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3486
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3487
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3488
  $as_echo_n "(cached) " >&6
 
3489
else
 
3490
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3491
/* end confdefs.h.  */
 
3492
 
 
3493
int
 
3494
main ()
 
3495
{
 
3496
#ifndef __GNUC__
 
3497
       choke me
 
3498
#endif
 
3499
 
 
3500
  ;
 
3501
  return 0;
 
3502
}
 
3503
_ACEOF
 
3504
if ac_fn_c_try_compile "$LINENO"; then :
 
3505
  ac_compiler_gnu=yes
 
3506
else
 
3507
  ac_compiler_gnu=no
 
3508
fi
 
3509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3510
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3511
 
 
3512
fi
 
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3514
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3515
if test $ac_compiler_gnu = yes; then
 
3516
  GCC=yes
 
3517
else
 
3518
  GCC=
 
3519
fi
 
3520
ac_test_CFLAGS=${CFLAGS+set}
 
3521
ac_save_CFLAGS=$CFLAGS
 
3522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3523
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3524
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3525
  $as_echo_n "(cached) " >&6
 
3526
else
 
3527
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3528
   ac_c_werror_flag=yes
 
3529
   ac_cv_prog_cc_g=no
 
3530
   CFLAGS="-g"
 
3531
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3532
/* end confdefs.h.  */
 
3533
 
 
3534
int
 
3535
main ()
 
3536
{
 
3537
 
 
3538
  ;
 
3539
  return 0;
 
3540
}
 
3541
_ACEOF
 
3542
if ac_fn_c_try_compile "$LINENO"; then :
 
3543
  ac_cv_prog_cc_g=yes
 
3544
else
 
3545
  CFLAGS=""
 
3546
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3547
/* end confdefs.h.  */
 
3548
 
 
3549
int
 
3550
main ()
 
3551
{
 
3552
 
 
3553
  ;
 
3554
  return 0;
 
3555
}
 
3556
_ACEOF
 
3557
if ac_fn_c_try_compile "$LINENO"; then :
 
3558
 
 
3559
else
 
3560
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3561
         CFLAGS="-g"
 
3562
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3563
/* end confdefs.h.  */
 
3564
 
 
3565
int
 
3566
main ()
 
3567
{
 
3568
 
 
3569
  ;
 
3570
  return 0;
 
3571
}
 
3572
_ACEOF
 
3573
if ac_fn_c_try_compile "$LINENO"; then :
 
3574
  ac_cv_prog_cc_g=yes
 
3575
fi
 
3576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3577
fi
 
3578
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3579
fi
 
3580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3581
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3582
fi
 
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3584
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3585
if test "$ac_test_CFLAGS" = set; then
 
3586
  CFLAGS=$ac_save_CFLAGS
 
3587
elif test $ac_cv_prog_cc_g = yes; then
 
3588
  if test "$GCC" = yes; then
 
3589
    CFLAGS="-g -O2"
 
3590
  else
 
3591
    CFLAGS="-g"
 
3592
  fi
 
3593
else
 
3594
  if test "$GCC" = yes; then
 
3595
    CFLAGS="-O2"
 
3596
  else
 
3597
    CFLAGS=
 
3598
  fi
 
3599
fi
 
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3601
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3602
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3603
  $as_echo_n "(cached) " >&6
 
3604
else
 
3605
  ac_cv_prog_cc_c89=no
 
3606
ac_save_CC=$CC
 
3607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3608
/* end confdefs.h.  */
 
3609
#include <stdarg.h>
 
3610
#include <stdio.h>
 
3611
#include <sys/types.h>
 
3612
#include <sys/stat.h>
 
3613
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3614
struct buf { int x; };
 
3615
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3616
static char *e (p, i)
 
3617
     char **p;
 
3618
     int i;
 
3619
{
 
3620
  return p[i];
 
3621
}
 
3622
static char *f (char * (*g) (char **, int), char **p, ...)
 
3623
{
 
3624
  char *s;
 
3625
  va_list v;
 
3626
  va_start (v,p);
 
3627
  s = g (p, va_arg (v,int));
 
3628
  va_end (v);
 
3629
  return s;
 
3630
}
 
3631
 
 
3632
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3633
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3634
   These don't provoke an error unfortunately, instead are silently treated
 
3635
   as 'x'.  The following induces an error, until -std is added to get
 
3636
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3637
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3638
   that's true only with -std.  */
 
3639
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3640
 
 
3641
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3642
   inside strings and character constants.  */
 
3643
#define FOO(x) 'x'
 
3644
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3645
 
 
3646
int test (int i, double x);
 
3647
struct s1 {int (*f) (int a);};
 
3648
struct s2 {int (*f) (double a);};
 
3649
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3650
int argc;
 
3651
char **argv;
 
3652
int
 
3653
main ()
 
3654
{
 
3655
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3656
  ;
 
3657
  return 0;
 
3658
}
 
3659
_ACEOF
 
3660
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3661
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3662
do
 
3663
  CC="$ac_save_CC $ac_arg"
 
3664
  if ac_fn_c_try_compile "$LINENO"; then :
 
3665
  ac_cv_prog_cc_c89=$ac_arg
 
3666
fi
 
3667
rm -f core conftest.err conftest.$ac_objext
 
3668
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3669
done
 
3670
rm -f conftest.$ac_ext
 
3671
CC=$ac_save_CC
 
3672
 
 
3673
fi
 
3674
# AC_CACHE_VAL
 
3675
case "x$ac_cv_prog_cc_c89" in
 
3676
  x)
 
3677
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3678
$as_echo "none needed" >&6; } ;;
 
3679
  xno)
 
3680
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3681
$as_echo "unsupported" >&6; } ;;
 
3682
  *)
 
3683
    CC="$CC $ac_cv_prog_cc_c89"
 
3684
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3685
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3686
esac
 
3687
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3688
 
 
3689
fi
 
3690
 
 
3691
ac_ext=c
 
3692
ac_cpp='$CPP $CPPFLAGS'
 
3693
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3694
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3695
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3696
 
 
3697
depcc="$CC"   am_compiler_list=
 
3698
 
 
3699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3700
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3701
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3702
  $as_echo_n "(cached) " >&6
 
3703
else
 
3704
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3705
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3706
  # making bogus files that we don't know about and never remove.  For
 
3707
  # instance it was reported that on HP-UX the gcc test will end up
 
3708
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3709
  # in D'.
 
3710
  mkdir conftest.dir
 
3711
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3712
  # using a relative directory.
 
3713
  cp "$am_depcomp" conftest.dir
 
3714
  cd conftest.dir
 
3715
  # We will build objects and dependencies in a subdirectory because
 
3716
  # it helps to detect inapplicable dependency modes.  For instance
 
3717
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3718
  # side effect of compilation, but ICC will put the dependencies in
 
3719
  # the current directory while Tru64 will put them in the object
 
3720
  # directory.
 
3721
  mkdir sub
 
3722
 
 
3723
  am_cv_CC_dependencies_compiler_type=none
 
3724
  if test "$am_compiler_list" = ""; then
 
3725
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3726
  fi
 
3727
  am__universal=false
 
3728
  case " $depcc " in #(
 
3729
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3730
     esac
 
3731
 
 
3732
  for depmode in $am_compiler_list; do
 
3733
    # Setup a source with many dependencies, because some compilers
 
3734
    # like to wrap large dependency lists on column 80 (with \), and
 
3735
    # we should not choose a depcomp mode which is confused by this.
 
3736
    #
 
3737
    # We need to recreate these files for each test, as the compiler may
 
3738
    # overwrite some of them when testing with obscure command lines.
 
3739
    # This happens at least with the AIX C compiler.
 
3740
    : > sub/conftest.c
 
3741
    for i in 1 2 3 4 5 6; do
 
3742
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3743
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3744
      # Solaris 8's {/usr,}/bin/sh.
 
3745
      touch sub/conftst$i.h
 
3746
    done
 
3747
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3748
 
 
3749
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3750
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3751
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3752
    # versions had trouble with output in subdirs
 
3753
    am__obj=sub/conftest.${OBJEXT-o}
 
3754
    am__minus_obj="-o $am__obj"
 
3755
    case $depmode in
 
3756
    gcc)
 
3757
      # This depmode causes a compiler race in universal mode.
 
3758
      test "$am__universal" = false || continue
 
3759
      ;;
 
3760
    nosideeffect)
 
3761
      # after this tag, mechanisms are not by side-effect, so they'll
 
3762
      # only be used when explicitly requested
 
3763
      if test "x$enable_dependency_tracking" = xyes; then
 
3764
        continue
 
3765
      else
 
3766
        break
 
3767
      fi
 
3768
      ;;
 
3769
    msvisualcpp | msvcmsys)
 
3770
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3771
      # not run yet.  These depmodes are late enough in the game, and
 
3772
      # so weak that their functioning should not be impacted.
 
3773
      am__obj=conftest.${OBJEXT-o}
 
3774
      am__minus_obj=
 
3775
      ;;
 
3776
    none) break ;;
 
3777
    esac
 
3778
    if depmode=$depmode \
 
3779
       source=sub/conftest.c object=$am__obj \
 
3780
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3781
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3782
         >/dev/null 2>conftest.err &&
 
3783
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3784
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3785
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3786
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3787
      # icc doesn't choke on unknown options, it will just issue warnings
 
3788
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3789
      # that says an option was ignored or not supported.
 
3790
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3791
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3792
      # The diagnosis changed in icc 8.0:
 
3793
      #   icc: Command line remark: option '-MP' not supported
 
3794
      if (grep 'ignoring option' conftest.err ||
 
3795
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3796
        am_cv_CC_dependencies_compiler_type=$depmode
 
3797
        break
 
3798
      fi
 
3799
    fi
 
3800
  done
 
3801
 
 
3802
  cd ..
 
3803
  rm -rf conftest.dir
 
3804
else
 
3805
  am_cv_CC_dependencies_compiler_type=none
 
3806
fi
 
3807
 
 
3808
fi
 
3809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3810
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3811
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3812
 
 
3813
 if
 
3814
  test "x$enable_dependency_tracking" != xno \
 
3815
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3816
  am__fastdepCC_TRUE=
 
3817
  am__fastdepCC_FALSE='#'
 
3818
else
 
3819
  am__fastdepCC_TRUE='#'
 
3820
  am__fastdepCC_FALSE=
 
3821
fi
 
3822
 
 
3823
 
 
3824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
3825
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3826
if test "${ac_cv_path_SED+set}" = set; then :
 
3827
  $as_echo_n "(cached) " >&6
 
3828
else
 
3829
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
3830
     for ac_i in 1 2 3 4 5 6 7; do
 
3831
       ac_script="$ac_script$as_nl$ac_script"
 
3832
     done
 
3833
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
3834
     { ac_script=; unset ac_script;}
 
3835
     if test -z "$SED"; then
 
3836
  ac_path_SED_found=false
 
3837
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3838
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3839
for as_dir in $PATH
 
3840
do
 
3841
  IFS=$as_save_IFS
 
3842
  test -z "$as_dir" && as_dir=.
 
3843
    for ac_prog in sed gsed; do
 
3844
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3845
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
3846
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
3847
# Check for GNU ac_path_SED and select it if it is found.
 
3848
  # Check for GNU $ac_path_SED
 
3849
case `"$ac_path_SED" --version 2>&1` in
 
3850
*GNU*)
 
3851
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
3852
*)
 
3853
  ac_count=0
 
3854
  $as_echo_n 0123456789 >"conftest.in"
 
3855
  while :
 
3856
  do
 
3857
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3858
    mv "conftest.tmp" "conftest.in"
 
3859
    cp "conftest.in" "conftest.nl"
 
3860
    $as_echo '' >> "conftest.nl"
 
3861
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3862
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3863
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3864
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
3865
      # Best one so far, save it but keep looking for a better one
 
3866
      ac_cv_path_SED="$ac_path_SED"
 
3867
      ac_path_SED_max=$ac_count
 
3868
    fi
 
3869
    # 10*(2^10) chars as input seems more than enough
 
3870
    test $ac_count -gt 10 && break
 
3871
  done
 
3872
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3873
esac
 
3874
 
 
3875
      $ac_path_SED_found && break 3
 
3876
    done
 
3877
  done
 
3878
  done
 
3879
IFS=$as_save_IFS
 
3880
  if test -z "$ac_cv_path_SED"; then
 
3881
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
3882
  fi
 
3883
else
 
3884
  ac_cv_path_SED=$SED
 
3885
fi
 
3886
 
 
3887
fi
 
3888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
3889
$as_echo "$ac_cv_path_SED" >&6; }
 
3890
 SED="$ac_cv_path_SED"
 
3891
  rm -f conftest.sed
 
3892
 
 
3893
test -z "$SED" && SED=sed
 
3894
Xsed="$SED -e 1s/^X//"
 
3895
 
 
3896
 
 
3897
 
 
3898
 
 
3899
 
 
3900
 
 
3901
 
 
3902
 
 
3903
 
 
3904
 
 
3905
 
 
3906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3907
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3908
if test "${ac_cv_path_GREP+set}" = set; then :
 
3909
  $as_echo_n "(cached) " >&6
 
3910
else
 
3911
  if test -z "$GREP"; then
 
3912
  ac_path_GREP_found=false
 
3913
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3914
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3915
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3916
do
 
3917
  IFS=$as_save_IFS
 
3918
  test -z "$as_dir" && as_dir=.
 
3919
    for ac_prog in grep ggrep; do
 
3920
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3921
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3922
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3923
# Check for GNU ac_path_GREP and select it if it is found.
 
3924
  # Check for GNU $ac_path_GREP
 
3925
case `"$ac_path_GREP" --version 2>&1` in
 
3926
*GNU*)
 
3927
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3928
*)
 
3929
  ac_count=0
 
3930
  $as_echo_n 0123456789 >"conftest.in"
 
3931
  while :
 
3932
  do
 
3933
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3934
    mv "conftest.tmp" "conftest.in"
 
3935
    cp "conftest.in" "conftest.nl"
 
3936
    $as_echo 'GREP' >> "conftest.nl"
 
3937
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3938
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3939
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3940
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3941
      # Best one so far, save it but keep looking for a better one
 
3942
      ac_cv_path_GREP="$ac_path_GREP"
 
3943
      ac_path_GREP_max=$ac_count
 
3944
    fi
 
3945
    # 10*(2^10) chars as input seems more than enough
 
3946
    test $ac_count -gt 10 && break
 
3947
  done
 
3948
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3949
esac
 
3950
 
 
3951
      $ac_path_GREP_found && break 3
 
3952
    done
 
3953
  done
 
3954
  done
 
3955
IFS=$as_save_IFS
 
3956
  if test -z "$ac_cv_path_GREP"; then
 
3957
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3958
  fi
 
3959
else
 
3960
  ac_cv_path_GREP=$GREP
 
3961
fi
 
3962
 
 
3963
fi
 
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3965
$as_echo "$ac_cv_path_GREP" >&6; }
 
3966
 GREP="$ac_cv_path_GREP"
 
3967
 
 
3968
 
 
3969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3970
$as_echo_n "checking for egrep... " >&6; }
 
3971
if test "${ac_cv_path_EGREP+set}" = set; then :
 
3972
  $as_echo_n "(cached) " >&6
 
3973
else
 
3974
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3975
   then ac_cv_path_EGREP="$GREP -E"
 
3976
   else
 
3977
     if test -z "$EGREP"; then
 
3978
  ac_path_EGREP_found=false
 
3979
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3980
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3981
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3982
do
 
3983
  IFS=$as_save_IFS
 
3984
  test -z "$as_dir" && as_dir=.
 
3985
    for ac_prog in egrep; do
 
3986
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3987
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3988
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3989
# Check for GNU ac_path_EGREP and select it if it is found.
 
3990
  # Check for GNU $ac_path_EGREP
 
3991
case `"$ac_path_EGREP" --version 2>&1` in
 
3992
*GNU*)
 
3993
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3994
*)
 
3995
  ac_count=0
 
3996
  $as_echo_n 0123456789 >"conftest.in"
 
3997
  while :
 
3998
  do
 
3999
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4000
    mv "conftest.tmp" "conftest.in"
 
4001
    cp "conftest.in" "conftest.nl"
 
4002
    $as_echo 'EGREP' >> "conftest.nl"
 
4003
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4004
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4005
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4006
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4007
      # Best one so far, save it but keep looking for a better one
 
4008
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4009
      ac_path_EGREP_max=$ac_count
 
4010
    fi
 
4011
    # 10*(2^10) chars as input seems more than enough
 
4012
    test $ac_count -gt 10 && break
 
4013
  done
 
4014
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4015
esac
 
4016
 
 
4017
      $ac_path_EGREP_found && break 3
 
4018
    done
 
4019
  done
 
4020
  done
 
4021
IFS=$as_save_IFS
 
4022
  if test -z "$ac_cv_path_EGREP"; then
 
4023
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4024
  fi
 
4025
else
 
4026
  ac_cv_path_EGREP=$EGREP
 
4027
fi
 
4028
 
 
4029
   fi
 
4030
fi
 
4031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4032
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4033
 EGREP="$ac_cv_path_EGREP"
 
4034
 
 
4035
 
 
4036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4037
$as_echo_n "checking for fgrep... " >&6; }
 
4038
if test "${ac_cv_path_FGREP+set}" = set; then :
 
4039
  $as_echo_n "(cached) " >&6
 
4040
else
 
4041
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4042
   then ac_cv_path_FGREP="$GREP -F"
 
4043
   else
 
4044
     if test -z "$FGREP"; then
 
4045
  ac_path_FGREP_found=false
 
4046
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4047
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4048
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4049
do
 
4050
  IFS=$as_save_IFS
 
4051
  test -z "$as_dir" && as_dir=.
 
4052
    for ac_prog in fgrep; do
 
4053
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4054
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4055
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
4056
# Check for GNU ac_path_FGREP and select it if it is found.
 
4057
  # Check for GNU $ac_path_FGREP
 
4058
case `"$ac_path_FGREP" --version 2>&1` in
 
4059
*GNU*)
 
4060
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4061
*)
 
4062
  ac_count=0
 
4063
  $as_echo_n 0123456789 >"conftest.in"
 
4064
  while :
 
4065
  do
 
4066
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4067
    mv "conftest.tmp" "conftest.in"
 
4068
    cp "conftest.in" "conftest.nl"
 
4069
    $as_echo 'FGREP' >> "conftest.nl"
 
4070
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4071
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4072
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4073
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4074
      # Best one so far, save it but keep looking for a better one
 
4075
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4076
      ac_path_FGREP_max=$ac_count
 
4077
    fi
 
4078
    # 10*(2^10) chars as input seems more than enough
 
4079
    test $ac_count -gt 10 && break
 
4080
  done
 
4081
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4082
esac
 
4083
 
 
4084
      $ac_path_FGREP_found && break 3
 
4085
    done
 
4086
  done
 
4087
  done
 
4088
IFS=$as_save_IFS
 
4089
  if test -z "$ac_cv_path_FGREP"; then
 
4090
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4091
  fi
 
4092
else
 
4093
  ac_cv_path_FGREP=$FGREP
 
4094
fi
 
4095
 
 
4096
   fi
 
4097
fi
 
4098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4099
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4100
 FGREP="$ac_cv_path_FGREP"
 
4101
 
 
4102
 
 
4103
test -z "$GREP" && GREP=grep
 
4104
 
 
4105
 
 
4106
 
 
4107
 
 
4108
 
 
4109
 
 
4110
 
 
4111
 
 
4112
 
 
4113
 
 
4114
 
 
4115
 
 
4116
 
 
4117
 
 
4118
 
 
4119
 
 
4120
 
 
4121
 
 
4122
 
 
4123
# Check whether --with-gnu-ld was given.
 
4124
if test "${with_gnu_ld+set}" = set; then :
 
4125
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4126
else
 
4127
  with_gnu_ld=no
 
4128
fi
 
4129
 
 
4130
ac_prog=ld
 
4131
if test "$GCC" = yes; then
 
4132
  # Check if gcc -print-prog-name=ld gives a path.
 
4133
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4134
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4135
  case $host in
 
4136
  *-*-mingw*)
 
4137
    # gcc leaves a trailing carriage return which upsets mingw
 
4138
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4139
  *)
 
4140
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4141
  esac
 
4142
  case $ac_prog in
 
4143
    # Accept absolute paths.
 
4144
    [\\/]* | ?:[\\/]*)
 
4145
      re_direlt='/[^/][^/]*/\.\./'
 
4146
      # Canonicalize the pathname of ld
 
4147
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4148
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4149
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4150
      done
 
4151
      test -z "$LD" && LD="$ac_prog"
 
4152
      ;;
 
4153
  "")
 
4154
    # If it fails, then pretend we aren't using GCC.
 
4155
    ac_prog=ld
 
4156
    ;;
 
4157
  *)
 
4158
    # If it is relative, then search for the first ld in PATH.
 
4159
    with_gnu_ld=unknown
 
4160
    ;;
 
4161
  esac
 
4162
elif test "$with_gnu_ld" = yes; then
 
4163
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4164
$as_echo_n "checking for GNU ld... " >&6; }
 
4165
else
 
4166
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4167
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4168
fi
 
4169
if test "${lt_cv_path_LD+set}" = set; then :
 
4170
  $as_echo_n "(cached) " >&6
 
4171
else
 
4172
  if test -z "$LD"; then
 
4173
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4174
  for ac_dir in $PATH; do
 
4175
    IFS="$lt_save_ifs"
 
4176
    test -z "$ac_dir" && ac_dir=.
 
4177
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4178
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4179
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4180
      # but apparently some variants of GNU ld only accept -v.
 
4181
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4182
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4183
      *GNU* | *'with BFD'*)
 
4184
        test "$with_gnu_ld" != no && break
 
4185
        ;;
 
4186
      *)
 
4187
        test "$with_gnu_ld" != yes && break
 
4188
        ;;
 
4189
      esac
 
4190
    fi
 
4191
  done
 
4192
  IFS="$lt_save_ifs"
 
4193
else
 
4194
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4195
fi
 
4196
fi
 
4197
 
 
4198
LD="$lt_cv_path_LD"
 
4199
if test -n "$LD"; then
 
4200
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4201
$as_echo "$LD" >&6; }
 
4202
else
 
4203
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4204
$as_echo "no" >&6; }
 
4205
fi
 
4206
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
4207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4208
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4209
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
4210
  $as_echo_n "(cached) " >&6
 
4211
else
 
4212
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4213
case `$LD -v 2>&1 </dev/null` in
 
4214
*GNU* | *'with BFD'*)
 
4215
  lt_cv_prog_gnu_ld=yes
 
4216
  ;;
 
4217
*)
 
4218
  lt_cv_prog_gnu_ld=no
 
4219
  ;;
 
4220
esac
 
4221
fi
 
4222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4223
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4224
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4225
 
 
4226
 
 
4227
 
 
4228
 
 
4229
 
 
4230
 
 
4231
 
 
4232
 
 
4233
 
 
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4235
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4236
if test "${lt_cv_path_NM+set}" = set; then :
 
4237
  $as_echo_n "(cached) " >&6
 
4238
else
 
4239
  if test -n "$NM"; then
 
4240
  # Let the user override the test.
 
4241
  lt_cv_path_NM="$NM"
 
4242
else
 
4243
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4244
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4245
    lt_nm_to_check="$lt_nm_to_check nm"
 
4246
  fi
 
4247
  for lt_tmp_nm in $lt_nm_to_check; do
 
4248
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4249
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4250
      IFS="$lt_save_ifs"
 
4251
      test -z "$ac_dir" && ac_dir=.
 
4252
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4253
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4254
        # Check to see if the nm accepts a BSD-compat flag.
 
4255
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4256
        #   nm: unknown option "B" ignored
 
4257
        # Tru64's nm complains that /dev/null is an invalid object file
 
4258
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4259
        */dev/null* | *'Invalid file or object type'*)
 
4260
          lt_cv_path_NM="$tmp_nm -B"
 
4261
          break
 
4262
          ;;
 
4263
        *)
 
4264
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4265
          */dev/null*)
 
4266
            lt_cv_path_NM="$tmp_nm -p"
 
4267
            break
 
4268
            ;;
 
4269
          *)
 
4270
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4271
            continue # so that we can try to find one that supports BSD flags
 
4272
            ;;
 
4273
          esac
 
4274
          ;;
 
4275
        esac
 
4276
      fi
 
4277
    done
 
4278
    IFS="$lt_save_ifs"
 
4279
  done
 
4280
  : ${lt_cv_path_NM=no}
 
4281
fi
 
4282
fi
 
4283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4284
$as_echo "$lt_cv_path_NM" >&6; }
 
4285
if test "$lt_cv_path_NM" != "no"; then
 
4286
  NM="$lt_cv_path_NM"
 
4287
else
 
4288
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4289
  if test -n "$ac_tool_prefix"; then
 
4290
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4291
  do
 
4292
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4293
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4295
$as_echo_n "checking for $ac_word... " >&6; }
 
4296
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
4297
  $as_echo_n "(cached) " >&6
 
4298
else
 
4299
  if test -n "$DUMPBIN"; then
 
4300
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4301
else
 
4302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4303
for as_dir in $PATH
 
4304
do
 
4305
  IFS=$as_save_IFS
 
4306
  test -z "$as_dir" && as_dir=.
 
4307
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4308
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4309
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4310
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4311
    break 2
 
4312
  fi
 
4313
done
 
4314
  done
 
4315
IFS=$as_save_IFS
 
4316
 
 
4317
fi
 
4318
fi
 
4319
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4320
if test -n "$DUMPBIN"; then
 
4321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4322
$as_echo "$DUMPBIN" >&6; }
 
4323
else
 
4324
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4325
$as_echo "no" >&6; }
 
4326
fi
 
4327
 
 
4328
 
 
4329
    test -n "$DUMPBIN" && break
 
4330
  done
 
4331
fi
 
4332
if test -z "$DUMPBIN"; then
 
4333
  ac_ct_DUMPBIN=$DUMPBIN
 
4334
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
4335
do
 
4336
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4337
set dummy $ac_prog; ac_word=$2
 
4338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4339
$as_echo_n "checking for $ac_word... " >&6; }
 
4340
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
4341
  $as_echo_n "(cached) " >&6
 
4342
else
 
4343
  if test -n "$ac_ct_DUMPBIN"; then
 
4344
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4345
else
 
4346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4347
for as_dir in $PATH
 
4348
do
 
4349
  IFS=$as_save_IFS
 
4350
  test -z "$as_dir" && as_dir=.
 
4351
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4352
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4353
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4354
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4355
    break 2
 
4356
  fi
 
4357
done
 
4358
  done
 
4359
IFS=$as_save_IFS
 
4360
 
 
4361
fi
 
4362
fi
 
4363
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4364
if test -n "$ac_ct_DUMPBIN"; then
 
4365
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4366
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4367
else
 
4368
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4369
$as_echo "no" >&6; }
 
4370
fi
 
4371
 
 
4372
 
 
4373
  test -n "$ac_ct_DUMPBIN" && break
 
4374
done
 
4375
 
 
4376
  if test "x$ac_ct_DUMPBIN" = x; then
 
4377
    DUMPBIN=":"
 
4378
  else
 
4379
    case $cross_compiling:$ac_tool_warned in
 
4380
yes:)
 
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4382
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4383
ac_tool_warned=yes ;;
 
4384
esac
 
4385
    DUMPBIN=$ac_ct_DUMPBIN
 
4386
  fi
 
4387
fi
 
4388
 
 
4389
 
 
4390
  if test "$DUMPBIN" != ":"; then
 
4391
    NM="$DUMPBIN"
 
4392
  fi
 
4393
fi
 
4394
test -z "$NM" && NM=nm
 
4395
 
 
4396
 
 
4397
 
 
4398
 
 
4399
 
 
4400
 
 
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4402
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4403
if test "${lt_cv_nm_interface+set}" = set; then :
 
4404
  $as_echo_n "(cached) " >&6
 
4405
else
 
4406
  lt_cv_nm_interface="BSD nm"
 
4407
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4408
  (eval echo "\"\$as_me:4408: $ac_compile\"" >&5)
 
4409
  (eval "$ac_compile" 2>conftest.err)
 
4410
  cat conftest.err >&5
 
4411
  (eval echo "\"\$as_me:4411: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4412
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4413
  cat conftest.err >&5
 
4414
  (eval echo "\"\$as_me:4414: output\"" >&5)
 
4415
  cat conftest.out >&5
 
4416
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4417
    lt_cv_nm_interface="MS dumpbin"
 
4418
  fi
 
4419
  rm -f conftest*
 
4420
fi
 
4421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4422
$as_echo "$lt_cv_nm_interface" >&6; }
 
4423
 
 
4424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4425
$as_echo_n "checking whether ln -s works... " >&6; }
 
4426
LN_S=$as_ln_s
 
4427
if test "$LN_S" = "ln -s"; then
 
4428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4429
$as_echo "yes" >&6; }
 
4430
else
 
4431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4432
$as_echo "no, using $LN_S" >&6; }
 
4433
fi
 
4434
 
 
4435
# find the maximum length of command line arguments
 
4436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4437
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4438
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
4439
  $as_echo_n "(cached) " >&6
 
4440
else
 
4441
    i=0
 
4442
  teststring="ABCD"
 
4443
 
 
4444
  case $build_os in
 
4445
  msdosdjgpp*)
 
4446
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4447
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4448
    # during glob expansion).  Even if it were fixed, the result of this
 
4449
    # check would be larger than it should be.
 
4450
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4451
    ;;
 
4452
 
 
4453
  gnu*)
 
4454
    # Under GNU Hurd, this test is not required because there is
 
4455
    # no limit to the length of command line arguments.
 
4456
    # Libtool will interpret -1 as no limit whatsoever
 
4457
    lt_cv_sys_max_cmd_len=-1;
 
4458
    ;;
 
4459
 
 
4460
  cygwin* | mingw* | cegcc*)
 
4461
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4462
    # about 5 minutes as the teststring grows exponentially.
 
4463
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4464
    # you end up with a "frozen" computer, even though with patience
 
4465
    # the test eventually succeeds (with a max line length of 256k).
 
4466
    # Instead, let's just punt: use the minimum linelength reported by
 
4467
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4468
    lt_cv_sys_max_cmd_len=8192;
 
4469
    ;;
 
4470
 
 
4471
  amigaos*)
 
4472
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4473
    # So we just punt and use a minimum line length of 8192.
 
4474
    lt_cv_sys_max_cmd_len=8192;
 
4475
    ;;
 
4476
 
 
4477
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4478
    # This has been around since 386BSD, at least.  Likely further.
 
4479
    if test -x /sbin/sysctl; then
 
4480
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4481
    elif test -x /usr/sbin/sysctl; then
 
4482
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4483
    else
 
4484
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4485
    fi
 
4486
    # And add a safety zone
 
4487
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4488
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4489
    ;;
 
4490
 
 
4491
  interix*)
 
4492
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4493
    lt_cv_sys_max_cmd_len=196608
 
4494
    ;;
 
4495
 
 
4496
  osf*)
 
4497
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4498
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4499
    # nice to cause kernel panics so lets avoid the loop below.
 
4500
    # First set a reasonable default.
 
4501
    lt_cv_sys_max_cmd_len=16384
 
4502
    #
 
4503
    if test -x /sbin/sysconfig; then
 
4504
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4505
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4506
      esac
 
4507
    fi
 
4508
    ;;
 
4509
  sco3.2v5*)
 
4510
    lt_cv_sys_max_cmd_len=102400
 
4511
    ;;
 
4512
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4513
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4514
    if test -n "$kargmax"; then
 
4515
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4516
    else
 
4517
      lt_cv_sys_max_cmd_len=32768
 
4518
    fi
 
4519
    ;;
 
4520
  *)
 
4521
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4522
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4523
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4524
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4525
    else
 
4526
      # Make teststring a little bigger before we do anything with it.
 
4527
      # a 1K string should be a reasonable start.
 
4528
      for i in 1 2 3 4 5 6 7 8 ; do
 
4529
        teststring=$teststring$teststring
 
4530
      done
 
4531
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4532
      # If test is not a shell built-in, we'll probably end up computing a
 
4533
      # maximum length that is only half of the actual maximum length, but
 
4534
      # we can't tell.
 
4535
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
4536
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
4537
              test $i != 17 # 1/2 MB should be enough
 
4538
      do
 
4539
        i=`expr $i + 1`
 
4540
        teststring=$teststring$teststring
 
4541
      done
 
4542
      # Only check the string length outside the loop.
 
4543
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4544
      teststring=
 
4545
      # Add a significant safety factor because C++ compilers can tack on
 
4546
      # massive amounts of additional arguments before passing them to the
 
4547
      # linker.  It appears as though 1/2 is a usable value.
 
4548
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4549
    fi
 
4550
    ;;
 
4551
  esac
 
4552
 
 
4553
fi
 
4554
 
 
4555
if test -n $lt_cv_sys_max_cmd_len ; then
 
4556
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4557
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4558
else
 
4559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4560
$as_echo "none" >&6; }
 
4561
fi
 
4562
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4563
 
 
4564
 
 
4565
 
 
4566
 
 
4567
 
 
4568
 
 
4569
: ${CP="cp -f"}
 
4570
: ${MV="mv -f"}
 
4571
: ${RM="rm -f"}
 
4572
 
 
4573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4574
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4575
# Try some XSI features
 
4576
xsi_shell=no
 
4577
( _lt_dummy="a/b/c"
 
4578
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
4579
      = c,a/b,, \
 
4580
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4581
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4582
  && xsi_shell=yes
 
4583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4584
$as_echo "$xsi_shell" >&6; }
 
4585
 
 
4586
 
 
4587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4588
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4589
lt_shell_append=no
 
4590
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4591
    >/dev/null 2>&1 \
 
4592
  && lt_shell_append=yes
 
4593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4594
$as_echo "$lt_shell_append" >&6; }
 
4595
 
 
4596
 
 
4597
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4598
  lt_unset=unset
 
4599
else
 
4600
  lt_unset=false
 
4601
fi
 
4602
 
 
4603
 
 
4604
 
 
4605
 
 
4606
 
 
4607
# test EBCDIC or ASCII
 
4608
case `echo X|tr X '\101'` in
 
4609
 A) # ASCII based system
 
4610
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4611
  lt_SP2NL='tr \040 \012'
 
4612
  lt_NL2SP='tr \015\012 \040\040'
 
4613
  ;;
 
4614
 *) # EBCDIC based system
 
4615
  lt_SP2NL='tr \100 \n'
 
4616
  lt_NL2SP='tr \r\n \100\100'
 
4617
  ;;
 
4618
esac
 
4619
 
 
4620
 
 
4621
 
 
4622
 
 
4623
 
 
4624
 
 
4625
 
 
4626
 
 
4627
 
 
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
4629
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4630
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
4631
  $as_echo_n "(cached) " >&6
 
4632
else
 
4633
  lt_cv_ld_reload_flag='-r'
 
4634
fi
 
4635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
4636
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4637
reload_flag=$lt_cv_ld_reload_flag
 
4638
case $reload_flag in
 
4639
"" | " "*) ;;
 
4640
*) reload_flag=" $reload_flag" ;;
 
4641
esac
 
4642
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4643
case $host_os in
 
4644
  darwin*)
 
4645
    if test "$GCC" = yes; then
 
4646
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4647
    else
 
4648
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4649
    fi
 
4650
    ;;
 
4651
esac
 
4652
 
 
4653
 
 
4654
 
 
4655
 
 
4656
 
 
4657
 
 
4658
 
 
4659
 
 
4660
 
 
4661
if test -n "$ac_tool_prefix"; then
 
4662
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4663
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4665
$as_echo_n "checking for $ac_word... " >&6; }
 
4666
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
4667
  $as_echo_n "(cached) " >&6
 
4668
else
 
4669
  if test -n "$OBJDUMP"; then
 
4670
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4671
else
 
4672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4673
for as_dir in $PATH
 
4674
do
 
4675
  IFS=$as_save_IFS
 
4676
  test -z "$as_dir" && as_dir=.
 
4677
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4678
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4679
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4680
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4681
    break 2
 
4682
  fi
 
4683
done
 
4684
  done
 
4685
IFS=$as_save_IFS
 
4686
 
 
4687
fi
 
4688
fi
 
4689
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4690
if test -n "$OBJDUMP"; then
 
4691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4692
$as_echo "$OBJDUMP" >&6; }
 
4693
else
 
4694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4695
$as_echo "no" >&6; }
 
4696
fi
 
4697
 
 
4698
 
 
4699
fi
 
4700
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4701
  ac_ct_OBJDUMP=$OBJDUMP
 
4702
  # Extract the first word of "objdump", so it can be a program name with args.
 
4703
set dummy objdump; ac_word=$2
 
4704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4705
$as_echo_n "checking for $ac_word... " >&6; }
 
4706
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
4707
  $as_echo_n "(cached) " >&6
 
4708
else
 
4709
  if test -n "$ac_ct_OBJDUMP"; then
 
4710
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4711
else
 
4712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4713
for as_dir in $PATH
 
4714
do
 
4715
  IFS=$as_save_IFS
 
4716
  test -z "$as_dir" && as_dir=.
 
4717
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4718
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4719
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4720
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4721
    break 2
 
4722
  fi
 
4723
done
 
4724
  done
 
4725
IFS=$as_save_IFS
 
4726
 
 
4727
fi
 
4728
fi
 
4729
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4730
if test -n "$ac_ct_OBJDUMP"; then
 
4731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
4732
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
4733
else
 
4734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4735
$as_echo "no" >&6; }
 
4736
fi
 
4737
 
 
4738
  if test "x$ac_ct_OBJDUMP" = x; then
 
4739
    OBJDUMP="false"
 
4740
  else
 
4741
    case $cross_compiling:$ac_tool_warned in
 
4742
yes:)
 
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4744
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4745
ac_tool_warned=yes ;;
 
4746
esac
 
4747
    OBJDUMP=$ac_ct_OBJDUMP
 
4748
  fi
 
4749
else
 
4750
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4751
fi
 
4752
 
 
4753
test -z "$OBJDUMP" && OBJDUMP=objdump
 
4754
 
 
4755
 
 
4756
 
 
4757
 
 
4758
 
 
4759
 
 
4760
 
 
4761
 
 
4762
 
 
4763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
4764
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4765
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
4766
  $as_echo_n "(cached) " >&6
 
4767
else
 
4768
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4769
lt_cv_file_magic_test_file=
 
4770
lt_cv_deplibs_check_method='unknown'
 
4771
# Need to set the preceding variable on all platforms that support
 
4772
# interlibrary dependencies.
 
4773
# 'none' -- dependencies not supported.
 
4774
# `unknown' -- same as none, but documents that we really don't know.
 
4775
# 'pass_all' -- all dependencies passed with no checks.
 
4776
# 'test_compile' -- check by making test program.
 
4777
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4778
# which responds to the $file_magic_cmd with a given extended regex.
 
4779
# If you have `file' or equivalent on your system and you're not sure
 
4780
# whether `pass_all' will *always* work, you probably want this one.
 
4781
 
 
4782
case $host_os in
 
4783
aix[4-9]*)
 
4784
  lt_cv_deplibs_check_method=pass_all
 
4785
  ;;
 
4786
 
 
4787
beos*)
 
4788
  lt_cv_deplibs_check_method=pass_all
 
4789
  ;;
 
4790
 
 
4791
bsdi[45]*)
 
4792
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4793
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4794
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4795
  ;;
 
4796
 
 
4797
cygwin*)
 
4798
  # func_win32_libid is a shell function defined in ltmain.sh
 
4799
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4800
  lt_cv_file_magic_cmd='func_win32_libid'
 
4801
  ;;
 
4802
 
 
4803
mingw* | pw32*)
 
4804
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4805
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4806
  # unless we find 'file', for example because we are cross-compiling.
 
4807
  if ( file / ) >/dev/null 2>&1; then
 
4808
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4809
    lt_cv_file_magic_cmd='func_win32_libid'
 
4810
  else
 
4811
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4812
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4813
  fi
 
4814
  ;;
 
4815
 
 
4816
cegcc)
 
4817
  # use the weaker test based on 'objdump'. See mingw*.
 
4818
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
4819
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4820
  ;;
 
4821
 
 
4822
darwin* | rhapsody*)
 
4823
  lt_cv_deplibs_check_method=pass_all
 
4824
  ;;
 
4825
 
 
4826
freebsd* | dragonfly*)
 
4827
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4828
    case $host_cpu in
 
4829
    i*86 )
 
4830
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4831
      # Let's accept both of them until this is cleared up.
 
4832
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4833
      lt_cv_file_magic_cmd=/usr/bin/file
 
4834
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4835
      ;;
 
4836
    esac
 
4837
  else
 
4838
    lt_cv_deplibs_check_method=pass_all
 
4839
  fi
 
4840
  ;;
 
4841
 
 
4842
gnu*)
 
4843
  lt_cv_deplibs_check_method=pass_all
 
4844
  ;;
 
4845
 
 
4846
hpux10.20* | hpux11*)
 
4847
  lt_cv_file_magic_cmd=/usr/bin/file
 
4848
  case $host_cpu in
 
4849
  ia64*)
 
4850
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4851
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4852
    ;;
 
4853
  hppa*64*)
 
4854
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4855
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4856
    ;;
 
4857
  *)
 
4858
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4859
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4860
    ;;
 
4861
  esac
 
4862
  ;;
 
4863
 
 
4864
interix[3-9]*)
 
4865
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4866
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4867
  ;;
 
4868
 
 
4869
irix5* | irix6* | nonstopux*)
 
4870
  case $LD in
 
4871
  *-32|*"-32 ") libmagic=32-bit;;
 
4872
  *-n32|*"-n32 ") libmagic=N32;;
 
4873
  *-64|*"-64 ") libmagic=64-bit;;
 
4874
  *) libmagic=never-match;;
 
4875
  esac
 
4876
  lt_cv_deplibs_check_method=pass_all
 
4877
  ;;
 
4878
 
 
4879
# This must be Linux ELF.
 
4880
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
4881
  lt_cv_deplibs_check_method=pass_all
 
4882
  ;;
 
4883
 
 
4884
netbsd* | netbsdelf*-gnu)
 
4885
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
4886
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4887
  else
 
4888
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4889
  fi
 
4890
  ;;
 
4891
 
 
4892
newos6*)
 
4893
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4894
  lt_cv_file_magic_cmd=/usr/bin/file
 
4895
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4896
  ;;
 
4897
 
 
4898
*nto* | *qnx*)
 
4899
  lt_cv_deplibs_check_method=pass_all
 
4900
  ;;
 
4901
 
 
4902
openbsd*)
 
4903
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4904
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4905
  else
 
4906
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4907
  fi
 
4908
  ;;
 
4909
 
 
4910
osf3* | osf4* | osf5*)
 
4911
  lt_cv_deplibs_check_method=pass_all
 
4912
  ;;
 
4913
 
 
4914
rdos*)
 
4915
  lt_cv_deplibs_check_method=pass_all
 
4916
  ;;
 
4917
 
 
4918
solaris*)
 
4919
  lt_cv_deplibs_check_method=pass_all
 
4920
  ;;
 
4921
 
 
4922
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4923
  lt_cv_deplibs_check_method=pass_all
 
4924
  ;;
 
4925
 
 
4926
sysv4 | sysv4.3*)
 
4927
  case $host_vendor in
 
4928
  motorola)
 
4929
    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]'
 
4930
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4931
    ;;
 
4932
  ncr)
 
4933
    lt_cv_deplibs_check_method=pass_all
 
4934
    ;;
 
4935
  sequent)
 
4936
    lt_cv_file_magic_cmd='/bin/file'
 
4937
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4938
    ;;
 
4939
  sni)
 
4940
    lt_cv_file_magic_cmd='/bin/file'
 
4941
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4942
    lt_cv_file_magic_test_file=/lib/libc.so
 
4943
    ;;
 
4944
  siemens)
 
4945
    lt_cv_deplibs_check_method=pass_all
 
4946
    ;;
 
4947
  pc)
 
4948
    lt_cv_deplibs_check_method=pass_all
 
4949
    ;;
 
4950
  esac
 
4951
  ;;
 
4952
 
 
4953
tpf*)
 
4954
  lt_cv_deplibs_check_method=pass_all
 
4955
  ;;
 
4956
esac
 
4957
 
 
4958
fi
 
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
4960
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4961
file_magic_cmd=$lt_cv_file_magic_cmd
 
4962
deplibs_check_method=$lt_cv_deplibs_check_method
 
4963
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4964
 
 
4965
 
 
4966
 
 
4967
 
 
4968
 
 
4969
 
 
4970
 
 
4971
 
 
4972
 
 
4973
 
 
4974
 
 
4975
 
 
4976
if test -n "$ac_tool_prefix"; then
 
4977
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
4978
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
4979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4980
$as_echo_n "checking for $ac_word... " >&6; }
 
4981
if test "${ac_cv_prog_AR+set}" = set; then :
 
4982
  $as_echo_n "(cached) " >&6
 
4983
else
 
4984
  if test -n "$AR"; then
 
4985
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4986
else
 
4987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4988
for as_dir in $PATH
 
4989
do
 
4990
  IFS=$as_save_IFS
 
4991
  test -z "$as_dir" && as_dir=.
 
4992
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4994
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
4995
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4996
    break 2
 
4997
  fi
 
4998
done
 
4999
  done
 
5000
IFS=$as_save_IFS
 
5001
 
 
5002
fi
 
5003
fi
 
5004
AR=$ac_cv_prog_AR
 
5005
if test -n "$AR"; then
 
5006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5007
$as_echo "$AR" >&6; }
 
5008
else
 
5009
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5010
$as_echo "no" >&6; }
 
5011
fi
 
5012
 
 
5013
 
 
5014
fi
 
5015
if test -z "$ac_cv_prog_AR"; then
 
5016
  ac_ct_AR=$AR
 
5017
  # Extract the first word of "ar", so it can be a program name with args.
 
5018
set dummy ar; ac_word=$2
 
5019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5020
$as_echo_n "checking for $ac_word... " >&6; }
 
5021
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
5022
  $as_echo_n "(cached) " >&6
 
5023
else
 
5024
  if test -n "$ac_ct_AR"; then
 
5025
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5026
else
 
5027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5028
for as_dir in $PATH
 
5029
do
 
5030
  IFS=$as_save_IFS
 
5031
  test -z "$as_dir" && as_dir=.
 
5032
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5033
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5034
    ac_cv_prog_ac_ct_AR="ar"
 
5035
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5036
    break 2
 
5037
  fi
 
5038
done
 
5039
  done
 
5040
IFS=$as_save_IFS
 
5041
 
 
5042
fi
 
5043
fi
 
5044
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5045
if test -n "$ac_ct_AR"; then
 
5046
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5047
$as_echo "$ac_ct_AR" >&6; }
 
5048
else
 
5049
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5050
$as_echo "no" >&6; }
 
5051
fi
 
5052
 
 
5053
  if test "x$ac_ct_AR" = x; then
 
5054
    AR="false"
 
5055
  else
 
5056
    case $cross_compiling:$ac_tool_warned in
 
5057
yes:)
 
5058
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5059
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5060
ac_tool_warned=yes ;;
 
5061
esac
 
5062
    AR=$ac_ct_AR
 
5063
  fi
 
5064
else
 
5065
  AR="$ac_cv_prog_AR"
 
5066
fi
 
5067
 
 
5068
test -z "$AR" && AR=ar
 
5069
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5070
 
 
5071
 
 
5072
 
 
5073
 
 
5074
 
 
5075
 
 
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
if test -n "$ac_tool_prefix"; then
 
5082
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5083
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5084
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5085
$as_echo_n "checking for $ac_word... " >&6; }
 
5086
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
5087
  $as_echo_n "(cached) " >&6
 
5088
else
 
5089
  if test -n "$STRIP"; then
 
5090
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5091
else
 
5092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5093
for as_dir in $PATH
 
5094
do
 
5095
  IFS=$as_save_IFS
 
5096
  test -z "$as_dir" && as_dir=.
 
5097
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5099
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5100
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5101
    break 2
 
5102
  fi
 
5103
done
 
5104
  done
 
5105
IFS=$as_save_IFS
 
5106
 
 
5107
fi
 
5108
fi
 
5109
STRIP=$ac_cv_prog_STRIP
 
5110
if test -n "$STRIP"; then
 
5111
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5112
$as_echo "$STRIP" >&6; }
 
5113
else
 
5114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5115
$as_echo "no" >&6; }
 
5116
fi
 
5117
 
 
5118
 
 
5119
fi
 
5120
if test -z "$ac_cv_prog_STRIP"; then
 
5121
  ac_ct_STRIP=$STRIP
 
5122
  # Extract the first word of "strip", so it can be a program name with args.
 
5123
set dummy strip; ac_word=$2
 
5124
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5125
$as_echo_n "checking for $ac_word... " >&6; }
 
5126
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
5127
  $as_echo_n "(cached) " >&6
 
5128
else
 
5129
  if test -n "$ac_ct_STRIP"; then
 
5130
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5131
else
 
5132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5133
for as_dir in $PATH
 
5134
do
 
5135
  IFS=$as_save_IFS
 
5136
  test -z "$as_dir" && as_dir=.
 
5137
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5138
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5139
    ac_cv_prog_ac_ct_STRIP="strip"
 
5140
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5141
    break 2
 
5142
  fi
 
5143
done
 
5144
  done
 
5145
IFS=$as_save_IFS
 
5146
 
 
5147
fi
 
5148
fi
 
5149
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5150
if test -n "$ac_ct_STRIP"; then
 
5151
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5152
$as_echo "$ac_ct_STRIP" >&6; }
 
5153
else
 
5154
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5155
$as_echo "no" >&6; }
 
5156
fi
 
5157
 
 
5158
  if test "x$ac_ct_STRIP" = x; then
 
5159
    STRIP=":"
 
5160
  else
 
5161
    case $cross_compiling:$ac_tool_warned in
 
5162
yes:)
 
5163
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5164
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5165
ac_tool_warned=yes ;;
 
5166
esac
 
5167
    STRIP=$ac_ct_STRIP
 
5168
  fi
 
5169
else
 
5170
  STRIP="$ac_cv_prog_STRIP"
 
5171
fi
 
5172
 
 
5173
test -z "$STRIP" && STRIP=:
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
if test -n "$ac_tool_prefix"; then
 
5181
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5182
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5184
$as_echo_n "checking for $ac_word... " >&6; }
 
5185
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
5186
  $as_echo_n "(cached) " >&6
 
5187
else
 
5188
  if test -n "$RANLIB"; then
 
5189
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5190
else
 
5191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5192
for as_dir in $PATH
 
5193
do
 
5194
  IFS=$as_save_IFS
 
5195
  test -z "$as_dir" && as_dir=.
 
5196
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5197
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5198
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5199
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5200
    break 2
 
5201
  fi
 
5202
done
 
5203
  done
 
5204
IFS=$as_save_IFS
 
5205
 
 
5206
fi
 
5207
fi
 
5208
RANLIB=$ac_cv_prog_RANLIB
 
5209
if test -n "$RANLIB"; then
 
5210
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5211
$as_echo "$RANLIB" >&6; }
 
5212
else
 
5213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5214
$as_echo "no" >&6; }
 
5215
fi
 
5216
 
 
5217
 
 
5218
fi
 
5219
if test -z "$ac_cv_prog_RANLIB"; then
 
5220
  ac_ct_RANLIB=$RANLIB
 
5221
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5222
set dummy ranlib; ac_word=$2
 
5223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5224
$as_echo_n "checking for $ac_word... " >&6; }
 
5225
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
5226
  $as_echo_n "(cached) " >&6
 
5227
else
 
5228
  if test -n "$ac_ct_RANLIB"; then
 
5229
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5230
else
 
5231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5232
for as_dir in $PATH
 
5233
do
 
5234
  IFS=$as_save_IFS
 
5235
  test -z "$as_dir" && as_dir=.
 
5236
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5237
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5238
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5239
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5240
    break 2
 
5241
  fi
 
5242
done
 
5243
  done
 
5244
IFS=$as_save_IFS
 
5245
 
 
5246
fi
 
5247
fi
 
5248
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5249
if test -n "$ac_ct_RANLIB"; then
 
5250
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5251
$as_echo "$ac_ct_RANLIB" >&6; }
 
5252
else
 
5253
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5254
$as_echo "no" >&6; }
 
5255
fi
 
5256
 
 
5257
  if test "x$ac_ct_RANLIB" = x; then
 
5258
    RANLIB=":"
 
5259
  else
 
5260
    case $cross_compiling:$ac_tool_warned in
 
5261
yes:)
 
5262
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5263
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5264
ac_tool_warned=yes ;;
 
5265
esac
 
5266
    RANLIB=$ac_ct_RANLIB
 
5267
  fi
 
5268
else
 
5269
  RANLIB="$ac_cv_prog_RANLIB"
 
5270
fi
 
5271
 
 
5272
test -z "$RANLIB" && RANLIB=:
 
5273
 
 
5274
 
 
5275
 
 
5276
 
 
5277
 
 
5278
 
 
5279
# Determine commands to create old-style static archives.
 
5280
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5281
old_postinstall_cmds='chmod 644 $oldlib'
 
5282
old_postuninstall_cmds=
 
5283
 
 
5284
if test -n "$RANLIB"; then
 
5285
  case $host_os in
 
5286
  openbsd*)
 
5287
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5288
    ;;
 
5289
  *)
 
5290
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5291
    ;;
 
5292
  esac
 
5293
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5294
fi
 
5295
 
 
5296
 
 
5297
 
 
5298
 
 
5299
 
 
5300
 
 
5301
 
 
5302
 
 
5303
 
 
5304
 
 
5305
 
 
5306
 
 
5307
 
 
5308
 
 
5309
 
 
5310
 
 
5311
 
 
5312
 
 
5313
 
 
5314
 
 
5315
 
 
5316
 
 
5317
 
 
5318
 
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
 
 
5329
# If no C compiler was specified, use CC.
 
5330
LTCC=${LTCC-"$CC"}
 
5331
 
 
5332
# If no C compiler flags were specified, use CFLAGS.
 
5333
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5334
 
 
5335
# Allow CC to be a program name with arguments.
 
5336
compiler=$CC
 
5337
 
 
5338
 
 
5339
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5341
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5342
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
5343
  $as_echo_n "(cached) " >&6
 
5344
else
 
5345
 
 
5346
# These are sane defaults that work on at least a few old systems.
 
5347
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5348
 
 
5349
# Character class describing NM global symbol codes.
 
5350
symcode='[BCDEGRST]'
 
5351
 
 
5352
# Regexp to match symbols that can be accessed directly from C.
 
5353
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5354
 
 
5355
# Define system-specific variables.
 
5356
case $host_os in
 
5357
aix*)
 
5358
  symcode='[BCDT]'
 
5359
  ;;
 
5360
cygwin* | mingw* | pw32* | cegcc*)
 
5361
  symcode='[ABCDGISTW]'
 
5362
  ;;
 
5363
hpux*)
 
5364
  if test "$host_cpu" = ia64; then
 
5365
    symcode='[ABCDEGRST]'
 
5366
  fi
 
5367
  ;;
 
5368
irix* | nonstopux*)
 
5369
  symcode='[BCDEGRST]'
 
5370
  ;;
 
5371
osf*)
 
5372
  symcode='[BCDEGQRST]'
 
5373
  ;;
 
5374
solaris*)
 
5375
  symcode='[BDRT]'
 
5376
  ;;
 
5377
sco3.2v5*)
 
5378
  symcode='[DT]'
 
5379
  ;;
 
5380
sysv4.2uw2*)
 
5381
  symcode='[DT]'
 
5382
  ;;
 
5383
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5384
  symcode='[ABDT]'
 
5385
  ;;
 
5386
sysv4)
 
5387
  symcode='[DFNSTU]'
 
5388
  ;;
 
5389
esac
 
5390
 
 
5391
# If we're using GNU nm, then use its standard symbol codes.
 
5392
case `$NM -V 2>&1` in
 
5393
*GNU* | *'with BFD'*)
 
5394
  symcode='[ABCDGIRSTW]' ;;
 
5395
esac
 
5396
 
 
5397
# Transform an extracted symbol line into a proper C declaration.
 
5398
# Some systems (esp. on ia64) link data and code symbols differently,
 
5399
# so use this general approach.
 
5400
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5401
 
 
5402
# Transform an extracted symbol line into symbol name and symbol address
 
5403
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5404
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'"
 
5405
 
 
5406
# Handle CRLF in mingw tool chain
 
5407
opt_cr=
 
5408
case $build_os in
 
5409
mingw*)
 
5410
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5411
  ;;
 
5412
esac
 
5413
 
 
5414
# Try without a prefix underscore, then with it.
 
5415
for ac_symprfx in "" "_"; do
 
5416
 
 
5417
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5418
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5419
 
 
5420
  # Write the raw and C identifiers.
 
5421
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5422
    # Fake it for dumpbin and say T for any non-static function
 
5423
    # and D for any global variable.
 
5424
    # Also find C++ and __fastcall symbols from MSVC++,
 
5425
    # which start with @ or ?.
 
5426
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5427
"     {last_section=section; section=\$ 3};"\
 
5428
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5429
"     \$ 0!~/External *\|/{next};"\
 
5430
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5431
"     {if(hide[section]) next};"\
 
5432
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5433
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5434
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5435
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5436
"     ' prfx=^$ac_symprfx"
 
5437
  else
 
5438
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5439
  fi
 
5440
 
 
5441
  # Check to see that the pipe works correctly.
 
5442
  pipe_works=no
 
5443
 
 
5444
  rm -f conftest*
 
5445
  cat > conftest.$ac_ext <<_LT_EOF
 
5446
#ifdef __cplusplus
 
5447
extern "C" {
 
5448
#endif
 
5449
char nm_test_var;
 
5450
void nm_test_func(void);
 
5451
void nm_test_func(void){}
 
5452
#ifdef __cplusplus
 
5453
}
 
5454
#endif
 
5455
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5456
_LT_EOF
 
5457
 
 
5458
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5459
  (eval $ac_compile) 2>&5
 
5460
  ac_status=$?
 
5461
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5462
  test $ac_status = 0; }; then
 
5463
    # Now try to grab the symbols.
 
5464
    nlist=conftest.nm
 
5465
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
5466
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5467
  ac_status=$?
 
5468
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5469
  test $ac_status = 0; } && test -s "$nlist"; then
 
5470
      # Try sorting and uniquifying the output.
 
5471
      if sort "$nlist" | uniq > "$nlist"T; then
 
5472
        mv -f "$nlist"T "$nlist"
 
5473
      else
 
5474
        rm -f "$nlist"T
 
5475
      fi
 
5476
 
 
5477
      # Make sure that we snagged all the symbols we need.
 
5478
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
5479
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
5480
          cat <<_LT_EOF > conftest.$ac_ext
 
5481
#ifdef __cplusplus
 
5482
extern "C" {
 
5483
#endif
 
5484
 
 
5485
_LT_EOF
 
5486
          # Now generate the symbol file.
 
5487
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
5488
 
 
5489
          cat <<_LT_EOF >> conftest.$ac_ext
 
5490
 
 
5491
/* The mapping between symbol names and symbols.  */
 
5492
const struct {
 
5493
  const char *name;
 
5494
  void       *address;
 
5495
}
 
5496
lt__PROGRAM__LTX_preloaded_symbols[] =
 
5497
{
 
5498
  { "@PROGRAM@", (void *) 0 },
 
5499
_LT_EOF
 
5500
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
5501
          cat <<\_LT_EOF >> conftest.$ac_ext
 
5502
  {0, (void *) 0}
 
5503
};
 
5504
 
 
5505
/* This works around a problem in FreeBSD linker */
 
5506
#ifdef FREEBSD_WORKAROUND
 
5507
static const void *lt_preloaded_setup() {
 
5508
  return lt__PROGRAM__LTX_preloaded_symbols;
 
5509
}
 
5510
#endif
 
5511
 
 
5512
#ifdef __cplusplus
 
5513
}
 
5514
#endif
 
5515
_LT_EOF
 
5516
          # Now try linking the two files.
 
5517
          mv conftest.$ac_objext conftstm.$ac_objext
 
5518
          lt_save_LIBS="$LIBS"
 
5519
          lt_save_CFLAGS="$CFLAGS"
 
5520
          LIBS="conftstm.$ac_objext"
 
5521
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5522
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
5523
  (eval $ac_link) 2>&5
 
5524
  ac_status=$?
 
5525
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5526
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
5527
            pipe_works=yes
 
5528
          fi
 
5529
          LIBS="$lt_save_LIBS"
 
5530
          CFLAGS="$lt_save_CFLAGS"
 
5531
        else
 
5532
          echo "cannot find nm_test_func in $nlist" >&5
 
5533
        fi
 
5534
      else
 
5535
        echo "cannot find nm_test_var in $nlist" >&5
 
5536
      fi
 
5537
    else
 
5538
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5539
    fi
 
5540
  else
 
5541
    echo "$progname: failed program was:" >&5
 
5542
    cat conftest.$ac_ext >&5
 
5543
  fi
 
5544
  rm -rf conftest* conftst*
 
5545
 
 
5546
  # Do not use the global_symbol_pipe unless it works.
 
5547
  if test "$pipe_works" = yes; then
 
5548
    break
 
5549
  else
 
5550
    lt_cv_sys_global_symbol_pipe=
 
5551
  fi
 
5552
done
 
5553
 
 
5554
fi
 
5555
 
 
5556
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5557
  lt_cv_sys_global_symbol_to_cdecl=
 
5558
fi
 
5559
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
5561
$as_echo "failed" >&6; }
 
5562
else
 
5563
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
5564
$as_echo "ok" >&6; }
 
5565
fi
 
5566
 
 
5567
 
 
5568
 
 
5569
 
 
5570
 
 
5571
 
 
5572
 
 
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
 
5578
 
 
5579
 
 
5580
 
 
5581
 
 
5582
 
 
5583
 
 
5584
 
 
5585
 
 
5586
 
 
5587
 
 
5588
 
 
5589
# Check whether --enable-libtool-lock was given.
 
5590
if test "${enable_libtool_lock+set}" = set; then :
 
5591
  enableval=$enable_libtool_lock;
 
5592
fi
 
5593
 
 
5594
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5595
 
 
5596
# Some flags need to be propagated to the compiler or linker for good
 
5597
# libtool support.
 
5598
case $host in
 
5599
ia64-*-hpux*)
 
5600
  # Find out which ABI we are using.
 
5601
  echo 'int i;' > conftest.$ac_ext
 
5602
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5603
  (eval $ac_compile) 2>&5
 
5604
  ac_status=$?
 
5605
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5606
  test $ac_status = 0; }; then
 
5607
    case `/usr/bin/file conftest.$ac_objext` in
 
5608
      *ELF-32*)
 
5609
        HPUX_IA64_MODE="32"
 
5610
        ;;
 
5611
      *ELF-64*)
 
5612
        HPUX_IA64_MODE="64"
 
5613
        ;;
 
5614
    esac
 
5615
  fi
 
5616
  rm -rf conftest*
 
5617
  ;;
 
5618
*-*-irix6*)
 
5619
  # Find out which ABI we are using.
 
5620
  echo '#line 5620 "configure"' > conftest.$ac_ext
 
5621
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5622
  (eval $ac_compile) 2>&5
 
5623
  ac_status=$?
 
5624
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5625
  test $ac_status = 0; }; then
 
5626
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
5627
      case `/usr/bin/file conftest.$ac_objext` in
 
5628
        *32-bit*)
 
5629
          LD="${LD-ld} -melf32bsmip"
 
5630
          ;;
 
5631
        *N32*)
 
5632
          LD="${LD-ld} -melf32bmipn32"
 
5633
          ;;
 
5634
        *64-bit*)
 
5635
          LD="${LD-ld} -melf64bmip"
 
5636
        ;;
 
5637
      esac
 
5638
    else
 
5639
      case `/usr/bin/file conftest.$ac_objext` in
 
5640
        *32-bit*)
 
5641
          LD="${LD-ld} -32"
 
5642
          ;;
 
5643
        *N32*)
 
5644
          LD="${LD-ld} -n32"
 
5645
          ;;
 
5646
        *64-bit*)
 
5647
          LD="${LD-ld} -64"
 
5648
          ;;
 
5649
      esac
 
5650
    fi
 
5651
  fi
 
5652
  rm -rf conftest*
 
5653
  ;;
 
5654
 
 
5655
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5656
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
5657
  # Find out which ABI we are using.
 
5658
  echo 'int i;' > conftest.$ac_ext
 
5659
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5660
  (eval $ac_compile) 2>&5
 
5661
  ac_status=$?
 
5662
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5663
  test $ac_status = 0; }; then
 
5664
    case `/usr/bin/file conftest.o` in
 
5665
      *32-bit*)
 
5666
        case $host in
 
5667
          x86_64-*kfreebsd*-gnu)
 
5668
            LD="${LD-ld} -m elf_i386_fbsd"
 
5669
            ;;
 
5670
          x86_64-*linux*)
 
5671
            LD="${LD-ld} -m elf_i386"
 
5672
            ;;
 
5673
          ppc64-*linux*|powerpc64-*linux*)
 
5674
            LD="${LD-ld} -m elf32ppclinux"
 
5675
            ;;
 
5676
          s390x-*linux*)
 
5677
            LD="${LD-ld} -m elf_s390"
 
5678
            ;;
 
5679
          sparc64-*linux*)
 
5680
            LD="${LD-ld} -m elf32_sparc"
 
5681
            ;;
 
5682
        esac
 
5683
        ;;
 
5684
      *64-bit*)
 
5685
        case $host in
 
5686
          x86_64-*kfreebsd*-gnu)
 
5687
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
5688
            ;;
 
5689
          x86_64-*linux*)
 
5690
            LD="${LD-ld} -m elf_x86_64"
 
5691
            ;;
 
5692
          ppc*-*linux*|powerpc*-*linux*)
 
5693
            LD="${LD-ld} -m elf64ppc"
 
5694
            ;;
 
5695
          s390*-*linux*|s390*-*tpf*)
 
5696
            LD="${LD-ld} -m elf64_s390"
 
5697
            ;;
 
5698
          sparc*-*linux*)
 
5699
            LD="${LD-ld} -m elf64_sparc"
 
5700
            ;;
 
5701
        esac
 
5702
        ;;
 
5703
    esac
 
5704
  fi
 
5705
  rm -rf conftest*
 
5706
  ;;
 
5707
 
 
5708
*-*-sco3.2v5*)
 
5709
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5710
  SAVE_CFLAGS="$CFLAGS"
 
5711
  CFLAGS="$CFLAGS -belf"
 
5712
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
5713
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5714
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
5715
  $as_echo_n "(cached) " >&6
 
5716
else
 
5717
  ac_ext=c
 
5718
ac_cpp='$CPP $CPPFLAGS'
 
5719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5722
 
 
5723
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5724
/* end confdefs.h.  */
 
5725
 
 
5726
int
 
5727
main ()
 
5728
{
 
5729
 
 
5730
  ;
 
5731
  return 0;
 
5732
}
 
5733
_ACEOF
 
5734
if ac_fn_c_try_link "$LINENO"; then :
 
5735
  lt_cv_cc_needs_belf=yes
 
5736
else
 
5737
  lt_cv_cc_needs_belf=no
 
5738
fi
 
5739
rm -f core conftest.err conftest.$ac_objext \
 
5740
    conftest$ac_exeext conftest.$ac_ext
 
5741
     ac_ext=c
 
5742
ac_cpp='$CPP $CPPFLAGS'
 
5743
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5744
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5745
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5746
 
 
5747
fi
 
5748
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
5749
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5750
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5751
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5752
    CFLAGS="$SAVE_CFLAGS"
 
5753
  fi
 
5754
  ;;
 
5755
sparc*-*solaris*)
 
5756
  # Find out which ABI we are using.
 
5757
  echo 'int i;' > conftest.$ac_ext
 
5758
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
5759
  (eval $ac_compile) 2>&5
 
5760
  ac_status=$?
 
5761
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5762
  test $ac_status = 0; }; then
 
5763
    case `/usr/bin/file conftest.o` in
 
5764
    *64-bit*)
 
5765
      case $lt_cv_prog_gnu_ld in
 
5766
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5767
      *)
 
5768
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5769
          LD="${LD-ld} -64"
 
5770
        fi
 
5771
        ;;
 
5772
      esac
 
5773
      ;;
 
5774
    esac
 
5775
  fi
 
5776
  rm -rf conftest*
 
5777
  ;;
 
5778
esac
 
5779
 
 
5780
need_locks="$enable_libtool_lock"
 
5781
 
 
5782
 
 
5783
  case $host_os in
 
5784
    rhapsody* | darwin*)
 
5785
    if test -n "$ac_tool_prefix"; then
 
5786
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
5787
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
5788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5789
$as_echo_n "checking for $ac_word... " >&6; }
 
5790
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
5791
  $as_echo_n "(cached) " >&6
 
5792
else
 
5793
  if test -n "$DSYMUTIL"; then
 
5794
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
5795
else
 
5796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5797
for as_dir in $PATH
 
5798
do
 
5799
  IFS=$as_save_IFS
 
5800
  test -z "$as_dir" && as_dir=.
 
5801
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5802
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5803
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
5804
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5805
    break 2
 
5806
  fi
 
5807
done
 
5808
  done
 
5809
IFS=$as_save_IFS
 
5810
 
 
5811
fi
 
5812
fi
 
5813
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
5814
if test -n "$DSYMUTIL"; then
 
5815
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
5816
$as_echo "$DSYMUTIL" >&6; }
 
5817
else
 
5818
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5819
$as_echo "no" >&6; }
 
5820
fi
 
5821
 
 
5822
 
 
5823
fi
 
5824
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
5825
  ac_ct_DSYMUTIL=$DSYMUTIL
 
5826
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
5827
set dummy dsymutil; ac_word=$2
 
5828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5829
$as_echo_n "checking for $ac_word... " >&6; }
 
5830
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
5831
  $as_echo_n "(cached) " >&6
 
5832
else
 
5833
  if test -n "$ac_ct_DSYMUTIL"; then
 
5834
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
5835
else
 
5836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5837
for as_dir in $PATH
 
5838
do
 
5839
  IFS=$as_save_IFS
 
5840
  test -z "$as_dir" && as_dir=.
 
5841
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5842
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5843
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
5844
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5845
    break 2
 
5846
  fi
 
5847
done
 
5848
  done
 
5849
IFS=$as_save_IFS
 
5850
 
 
5851
fi
 
5852
fi
 
5853
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
5854
if test -n "$ac_ct_DSYMUTIL"; then
 
5855
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
5856
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
5857
else
 
5858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5859
$as_echo "no" >&6; }
 
5860
fi
 
5861
 
 
5862
  if test "x$ac_ct_DSYMUTIL" = x; then
 
5863
    DSYMUTIL=":"
 
5864
  else
 
5865
    case $cross_compiling:$ac_tool_warned in
 
5866
yes:)
 
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5868
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5869
ac_tool_warned=yes ;;
 
5870
esac
 
5871
    DSYMUTIL=$ac_ct_DSYMUTIL
 
5872
  fi
 
5873
else
 
5874
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
5875
fi
 
5876
 
 
5877
    if test -n "$ac_tool_prefix"; then
 
5878
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
5879
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
5880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5881
$as_echo_n "checking for $ac_word... " >&6; }
 
5882
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
5883
  $as_echo_n "(cached) " >&6
 
5884
else
 
5885
  if test -n "$NMEDIT"; then
 
5886
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
5887
else
 
5888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5889
for as_dir in $PATH
 
5890
do
 
5891
  IFS=$as_save_IFS
 
5892
  test -z "$as_dir" && as_dir=.
 
5893
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5894
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5895
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
5896
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5897
    break 2
 
5898
  fi
 
5899
done
 
5900
  done
 
5901
IFS=$as_save_IFS
 
5902
 
 
5903
fi
 
5904
fi
 
5905
NMEDIT=$ac_cv_prog_NMEDIT
 
5906
if test -n "$NMEDIT"; then
 
5907
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
5908
$as_echo "$NMEDIT" >&6; }
 
5909
else
 
5910
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5911
$as_echo "no" >&6; }
 
5912
fi
 
5913
 
 
5914
 
 
5915
fi
 
5916
if test -z "$ac_cv_prog_NMEDIT"; then
 
5917
  ac_ct_NMEDIT=$NMEDIT
 
5918
  # Extract the first word of "nmedit", so it can be a program name with args.
 
5919
set dummy nmedit; ac_word=$2
 
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5921
$as_echo_n "checking for $ac_word... " >&6; }
 
5922
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
5923
  $as_echo_n "(cached) " >&6
 
5924
else
 
5925
  if test -n "$ac_ct_NMEDIT"; then
 
5926
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
5927
else
 
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5929
for as_dir in $PATH
 
5930
do
 
5931
  IFS=$as_save_IFS
 
5932
  test -z "$as_dir" && as_dir=.
 
5933
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5934
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5935
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
5936
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5937
    break 2
 
5938
  fi
 
5939
done
 
5940
  done
 
5941
IFS=$as_save_IFS
 
5942
 
 
5943
fi
 
5944
fi
 
5945
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
5946
if test -n "$ac_ct_NMEDIT"; then
 
5947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
5948
$as_echo "$ac_ct_NMEDIT" >&6; }
 
5949
else
 
5950
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5951
$as_echo "no" >&6; }
 
5952
fi
 
5953
 
 
5954
  if test "x$ac_ct_NMEDIT" = x; then
 
5955
    NMEDIT=":"
 
5956
  else
 
5957
    case $cross_compiling:$ac_tool_warned in
 
5958
yes:)
 
5959
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5960
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5961
ac_tool_warned=yes ;;
 
5962
esac
 
5963
    NMEDIT=$ac_ct_NMEDIT
 
5964
  fi
 
5965
else
 
5966
  NMEDIT="$ac_cv_prog_NMEDIT"
 
5967
fi
 
5968
 
 
5969
    if test -n "$ac_tool_prefix"; then
 
5970
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
5971
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
5972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5973
$as_echo_n "checking for $ac_word... " >&6; }
 
5974
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
5975
  $as_echo_n "(cached) " >&6
 
5976
else
 
5977
  if test -n "$LIPO"; then
 
5978
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
5979
else
 
5980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5981
for as_dir in $PATH
 
5982
do
 
5983
  IFS=$as_save_IFS
 
5984
  test -z "$as_dir" && as_dir=.
 
5985
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5986
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5987
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
5988
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5989
    break 2
 
5990
  fi
 
5991
done
 
5992
  done
 
5993
IFS=$as_save_IFS
 
5994
 
 
5995
fi
 
5996
fi
 
5997
LIPO=$ac_cv_prog_LIPO
 
5998
if test -n "$LIPO"; then
 
5999
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6000
$as_echo "$LIPO" >&6; }
 
6001
else
 
6002
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6003
$as_echo "no" >&6; }
 
6004
fi
 
6005
 
 
6006
 
 
6007
fi
 
6008
if test -z "$ac_cv_prog_LIPO"; then
 
6009
  ac_ct_LIPO=$LIPO
 
6010
  # Extract the first word of "lipo", so it can be a program name with args.
 
6011
set dummy lipo; ac_word=$2
 
6012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6013
$as_echo_n "checking for $ac_word... " >&6; }
 
6014
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
6015
  $as_echo_n "(cached) " >&6
 
6016
else
 
6017
  if test -n "$ac_ct_LIPO"; then
 
6018
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6019
else
 
6020
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6021
for as_dir in $PATH
 
6022
do
 
6023
  IFS=$as_save_IFS
 
6024
  test -z "$as_dir" && as_dir=.
 
6025
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6026
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6027
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6028
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6029
    break 2
 
6030
  fi
 
6031
done
 
6032
  done
 
6033
IFS=$as_save_IFS
 
6034
 
 
6035
fi
 
6036
fi
 
6037
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6038
if test -n "$ac_ct_LIPO"; then
 
6039
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6040
$as_echo "$ac_ct_LIPO" >&6; }
 
6041
else
 
6042
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6043
$as_echo "no" >&6; }
 
6044
fi
 
6045
 
 
6046
  if test "x$ac_ct_LIPO" = x; then
 
6047
    LIPO=":"
 
6048
  else
 
6049
    case $cross_compiling:$ac_tool_warned in
 
6050
yes:)
 
6051
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6052
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6053
ac_tool_warned=yes ;;
 
6054
esac
 
6055
    LIPO=$ac_ct_LIPO
 
6056
  fi
 
6057
else
 
6058
  LIPO="$ac_cv_prog_LIPO"
 
6059
fi
 
6060
 
 
6061
    if test -n "$ac_tool_prefix"; then
 
6062
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6063
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6065
$as_echo_n "checking for $ac_word... " >&6; }
 
6066
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
6067
  $as_echo_n "(cached) " >&6
 
6068
else
 
6069
  if test -n "$OTOOL"; then
 
6070
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6071
else
 
6072
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6073
for as_dir in $PATH
 
6074
do
 
6075
  IFS=$as_save_IFS
 
6076
  test -z "$as_dir" && as_dir=.
 
6077
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6078
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6079
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6080
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6081
    break 2
 
6082
  fi
 
6083
done
 
6084
  done
 
6085
IFS=$as_save_IFS
 
6086
 
 
6087
fi
 
6088
fi
 
6089
OTOOL=$ac_cv_prog_OTOOL
 
6090
if test -n "$OTOOL"; then
 
6091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6092
$as_echo "$OTOOL" >&6; }
 
6093
else
 
6094
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6095
$as_echo "no" >&6; }
 
6096
fi
 
6097
 
 
6098
 
 
6099
fi
 
6100
if test -z "$ac_cv_prog_OTOOL"; then
 
6101
  ac_ct_OTOOL=$OTOOL
 
6102
  # Extract the first word of "otool", so it can be a program name with args.
 
6103
set dummy otool; ac_word=$2
 
6104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6105
$as_echo_n "checking for $ac_word... " >&6; }
 
6106
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
6107
  $as_echo_n "(cached) " >&6
 
6108
else
 
6109
  if test -n "$ac_ct_OTOOL"; then
 
6110
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6111
else
 
6112
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6113
for as_dir in $PATH
 
6114
do
 
6115
  IFS=$as_save_IFS
 
6116
  test -z "$as_dir" && as_dir=.
 
6117
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6118
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6119
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6120
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6121
    break 2
 
6122
  fi
 
6123
done
 
6124
  done
 
6125
IFS=$as_save_IFS
 
6126
 
 
6127
fi
 
6128
fi
 
6129
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6130
if test -n "$ac_ct_OTOOL"; then
 
6131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6132
$as_echo "$ac_ct_OTOOL" >&6; }
 
6133
else
 
6134
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6135
$as_echo "no" >&6; }
 
6136
fi
 
6137
 
 
6138
  if test "x$ac_ct_OTOOL" = x; then
 
6139
    OTOOL=":"
 
6140
  else
 
6141
    case $cross_compiling:$ac_tool_warned in
 
6142
yes:)
 
6143
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6144
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6145
ac_tool_warned=yes ;;
 
6146
esac
 
6147
    OTOOL=$ac_ct_OTOOL
 
6148
  fi
 
6149
else
 
6150
  OTOOL="$ac_cv_prog_OTOOL"
 
6151
fi
 
6152
 
 
6153
    if test -n "$ac_tool_prefix"; then
 
6154
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6155
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6157
$as_echo_n "checking for $ac_word... " >&6; }
 
6158
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
6159
  $as_echo_n "(cached) " >&6
 
6160
else
 
6161
  if test -n "$OTOOL64"; then
 
6162
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6163
else
 
6164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6165
for as_dir in $PATH
 
6166
do
 
6167
  IFS=$as_save_IFS
 
6168
  test -z "$as_dir" && as_dir=.
 
6169
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6171
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6172
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6173
    break 2
 
6174
  fi
 
6175
done
 
6176
  done
 
6177
IFS=$as_save_IFS
 
6178
 
 
6179
fi
 
6180
fi
 
6181
OTOOL64=$ac_cv_prog_OTOOL64
 
6182
if test -n "$OTOOL64"; then
 
6183
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6184
$as_echo "$OTOOL64" >&6; }
 
6185
else
 
6186
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6187
$as_echo "no" >&6; }
 
6188
fi
 
6189
 
 
6190
 
 
6191
fi
 
6192
if test -z "$ac_cv_prog_OTOOL64"; then
 
6193
  ac_ct_OTOOL64=$OTOOL64
 
6194
  # Extract the first word of "otool64", so it can be a program name with args.
 
6195
set dummy otool64; ac_word=$2
 
6196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6197
$as_echo_n "checking for $ac_word... " >&6; }
 
6198
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
6199
  $as_echo_n "(cached) " >&6
 
6200
else
 
6201
  if test -n "$ac_ct_OTOOL64"; then
 
6202
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6203
else
 
6204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6205
for as_dir in $PATH
 
6206
do
 
6207
  IFS=$as_save_IFS
 
6208
  test -z "$as_dir" && as_dir=.
 
6209
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6211
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6212
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6213
    break 2
 
6214
  fi
 
6215
done
 
6216
  done
 
6217
IFS=$as_save_IFS
 
6218
 
 
6219
fi
 
6220
fi
 
6221
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6222
if test -n "$ac_ct_OTOOL64"; then
 
6223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6224
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6225
else
 
6226
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6227
$as_echo "no" >&6; }
 
6228
fi
 
6229
 
 
6230
  if test "x$ac_ct_OTOOL64" = x; then
 
6231
    OTOOL64=":"
 
6232
  else
 
6233
    case $cross_compiling:$ac_tool_warned in
 
6234
yes:)
 
6235
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6236
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6237
ac_tool_warned=yes ;;
 
6238
esac
 
6239
    OTOOL64=$ac_ct_OTOOL64
 
6240
  fi
 
6241
else
 
6242
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6243
fi
 
6244
 
 
6245
 
 
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
 
 
6255
 
 
6256
 
 
6257
 
 
6258
 
 
6259
 
 
6260
 
 
6261
 
 
6262
 
 
6263
 
 
6264
 
 
6265
 
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
 
6271
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
6272
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
6273
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
6274
  $as_echo_n "(cached) " >&6
 
6275
else
 
6276
  lt_cv_apple_cc_single_mod=no
 
6277
      if test -z "${LT_MULTI_MODULE}"; then
 
6278
        # By default we will add the -single_module flag. You can override
 
6279
        # by either setting the environment variable LT_MULTI_MODULE
 
6280
        # non-empty at configure time, or by adding -multi_module to the
 
6281
        # link flags.
 
6282
        rm -rf libconftest.dylib*
 
6283
        echo "int foo(void){return 1;}" > conftest.c
 
6284
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6285
-dynamiclib -Wl,-single_module conftest.c" >&5
 
6286
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
6287
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
6288
        _lt_result=$?
 
6289
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
6290
          lt_cv_apple_cc_single_mod=yes
 
6291
        else
 
6292
          cat conftest.err >&5
 
6293
        fi
 
6294
        rm -rf libconftest.dylib*
 
6295
        rm -f conftest.*
 
6296
      fi
 
6297
fi
 
6298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
6299
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
6300
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
6301
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
6302
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
6303
  $as_echo_n "(cached) " >&6
 
6304
else
 
6305
  lt_cv_ld_exported_symbols_list=no
 
6306
      save_LDFLAGS=$LDFLAGS
 
6307
      echo "_main" > conftest.sym
 
6308
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
6309
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6310
/* end confdefs.h.  */
 
6311
 
 
6312
int
 
6313
main ()
 
6314
{
 
6315
 
 
6316
  ;
 
6317
  return 0;
 
6318
}
 
6319
_ACEOF
 
6320
if ac_fn_c_try_link "$LINENO"; then :
 
6321
  lt_cv_ld_exported_symbols_list=yes
 
6322
else
 
6323
  lt_cv_ld_exported_symbols_list=no
 
6324
fi
 
6325
rm -f core conftest.err conftest.$ac_objext \
 
6326
    conftest$ac_exeext conftest.$ac_ext
 
6327
        LDFLAGS="$save_LDFLAGS"
 
6328
 
 
6329
fi
 
6330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
6331
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
6332
    case $host_os in
 
6333
    rhapsody* | darwin1.[012])
 
6334
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
6335
    darwin1.*)
 
6336
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6337
    darwin*) # darwin 5.x on
 
6338
      # if running on 10.5 or later, the deployment target defaults
 
6339
      # to the OS version, if on x86, and 10.4, the deployment
 
6340
      # target defaults to 10.4. Don't you love it?
 
6341
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
6342
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
6343
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6344
        10.[012]*)
 
6345
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
6346
        10.*)
 
6347
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
6348
      esac
 
6349
    ;;
 
6350
  esac
 
6351
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
6352
      _lt_dar_single_mod='$single_module'
 
6353
    fi
 
6354
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
6355
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
6356
    else
 
6357
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6358
    fi
 
6359
    if test "$DSYMUTIL" != ":"; then
 
6360
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
6361
    else
 
6362
      _lt_dsymutil=
 
6363
    fi
 
6364
    ;;
 
6365
  esac
 
6366
 
 
6367
ac_ext=c
 
6368
ac_cpp='$CPP $CPPFLAGS'
 
6369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
6373
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
6374
# On Suns, sometimes $CPP names a directory.
 
6375
if test -n "$CPP" && test -d "$CPP"; then
 
6376
  CPP=
 
6377
fi
 
6378
if test -z "$CPP"; then
 
6379
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
6380
  $as_echo_n "(cached) " >&6
 
6381
else
 
6382
      # Double quotes because CPP needs to be expanded
 
6383
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
6384
    do
 
6385
      ac_preproc_ok=false
 
6386
for ac_c_preproc_warn_flag in '' yes
 
6387
do
 
6388
  # Use a header file that comes with gcc, so configuring glibc
 
6389
  # with a fresh cross-compiler works.
 
6390
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6391
  # <limits.h> exists even on freestanding compilers.
 
6392
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6393
  # not just through cpp. "Syntax error" is here to catch this case.
 
6394
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6395
/* end confdefs.h.  */
 
6396
#ifdef __STDC__
 
6397
# include <limits.h>
 
6398
#else
 
6399
# include <assert.h>
 
6400
#endif
 
6401
                     Syntax error
 
6402
_ACEOF
 
6403
if ac_fn_c_try_cpp "$LINENO"; then :
 
6404
 
 
6405
else
 
6406
  # Broken: fails on valid input.
 
6407
continue
 
6408
fi
 
6409
rm -f conftest.err conftest.$ac_ext
 
6410
 
 
6411
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6412
  # can be detected and how.
 
6413
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6414
/* end confdefs.h.  */
 
6415
#include <ac_nonexistent.h>
 
6416
_ACEOF
 
6417
if ac_fn_c_try_cpp "$LINENO"; then :
 
6418
  # Broken: success on invalid input.
 
6419
continue
 
6420
else
 
6421
  # Passes both tests.
 
6422
ac_preproc_ok=:
 
6423
break
 
6424
fi
 
6425
rm -f conftest.err conftest.$ac_ext
 
6426
 
 
6427
done
 
6428
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6429
rm -f conftest.err conftest.$ac_ext
 
6430
if $ac_preproc_ok; then :
 
6431
  break
 
6432
fi
 
6433
 
 
6434
    done
 
6435
    ac_cv_prog_CPP=$CPP
 
6436
 
 
6437
fi
 
6438
  CPP=$ac_cv_prog_CPP
 
6439
else
 
6440
  ac_cv_prog_CPP=$CPP
 
6441
fi
 
6442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
6443
$as_echo "$CPP" >&6; }
 
6444
ac_preproc_ok=false
 
6445
for ac_c_preproc_warn_flag in '' yes
 
6446
do
 
6447
  # Use a header file that comes with gcc, so configuring glibc
 
6448
  # with a fresh cross-compiler works.
 
6449
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6450
  # <limits.h> exists even on freestanding compilers.
 
6451
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6452
  # not just through cpp. "Syntax error" is here to catch this case.
 
6453
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6454
/* end confdefs.h.  */
 
6455
#ifdef __STDC__
 
6456
# include <limits.h>
 
6457
#else
 
6458
# include <assert.h>
 
6459
#endif
 
6460
                     Syntax error
 
6461
_ACEOF
 
6462
if ac_fn_c_try_cpp "$LINENO"; then :
 
6463
 
 
6464
else
 
6465
  # Broken: fails on valid input.
 
6466
continue
 
6467
fi
 
6468
rm -f conftest.err conftest.$ac_ext
 
6469
 
 
6470
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6471
  # can be detected and how.
 
6472
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6473
/* end confdefs.h.  */
 
6474
#include <ac_nonexistent.h>
 
6475
_ACEOF
 
6476
if ac_fn_c_try_cpp "$LINENO"; then :
 
6477
  # Broken: success on invalid input.
 
6478
continue
 
6479
else
 
6480
  # Passes both tests.
 
6481
ac_preproc_ok=:
 
6482
break
 
6483
fi
 
6484
rm -f conftest.err conftest.$ac_ext
 
6485
 
 
6486
done
 
6487
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6488
rm -f conftest.err conftest.$ac_ext
 
6489
if $ac_preproc_ok; then :
 
6490
 
 
6491
else
 
6492
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
6493
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6494
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
6495
See \`config.log' for more details." "$LINENO" 5; }
 
6496
fi
 
6497
 
 
6498
ac_ext=c
 
6499
ac_cpp='$CPP $CPPFLAGS'
 
6500
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6501
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6502
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6503
 
 
6504
 
 
6505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
6506
$as_echo_n "checking for ANSI C header files... " >&6; }
 
6507
if test "${ac_cv_header_stdc+set}" = set; then :
 
6508
  $as_echo_n "(cached) " >&6
 
6509
else
 
6510
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6511
/* end confdefs.h.  */
 
6512
#include <stdlib.h>
 
6513
#include <stdarg.h>
 
6514
#include <string.h>
 
6515
#include <float.h>
 
6516
 
 
6517
int
 
6518
main ()
 
6519
{
 
6520
 
 
6521
  ;
 
6522
  return 0;
 
6523
}
 
6524
_ACEOF
 
6525
if ac_fn_c_try_compile "$LINENO"; then :
 
6526
  ac_cv_header_stdc=yes
 
6527
else
 
6528
  ac_cv_header_stdc=no
 
6529
fi
 
6530
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6531
 
 
6532
if test $ac_cv_header_stdc = yes; then
 
6533
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6534
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6535
/* end confdefs.h.  */
 
6536
#include <string.h>
 
6537
 
 
6538
_ACEOF
 
6539
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6540
  $EGREP "memchr" >/dev/null 2>&1; then :
 
6541
 
 
6542
else
 
6543
  ac_cv_header_stdc=no
 
6544
fi
 
6545
rm -f conftest*
 
6546
 
 
6547
fi
 
6548
 
 
6549
if test $ac_cv_header_stdc = yes; then
 
6550
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6551
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6552
/* end confdefs.h.  */
 
6553
#include <stdlib.h>
 
6554
 
 
6555
_ACEOF
 
6556
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6557
  $EGREP "free" >/dev/null 2>&1; then :
 
6558
 
 
6559
else
 
6560
  ac_cv_header_stdc=no
 
6561
fi
 
6562
rm -f conftest*
 
6563
 
 
6564
fi
 
6565
 
 
6566
if test $ac_cv_header_stdc = yes; then
 
6567
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6568
  if test "$cross_compiling" = yes; then :
 
6569
  :
 
6570
else
 
6571
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6572
/* end confdefs.h.  */
 
6573
#include <ctype.h>
 
6574
#include <stdlib.h>
 
6575
#if ((' ' & 0x0FF) == 0x020)
 
6576
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6577
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6578
#else
 
6579
# define ISLOWER(c) \
 
6580
                   (('a' <= (c) && (c) <= 'i') \
 
6581
                     || ('j' <= (c) && (c) <= 'r') \
 
6582
                     || ('s' <= (c) && (c) <= 'z'))
 
6583
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6584
#endif
 
6585
 
 
6586
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6587
int
 
6588
main ()
 
6589
{
 
6590
  int i;
 
6591
  for (i = 0; i < 256; i++)
 
6592
    if (XOR (islower (i), ISLOWER (i))
 
6593
        || toupper (i) != TOUPPER (i))
 
6594
      return 2;
 
6595
  return 0;
 
6596
}
 
6597
_ACEOF
 
6598
if ac_fn_c_try_run "$LINENO"; then :
 
6599
 
 
6600
else
 
6601
  ac_cv_header_stdc=no
 
6602
fi
 
6603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6604
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6605
fi
 
6606
 
 
6607
fi
 
6608
fi
 
6609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
6610
$as_echo "$ac_cv_header_stdc" >&6; }
 
6611
if test $ac_cv_header_stdc = yes; then
 
6612
 
 
6613
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
6614
 
 
6615
fi
 
6616
 
 
6617
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6618
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6619
                  inttypes.h stdint.h unistd.h
 
6620
do :
 
6621
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6622
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
6623
"
 
6624
eval as_val=\$$as_ac_Header
 
6625
   if test "x$as_val" = x""yes; then :
 
6626
  cat >>confdefs.h <<_ACEOF
 
6627
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6628
_ACEOF
 
6629
 
 
6630
fi
 
6631
 
 
6632
done
 
6633
 
 
6634
 
 
6635
for ac_header in dlfcn.h
 
6636
do :
 
6637
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
6638
"
 
6639
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
6640
  cat >>confdefs.h <<_ACEOF
 
6641
#define HAVE_DLFCN_H 1
 
6642
_ACEOF
 
6643
 
 
6644
fi
 
6645
 
 
6646
done
 
6647
 
 
6648
 
 
6649
 
 
6650
# Set options
 
6651
 
 
6652
 
 
6653
 
 
6654
        enable_dlopen=no
 
6655
 
 
6656
 
 
6657
  enable_win32_dll=no
 
6658
 
 
6659
 
 
6660
            # Check whether --enable-shared was given.
 
6661
if test "${enable_shared+set}" = set; then :
 
6662
  enableval=$enable_shared; p=${PACKAGE-default}
 
6663
    case $enableval in
 
6664
    yes) enable_shared=yes ;;
 
6665
    no) enable_shared=no ;;
 
6666
    *)
 
6667
      enable_shared=no
 
6668
      # Look at the argument we got.  We use all the common list separators.
 
6669
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6670
      for pkg in $enableval; do
 
6671
        IFS="$lt_save_ifs"
 
6672
        if test "X$pkg" = "X$p"; then
 
6673
          enable_shared=yes
 
6674
        fi
 
6675
      done
 
6676
      IFS="$lt_save_ifs"
 
6677
      ;;
 
6678
    esac
 
6679
else
 
6680
  enable_shared=yes
 
6681
fi
 
6682
 
 
6683
 
 
6684
 
 
6685
 
 
6686
 
 
6687
 
 
6688
 
 
6689
 
 
6690
 
 
6691
  # Check whether --enable-static was given.
 
6692
if test "${enable_static+set}" = set; then :
 
6693
  enableval=$enable_static; p=${PACKAGE-default}
 
6694
    case $enableval in
 
6695
    yes) enable_static=yes ;;
 
6696
    no) enable_static=no ;;
 
6697
    *)
 
6698
     enable_static=no
 
6699
      # Look at the argument we got.  We use all the common list separators.
 
6700
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6701
      for pkg in $enableval; do
 
6702
        IFS="$lt_save_ifs"
 
6703
        if test "X$pkg" = "X$p"; then
 
6704
          enable_static=yes
 
6705
        fi
 
6706
      done
 
6707
      IFS="$lt_save_ifs"
 
6708
      ;;
 
6709
    esac
 
6710
else
 
6711
  enable_static=yes
 
6712
fi
 
6713
 
 
6714
 
 
6715
 
 
6716
 
 
6717
 
 
6718
 
 
6719
 
 
6720
 
 
6721
 
 
6722
 
 
6723
# Check whether --with-pic was given.
 
6724
if test "${with_pic+set}" = set; then :
 
6725
  withval=$with_pic; pic_mode="$withval"
 
6726
else
 
6727
  pic_mode=default
 
6728
fi
 
6729
 
 
6730
 
 
6731
test -z "$pic_mode" && pic_mode=default
 
6732
 
 
6733
 
 
6734
 
 
6735
 
 
6736
 
 
6737
 
 
6738
 
 
6739
  # Check whether --enable-fast-install was given.
 
6740
if test "${enable_fast_install+set}" = set; then :
 
6741
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
6742
    case $enableval in
 
6743
    yes) enable_fast_install=yes ;;
 
6744
    no) enable_fast_install=no ;;
 
6745
    *)
 
6746
      enable_fast_install=no
 
6747
      # Look at the argument we got.  We use all the common list separators.
 
6748
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
6749
      for pkg in $enableval; do
 
6750
        IFS="$lt_save_ifs"
 
6751
        if test "X$pkg" = "X$p"; then
 
6752
          enable_fast_install=yes
 
6753
        fi
 
6754
      done
 
6755
      IFS="$lt_save_ifs"
 
6756
      ;;
 
6757
    esac
 
6758
else
 
6759
  enable_fast_install=yes
 
6760
fi
 
6761
 
 
6762
 
 
6763
 
 
6764
 
 
6765
 
 
6766
 
 
6767
 
 
6768
 
 
6769
 
 
6770
 
 
6771
 
 
6772
# This can be used to rebuild libtool when needed
 
6773
LIBTOOL_DEPS="$ltmain"
 
6774
 
 
6775
# Always use our own libtool.
 
6776
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
6777
 
 
6778
 
 
6779
 
 
6780
 
 
6781
 
 
6782
 
 
6783
 
 
6784
 
 
6785
 
 
6786
 
 
6787
 
 
6788
 
 
6789
 
 
6790
 
 
6791
 
 
6792
 
 
6793
 
 
6794
 
 
6795
 
 
6796
 
 
6797
 
 
6798
 
 
6799
 
 
6800
 
 
6801
 
 
6802
test -z "$LN_S" && LN_S="ln -s"
 
6803
 
 
6804
 
 
6805
 
 
6806
 
 
6807
 
 
6808
 
 
6809
 
 
6810
 
 
6811
 
 
6812
 
 
6813
 
 
6814
 
 
6815
 
 
6816
 
 
6817
if test -n "${ZSH_VERSION+set}" ; then
 
6818
   setopt NO_GLOB_SUBST
 
6819
fi
 
6820
 
 
6821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
6822
$as_echo_n "checking for objdir... " >&6; }
 
6823
if test "${lt_cv_objdir+set}" = set; then :
 
6824
  $as_echo_n "(cached) " >&6
 
6825
else
 
6826
  rm -f .libs 2>/dev/null
 
6827
mkdir .libs 2>/dev/null
 
6828
if test -d .libs; then
 
6829
  lt_cv_objdir=.libs
 
6830
else
 
6831
  # MS-DOS does not allow filenames that begin with a dot.
 
6832
  lt_cv_objdir=_libs
 
6833
fi
 
6834
rmdir .libs 2>/dev/null
 
6835
fi
 
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
6837
$as_echo "$lt_cv_objdir" >&6; }
 
6838
objdir=$lt_cv_objdir
 
6839
 
 
6840
 
 
6841
 
 
6842
 
 
6843
 
 
6844
cat >>confdefs.h <<_ACEOF
 
6845
#define LT_OBJDIR "$lt_cv_objdir/"
 
6846
_ACEOF
 
6847
 
 
6848
 
 
6849
 
 
6850
 
 
6851
 
 
6852
 
 
6853
 
 
6854
 
 
6855
 
 
6856
 
 
6857
 
 
6858
 
 
6859
 
 
6860
 
 
6861
 
 
6862
 
 
6863
 
 
6864
case $host_os in
 
6865
aix3*)
 
6866
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6867
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6868
  # vanish in a puff of smoke.
 
6869
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6870
    COLLECT_NAMES=
 
6871
    export COLLECT_NAMES
 
6872
  fi
 
6873
  ;;
 
6874
esac
 
6875
 
 
6876
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6877
# metacharacters that are still active within double-quoted strings.
 
6878
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
6879
 
 
6880
# Same as above, but do not quote variable references.
 
6881
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
6882
 
 
6883
# Sed substitution to delay expansion of an escaped shell variable in a
 
6884
# double_quote_subst'ed string.
 
6885
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6886
 
 
6887
# Sed substitution to delay expansion of an escaped single quote.
 
6888
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
6889
 
 
6890
# Sed substitution to avoid accidental globbing in evaled expressions
 
6891
no_glob_subst='s/\*/\\\*/g'
 
6892
 
 
6893
# Global variables:
 
6894
ofile=libtool
 
6895
can_build_shared=yes
 
6896
 
 
6897
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6898
# which needs '.lib').
 
6899
libext=a
 
6900
 
 
6901
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6902
 
 
6903
old_CC="$CC"
 
6904
old_CFLAGS="$CFLAGS"
 
6905
 
 
6906
# Set sane defaults for various variables
 
6907
test -z "$CC" && CC=cc
 
6908
test -z "$LTCC" && LTCC=$CC
 
6909
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6910
test -z "$LD" && LD=ld
 
6911
test -z "$ac_objext" && ac_objext=o
 
6912
 
 
6913
for cc_temp in $compiler""; do
 
6914
  case $cc_temp in
 
6915
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6916
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6917
    \-*) ;;
 
6918
    *) break;;
 
6919
  esac
 
6920
done
 
6921
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6922
 
 
6923
 
 
6924
# Only perform the check for file, if the check method requires it
 
6925
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6926
case $deplibs_check_method in
 
6927
file_magic*)
 
6928
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6929
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
6930
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
6931
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
6932
  $as_echo_n "(cached) " >&6
 
6933
else
 
6934
  case $MAGIC_CMD in
 
6935
[\\/*] |  ?:[\\/]*)
 
6936
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6937
  ;;
 
6938
*)
 
6939
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6940
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6941
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6942
  for ac_dir in $ac_dummy; do
 
6943
    IFS="$lt_save_ifs"
 
6944
    test -z "$ac_dir" && ac_dir=.
 
6945
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6946
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6947
      if test -n "$file_magic_test_file"; then
 
6948
        case $deplibs_check_method in
 
6949
        "file_magic "*)
 
6950
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6951
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6952
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6953
            $EGREP "$file_magic_regex" > /dev/null; then
 
6954
            :
 
6955
          else
 
6956
            cat <<_LT_EOF 1>&2
 
6957
 
 
6958
*** Warning: the command libtool uses to detect shared libraries,
 
6959
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6960
*** The result is that libtool may fail to recognize shared libraries
 
6961
*** as such.  This will affect the creation of libtool libraries that
 
6962
*** depend on shared libraries, but programs linked with such libtool
 
6963
*** libraries will work regardless of this problem.  Nevertheless, you
 
6964
*** may want to report the problem to your system manager and/or to
 
6965
*** bug-libtool@gnu.org
 
6966
 
 
6967
_LT_EOF
 
6968
          fi ;;
 
6969
        esac
 
6970
      fi
 
6971
      break
 
6972
    fi
 
6973
  done
 
6974
  IFS="$lt_save_ifs"
 
6975
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6976
  ;;
 
6977
esac
 
6978
fi
 
6979
 
 
6980
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6981
if test -n "$MAGIC_CMD"; then
 
6982
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
6983
$as_echo "$MAGIC_CMD" >&6; }
 
6984
else
 
6985
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6986
$as_echo "no" >&6; }
 
6987
fi
 
6988
 
 
6989
 
 
6990
 
 
6991
 
 
6992
 
 
6993
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6994
  if test -n "$ac_tool_prefix"; then
 
6995
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
6996
$as_echo_n "checking for file... " >&6; }
 
6997
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
6998
  $as_echo_n "(cached) " >&6
 
6999
else
 
7000
  case $MAGIC_CMD in
 
7001
[\\/*] |  ?:[\\/]*)
 
7002
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7003
  ;;
 
7004
*)
 
7005
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7006
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7007
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7008
  for ac_dir in $ac_dummy; do
 
7009
    IFS="$lt_save_ifs"
 
7010
    test -z "$ac_dir" && ac_dir=.
 
7011
    if test -f $ac_dir/file; then
 
7012
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7013
      if test -n "$file_magic_test_file"; then
 
7014
        case $deplibs_check_method in
 
7015
        "file_magic "*)
 
7016
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7017
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7018
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7019
            $EGREP "$file_magic_regex" > /dev/null; then
 
7020
            :
 
7021
          else
 
7022
            cat <<_LT_EOF 1>&2
 
7023
 
 
7024
*** Warning: the command libtool uses to detect shared libraries,
 
7025
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7026
*** The result is that libtool may fail to recognize shared libraries
 
7027
*** as such.  This will affect the creation of libtool libraries that
 
7028
*** depend on shared libraries, but programs linked with such libtool
 
7029
*** libraries will work regardless of this problem.  Nevertheless, you
 
7030
*** may want to report the problem to your system manager and/or to
 
7031
*** bug-libtool@gnu.org
 
7032
 
 
7033
_LT_EOF
 
7034
          fi ;;
 
7035
        esac
 
7036
      fi
 
7037
      break
 
7038
    fi
 
7039
  done
 
7040
  IFS="$lt_save_ifs"
 
7041
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7042
  ;;
 
7043
esac
 
7044
fi
 
7045
 
 
7046
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7047
if test -n "$MAGIC_CMD"; then
 
7048
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7049
$as_echo "$MAGIC_CMD" >&6; }
 
7050
else
 
7051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7052
$as_echo "no" >&6; }
 
7053
fi
 
7054
 
 
7055
 
 
7056
  else
 
7057
    MAGIC_CMD=:
 
7058
  fi
 
7059
fi
 
7060
 
 
7061
  fi
 
7062
  ;;
 
7063
esac
 
7064
 
 
7065
# Use C for the default configuration in the libtool script
 
7066
 
 
7067
lt_save_CC="$CC"
 
7068
ac_ext=c
 
7069
ac_cpp='$CPP $CPPFLAGS'
 
7070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7073
 
 
7074
 
 
7075
# Source file extension for C test sources.
 
7076
ac_ext=c
 
7077
 
 
7078
# Object file extension for compiled C test sources.
 
7079
objext=o
 
7080
objext=$objext
 
7081
 
 
7082
# Code to be used in simple compile tests
 
7083
lt_simple_compile_test_code="int some_variable = 0;"
 
7084
 
 
7085
# Code to be used in simple link tests
 
7086
lt_simple_link_test_code='int main(){return(0);}'
 
7087
 
 
7088
 
 
7089
 
 
7090
 
 
7091
 
 
7092
 
 
7093
 
 
7094
# If no C compiler was specified, use CC.
 
7095
LTCC=${LTCC-"$CC"}
 
7096
 
 
7097
# If no C compiler flags were specified, use CFLAGS.
 
7098
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7099
 
 
7100
# Allow CC to be a program name with arguments.
 
7101
compiler=$CC
 
7102
 
 
7103
# Save the default compiler, since it gets overwritten when the other
 
7104
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7105
compiler_DEFAULT=$CC
 
7106
 
 
7107
# save warnings/boilerplate of simple test code
 
7108
ac_outfile=conftest.$ac_objext
 
7109
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7110
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7111
_lt_compiler_boilerplate=`cat conftest.err`
 
7112
$RM conftest*
 
7113
 
 
7114
ac_outfile=conftest.$ac_objext
 
7115
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7116
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7117
_lt_linker_boilerplate=`cat conftest.err`
 
7118
$RM -r conftest*
 
7119
 
 
7120
 
 
7121
if test -n "$compiler"; then
 
7122
 
 
7123
lt_prog_compiler_no_builtin_flag=
 
7124
 
 
7125
if test "$GCC" = yes; then
 
7126
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7127
 
 
7128
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7129
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7130
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
7131
  $as_echo_n "(cached) " >&6
 
7132
else
 
7133
  lt_cv_prog_compiler_rtti_exceptions=no
 
7134
   ac_outfile=conftest.$ac_objext
 
7135
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7136
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7137
   # Insert the option either (1) after the last *FLAGS variable, or
 
7138
   # (2) before a word containing "conftest.", or (3) at the end.
 
7139
   # Note that $ac_compile itself does not contain backslashes and begins
 
7140
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7141
   # The option is referenced via a variable to avoid confusing sed.
 
7142
   lt_compile=`echo "$ac_compile" | $SED \
 
7143
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7144
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7145
   -e 's:$: $lt_compiler_flag:'`
 
7146
   (eval echo "\"\$as_me:7146: $lt_compile\"" >&5)
 
7147
   (eval "$lt_compile" 2>conftest.err)
 
7148
   ac_status=$?
 
7149
   cat conftest.err >&5
 
7150
   echo "$as_me:7150: \$? = $ac_status" >&5
 
7151
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7152
     # The compiler can only warn and ignore the option if not recognized
 
7153
     # So say no if there are warnings other than the usual output.
 
7154
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7155
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7156
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7157
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7158
     fi
 
7159
   fi
 
7160
   $RM conftest*
 
7161
 
 
7162
fi
 
7163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7164
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7165
 
 
7166
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7167
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7168
else
 
7169
    :
 
7170
fi
 
7171
 
 
7172
fi
 
7173
 
 
7174
 
 
7175
 
 
7176
 
 
7177
 
 
7178
 
 
7179
  lt_prog_compiler_wl=
 
7180
lt_prog_compiler_pic=
 
7181
lt_prog_compiler_static=
 
7182
 
 
7183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
7184
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7185
 
 
7186
  if test "$GCC" = yes; then
 
7187
    lt_prog_compiler_wl='-Wl,'
 
7188
    lt_prog_compiler_static='-static'
 
7189
 
 
7190
    case $host_os in
 
7191
      aix*)
 
7192
      # All AIX code is PIC.
 
7193
      if test "$host_cpu" = ia64; then
 
7194
        # AIX 5 now supports IA64 processor
 
7195
        lt_prog_compiler_static='-Bstatic'
 
7196
      fi
 
7197
      ;;
 
7198
 
 
7199
    amigaos*)
 
7200
      case $host_cpu in
 
7201
      powerpc)
 
7202
            # see comment about AmigaOS4 .so support
 
7203
            lt_prog_compiler_pic='-fPIC'
 
7204
        ;;
 
7205
      m68k)
 
7206
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7207
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7208
            # like `-m68040'.
 
7209
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7210
        ;;
 
7211
      esac
 
7212
      ;;
 
7213
 
 
7214
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7215
      # PIC is the default for these OSes.
 
7216
      ;;
 
7217
 
 
7218
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7219
      # This hack is so that the source file can tell whether it is being
 
7220
      # built for inclusion in a dll (and should export symbols for example).
 
7221
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7222
      # (--disable-auto-import) libraries
 
7223
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7224
      ;;
 
7225
 
 
7226
    darwin* | rhapsody*)
 
7227
      # PIC is the default on this platform
 
7228
      # Common symbols not allowed in MH_DYLIB files
 
7229
      lt_prog_compiler_pic='-fno-common'
 
7230
      ;;
 
7231
 
 
7232
    hpux*)
 
7233
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
7234
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
7235
      # sets the default TLS model and affects inlining.
 
7236
      case $host_cpu in
 
7237
      hppa*64*)
 
7238
        # +Z the default
 
7239
        ;;
 
7240
      *)
 
7241
        lt_prog_compiler_pic='-fPIC'
 
7242
        ;;
 
7243
      esac
 
7244
      ;;
 
7245
 
 
7246
    interix[3-9]*)
 
7247
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7248
      # Instead, we relocate shared libraries at runtime.
 
7249
      ;;
 
7250
 
 
7251
    msdosdjgpp*)
 
7252
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7253
      # on systems that don't support them.
 
7254
      lt_prog_compiler_can_build_shared=no
 
7255
      enable_shared=no
 
7256
      ;;
 
7257
 
 
7258
    *nto* | *qnx*)
 
7259
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7260
      # it will coredump.
 
7261
      lt_prog_compiler_pic='-fPIC -shared'
 
7262
      ;;
 
7263
 
 
7264
    sysv4*MP*)
 
7265
      if test -d /usr/nec; then
 
7266
        lt_prog_compiler_pic=-Kconform_pic
 
7267
      fi
 
7268
      ;;
 
7269
 
 
7270
    *)
 
7271
      lt_prog_compiler_pic='-fPIC'
 
7272
      ;;
 
7273
    esac
 
7274
  else
 
7275
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7276
    case $host_os in
 
7277
    aix*)
 
7278
      lt_prog_compiler_wl='-Wl,'
 
7279
      if test "$host_cpu" = ia64; then
 
7280
        # AIX 5 now supports IA64 processor
 
7281
        lt_prog_compiler_static='-Bstatic'
 
7282
      else
 
7283
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7284
      fi
 
7285
      ;;
 
7286
 
 
7287
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
7288
      # This hack is so that the source file can tell whether it is being
 
7289
      # built for inclusion in a dll (and should export symbols for example).
 
7290
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7291
      ;;
 
7292
 
 
7293
    hpux9* | hpux10* | hpux11*)
 
7294
      lt_prog_compiler_wl='-Wl,'
 
7295
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7296
      # not for PA HP-UX.
 
7297
      case $host_cpu in
 
7298
      hppa*64*|ia64*)
 
7299
        # +Z the default
 
7300
        ;;
 
7301
      *)
 
7302
        lt_prog_compiler_pic='+Z'
 
7303
        ;;
 
7304
      esac
 
7305
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7306
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7307
      ;;
 
7308
 
 
7309
    irix5* | irix6* | nonstopux*)
 
7310
      lt_prog_compiler_wl='-Wl,'
 
7311
      # PIC (with -KPIC) is the default.
 
7312
      lt_prog_compiler_static='-non_shared'
 
7313
      ;;
 
7314
 
 
7315
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
7316
      case $cc_basename in
 
7317
      # old Intel for x86_64 which still supported -KPIC.
 
7318
      ecc*)
 
7319
        lt_prog_compiler_wl='-Wl,'
 
7320
        lt_prog_compiler_pic='-KPIC'
 
7321
        lt_prog_compiler_static='-static'
 
7322
        ;;
 
7323
      # icc used to be incompatible with GCC.
 
7324
      # ICC 10 doesn't accept -KPIC any more.
 
7325
      icc* | ifort*)
 
7326
        lt_prog_compiler_wl='-Wl,'
 
7327
        lt_prog_compiler_pic='-fPIC'
 
7328
        lt_prog_compiler_static='-static'
 
7329
        ;;
 
7330
      # Lahey Fortran 8.1.
 
7331
      lf95*)
 
7332
        lt_prog_compiler_wl='-Wl,'
 
7333
        lt_prog_compiler_pic='--shared'
 
7334
        lt_prog_compiler_static='--static'
 
7335
        ;;
 
7336
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7337
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7338
        # which looks to be a dead project)
 
7339
        lt_prog_compiler_wl='-Wl,'
 
7340
        lt_prog_compiler_pic='-fpic'
 
7341
        lt_prog_compiler_static='-Bstatic'
 
7342
        ;;
 
7343
      ccc*)
 
7344
        lt_prog_compiler_wl='-Wl,'
 
7345
        # All Alpha code is PIC.
 
7346
        lt_prog_compiler_static='-non_shared'
 
7347
        ;;
 
7348
      xl*)
 
7349
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
7350
        lt_prog_compiler_wl='-Wl,'
 
7351
        lt_prog_compiler_pic='-qpic'
 
7352
        lt_prog_compiler_static='-qstaticlink'
 
7353
        ;;
 
7354
      *)
 
7355
        case `$CC -V 2>&1 | sed 5q` in
 
7356
        *Sun\ C*)
 
7357
          # Sun C 5.9
 
7358
          lt_prog_compiler_pic='-KPIC'
 
7359
          lt_prog_compiler_static='-Bstatic'
 
7360
          lt_prog_compiler_wl='-Wl,'
 
7361
          ;;
 
7362
        *Sun\ F*)
 
7363
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7364
          lt_prog_compiler_pic='-KPIC'
 
7365
          lt_prog_compiler_static='-Bstatic'
 
7366
          lt_prog_compiler_wl=''
 
7367
          ;;
 
7368
        esac
 
7369
        ;;
 
7370
      esac
 
7371
      ;;
 
7372
 
 
7373
    newsos6)
 
7374
      lt_prog_compiler_pic='-KPIC'
 
7375
      lt_prog_compiler_static='-Bstatic'
 
7376
      ;;
 
7377
 
 
7378
    *nto* | *qnx*)
 
7379
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
7380
      # it will coredump.
 
7381
      lt_prog_compiler_pic='-fPIC -shared'
 
7382
      ;;
 
7383
 
 
7384
    osf3* | osf4* | osf5*)
 
7385
      lt_prog_compiler_wl='-Wl,'
 
7386
      # All OSF/1 code is PIC.
 
7387
      lt_prog_compiler_static='-non_shared'
 
7388
      ;;
 
7389
 
 
7390
    rdos*)
 
7391
      lt_prog_compiler_static='-non_shared'
 
7392
      ;;
 
7393
 
 
7394
    solaris*)
 
7395
      lt_prog_compiler_pic='-KPIC'
 
7396
      lt_prog_compiler_static='-Bstatic'
 
7397
      case $cc_basename in
 
7398
      f77* | f90* | f95*)
 
7399
        lt_prog_compiler_wl='-Qoption ld ';;
 
7400
      *)
 
7401
        lt_prog_compiler_wl='-Wl,';;
 
7402
      esac
 
7403
      ;;
 
7404
 
 
7405
    sunos4*)
 
7406
      lt_prog_compiler_wl='-Qoption ld '
 
7407
      lt_prog_compiler_pic='-PIC'
 
7408
      lt_prog_compiler_static='-Bstatic'
 
7409
      ;;
 
7410
 
 
7411
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7412
      lt_prog_compiler_wl='-Wl,'
 
7413
      lt_prog_compiler_pic='-KPIC'
 
7414
      lt_prog_compiler_static='-Bstatic'
 
7415
      ;;
 
7416
 
 
7417
    sysv4*MP*)
 
7418
      if test -d /usr/nec ;then
 
7419
        lt_prog_compiler_pic='-Kconform_pic'
 
7420
        lt_prog_compiler_static='-Bstatic'
 
7421
      fi
 
7422
      ;;
 
7423
 
 
7424
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7425
      lt_prog_compiler_wl='-Wl,'
 
7426
      lt_prog_compiler_pic='-KPIC'
 
7427
      lt_prog_compiler_static='-Bstatic'
 
7428
      ;;
 
7429
 
 
7430
    unicos*)
 
7431
      lt_prog_compiler_wl='-Wl,'
 
7432
      lt_prog_compiler_can_build_shared=no
 
7433
      ;;
 
7434
 
 
7435
    uts4*)
 
7436
      lt_prog_compiler_pic='-pic'
 
7437
      lt_prog_compiler_static='-Bstatic'
 
7438
      ;;
 
7439
 
 
7440
    *)
 
7441
      lt_prog_compiler_can_build_shared=no
 
7442
      ;;
 
7443
    esac
 
7444
  fi
 
7445
 
 
7446
case $host_os in
 
7447
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7448
  *djgpp*)
 
7449
    lt_prog_compiler_pic=
 
7450
    ;;
 
7451
  *)
 
7452
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7453
    ;;
 
7454
esac
 
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
7456
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7457
 
 
7458
 
 
7459
 
 
7460
 
 
7461
 
 
7462
 
 
7463
#
 
7464
# Check to make sure the PIC flag actually works.
 
7465
#
 
7466
if test -n "$lt_prog_compiler_pic"; then
 
7467
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7468
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7469
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
7470
  $as_echo_n "(cached) " >&6
 
7471
else
 
7472
  lt_cv_prog_compiler_pic_works=no
 
7473
   ac_outfile=conftest.$ac_objext
 
7474
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7475
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7476
   # Insert the option either (1) after the last *FLAGS variable, or
 
7477
   # (2) before a word containing "conftest.", or (3) at the end.
 
7478
   # Note that $ac_compile itself does not contain backslashes and begins
 
7479
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7480
   # The option is referenced via a variable to avoid confusing sed.
 
7481
   lt_compile=`echo "$ac_compile" | $SED \
 
7482
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7483
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7484
   -e 's:$: $lt_compiler_flag:'`
 
7485
   (eval echo "\"\$as_me:7485: $lt_compile\"" >&5)
 
7486
   (eval "$lt_compile" 2>conftest.err)
 
7487
   ac_status=$?
 
7488
   cat conftest.err >&5
 
7489
   echo "$as_me:7489: \$? = $ac_status" >&5
 
7490
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7491
     # The compiler can only warn and ignore the option if not recognized
 
7492
     # So say no if there are warnings other than the usual output.
 
7493
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7494
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7495
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7496
       lt_cv_prog_compiler_pic_works=yes
 
7497
     fi
 
7498
   fi
 
7499
   $RM conftest*
 
7500
 
 
7501
fi
 
7502
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
7503
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7504
 
 
7505
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7506
    case $lt_prog_compiler_pic in
 
7507
     "" | " "*) ;;
 
7508
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7509
     esac
 
7510
else
 
7511
    lt_prog_compiler_pic=
 
7512
     lt_prog_compiler_can_build_shared=no
 
7513
fi
 
7514
 
 
7515
fi
 
7516
 
 
7517
 
 
7518
 
 
7519
 
 
7520
 
 
7521
 
 
7522
#
 
7523
# Check to make sure the static flag actually works.
 
7524
#
 
7525
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7527
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7528
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
7529
  $as_echo_n "(cached) " >&6
 
7530
else
 
7531
  lt_cv_prog_compiler_static_works=no
 
7532
   save_LDFLAGS="$LDFLAGS"
 
7533
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7534
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7535
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7536
     # The linker can only warn and ignore the option if not recognized
 
7537
     # So say no if there are warnings
 
7538
     if test -s conftest.err; then
 
7539
       # Append any errors to the config.log.
 
7540
       cat conftest.err 1>&5
 
7541
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7542
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7543
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7544
         lt_cv_prog_compiler_static_works=yes
 
7545
       fi
 
7546
     else
 
7547
       lt_cv_prog_compiler_static_works=yes
 
7548
     fi
 
7549
   fi
 
7550
   $RM -r conftest*
 
7551
   LDFLAGS="$save_LDFLAGS"
 
7552
 
 
7553
fi
 
7554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
7555
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7556
 
 
7557
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7558
    :
 
7559
else
 
7560
    lt_prog_compiler_static=
 
7561
fi
 
7562
 
 
7563
 
 
7564
 
 
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7570
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7571
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
7572
  $as_echo_n "(cached) " >&6
 
7573
else
 
7574
  lt_cv_prog_compiler_c_o=no
 
7575
   $RM -r conftest 2>/dev/null
 
7576
   mkdir conftest
 
7577
   cd conftest
 
7578
   mkdir out
 
7579
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7580
 
 
7581
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7582
   # Insert the option either (1) after the last *FLAGS variable, or
 
7583
   # (2) before a word containing "conftest.", or (3) at the end.
 
7584
   # Note that $ac_compile itself does not contain backslashes and begins
 
7585
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7586
   lt_compile=`echo "$ac_compile" | $SED \
 
7587
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7588
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7589
   -e 's:$: $lt_compiler_flag:'`
 
7590
   (eval echo "\"\$as_me:7590: $lt_compile\"" >&5)
 
7591
   (eval "$lt_compile" 2>out/conftest.err)
 
7592
   ac_status=$?
 
7593
   cat out/conftest.err >&5
 
7594
   echo "$as_me:7594: \$? = $ac_status" >&5
 
7595
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7596
   then
 
7597
     # The compiler can only warn and ignore the option if not recognized
 
7598
     # So say no if there are warnings
 
7599
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7600
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7601
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7602
       lt_cv_prog_compiler_c_o=yes
 
7603
     fi
 
7604
   fi
 
7605
   chmod u+w . 2>&5
 
7606
   $RM conftest*
 
7607
   # SGI C++ compiler will create directory out/ii_files/ for
 
7608
   # template instantiation
 
7609
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
7610
   $RM out/* && rmdir out
 
7611
   cd ..
 
7612
   $RM -r conftest
 
7613
   $RM conftest*
 
7614
 
 
7615
fi
 
7616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
7617
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7618
 
 
7619
 
 
7620
 
 
7621
 
 
7622
 
 
7623
 
 
7624
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7625
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7626
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
7627
  $as_echo_n "(cached) " >&6
 
7628
else
 
7629
  lt_cv_prog_compiler_c_o=no
 
7630
   $RM -r conftest 2>/dev/null
 
7631
   mkdir conftest
 
7632
   cd conftest
 
7633
   mkdir out
 
7634
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7635
 
 
7636
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7637
   # Insert the option either (1) after the last *FLAGS variable, or
 
7638
   # (2) before a word containing "conftest.", or (3) at the end.
 
7639
   # Note that $ac_compile itself does not contain backslashes and begins
 
7640
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7641
   lt_compile=`echo "$ac_compile" | $SED \
 
7642
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7643
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7644
   -e 's:$: $lt_compiler_flag:'`
 
7645
   (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
 
7646
   (eval "$lt_compile" 2>out/conftest.err)
 
7647
   ac_status=$?
 
7648
   cat out/conftest.err >&5
 
7649
   echo "$as_me:7649: \$? = $ac_status" >&5
 
7650
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7651
   then
 
7652
     # The compiler can only warn and ignore the option if not recognized
 
7653
     # So say no if there are warnings
 
7654
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7655
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7656
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7657
       lt_cv_prog_compiler_c_o=yes
 
7658
     fi
 
7659
   fi
 
7660
   chmod u+w . 2>&5
 
7661
   $RM conftest*
 
7662
   # SGI C++ compiler will create directory out/ii_files/ for
 
7663
   # template instantiation
 
7664
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
7665
   $RM out/* && rmdir out
 
7666
   cd ..
 
7667
   $RM -r conftest
 
7668
   $RM conftest*
 
7669
 
 
7670
fi
 
7671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
7672
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7673
 
 
7674
 
 
7675
 
 
7676
 
 
7677
hard_links="nottested"
 
7678
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7679
  # do not overwrite the value of need_locks provided by the user
 
7680
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
7681
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
7682
  hard_links=yes
 
7683
  $RM conftest*
 
7684
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7685
  touch conftest.a
 
7686
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7687
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7688
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
7689
$as_echo "$hard_links" >&6; }
 
7690
  if test "$hard_links" = no; then
 
7691
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7692
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7693
    need_locks=warn
 
7694
  fi
 
7695
else
 
7696
  need_locks=no
 
7697
fi
 
7698
 
 
7699
 
 
7700
 
 
7701
 
 
7702
 
 
7703
 
 
7704
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7705
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
7706
 
 
7707
  runpath_var=
 
7708
  allow_undefined_flag=
 
7709
  always_export_symbols=no
 
7710
  archive_cmds=
 
7711
  archive_expsym_cmds=
 
7712
  compiler_needs_object=no
 
7713
  enable_shared_with_static_runtimes=no
 
7714
  export_dynamic_flag_spec=
 
7715
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7716
  hardcode_automatic=no
 
7717
  hardcode_direct=no
 
7718
  hardcode_direct_absolute=no
 
7719
  hardcode_libdir_flag_spec=
 
7720
  hardcode_libdir_flag_spec_ld=
 
7721
  hardcode_libdir_separator=
 
7722
  hardcode_minus_L=no
 
7723
  hardcode_shlibpath_var=unsupported
 
7724
  inherit_rpath=no
 
7725
  link_all_deplibs=unknown
 
7726
  module_cmds=
 
7727
  module_expsym_cmds=
 
7728
  old_archive_from_new_cmds=
 
7729
  old_archive_from_expsyms_cmds=
 
7730
  thread_safe_flag_spec=
 
7731
  whole_archive_flag_spec=
 
7732
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7733
  # included in the symbol list
 
7734
  include_expsyms=
 
7735
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7736
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7737
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7738
  # as well as any symbol that contains `d'.
 
7739
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
7740
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7741
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7742
  # the symbol is explicitly referenced.  Since portable code cannot
 
7743
  # rely on this symbol name, it's probably fine to never include it in
 
7744
  # preloaded symbol tables.
 
7745
  # Exclude shared library initialization/finalization symbols.
 
7746
  extract_expsyms_cmds=
 
7747
 
 
7748
  case $host_os in
 
7749
  cygwin* | mingw* | pw32* | cegcc*)
 
7750
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7751
    # When not using gcc, we currently assume that we are using
 
7752
    # Microsoft Visual C++.
 
7753
    if test "$GCC" != yes; then
 
7754
      with_gnu_ld=no
 
7755
    fi
 
7756
    ;;
 
7757
  interix*)
 
7758
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7759
    with_gnu_ld=yes
 
7760
    ;;
 
7761
  openbsd*)
 
7762
    with_gnu_ld=no
 
7763
    ;;
 
7764
  linux* | k*bsd*-gnu)
 
7765
    link_all_deplibs=no
 
7766
    ;;
 
7767
  esac
 
7768
 
 
7769
  ld_shlibs=yes
 
7770
  if test "$with_gnu_ld" = yes; then
 
7771
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7772
    wlarc='${wl}'
 
7773
 
 
7774
    # Set some defaults for GNU ld with shared library support. These
 
7775
    # are reset later if shared libraries are not supported. Putting them
 
7776
    # here allows them to be overridden if necessary.
 
7777
    runpath_var=LD_RUN_PATH
 
7778
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7779
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7780
    # ancient GNU ld didn't support --whole-archive et. al.
 
7781
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
7782
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7783
    else
 
7784
      whole_archive_flag_spec=
 
7785
    fi
 
7786
    supports_anon_versioning=no
 
7787
    case `$LD -v 2>&1` in
 
7788
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
7789
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7790
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7791
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7792
      *\ 2.11.*) ;; # other 2.11 versions
 
7793
      *) supports_anon_versioning=yes ;;
 
7794
    esac
 
7795
 
 
7796
    # See if GNU ld supports shared libraries.
 
7797
    case $host_os in
 
7798
    aix[3-9]*)
 
7799
      # On AIX/PPC, the GNU linker is very broken
 
7800
      if test "$host_cpu" != ia64; then
 
7801
        ld_shlibs=no
 
7802
        cat <<_LT_EOF 1>&2
 
7803
 
 
7804
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7805
*** to be unable to reliably create shared libraries on AIX.
 
7806
*** Therefore, libtool is disabling shared libraries support.  If you
 
7807
*** really care for shared libraries, you may want to modify your PATH
 
7808
*** so that a non-GNU linker is found, and then restart.
 
7809
 
 
7810
_LT_EOF
 
7811
      fi
 
7812
      ;;
 
7813
 
 
7814
    amigaos*)
 
7815
      case $host_cpu in
 
7816
      powerpc)
 
7817
            # see comment about AmigaOS4 .so support
 
7818
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7819
            archive_expsym_cmds=''
 
7820
        ;;
 
7821
      m68k)
 
7822
            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)'
 
7823
            hardcode_libdir_flag_spec='-L$libdir'
 
7824
            hardcode_minus_L=yes
 
7825
        ;;
 
7826
      esac
 
7827
      ;;
 
7828
 
 
7829
    beos*)
 
7830
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7831
        allow_undefined_flag=unsupported
 
7832
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7833
        # support --undefined.  This deserves some investigation.  FIXME
 
7834
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7835
      else
 
7836
        ld_shlibs=no
 
7837
      fi
 
7838
      ;;
 
7839
 
 
7840
    cygwin* | mingw* | pw32* | cegcc*)
 
7841
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7842
      # as there is no search path for DLLs.
 
7843
      hardcode_libdir_flag_spec='-L$libdir'
 
7844
      allow_undefined_flag=unsupported
 
7845
      always_export_symbols=no
 
7846
      enable_shared_with_static_runtimes=yes
 
7847
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7848
 
 
7849
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
7850
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7851
        # If the export-symbols file already is a .def file (1st line
 
7852
        # is EXPORTS), use it as is; otherwise, prepend...
 
7853
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7854
          cp $export_symbols $output_objdir/$soname.def;
 
7855
        else
 
7856
          echo EXPORTS > $output_objdir/$soname.def;
 
7857
          cat $export_symbols >> $output_objdir/$soname.def;
 
7858
        fi~
 
7859
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7860
      else
 
7861
        ld_shlibs=no
 
7862
      fi
 
7863
      ;;
 
7864
 
 
7865
    interix[3-9]*)
 
7866
      hardcode_direct=no
 
7867
      hardcode_shlibpath_var=no
 
7868
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7869
      export_dynamic_flag_spec='${wl}-E'
 
7870
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7871
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7872
      # default) and relocated if they conflict, which is a slow very memory
 
7873
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7874
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7875
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7876
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7877
      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'
 
7878
      ;;
 
7879
 
 
7880
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
7881
      tmp_diet=no
 
7882
      if test "$host_os" = linux-dietlibc; then
 
7883
        case $cc_basename in
 
7884
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
7885
        esac
 
7886
      fi
 
7887
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
7888
         && test "$tmp_diet" = no
 
7889
      then
 
7890
        tmp_addflag=
 
7891
        tmp_sharedflag='-shared'
 
7892
        case $cc_basename,$host_cpu in
 
7893
        pgcc*)                          # Portland Group C compiler
 
7894
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7895
          tmp_addflag=' $pic_flag'
 
7896
          ;;
 
7897
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7898
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7899
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7900
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
7901
          tmp_addflag=' -i_dynamic' ;;
 
7902
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7903
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7904
        ifc* | ifort*)                  # Intel Fortran compiler
 
7905
          tmp_addflag=' -nofor_main' ;;
 
7906
        lf95*)                          # Lahey Fortran 8.1
 
7907
          whole_archive_flag_spec=
 
7908
          tmp_sharedflag='--shared' ;;
 
7909
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
7910
          tmp_sharedflag='-qmkshrobj'
 
7911
          tmp_addflag= ;;
 
7912
        esac
 
7913
        case `$CC -V 2>&1 | sed 5q` in
 
7914
        *Sun\ C*)                       # Sun C 5.9
 
7915
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
7916
          compiler_needs_object=yes
 
7917
          tmp_sharedflag='-G' ;;
 
7918
        *Sun\ F*)                       # Sun Fortran 8.3
 
7919
          tmp_sharedflag='-G' ;;
 
7920
        esac
 
7921
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7922
 
 
7923
        if test "x$supports_anon_versioning" = xyes; then
 
7924
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
7925
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7926
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
7927
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7928
        fi
 
7929
 
 
7930
        case $cc_basename in
 
7931
        xlf*)
 
7932
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
7933
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
7934
          hardcode_libdir_flag_spec=
 
7935
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7936
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
7937
          if test "x$supports_anon_versioning" = xyes; then
 
7938
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
7939
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7940
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
7941
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
7942
          fi
 
7943
          ;;
 
7944
        esac
 
7945
      else
 
7946
        ld_shlibs=no
 
7947
      fi
 
7948
      ;;
 
7949
 
 
7950
    netbsd* | netbsdelf*-gnu)
 
7951
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
7952
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7953
        wlarc=
 
7954
      else
 
7955
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7956
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7957
      fi
 
7958
      ;;
 
7959
 
 
7960
    solaris*)
 
7961
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
7962
        ld_shlibs=no
 
7963
        cat <<_LT_EOF 1>&2
 
7964
 
 
7965
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7966
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7967
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7968
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7969
*** your PATH or compiler configuration so that the native linker is
 
7970
*** used, and then restart.
 
7971
 
 
7972
_LT_EOF
 
7973
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
7974
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7975
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7976
      else
 
7977
        ld_shlibs=no
 
7978
      fi
 
7979
      ;;
 
7980
 
 
7981
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7982
      case `$LD -v 2>&1` in
 
7983
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7984
        ld_shlibs=no
 
7985
        cat <<_LT_EOF 1>&2
 
7986
 
 
7987
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7988
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7989
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7990
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7991
*** your PATH or compiler configuration so that the native linker is
 
7992
*** used, and then restart.
 
7993
 
 
7994
_LT_EOF
 
7995
        ;;
 
7996
        *)
 
7997
          # For security reasons, it is highly recommended that you always
 
7998
          # use absolute paths for naming shared libraries, and exclude the
 
7999
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8000
          # requires that you compile everything twice, which is a pain.
 
8001
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8002
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8003
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8004
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8005
          else
 
8006
            ld_shlibs=no
 
8007
          fi
 
8008
        ;;
 
8009
      esac
 
8010
      ;;
 
8011
 
 
8012
    sunos4*)
 
8013
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8014
      wlarc=
 
8015
      hardcode_direct=yes
 
8016
      hardcode_shlibpath_var=no
 
8017
      ;;
 
8018
 
 
8019
    *)
 
8020
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8021
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8022
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8023
      else
 
8024
        ld_shlibs=no
 
8025
      fi
 
8026
      ;;
 
8027
    esac
 
8028
 
 
8029
    if test "$ld_shlibs" = no; then
 
8030
      runpath_var=
 
8031
      hardcode_libdir_flag_spec=
 
8032
      export_dynamic_flag_spec=
 
8033
      whole_archive_flag_spec=
 
8034
    fi
 
8035
  else
 
8036
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8037
    case $host_os in
 
8038
    aix3*)
 
8039
      allow_undefined_flag=unsupported
 
8040
      always_export_symbols=yes
 
8041
      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'
 
8042
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8043
      # are no directories specified by -L.
 
8044
      hardcode_minus_L=yes
 
8045
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8046
        # Neither direct hardcoding nor static linking is supported with a
 
8047
        # broken collect2.
 
8048
        hardcode_direct=unsupported
 
8049
      fi
 
8050
      ;;
 
8051
 
 
8052
    aix[4-9]*)
 
8053
      if test "$host_cpu" = ia64; then
 
8054
        # On IA64, the linker does run time linking by default, so we don't
 
8055
        # have to do anything special.
 
8056
        aix_use_runtimelinking=no
 
8057
        exp_sym_flag='-Bexport'
 
8058
        no_entry_flag=""
 
8059
      else
 
8060
        # If we're using GNU nm, then we don't want the "-C" option.
 
8061
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8062
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8063
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8064
        else
 
8065
          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'
 
8066
        fi
 
8067
        aix_use_runtimelinking=no
 
8068
 
 
8069
        # Test if we are trying to use run time linking or normal
 
8070
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8071
        # need to do runtime linking.
 
8072
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8073
          for ld_flag in $LDFLAGS; do
 
8074
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8075
            aix_use_runtimelinking=yes
 
8076
            break
 
8077
          fi
 
8078
          done
 
8079
          ;;
 
8080
        esac
 
8081
 
 
8082
        exp_sym_flag='-bexport'
 
8083
        no_entry_flag='-bnoentry'
 
8084
      fi
 
8085
 
 
8086
      # When large executables or shared objects are built, AIX ld can
 
8087
      # have problems creating the table of contents.  If linking a library
 
8088
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8089
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8090
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8091
 
 
8092
      archive_cmds=''
 
8093
      hardcode_direct=yes
 
8094
      hardcode_direct_absolute=yes
 
8095
      hardcode_libdir_separator=':'
 
8096
      link_all_deplibs=yes
 
8097
      file_list_spec='${wl}-f,'
 
8098
 
 
8099
      if test "$GCC" = yes; then
 
8100
        case $host_os in aix4.[012]|aix4.[012].*)
 
8101
        # We only want to do this on AIX 4.2 and lower, the check
 
8102
        # below for broken collect2 doesn't work under 4.3+
 
8103
          collect2name=`${CC} -print-prog-name=collect2`
 
8104
          if test -f "$collect2name" &&
 
8105
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8106
          then
 
8107
          # We have reworked collect2
 
8108
          :
 
8109
          else
 
8110
          # We have old collect2
 
8111
          hardcode_direct=unsupported
 
8112
          # It fails to find uninstalled libraries when the uninstalled
 
8113
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8114
          # to unsupported forces relinking
 
8115
          hardcode_minus_L=yes
 
8116
          hardcode_libdir_flag_spec='-L$libdir'
 
8117
          hardcode_libdir_separator=
 
8118
          fi
 
8119
          ;;
 
8120
        esac
 
8121
        shared_flag='-shared'
 
8122
        if test "$aix_use_runtimelinking" = yes; then
 
8123
          shared_flag="$shared_flag "'${wl}-G'
 
8124
        fi
 
8125
        link_all_deplibs=no
 
8126
      else
 
8127
        # not using gcc
 
8128
        if test "$host_cpu" = ia64; then
 
8129
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8130
        # chokes on -Wl,-G. The following line is correct:
 
8131
          shared_flag='-G'
 
8132
        else
 
8133
          if test "$aix_use_runtimelinking" = yes; then
 
8134
            shared_flag='${wl}-G'
 
8135
          else
 
8136
            shared_flag='${wl}-bM:SRE'
 
8137
          fi
 
8138
        fi
 
8139
      fi
 
8140
 
 
8141
      export_dynamic_flag_spec='${wl}-bexpall'
 
8142
      # It seems that -bexpall does not export symbols beginning with
 
8143
      # underscore (_), so it is better to generate a list of symbols to export.
 
8144
      always_export_symbols=yes
 
8145
      if test "$aix_use_runtimelinking" = yes; then
 
8146
        # Warning - without using the other runtime loading flags (-brtl),
 
8147
        # -berok will link without error, but may produce a broken library.
 
8148
        allow_undefined_flag='-berok'
 
8149
        # Determine the default libpath from the value encoded in an
 
8150
        # empty executable.
 
8151
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8152
/* end confdefs.h.  */
 
8153
 
 
8154
int
 
8155
main ()
 
8156
{
 
8157
 
 
8158
  ;
 
8159
  return 0;
 
8160
}
 
8161
_ACEOF
 
8162
if ac_fn_c_try_link "$LINENO"; then :
 
8163
 
 
8164
lt_aix_libpath_sed='
 
8165
    /Import File Strings/,/^$/ {
 
8166
        /^0/ {
 
8167
            s/^0  *\(.*\)$/\1/
 
8168
            p
 
8169
        }
 
8170
    }'
 
8171
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8172
# Check for a 64-bit object if we didn't find anything.
 
8173
if test -z "$aix_libpath"; then
 
8174
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8175
fi
 
8176
fi
 
8177
rm -f core conftest.err conftest.$ac_objext \
 
8178
    conftest$ac_exeext conftest.$ac_ext
 
8179
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8180
 
 
8181
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8182
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8183
      else
 
8184
        if test "$host_cpu" = ia64; then
 
8185
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8186
          allow_undefined_flag="-z nodefs"
 
8187
          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"
 
8188
        else
 
8189
         # Determine the default libpath from the value encoded in an
 
8190
         # empty executable.
 
8191
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8192
/* end confdefs.h.  */
 
8193
 
 
8194
int
 
8195
main ()
 
8196
{
 
8197
 
 
8198
  ;
 
8199
  return 0;
 
8200
}
 
8201
_ACEOF
 
8202
if ac_fn_c_try_link "$LINENO"; then :
 
8203
 
 
8204
lt_aix_libpath_sed='
 
8205
    /Import File Strings/,/^$/ {
 
8206
        /^0/ {
 
8207
            s/^0  *\(.*\)$/\1/
 
8208
            p
 
8209
        }
 
8210
    }'
 
8211
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8212
# Check for a 64-bit object if we didn't find anything.
 
8213
if test -z "$aix_libpath"; then
 
8214
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8215
fi
 
8216
fi
 
8217
rm -f core conftest.err conftest.$ac_objext \
 
8218
    conftest$ac_exeext conftest.$ac_ext
 
8219
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8220
 
 
8221
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8222
          # Warning - without using the other run time loading flags,
 
8223
          # -berok will link without error, but may produce a broken library.
 
8224
          no_undefined_flag=' ${wl}-bernotok'
 
8225
          allow_undefined_flag=' ${wl}-berok'
 
8226
          # Exported symbols can be pulled into shared objects from archives
 
8227
          whole_archive_flag_spec='$convenience'
 
8228
          archive_cmds_need_lc=yes
 
8229
          # This is similar to how AIX traditionally builds its shared libraries.
 
8230
          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'
 
8231
        fi
 
8232
      fi
 
8233
      ;;
 
8234
 
 
8235
    amigaos*)
 
8236
      case $host_cpu in
 
8237
      powerpc)
 
8238
            # see comment about AmigaOS4 .so support
 
8239
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8240
            archive_expsym_cmds=''
 
8241
        ;;
 
8242
      m68k)
 
8243
            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)'
 
8244
            hardcode_libdir_flag_spec='-L$libdir'
 
8245
            hardcode_minus_L=yes
 
8246
        ;;
 
8247
      esac
 
8248
      ;;
 
8249
 
 
8250
    bsdi[45]*)
 
8251
      export_dynamic_flag_spec=-rdynamic
 
8252
      ;;
 
8253
 
 
8254
    cygwin* | mingw* | pw32* | cegcc*)
 
8255
      # When not using gcc, we currently assume that we are using
 
8256
      # Microsoft Visual C++.
 
8257
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8258
      # no search path for DLLs.
 
8259
      hardcode_libdir_flag_spec=' '
 
8260
      allow_undefined_flag=unsupported
 
8261
      # Tell ltmain to make .lib files, not .a files.
 
8262
      libext=lib
 
8263
      # Tell ltmain to make .dll files, not .so files.
 
8264
      shrext_cmds=".dll"
 
8265
      # FIXME: Setting linknames here is a bad hack.
 
8266
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8267
      # The linker will automatically build a .lib file if we build a DLL.
 
8268
      old_archive_from_new_cmds='true'
 
8269
      # FIXME: Should let the user specify the lib program.
 
8270
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8271
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8272
      enable_shared_with_static_runtimes=yes
 
8273
      ;;
 
8274
 
 
8275
    darwin* | rhapsody*)
 
8276
 
 
8277
 
 
8278
  archive_cmds_need_lc=no
 
8279
  hardcode_direct=no
 
8280
  hardcode_automatic=yes
 
8281
  hardcode_shlibpath_var=unsupported
 
8282
  whole_archive_flag_spec=''
 
8283
  link_all_deplibs=yes
 
8284
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
8285
  case $cc_basename in
 
8286
     ifort*) _lt_dar_can_shared=yes ;;
 
8287
     *) _lt_dar_can_shared=$GCC ;;
 
8288
  esac
 
8289
  if test "$_lt_dar_can_shared" = "yes"; then
 
8290
    output_verbose_link_cmd=echo
 
8291
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8292
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8293
    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}"
 
8294
    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}"
 
8295
 
 
8296
  else
 
8297
  ld_shlibs=no
 
8298
  fi
 
8299
 
 
8300
      ;;
 
8301
 
 
8302
    dgux*)
 
8303
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8304
      hardcode_libdir_flag_spec='-L$libdir'
 
8305
      hardcode_shlibpath_var=no
 
8306
      ;;
 
8307
 
 
8308
    freebsd1*)
 
8309
      ld_shlibs=no
 
8310
      ;;
 
8311
 
 
8312
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8313
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8314
    # does not break anything, and helps significantly (at the cost of a little
 
8315
    # extra space).
 
8316
    freebsd2.2*)
 
8317
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8318
      hardcode_libdir_flag_spec='-R$libdir'
 
8319
      hardcode_direct=yes
 
8320
      hardcode_shlibpath_var=no
 
8321
      ;;
 
8322
 
 
8323
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8324
    freebsd2*)
 
8325
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8326
      hardcode_direct=yes
 
8327
      hardcode_minus_L=yes
 
8328
      hardcode_shlibpath_var=no
 
8329
      ;;
 
8330
 
 
8331
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8332
    freebsd* | dragonfly*)
 
8333
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8334
      hardcode_libdir_flag_spec='-R$libdir'
 
8335
      hardcode_direct=yes
 
8336
      hardcode_shlibpath_var=no
 
8337
      ;;
 
8338
 
 
8339
    hpux9*)
 
8340
      if test "$GCC" = yes; then
 
8341
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8342
      else
 
8343
        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'
 
8344
      fi
 
8345
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8346
      hardcode_libdir_separator=:
 
8347
      hardcode_direct=yes
 
8348
 
 
8349
      # hardcode_minus_L: Not really in the search PATH,
 
8350
      # but as the default location of the library.
 
8351
      hardcode_minus_L=yes
 
8352
      export_dynamic_flag_spec='${wl}-E'
 
8353
      ;;
 
8354
 
 
8355
    hpux10*)
 
8356
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8357
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8358
      else
 
8359
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8360
      fi
 
8361
      if test "$with_gnu_ld" = no; then
 
8362
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8363
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
8364
        hardcode_libdir_separator=:
 
8365
        hardcode_direct=yes
 
8366
        hardcode_direct_absolute=yes
 
8367
        export_dynamic_flag_spec='${wl}-E'
 
8368
        # hardcode_minus_L: Not really in the search PATH,
 
8369
        # but as the default location of the library.
 
8370
        hardcode_minus_L=yes
 
8371
      fi
 
8372
      ;;
 
8373
 
 
8374
    hpux11*)
 
8375
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8376
        case $host_cpu in
 
8377
        hppa*64*)
 
8378
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8379
          ;;
 
8380
        ia64*)
 
8381
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8382
          ;;
 
8383
        *)
 
8384
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8385
          ;;
 
8386
        esac
 
8387
      else
 
8388
        case $host_cpu in
 
8389
        hppa*64*)
 
8390
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8391
          ;;
 
8392
        ia64*)
 
8393
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8394
          ;;
 
8395
        *)
 
8396
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8397
          ;;
 
8398
        esac
 
8399
      fi
 
8400
      if test "$with_gnu_ld" = no; then
 
8401
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8402
        hardcode_libdir_separator=:
 
8403
 
 
8404
        case $host_cpu in
 
8405
        hppa*64*|ia64*)
 
8406
          hardcode_direct=no
 
8407
          hardcode_shlibpath_var=no
 
8408
          ;;
 
8409
        *)
 
8410
          hardcode_direct=yes
 
8411
          hardcode_direct_absolute=yes
 
8412
          export_dynamic_flag_spec='${wl}-E'
 
8413
 
 
8414
          # hardcode_minus_L: Not really in the search PATH,
 
8415
          # but as the default location of the library.
 
8416
          hardcode_minus_L=yes
 
8417
          ;;
 
8418
        esac
 
8419
      fi
 
8420
      ;;
 
8421
 
 
8422
    irix5* | irix6* | nonstopux*)
 
8423
      if test "$GCC" = yes; then
 
8424
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8425
        # Try to use the -exported_symbol ld option, if it does not
 
8426
        # work, assume that -exports_file does not work either and
 
8427
        # implicitly export all symbols.
 
8428
        save_LDFLAGS="$LDFLAGS"
 
8429
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
8430
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8431
/* end confdefs.h.  */
 
8432
int foo(void) {}
 
8433
_ACEOF
 
8434
if ac_fn_c_try_link "$LINENO"; then :
 
8435
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
8436
 
 
8437
fi
 
8438
rm -f core conftest.err conftest.$ac_objext \
 
8439
    conftest$ac_exeext conftest.$ac_ext
 
8440
        LDFLAGS="$save_LDFLAGS"
 
8441
      else
 
8442
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8443
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
8444
      fi
 
8445
      archive_cmds_need_lc='no'
 
8446
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8447
      hardcode_libdir_separator=:
 
8448
      inherit_rpath=yes
 
8449
      link_all_deplibs=yes
 
8450
      ;;
 
8451
 
 
8452
    netbsd* | netbsdelf*-gnu)
 
8453
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8454
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8455
      else
 
8456
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8457
      fi
 
8458
      hardcode_libdir_flag_spec='-R$libdir'
 
8459
      hardcode_direct=yes
 
8460
      hardcode_shlibpath_var=no
 
8461
      ;;
 
8462
 
 
8463
    newsos6)
 
8464
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8465
      hardcode_direct=yes
 
8466
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8467
      hardcode_libdir_separator=:
 
8468
      hardcode_shlibpath_var=no
 
8469
      ;;
 
8470
 
 
8471
    *nto* | *qnx*)
 
8472
      ;;
 
8473
 
 
8474
    openbsd*)
 
8475
      if test -f /usr/libexec/ld.so; then
 
8476
        hardcode_direct=yes
 
8477
        hardcode_shlibpath_var=no
 
8478
        hardcode_direct_absolute=yes
 
8479
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8480
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8481
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8482
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8483
          export_dynamic_flag_spec='${wl}-E'
 
8484
        else
 
8485
          case $host_os in
 
8486
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8487
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8488
             hardcode_libdir_flag_spec='-R$libdir'
 
8489
             ;;
 
8490
           *)
 
8491
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8492
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8493
             ;;
 
8494
          esac
 
8495
        fi
 
8496
      else
 
8497
        ld_shlibs=no
 
8498
      fi
 
8499
      ;;
 
8500
 
 
8501
    os2*)
 
8502
      hardcode_libdir_flag_spec='-L$libdir'
 
8503
      hardcode_minus_L=yes
 
8504
      allow_undefined_flag=unsupported
 
8505
      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'
 
8506
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8507
      ;;
 
8508
 
 
8509
    osf3*)
 
8510
      if test "$GCC" = yes; then
 
8511
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8512
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8513
      else
 
8514
        allow_undefined_flag=' -expect_unresolved \*'
 
8515
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8516
      fi
 
8517
      archive_cmds_need_lc='no'
 
8518
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8519
      hardcode_libdir_separator=:
 
8520
      ;;
 
8521
 
 
8522
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8523
      if test "$GCC" = yes; then
 
8524
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8525
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8526
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8527
      else
 
8528
        allow_undefined_flag=' -expect_unresolved \*'
 
8529
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
8530
        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~
 
8531
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
8532
 
 
8533
        # Both c and cxx compiler support -rpath directly
 
8534
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8535
      fi
 
8536
      archive_cmds_need_lc='no'
 
8537
      hardcode_libdir_separator=:
 
8538
      ;;
 
8539
 
 
8540
    solaris*)
 
8541
      no_undefined_flag=' -z defs'
 
8542
      if test "$GCC" = yes; then
 
8543
        wlarc='${wl}'
 
8544
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8545
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8546
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8547
      else
 
8548
        case `$CC -V 2>&1` in
 
8549
        *"Compilers 5.0"*)
 
8550
          wlarc=''
 
8551
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8552
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8553
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
8554
          ;;
 
8555
        *)
 
8556
          wlarc='${wl}'
 
8557
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8558
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
8559
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
8560
          ;;
 
8561
        esac
 
8562
      fi
 
8563
      hardcode_libdir_flag_spec='-R$libdir'
 
8564
      hardcode_shlibpath_var=no
 
8565
      case $host_os in
 
8566
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8567
      *)
 
8568
        # The compiler driver will combine and reorder linker options,
 
8569
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8570
        # but is careful enough not to reorder.
 
8571
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8572
        if test "$GCC" = yes; then
 
8573
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8574
        else
 
8575
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8576
        fi
 
8577
        ;;
 
8578
      esac
 
8579
      link_all_deplibs=yes
 
8580
      ;;
 
8581
 
 
8582
    sunos4*)
 
8583
      if test "x$host_vendor" = xsequent; then
 
8584
        # Use $CC to link under sequent, because it throws in some extra .o
 
8585
        # files that make .init and .fini sections work.
 
8586
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8587
      else
 
8588
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8589
      fi
 
8590
      hardcode_libdir_flag_spec='-L$libdir'
 
8591
      hardcode_direct=yes
 
8592
      hardcode_minus_L=yes
 
8593
      hardcode_shlibpath_var=no
 
8594
      ;;
 
8595
 
 
8596
    sysv4)
 
8597
      case $host_vendor in
 
8598
        sni)
 
8599
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8600
          hardcode_direct=yes # is this really true???
 
8601
        ;;
 
8602
        siemens)
 
8603
          ## LD is ld it makes a PLAMLIB
 
8604
          ## CC just makes a GrossModule.
 
8605
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8606
          reload_cmds='$CC -r -o $output$reload_objs'
 
8607
          hardcode_direct=no
 
8608
        ;;
 
8609
        motorola)
 
8610
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8611
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8612
        ;;
 
8613
      esac
 
8614
      runpath_var='LD_RUN_PATH'
 
8615
      hardcode_shlibpath_var=no
 
8616
      ;;
 
8617
 
 
8618
    sysv4.3*)
 
8619
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8620
      hardcode_shlibpath_var=no
 
8621
      export_dynamic_flag_spec='-Bexport'
 
8622
      ;;
 
8623
 
 
8624
    sysv4*MP*)
 
8625
      if test -d /usr/nec; then
 
8626
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8627
        hardcode_shlibpath_var=no
 
8628
        runpath_var=LD_RUN_PATH
 
8629
        hardcode_runpath_var=yes
 
8630
        ld_shlibs=yes
 
8631
      fi
 
8632
      ;;
 
8633
 
 
8634
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8635
      no_undefined_flag='${wl}-z,text'
 
8636
      archive_cmds_need_lc=no
 
8637
      hardcode_shlibpath_var=no
 
8638
      runpath_var='LD_RUN_PATH'
 
8639
 
 
8640
      if test "$GCC" = yes; then
 
8641
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8642
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8643
      else
 
8644
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8645
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8646
      fi
 
8647
      ;;
 
8648
 
 
8649
    sysv5* | sco3.2v5* | sco5v6*)
 
8650
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8651
      # link with -lc, and that would cause any symbols used from libc to
 
8652
      # always be unresolved, which means just about no library would
 
8653
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8654
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8655
      # as -z defs.
 
8656
      no_undefined_flag='${wl}-z,text'
 
8657
      allow_undefined_flag='${wl}-z,nodefs'
 
8658
      archive_cmds_need_lc=no
 
8659
      hardcode_shlibpath_var=no
 
8660
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
8661
      hardcode_libdir_separator=':'
 
8662
      link_all_deplibs=yes
 
8663
      export_dynamic_flag_spec='${wl}-Bexport'
 
8664
      runpath_var='LD_RUN_PATH'
 
8665
 
 
8666
      if test "$GCC" = yes; then
 
8667
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8668
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8669
      else
 
8670
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8671
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8672
      fi
 
8673
      ;;
 
8674
 
 
8675
    uts4*)
 
8676
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8677
      hardcode_libdir_flag_spec='-L$libdir'
 
8678
      hardcode_shlibpath_var=no
 
8679
      ;;
 
8680
 
 
8681
    *)
 
8682
      ld_shlibs=no
 
8683
      ;;
 
8684
    esac
 
8685
 
 
8686
    if test x$host_vendor = xsni; then
 
8687
      case $host in
 
8688
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8689
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8690
        ;;
 
8691
      esac
 
8692
    fi
 
8693
  fi
 
8694
 
 
8695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
8696
$as_echo "$ld_shlibs" >&6; }
 
8697
test "$ld_shlibs" = no && can_build_shared=no
 
8698
 
 
8699
with_gnu_ld=$with_gnu_ld
 
8700
 
 
8701
 
 
8702
 
 
8703
 
 
8704
 
 
8705
 
 
8706
 
 
8707
 
 
8708
 
 
8709
 
 
8710
 
 
8711
 
 
8712
 
 
8713
 
 
8714
 
 
8715
#
 
8716
# Do we need to explicitly link libc?
 
8717
#
 
8718
case "x$archive_cmds_need_lc" in
 
8719
x|xyes)
 
8720
  # Assume -lc should be added
 
8721
  archive_cmds_need_lc=yes
 
8722
 
 
8723
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8724
    case $archive_cmds in
 
8725
    *'~'*)
 
8726
      # FIXME: we may have to deal with multi-command sequences.
 
8727
      ;;
 
8728
    '$CC '*)
 
8729
      # Test whether the compiler implicitly links with -lc since on some
 
8730
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8731
      # to ld, don't add -lc before -lgcc.
 
8732
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
8733
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
8734
      $RM conftest*
 
8735
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8736
 
 
8737
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8738
  (eval $ac_compile) 2>&5
 
8739
  ac_status=$?
 
8740
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8741
  test $ac_status = 0; } 2>conftest.err; then
 
8742
        soname=conftest
 
8743
        lib=conftest
 
8744
        libobjs=conftest.$ac_objext
 
8745
        deplibs=
 
8746
        wl=$lt_prog_compiler_wl
 
8747
        pic_flag=$lt_prog_compiler_pic
 
8748
        compiler_flags=-v
 
8749
        linker_flags=-v
 
8750
        verstring=
 
8751
        output_objdir=.
 
8752
        libname=conftest
 
8753
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8754
        allow_undefined_flag=
 
8755
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
8756
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8757
  ac_status=$?
 
8758
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8759
  test $ac_status = 0; }
 
8760
        then
 
8761
          archive_cmds_need_lc=no
 
8762
        else
 
8763
          archive_cmds_need_lc=yes
 
8764
        fi
 
8765
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8766
      else
 
8767
        cat conftest.err 1>&5
 
8768
      fi
 
8769
      $RM conftest*
 
8770
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
8771
$as_echo "$archive_cmds_need_lc" >&6; }
 
8772
      ;;
 
8773
    esac
 
8774
  fi
 
8775
  ;;
 
8776
esac
 
8777
 
 
8778
 
 
8779
 
 
8780
 
 
8781
 
 
8782
 
 
8783
 
 
8784
 
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
 
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
 
 
8797
 
 
8798
 
 
8799
 
 
8800
 
 
8801
 
 
8802
 
 
8803
 
 
8804
 
 
8805
 
 
8806
 
 
8807
 
 
8808
 
 
8809
 
 
8810
 
 
8811
 
 
8812
 
 
8813
 
 
8814
 
 
8815
 
 
8816
 
 
8817
 
 
8818
 
 
8819
 
 
8820
 
 
8821
 
 
8822
 
 
8823
 
 
8824
 
 
8825
 
 
8826
 
 
8827
 
 
8828
 
 
8829
 
 
8830
 
 
8831
 
 
8832
 
 
8833
 
 
8834
 
 
8835
 
 
8836
 
 
8837
 
 
8838
 
 
8839
 
 
8840
 
 
8841
 
 
8842
 
 
8843
 
 
8844
 
 
8845
 
 
8846
 
 
8847
 
 
8848
 
 
8849
 
 
8850
 
 
8851
 
 
8852
 
 
8853
 
 
8854
 
 
8855
 
 
8856
 
 
8857
 
 
8858
 
 
8859
 
 
8860
 
 
8861
 
 
8862
 
 
8863
 
 
8864
 
 
8865
 
 
8866
 
 
8867
 
 
8868
 
 
8869
 
 
8870
 
 
8871
 
 
8872
 
 
8873
 
 
8874
 
 
8875
 
 
8876
 
 
8877
 
 
8878
 
 
8879
 
 
8880
 
 
8881
 
 
8882
 
 
8883
 
 
8884
 
 
8885
 
 
8886
 
 
8887
 
 
8888
 
 
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
 
8894
 
 
8895
 
 
8896
 
 
8897
 
 
8898
 
 
8899
 
 
8900
 
 
8901
 
 
8902
 
 
8903
 
 
8904
 
 
8905
 
 
8906
 
 
8907
 
 
8908
 
 
8909
 
 
8910
 
 
8911
 
 
8912
 
 
8913
 
 
8914
 
 
8915
 
 
8916
 
 
8917
 
 
8918
 
 
8919
 
 
8920
 
 
8921
 
 
8922
 
 
8923
 
 
8924
 
 
8925
 
 
8926
 
 
8927
 
 
8928
 
 
8929
 
 
8930
 
 
8931
 
 
8932
 
 
8933
 
 
8934
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
8935
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
8936
 
 
8937
if test "$GCC" = yes; then
 
8938
  case $host_os in
 
8939
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8940
    *) lt_awk_arg="/^libraries:/" ;;
 
8941
  esac
 
8942
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8943
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
8944
    # if the path contains ";" then we assume it to be the separator
 
8945
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8946
    # assumed that no part of a normal pathname contains ";" but that should
 
8947
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8948
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8949
  else
 
8950
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8951
  fi
 
8952
  # Ok, now we have the path, separated by spaces, we can step through it
 
8953
  # and add multilib dir if necessary.
 
8954
  lt_tmp_lt_search_path_spec=
 
8955
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8956
  for lt_sys_path in $lt_search_path_spec; do
 
8957
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8958
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8959
    else
 
8960
      test -d "$lt_sys_path" && \
 
8961
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8962
    fi
 
8963
  done
 
8964
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
8965
BEGIN {RS=" "; FS="/|\n";} {
 
8966
  lt_foo="";
 
8967
  lt_count=0;
 
8968
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8969
    if ($lt_i != "" && $lt_i != ".") {
 
8970
      if ($lt_i == "..") {
 
8971
        lt_count++;
 
8972
      } else {
 
8973
        if (lt_count == 0) {
 
8974
          lt_foo="/" $lt_i lt_foo;
 
8975
        } else {
 
8976
          lt_count--;
 
8977
        }
 
8978
      }
 
8979
    }
 
8980
  }
 
8981
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8982
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8983
}'`
 
8984
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
8985
else
 
8986
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8987
fi
 
8988
library_names_spec=
 
8989
libname_spec='lib$name'
 
8990
soname_spec=
 
8991
shrext_cmds=".so"
 
8992
postinstall_cmds=
 
8993
postuninstall_cmds=
 
8994
finish_cmds=
 
8995
finish_eval=
 
8996
shlibpath_var=
 
8997
shlibpath_overrides_runpath=unknown
 
8998
version_type=none
 
8999
dynamic_linker="$host_os ld.so"
 
9000
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9001
need_lib_prefix=unknown
 
9002
hardcode_into_libs=no
 
9003
 
 
9004
# when you set need_version to no, make sure it does not cause -set_version
 
9005
# flags to be left without arguments
 
9006
need_version=unknown
 
9007
 
 
9008
case $host_os in
 
9009
aix3*)
 
9010
  version_type=linux
 
9011
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9012
  shlibpath_var=LIBPATH
 
9013
 
 
9014
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9015
  soname_spec='${libname}${release}${shared_ext}$major'
 
9016
  ;;
 
9017
 
 
9018
aix[4-9]*)
 
9019
  version_type=linux
 
9020
  need_lib_prefix=no
 
9021
  need_version=no
 
9022
  hardcode_into_libs=yes
 
9023
  if test "$host_cpu" = ia64; then
 
9024
    # AIX 5 supports IA64
 
9025
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9026
    shlibpath_var=LD_LIBRARY_PATH
 
9027
  else
 
9028
    # With GCC up to 2.95.x, collect2 would create an import file
 
9029
    # for dependence libraries.  The import file would start with
 
9030
    # the line `#! .'.  This would cause the generated library to
 
9031
    # depend on `.', always an invalid library.  This was fixed in
 
9032
    # development snapshots of GCC prior to 3.0.
 
9033
    case $host_os in
 
9034
      aix4 | aix4.[01] | aix4.[01].*)
 
9035
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9036
           echo ' yes '
 
9037
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
9038
        :
 
9039
      else
 
9040
        can_build_shared=no
 
9041
      fi
 
9042
      ;;
 
9043
    esac
 
9044
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9045
    # soname into executable. Probably we can add versioning support to
 
9046
    # collect2, so additional links can be useful in future.
 
9047
    if test "$aix_use_runtimelinking" = yes; then
 
9048
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9049
      # instead of lib<name>.a to let people know that these are not
 
9050
      # typical AIX shared libraries.
 
9051
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9052
    else
 
9053
      # We preserve .a as extension for shared libraries through AIX4.2
 
9054
      # and later when we are not doing run time linking.
 
9055
      library_names_spec='${libname}${release}.a $libname.a'
 
9056
      soname_spec='${libname}${release}${shared_ext}$major'
 
9057
    fi
 
9058
    shlibpath_var=LIBPATH
 
9059
  fi
 
9060
  ;;
 
9061
 
 
9062
amigaos*)
 
9063
  case $host_cpu in
 
9064
  powerpc)
 
9065
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
9066
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
9067
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9068
    ;;
 
9069
  m68k)
 
9070
    library_names_spec='$libname.ixlibrary $libname.a'
 
9071
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9072
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9073
    ;;
 
9074
  esac
 
9075
  ;;
 
9076
 
 
9077
beos*)
 
9078
  library_names_spec='${libname}${shared_ext}'
 
9079
  dynamic_linker="$host_os ld.so"
 
9080
  shlibpath_var=LIBRARY_PATH
 
9081
  ;;
 
9082
 
 
9083
bsdi[45]*)
 
9084
  version_type=linux
 
9085
  need_version=no
 
9086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9087
  soname_spec='${libname}${release}${shared_ext}$major'
 
9088
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9089
  shlibpath_var=LD_LIBRARY_PATH
 
9090
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9091
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9092
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9093
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9094
  # libtool to hard-code these into programs
 
9095
  ;;
 
9096
 
 
9097
cygwin* | mingw* | pw32* | cegcc*)
 
9098
  version_type=windows
 
9099
  shrext_cmds=".dll"
 
9100
  need_version=no
 
9101
  need_lib_prefix=no
 
9102
 
 
9103
  case $GCC,$host_os in
 
9104
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
9105
    library_names_spec='$libname.dll.a'
 
9106
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9107
    postinstall_cmds='base_file=`basename \${file}`~
 
9108
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
9109
      dldir=$destdir/`dirname \$dlpath`~
 
9110
      test -d \$dldir || mkdir -p \$dldir~
 
9111
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9112
      chmod a+x \$dldir/$dlname~
 
9113
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
9114
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
9115
      fi'
 
9116
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9117
      dlpath=$dir/\$dldll~
 
9118
       $RM \$dlpath'
 
9119
    shlibpath_overrides_runpath=yes
 
9120
 
 
9121
    case $host_os in
 
9122
    cygwin*)
 
9123
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9124
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9125
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9126
      ;;
 
9127
    mingw* | cegcc*)
 
9128
      # MinGW DLLs use traditional 'lib' prefix
 
9129
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9130
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9131
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
9132
        # It is most probably a Windows format PATH printed by
 
9133
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9134
        # path with ; separators, and with drive letters. We can handle the
 
9135
        # drive letters (cygwin fileutils understands them), so leave them,
 
9136
        # especially as we might pass files found there to a mingw objdump,
 
9137
        # which wouldn't understand a cygwinified path. Ahh.
 
9138
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9139
      else
 
9140
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9141
      fi
 
9142
      ;;
 
9143
    pw32*)
 
9144
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9145
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9146
      ;;
 
9147
    esac
 
9148
    ;;
 
9149
 
 
9150
  *)
 
9151
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9152
    ;;
 
9153
  esac
 
9154
  dynamic_linker='Win32 ld.exe'
 
9155
  # FIXME: first we should search . and the directory the executable is in
 
9156
  shlibpath_var=PATH
 
9157
  ;;
 
9158
 
 
9159
darwin* | rhapsody*)
 
9160
  dynamic_linker="$host_os dyld"
 
9161
  version_type=darwin
 
9162
  need_lib_prefix=no
 
9163
  need_version=no
 
9164
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9165
  soname_spec='${libname}${release}${major}$shared_ext'
 
9166
  shlibpath_overrides_runpath=yes
 
9167
  shlibpath_var=DYLD_LIBRARY_PATH
 
9168
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9169
 
 
9170
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9171
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9172
  ;;
 
9173
 
 
9174
dgux*)
 
9175
  version_type=linux
 
9176
  need_lib_prefix=no
 
9177
  need_version=no
 
9178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9179
  soname_spec='${libname}${release}${shared_ext}$major'
 
9180
  shlibpath_var=LD_LIBRARY_PATH
 
9181
  ;;
 
9182
 
 
9183
freebsd1*)
 
9184
  dynamic_linker=no
 
9185
  ;;
 
9186
 
 
9187
freebsd* | dragonfly*)
 
9188
  # DragonFly does not have aout.  When/if they implement a new
 
9189
  # versioning mechanism, adjust this.
 
9190
  if test -x /usr/bin/objformat; then
 
9191
    objformat=`/usr/bin/objformat`
 
9192
  else
 
9193
    case $host_os in
 
9194
    freebsd[123]*) objformat=aout ;;
 
9195
    *) objformat=elf ;;
 
9196
    esac
 
9197
  fi
 
9198
  version_type=freebsd-$objformat
 
9199
  case $version_type in
 
9200
    freebsd-elf*)
 
9201
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9202
      need_version=no
 
9203
      need_lib_prefix=no
 
9204
      ;;
 
9205
    freebsd-*)
 
9206
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9207
      need_version=yes
 
9208
      ;;
 
9209
  esac
 
9210
  shlibpath_var=LD_LIBRARY_PATH
 
9211
  case $host_os in
 
9212
  freebsd2*)
 
9213
    shlibpath_overrides_runpath=yes
 
9214
    ;;
 
9215
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9216
    shlibpath_overrides_runpath=yes
 
9217
    hardcode_into_libs=yes
 
9218
    ;;
 
9219
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9220
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9221
    shlibpath_overrides_runpath=no
 
9222
    hardcode_into_libs=yes
 
9223
    ;;
 
9224
  *) # from 4.6 on, and DragonFly
 
9225
    shlibpath_overrides_runpath=yes
 
9226
    hardcode_into_libs=yes
 
9227
    ;;
 
9228
  esac
 
9229
  ;;
 
9230
 
 
9231
gnu*)
 
9232
  version_type=linux
 
9233
  need_lib_prefix=no
 
9234
  need_version=no
 
9235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9236
  soname_spec='${libname}${release}${shared_ext}$major'
 
9237
  shlibpath_var=LD_LIBRARY_PATH
 
9238
  hardcode_into_libs=yes
 
9239
  ;;
 
9240
 
 
9241
hpux9* | hpux10* | hpux11*)
 
9242
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9243
  # link against other versions.
 
9244
  version_type=sunos
 
9245
  need_lib_prefix=no
 
9246
  need_version=no
 
9247
  case $host_cpu in
 
9248
  ia64*)
 
9249
    shrext_cmds='.so'
 
9250
    hardcode_into_libs=yes
 
9251
    dynamic_linker="$host_os dld.so"
 
9252
    shlibpath_var=LD_LIBRARY_PATH
 
9253
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9254
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9255
    soname_spec='${libname}${release}${shared_ext}$major'
 
9256
    if test "X$HPUX_IA64_MODE" = X32; then
 
9257
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9258
    else
 
9259
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9260
    fi
 
9261
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9262
    ;;
 
9263
  hppa*64*)
 
9264
    shrext_cmds='.sl'
 
9265
    hardcode_into_libs=yes
 
9266
    dynamic_linker="$host_os dld.sl"
 
9267
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9268
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9269
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9270
    soname_spec='${libname}${release}${shared_ext}$major'
 
9271
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9272
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9273
    ;;
 
9274
  *)
 
9275
    shrext_cmds='.sl'
 
9276
    dynamic_linker="$host_os dld.sl"
 
9277
    shlibpath_var=SHLIB_PATH
 
9278
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9279
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9280
    soname_spec='${libname}${release}${shared_ext}$major'
 
9281
    ;;
 
9282
  esac
 
9283
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9284
  postinstall_cmds='chmod 555 $lib'
 
9285
  ;;
 
9286
 
 
9287
interix[3-9]*)
 
9288
  version_type=linux
 
9289
  need_lib_prefix=no
 
9290
  need_version=no
 
9291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9292
  soname_spec='${libname}${release}${shared_ext}$major'
 
9293
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9294
  shlibpath_var=LD_LIBRARY_PATH
 
9295
  shlibpath_overrides_runpath=no
 
9296
  hardcode_into_libs=yes
 
9297
  ;;
 
9298
 
 
9299
irix5* | irix6* | nonstopux*)
 
9300
  case $host_os in
 
9301
    nonstopux*) version_type=nonstopux ;;
 
9302
    *)
 
9303
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9304
                version_type=linux
 
9305
        else
 
9306
                version_type=irix
 
9307
        fi ;;
 
9308
  esac
 
9309
  need_lib_prefix=no
 
9310
  need_version=no
 
9311
  soname_spec='${libname}${release}${shared_ext}$major'
 
9312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9313
  case $host_os in
 
9314
  irix5* | nonstopux*)
 
9315
    libsuff= shlibsuff=
 
9316
    ;;
 
9317
  *)
 
9318
    case $LD in # libtool.m4 will add one of these switches to LD
 
9319
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9320
      libsuff= shlibsuff= libmagic=32-bit;;
 
9321
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9322
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9323
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9324
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9325
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9326
    esac
 
9327
    ;;
 
9328
  esac
 
9329
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9330
  shlibpath_overrides_runpath=no
 
9331
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9332
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9333
  hardcode_into_libs=yes
 
9334
  ;;
 
9335
 
 
9336
# No shared lib support for Linux oldld, aout, or coff.
 
9337
linux*oldld* | linux*aout* | linux*coff*)
 
9338
  dynamic_linker=no
 
9339
  ;;
 
9340
 
 
9341
# This must be Linux ELF.
 
9342
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
9343
  version_type=linux
 
9344
  need_lib_prefix=no
 
9345
  need_version=no
 
9346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9347
  soname_spec='${libname}${release}${shared_ext}$major'
 
9348
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9349
  shlibpath_var=LD_LIBRARY_PATH
 
9350
  shlibpath_overrides_runpath=no
 
9351
  # Some binutils ld are patched to set DT_RUNPATH
 
9352
  save_LDFLAGS=$LDFLAGS
 
9353
  save_libdir=$libdir
 
9354
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
9355
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
9356
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9357
/* end confdefs.h.  */
 
9358
 
 
9359
int
 
9360
main ()
 
9361
{
 
9362
 
 
9363
  ;
 
9364
  return 0;
 
9365
}
 
9366
_ACEOF
 
9367
if ac_fn_c_try_link "$LINENO"; then :
 
9368
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
9369
  shlibpath_overrides_runpath=yes
 
9370
fi
 
9371
fi
 
9372
rm -f core conftest.err conftest.$ac_objext \
 
9373
    conftest$ac_exeext conftest.$ac_ext
 
9374
  LDFLAGS=$save_LDFLAGS
 
9375
  libdir=$save_libdir
 
9376
 
 
9377
  # This implies no fast_install, which is unacceptable.
 
9378
  # Some rework will be needed to allow for fast_install
 
9379
  # before this can be enabled.
 
9380
  hardcode_into_libs=yes
 
9381
 
 
9382
  # Append ld.so.conf contents to the search path
 
9383
  if test -f /etc/ld.so.conf; then
 
9384
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9385
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9386
  fi
 
9387
 
 
9388
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9389
  # powerpc, because MkLinux only supported shared libraries with the
 
9390
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9391
  # most powerpc-linux boxes support dynamic linking these days and
 
9392
  # people can always --disable-shared, the test was removed, and we
 
9393
  # assume the GNU/Linux dynamic linker is in use.
 
9394
  dynamic_linker='GNU/Linux ld.so'
 
9395
  ;;
 
9396
 
 
9397
netbsdelf*-gnu)
 
9398
  version_type=linux
 
9399
  need_lib_prefix=no
 
9400
  need_version=no
 
9401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9402
  soname_spec='${libname}${release}${shared_ext}$major'
 
9403
  shlibpath_var=LD_LIBRARY_PATH
 
9404
  shlibpath_overrides_runpath=no
 
9405
  hardcode_into_libs=yes
 
9406
  dynamic_linker='NetBSD ld.elf_so'
 
9407
  ;;
 
9408
 
 
9409
netbsd*)
 
9410
  version_type=sunos
 
9411
  need_lib_prefix=no
 
9412
  need_version=no
 
9413
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9414
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9415
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9416
    dynamic_linker='NetBSD (a.out) ld.so'
 
9417
  else
 
9418
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9419
    soname_spec='${libname}${release}${shared_ext}$major'
 
9420
    dynamic_linker='NetBSD ld.elf_so'
 
9421
  fi
 
9422
  shlibpath_var=LD_LIBRARY_PATH
 
9423
  shlibpath_overrides_runpath=yes
 
9424
  hardcode_into_libs=yes
 
9425
  ;;
 
9426
 
 
9427
newsos6)
 
9428
  version_type=linux
 
9429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9430
  shlibpath_var=LD_LIBRARY_PATH
 
9431
  shlibpath_overrides_runpath=yes
 
9432
  ;;
 
9433
 
 
9434
*nto* | *qnx*)
 
9435
  version_type=qnx
 
9436
  need_lib_prefix=no
 
9437
  need_version=no
 
9438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9439
  soname_spec='${libname}${release}${shared_ext}$major'
 
9440
  shlibpath_var=LD_LIBRARY_PATH
 
9441
  shlibpath_overrides_runpath=no
 
9442
  hardcode_into_libs=yes
 
9443
  dynamic_linker='ldqnx.so'
 
9444
  ;;
 
9445
 
 
9446
openbsd*)
 
9447
  version_type=sunos
 
9448
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9449
  need_lib_prefix=no
 
9450
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9451
  case $host_os in
 
9452
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
9453
    *)                          need_version=no  ;;
 
9454
  esac
 
9455
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9456
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9457
  shlibpath_var=LD_LIBRARY_PATH
 
9458
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9459
    case $host_os in
 
9460
      openbsd2.[89] | openbsd2.[89].*)
 
9461
        shlibpath_overrides_runpath=no
 
9462
        ;;
 
9463
      *)
 
9464
        shlibpath_overrides_runpath=yes
 
9465
        ;;
 
9466
      esac
 
9467
  else
 
9468
    shlibpath_overrides_runpath=yes
 
9469
  fi
 
9470
  ;;
 
9471
 
 
9472
os2*)
 
9473
  libname_spec='$name'
 
9474
  shrext_cmds=".dll"
 
9475
  need_lib_prefix=no
 
9476
  library_names_spec='$libname${shared_ext} $libname.a'
 
9477
  dynamic_linker='OS/2 ld.exe'
 
9478
  shlibpath_var=LIBPATH
 
9479
  ;;
 
9480
 
 
9481
osf3* | osf4* | osf5*)
 
9482
  version_type=osf
 
9483
  need_lib_prefix=no
 
9484
  need_version=no
 
9485
  soname_spec='${libname}${release}${shared_ext}$major'
 
9486
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9487
  shlibpath_var=LD_LIBRARY_PATH
 
9488
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9489
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9490
  ;;
 
9491
 
 
9492
rdos*)
 
9493
  dynamic_linker=no
 
9494
  ;;
 
9495
 
 
9496
solaris*)
 
9497
  version_type=linux
 
9498
  need_lib_prefix=no
 
9499
  need_version=no
 
9500
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9501
  soname_spec='${libname}${release}${shared_ext}$major'
 
9502
  shlibpath_var=LD_LIBRARY_PATH
 
9503
  shlibpath_overrides_runpath=yes
 
9504
  hardcode_into_libs=yes
 
9505
  # ldd complains unless libraries are executable
 
9506
  postinstall_cmds='chmod +x $lib'
 
9507
  ;;
 
9508
 
 
9509
sunos4*)
 
9510
  version_type=sunos
 
9511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9512
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9513
  shlibpath_var=LD_LIBRARY_PATH
 
9514
  shlibpath_overrides_runpath=yes
 
9515
  if test "$with_gnu_ld" = yes; then
 
9516
    need_lib_prefix=no
 
9517
  fi
 
9518
  need_version=yes
 
9519
  ;;
 
9520
 
 
9521
sysv4 | sysv4.3*)
 
9522
  version_type=linux
 
9523
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9524
  soname_spec='${libname}${release}${shared_ext}$major'
 
9525
  shlibpath_var=LD_LIBRARY_PATH
 
9526
  case $host_vendor in
 
9527
    sni)
 
9528
      shlibpath_overrides_runpath=no
 
9529
      need_lib_prefix=no
 
9530
      runpath_var=LD_RUN_PATH
 
9531
      ;;
 
9532
    siemens)
 
9533
      need_lib_prefix=no
 
9534
      ;;
 
9535
    motorola)
 
9536
      need_lib_prefix=no
 
9537
      need_version=no
 
9538
      shlibpath_overrides_runpath=no
 
9539
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9540
      ;;
 
9541
  esac
 
9542
  ;;
 
9543
 
 
9544
sysv4*MP*)
 
9545
  if test -d /usr/nec ;then
 
9546
    version_type=linux
 
9547
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9548
    soname_spec='$libname${shared_ext}.$major'
 
9549
    shlibpath_var=LD_LIBRARY_PATH
 
9550
  fi
 
9551
  ;;
 
9552
 
 
9553
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9554
  version_type=freebsd-elf
 
9555
  need_lib_prefix=no
 
9556
  need_version=no
 
9557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9558
  soname_spec='${libname}${release}${shared_ext}$major'
 
9559
  shlibpath_var=LD_LIBRARY_PATH
 
9560
  shlibpath_overrides_runpath=yes
 
9561
  hardcode_into_libs=yes
 
9562
  if test "$with_gnu_ld" = yes; then
 
9563
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9564
  else
 
9565
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9566
    case $host_os in
 
9567
      sco3.2v5*)
 
9568
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9569
        ;;
 
9570
    esac
 
9571
  fi
 
9572
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9573
  ;;
 
9574
 
 
9575
tpf*)
 
9576
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
9577
  version_type=linux
 
9578
  need_lib_prefix=no
 
9579
  need_version=no
 
9580
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9581
  shlibpath_var=LD_LIBRARY_PATH
 
9582
  shlibpath_overrides_runpath=no
 
9583
  hardcode_into_libs=yes
 
9584
  ;;
 
9585
 
 
9586
uts4*)
 
9587
  version_type=linux
 
9588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9589
  soname_spec='${libname}${release}${shared_ext}$major'
 
9590
  shlibpath_var=LD_LIBRARY_PATH
 
9591
  ;;
 
9592
 
 
9593
*)
 
9594
  dynamic_linker=no
 
9595
  ;;
 
9596
esac
 
9597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
9598
$as_echo "$dynamic_linker" >&6; }
 
9599
test "$dynamic_linker" = no && can_build_shared=no
 
9600
 
 
9601
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9602
if test "$GCC" = yes; then
 
9603
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9604
fi
 
9605
 
 
9606
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9607
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9608
fi
 
9609
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9610
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9611
fi
 
9612
 
 
9613
 
 
9614
 
 
9615
 
 
9616
 
 
9617
 
 
9618
 
 
9619
 
 
9620
 
 
9621
 
 
9622
 
 
9623
 
 
9624
 
 
9625
 
 
9626
 
 
9627
 
 
9628
 
 
9629
 
 
9630
 
 
9631
 
 
9632
 
 
9633
 
 
9634
 
 
9635
 
 
9636
 
 
9637
 
 
9638
 
 
9639
 
 
9640
 
 
9641
 
 
9642
 
 
9643
 
 
9644
 
 
9645
 
 
9646
 
 
9647
 
 
9648
 
 
9649
 
 
9650
 
 
9651
 
 
9652
 
 
9653
 
 
9654
 
 
9655
 
 
9656
 
 
9657
 
 
9658
 
 
9659
 
 
9660
 
 
9661
 
 
9662
 
 
9663
 
 
9664
 
 
9665
 
 
9666
 
 
9667
 
 
9668
 
 
9669
 
 
9670
 
 
9671
 
 
9672
 
 
9673
 
 
9674
 
 
9675
 
 
9676
 
 
9677
 
 
9678
 
 
9679
 
 
9680
 
 
9681
 
 
9682
 
 
9683
 
 
9684
 
 
9685
 
 
9686
 
 
9687
 
 
9688
 
 
9689
 
 
9690
 
 
9691
 
 
9692
 
 
9693
 
 
9694
 
 
9695
 
 
9696
 
 
9697
 
 
9698
 
 
9699
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
9700
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9701
hardcode_action=
 
9702
if test -n "$hardcode_libdir_flag_spec" ||
 
9703
   test -n "$runpath_var" ||
 
9704
   test "X$hardcode_automatic" = "Xyes" ; then
 
9705
 
 
9706
  # We can hardcode non-existent directories.
 
9707
  if test "$hardcode_direct" != no &&
 
9708
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9709
     # have to relink, otherwise we might link with an installed library
 
9710
     # when we should be linking with a yet-to-be-installed one
 
9711
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9712
     test "$hardcode_minus_L" != no; then
 
9713
    # Linking always hardcodes the temporary library directory.
 
9714
    hardcode_action=relink
 
9715
  else
 
9716
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9717
    hardcode_action=immediate
 
9718
  fi
 
9719
else
 
9720
  # We cannot hardcode anything, or else we can only hardcode existing
 
9721
  # directories.
 
9722
  hardcode_action=unsupported
 
9723
fi
 
9724
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
9725
$as_echo "$hardcode_action" >&6; }
 
9726
 
 
9727
if test "$hardcode_action" = relink ||
 
9728
   test "$inherit_rpath" = yes; then
 
9729
  # Fast installation is not supported
 
9730
  enable_fast_install=no
 
9731
elif test "$shlibpath_overrides_runpath" = yes ||
 
9732
     test "$enable_shared" = no; then
 
9733
  # Fast installation is not necessary
 
9734
  enable_fast_install=needless
 
9735
fi
 
9736
 
 
9737
 
 
9738
 
 
9739
 
 
9740
 
 
9741
 
 
9742
  if test "x$enable_dlopen" != xyes; then
 
9743
  enable_dlopen=unknown
 
9744
  enable_dlopen_self=unknown
 
9745
  enable_dlopen_self_static=unknown
 
9746
else
 
9747
  lt_cv_dlopen=no
 
9748
  lt_cv_dlopen_libs=
 
9749
 
 
9750
  case $host_os in
 
9751
  beos*)
 
9752
    lt_cv_dlopen="load_add_on"
 
9753
    lt_cv_dlopen_libs=
 
9754
    lt_cv_dlopen_self=yes
 
9755
    ;;
 
9756
 
 
9757
  mingw* | pw32* | cegcc*)
 
9758
    lt_cv_dlopen="LoadLibrary"
 
9759
    lt_cv_dlopen_libs=
 
9760
    ;;
 
9761
 
 
9762
  cygwin*)
 
9763
    lt_cv_dlopen="dlopen"
 
9764
    lt_cv_dlopen_libs=
 
9765
    ;;
 
9766
 
 
9767
  darwin*)
 
9768
  # if libdl is installed we need to link against it
 
9769
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
9770
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9771
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
9772
  $as_echo_n "(cached) " >&6
 
9773
else
 
9774
  ac_check_lib_save_LIBS=$LIBS
 
9775
LIBS="-ldl  $LIBS"
 
9776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9777
/* end confdefs.h.  */
 
9778
 
 
9779
/* Override any GCC internal prototype to avoid an error.
 
9780
   Use char because int might match the return type of a GCC
 
9781
   builtin and then its argument prototype would still apply.  */
 
9782
#ifdef __cplusplus
 
9783
extern "C"
 
9784
#endif
 
9785
char dlopen ();
 
9786
int
 
9787
main ()
 
9788
{
 
9789
return dlopen ();
 
9790
  ;
 
9791
  return 0;
 
9792
}
 
9793
_ACEOF
 
9794
if ac_fn_c_try_link "$LINENO"; then :
 
9795
  ac_cv_lib_dl_dlopen=yes
 
9796
else
 
9797
  ac_cv_lib_dl_dlopen=no
 
9798
fi
 
9799
rm -f core conftest.err conftest.$ac_objext \
 
9800
    conftest$ac_exeext conftest.$ac_ext
 
9801
LIBS=$ac_check_lib_save_LIBS
 
9802
fi
 
9803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
9804
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9805
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
9806
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9807
else
 
9808
 
 
9809
    lt_cv_dlopen="dyld"
 
9810
    lt_cv_dlopen_libs=
 
9811
    lt_cv_dlopen_self=yes
 
9812
 
 
9813
fi
 
9814
 
 
9815
    ;;
 
9816
 
 
9817
  *)
 
9818
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
9819
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
9820
  lt_cv_dlopen="shl_load"
 
9821
else
 
9822
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
9823
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
9824
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
9825
  $as_echo_n "(cached) " >&6
 
9826
else
 
9827
  ac_check_lib_save_LIBS=$LIBS
 
9828
LIBS="-ldld  $LIBS"
 
9829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9830
/* end confdefs.h.  */
 
9831
 
 
9832
/* Override any GCC internal prototype to avoid an error.
 
9833
   Use char because int might match the return type of a GCC
 
9834
   builtin and then its argument prototype would still apply.  */
 
9835
#ifdef __cplusplus
 
9836
extern "C"
 
9837
#endif
 
9838
char shl_load ();
 
9839
int
 
9840
main ()
 
9841
{
 
9842
return shl_load ();
 
9843
  ;
 
9844
  return 0;
 
9845
}
 
9846
_ACEOF
 
9847
if ac_fn_c_try_link "$LINENO"; then :
 
9848
  ac_cv_lib_dld_shl_load=yes
 
9849
else
 
9850
  ac_cv_lib_dld_shl_load=no
 
9851
fi
 
9852
rm -f core conftest.err conftest.$ac_objext \
 
9853
    conftest$ac_exeext conftest.$ac_ext
 
9854
LIBS=$ac_check_lib_save_LIBS
 
9855
fi
 
9856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
9857
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
9858
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
9859
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
9860
else
 
9861
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
9862
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
9863
  lt_cv_dlopen="dlopen"
 
9864
else
 
9865
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
9866
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9867
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
9868
  $as_echo_n "(cached) " >&6
 
9869
else
 
9870
  ac_check_lib_save_LIBS=$LIBS
 
9871
LIBS="-ldl  $LIBS"
 
9872
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9873
/* end confdefs.h.  */
 
9874
 
 
9875
/* Override any GCC internal prototype to avoid an error.
 
9876
   Use char because int might match the return type of a GCC
 
9877
   builtin and then its argument prototype would still apply.  */
 
9878
#ifdef __cplusplus
 
9879
extern "C"
 
9880
#endif
 
9881
char dlopen ();
 
9882
int
 
9883
main ()
 
9884
{
 
9885
return dlopen ();
 
9886
  ;
 
9887
  return 0;
 
9888
}
 
9889
_ACEOF
 
9890
if ac_fn_c_try_link "$LINENO"; then :
 
9891
  ac_cv_lib_dl_dlopen=yes
 
9892
else
 
9893
  ac_cv_lib_dl_dlopen=no
 
9894
fi
 
9895
rm -f core conftest.err conftest.$ac_objext \
 
9896
    conftest$ac_exeext conftest.$ac_ext
 
9897
LIBS=$ac_check_lib_save_LIBS
 
9898
fi
 
9899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
9900
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9901
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
9902
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9903
else
 
9904
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
9905
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
9906
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
9907
  $as_echo_n "(cached) " >&6
 
9908
else
 
9909
  ac_check_lib_save_LIBS=$LIBS
 
9910
LIBS="-lsvld  $LIBS"
 
9911
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9912
/* end confdefs.h.  */
 
9913
 
 
9914
/* Override any GCC internal prototype to avoid an error.
 
9915
   Use char because int might match the return type of a GCC
 
9916
   builtin and then its argument prototype would still apply.  */
 
9917
#ifdef __cplusplus
 
9918
extern "C"
 
9919
#endif
 
9920
char dlopen ();
 
9921
int
 
9922
main ()
 
9923
{
 
9924
return dlopen ();
 
9925
  ;
 
9926
  return 0;
 
9927
}
 
9928
_ACEOF
 
9929
if ac_fn_c_try_link "$LINENO"; then :
 
9930
  ac_cv_lib_svld_dlopen=yes
 
9931
else
 
9932
  ac_cv_lib_svld_dlopen=no
 
9933
fi
 
9934
rm -f core conftest.err conftest.$ac_objext \
 
9935
    conftest$ac_exeext conftest.$ac_ext
 
9936
LIBS=$ac_check_lib_save_LIBS
 
9937
fi
 
9938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
9939
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
9940
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
9941
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9942
else
 
9943
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
9944
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
9945
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
9946
  $as_echo_n "(cached) " >&6
 
9947
else
 
9948
  ac_check_lib_save_LIBS=$LIBS
 
9949
LIBS="-ldld  $LIBS"
 
9950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9951
/* end confdefs.h.  */
 
9952
 
 
9953
/* Override any GCC internal prototype to avoid an error.
 
9954
   Use char because int might match the return type of a GCC
 
9955
   builtin and then its argument prototype would still apply.  */
 
9956
#ifdef __cplusplus
 
9957
extern "C"
 
9958
#endif
 
9959
char dld_link ();
 
9960
int
 
9961
main ()
 
9962
{
 
9963
return dld_link ();
 
9964
  ;
 
9965
  return 0;
 
9966
}
 
9967
_ACEOF
 
9968
if ac_fn_c_try_link "$LINENO"; then :
 
9969
  ac_cv_lib_dld_dld_link=yes
 
9970
else
 
9971
  ac_cv_lib_dld_dld_link=no
 
9972
fi
 
9973
rm -f core conftest.err conftest.$ac_objext \
 
9974
    conftest$ac_exeext conftest.$ac_ext
 
9975
LIBS=$ac_check_lib_save_LIBS
 
9976
fi
 
9977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
9978
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
9979
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
9980
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
9981
fi
 
9982
 
 
9983
 
 
9984
fi
 
9985
 
 
9986
 
 
9987
fi
 
9988
 
 
9989
 
 
9990
fi
 
9991
 
 
9992
 
 
9993
fi
 
9994
 
 
9995
 
 
9996
fi
 
9997
 
 
9998
    ;;
 
9999
  esac
 
10000
 
 
10001
  if test "x$lt_cv_dlopen" != xno; then
 
10002
    enable_dlopen=yes
 
10003
  else
 
10004
    enable_dlopen=no
 
10005
  fi
 
10006
 
 
10007
  case $lt_cv_dlopen in
 
10008
  dlopen)
 
10009
    save_CPPFLAGS="$CPPFLAGS"
 
10010
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10011
 
 
10012
    save_LDFLAGS="$LDFLAGS"
 
10013
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10014
 
 
10015
    save_LIBS="$LIBS"
 
10016
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10017
 
 
10018
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
10019
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10020
if test "${lt_cv_dlopen_self+set}" = set; then :
 
10021
  $as_echo_n "(cached) " >&6
 
10022
else
 
10023
          if test "$cross_compiling" = yes; then :
 
10024
  lt_cv_dlopen_self=cross
 
10025
else
 
10026
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10027
  lt_status=$lt_dlunknown
 
10028
  cat > conftest.$ac_ext <<_LT_EOF
 
10029
#line 10029 "configure"
 
10030
#include "confdefs.h"
 
10031
 
 
10032
#if HAVE_DLFCN_H
 
10033
#include <dlfcn.h>
 
10034
#endif
 
10035
 
 
10036
#include <stdio.h>
 
10037
 
 
10038
#ifdef RTLD_GLOBAL
 
10039
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10040
#else
 
10041
#  ifdef DL_GLOBAL
 
10042
#    define LT_DLGLOBAL         DL_GLOBAL
 
10043
#  else
 
10044
#    define LT_DLGLOBAL         0
 
10045
#  endif
 
10046
#endif
 
10047
 
 
10048
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10049
   find out it does not work in some platform. */
 
10050
#ifndef LT_DLLAZY_OR_NOW
 
10051
#  ifdef RTLD_LAZY
 
10052
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10053
#  else
 
10054
#    ifdef DL_LAZY
 
10055
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10056
#    else
 
10057
#      ifdef RTLD_NOW
 
10058
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10059
#      else
 
10060
#        ifdef DL_NOW
 
10061
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10062
#        else
 
10063
#          define LT_DLLAZY_OR_NOW      0
 
10064
#        endif
 
10065
#      endif
 
10066
#    endif
 
10067
#  endif
 
10068
#endif
 
10069
 
 
10070
void fnord() { int i=42;}
 
10071
int main ()
 
10072
{
 
10073
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10074
  int status = $lt_dlunknown;
 
10075
 
 
10076
  if (self)
 
10077
    {
 
10078
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10079
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10080
      /* dlclose (self); */
 
10081
    }
 
10082
  else
 
10083
    puts (dlerror ());
 
10084
 
 
10085
  return status;
 
10086
}
 
10087
_LT_EOF
 
10088
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10089
  (eval $ac_link) 2>&5
 
10090
  ac_status=$?
 
10091
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10092
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10093
    (./conftest; exit; ) >&5 2>/dev/null
 
10094
    lt_status=$?
 
10095
    case x$lt_status in
 
10096
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10097
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10098
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10099
    esac
 
10100
  else :
 
10101
    # compilation failed
 
10102
    lt_cv_dlopen_self=no
 
10103
  fi
 
10104
fi
 
10105
rm -fr conftest*
 
10106
 
 
10107
 
 
10108
fi
 
10109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
10110
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10111
 
 
10112
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10113
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10114
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
10115
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10116
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
10117
  $as_echo_n "(cached) " >&6
 
10118
else
 
10119
          if test "$cross_compiling" = yes; then :
 
10120
  lt_cv_dlopen_self_static=cross
 
10121
else
 
10122
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10123
  lt_status=$lt_dlunknown
 
10124
  cat > conftest.$ac_ext <<_LT_EOF
 
10125
#line 10125 "configure"
 
10126
#include "confdefs.h"
 
10127
 
 
10128
#if HAVE_DLFCN_H
 
10129
#include <dlfcn.h>
 
10130
#endif
 
10131
 
 
10132
#include <stdio.h>
 
10133
 
 
10134
#ifdef RTLD_GLOBAL
 
10135
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10136
#else
 
10137
#  ifdef DL_GLOBAL
 
10138
#    define LT_DLGLOBAL         DL_GLOBAL
 
10139
#  else
 
10140
#    define LT_DLGLOBAL         0
 
10141
#  endif
 
10142
#endif
 
10143
 
 
10144
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10145
   find out it does not work in some platform. */
 
10146
#ifndef LT_DLLAZY_OR_NOW
 
10147
#  ifdef RTLD_LAZY
 
10148
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10149
#  else
 
10150
#    ifdef DL_LAZY
 
10151
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10152
#    else
 
10153
#      ifdef RTLD_NOW
 
10154
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10155
#      else
 
10156
#        ifdef DL_NOW
 
10157
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10158
#        else
 
10159
#          define LT_DLLAZY_OR_NOW      0
 
10160
#        endif
 
10161
#      endif
 
10162
#    endif
 
10163
#  endif
 
10164
#endif
 
10165
 
 
10166
void fnord() { int i=42;}
 
10167
int main ()
 
10168
{
 
10169
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10170
  int status = $lt_dlunknown;
 
10171
 
 
10172
  if (self)
 
10173
    {
 
10174
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10175
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10176
      /* dlclose (self); */
 
10177
    }
 
10178
  else
 
10179
    puts (dlerror ());
 
10180
 
 
10181
  return status;
 
10182
}
 
10183
_LT_EOF
 
10184
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
10185
  (eval $ac_link) 2>&5
 
10186
  ac_status=$?
 
10187
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10188
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10189
    (./conftest; exit; ) >&5 2>/dev/null
 
10190
    lt_status=$?
 
10191
    case x$lt_status in
 
10192
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10193
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10194
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10195
    esac
 
10196
  else :
 
10197
    # compilation failed
 
10198
    lt_cv_dlopen_self_static=no
 
10199
  fi
 
10200
fi
 
10201
rm -fr conftest*
 
10202
 
 
10203
 
 
10204
fi
 
10205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
10206
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10207
    fi
 
10208
 
 
10209
    CPPFLAGS="$save_CPPFLAGS"
 
10210
    LDFLAGS="$save_LDFLAGS"
 
10211
    LIBS="$save_LIBS"
 
10212
    ;;
 
10213
  esac
 
10214
 
 
10215
  case $lt_cv_dlopen_self in
 
10216
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10217
  *) enable_dlopen_self=unknown ;;
 
10218
  esac
 
10219
 
 
10220
  case $lt_cv_dlopen_self_static in
 
10221
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10222
  *) enable_dlopen_self_static=unknown ;;
 
10223
  esac
 
10224
fi
 
10225
 
 
10226
 
 
10227
 
 
10228
 
 
10229
 
 
10230
 
 
10231
 
 
10232
 
 
10233
 
 
10234
 
 
10235
 
 
10236
 
 
10237
 
 
10238
 
 
10239
 
 
10240
 
 
10241
 
 
10242
striplib=
 
10243
old_striplib=
 
10244
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
10245
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10246
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
10247
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10248
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10249
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10250
$as_echo "yes" >&6; }
 
10251
else
 
10252
# FIXME - insert some real tests, host_os isn't really good enough
 
10253
  case $host_os in
 
10254
  darwin*)
 
10255
    if test -n "$STRIP" ; then
 
10256
      striplib="$STRIP -x"
 
10257
      old_striplib="$STRIP -S"
 
10258
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
10259
$as_echo "yes" >&6; }
 
10260
    else
 
10261
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10262
$as_echo "no" >&6; }
 
10263
    fi
 
10264
    ;;
 
10265
  *)
 
10266
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10267
$as_echo "no" >&6; }
 
10268
    ;;
 
10269
  esac
 
10270
fi
 
10271
 
 
10272
 
 
10273
 
 
10274
 
 
10275
 
 
10276
 
 
10277
 
 
10278
 
 
10279
 
 
10280
 
 
10281
 
 
10282
 
 
10283
  # Report which library types will actually be built
 
10284
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
10285
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10286
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
10287
$as_echo "$can_build_shared" >&6; }
 
10288
 
 
10289
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
10290
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10291
  test "$can_build_shared" = "no" && enable_shared=no
 
10292
 
 
10293
  # On AIX, shared libraries and static libraries use the same namespace, and
 
10294
  # are all built from PIC.
 
10295
  case $host_os in
 
10296
  aix3*)
 
10297
    test "$enable_shared" = yes && enable_static=no
 
10298
    if test -n "$RANLIB"; then
 
10299
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10300
      postinstall_cmds='$RANLIB $lib'
 
10301
    fi
 
10302
    ;;
 
10303
 
 
10304
  aix[4-9]*)
 
10305
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10306
      test "$enable_shared" = yes && enable_static=no
 
10307
    fi
 
10308
    ;;
 
10309
  esac
 
10310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
10311
$as_echo "$enable_shared" >&6; }
 
10312
 
 
10313
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
10314
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10315
  # Make sure either enable_shared or enable_static is yes.
 
10316
  test "$enable_shared" = yes || enable_static=yes
 
10317
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
10318
$as_echo "$enable_static" >&6; }
 
10319
 
 
10320
 
 
10321
 
 
10322
 
 
10323
fi
 
10324
ac_ext=c
 
10325
ac_cpp='$CPP $CPPFLAGS'
 
10326
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10327
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10328
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10329
 
 
10330
CC="$lt_save_CC"
 
10331
 
 
10332
 
 
10333
 
 
10334
 
 
10335
 
 
10336
 
 
10337
 
 
10338
 
 
10339
 
 
10340
 
 
10341
 
 
10342
 
 
10343
 
 
10344
        ac_config_commands="$ac_config_commands libtool"
 
10345
 
 
10346
 
 
10347
 
 
10348
 
 
10349
# Only expand once:
 
10350
 
 
10351
 
 
10352
 
 
10353
# Checks for programs.
 
10354
ac_ext=c
 
10355
ac_cpp='$CPP $CPPFLAGS'
 
10356
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10357
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10358
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10359
if test -n "$ac_tool_prefix"; then
 
10360
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
10361
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
10362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10363
$as_echo_n "checking for $ac_word... " >&6; }
 
10364
if test "${ac_cv_prog_CC+set}" = set; then :
 
10365
  $as_echo_n "(cached) " >&6
 
10366
else
 
10367
  if test -n "$CC"; then
 
10368
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
10369
else
 
10370
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10371
for as_dir in $PATH
 
10372
do
 
10373
  IFS=$as_save_IFS
 
10374
  test -z "$as_dir" && as_dir=.
 
10375
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10376
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10377
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
10378
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10379
    break 2
 
10380
  fi
 
10381
done
 
10382
  done
 
10383
IFS=$as_save_IFS
 
10384
 
 
10385
fi
 
10386
fi
 
10387
CC=$ac_cv_prog_CC
 
10388
if test -n "$CC"; then
 
10389
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
10390
$as_echo "$CC" >&6; }
 
10391
else
 
10392
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10393
$as_echo "no" >&6; }
 
10394
fi
 
10395
 
 
10396
 
 
10397
fi
 
10398
if test -z "$ac_cv_prog_CC"; then
 
10399
  ac_ct_CC=$CC
 
10400
  # Extract the first word of "gcc", so it can be a program name with args.
 
10401
set dummy gcc; ac_word=$2
 
10402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10403
$as_echo_n "checking for $ac_word... " >&6; }
 
10404
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
10405
  $as_echo_n "(cached) " >&6
 
10406
else
 
10407
  if test -n "$ac_ct_CC"; then
 
10408
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
10409
else
 
10410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10411
for as_dir in $PATH
 
10412
do
 
10413
  IFS=$as_save_IFS
 
10414
  test -z "$as_dir" && as_dir=.
 
10415
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10416
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10417
    ac_cv_prog_ac_ct_CC="gcc"
 
10418
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10419
    break 2
 
10420
  fi
 
10421
done
 
10422
  done
 
10423
IFS=$as_save_IFS
 
10424
 
 
10425
fi
 
10426
fi
 
10427
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
10428
if test -n "$ac_ct_CC"; then
 
10429
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
10430
$as_echo "$ac_ct_CC" >&6; }
 
10431
else
 
10432
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10433
$as_echo "no" >&6; }
 
10434
fi
 
10435
 
 
10436
  if test "x$ac_ct_CC" = x; then
 
10437
    CC=""
 
10438
  else
 
10439
    case $cross_compiling:$ac_tool_warned in
 
10440
yes:)
 
10441
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
10442
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
10443
ac_tool_warned=yes ;;
 
10444
esac
 
10445
    CC=$ac_ct_CC
 
10446
  fi
 
10447
else
 
10448
  CC="$ac_cv_prog_CC"
 
10449
fi
 
10450
 
 
10451
if test -z "$CC"; then
 
10452
          if test -n "$ac_tool_prefix"; then
 
10453
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
10454
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
10455
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10456
$as_echo_n "checking for $ac_word... " >&6; }
 
10457
if test "${ac_cv_prog_CC+set}" = set; then :
 
10458
  $as_echo_n "(cached) " >&6
 
10459
else
 
10460
  if test -n "$CC"; then
 
10461
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
10462
else
 
10463
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10464
for as_dir in $PATH
 
10465
do
 
10466
  IFS=$as_save_IFS
 
10467
  test -z "$as_dir" && as_dir=.
 
10468
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10469
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10470
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
10471
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10472
    break 2
 
10473
  fi
 
10474
done
 
10475
  done
 
10476
IFS=$as_save_IFS
 
10477
 
 
10478
fi
 
10479
fi
 
10480
CC=$ac_cv_prog_CC
 
10481
if test -n "$CC"; then
 
10482
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
10483
$as_echo "$CC" >&6; }
 
10484
else
 
10485
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10486
$as_echo "no" >&6; }
 
10487
fi
 
10488
 
 
10489
 
 
10490
  fi
 
10491
fi
 
10492
if test -z "$CC"; then
 
10493
  # Extract the first word of "cc", so it can be a program name with args.
 
10494
set dummy cc; ac_word=$2
 
10495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10496
$as_echo_n "checking for $ac_word... " >&6; }
 
10497
if test "${ac_cv_prog_CC+set}" = set; then :
 
10498
  $as_echo_n "(cached) " >&6
 
10499
else
 
10500
  if test -n "$CC"; then
 
10501
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
10502
else
 
10503
  ac_prog_rejected=no
 
10504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10505
for as_dir in $PATH
 
10506
do
 
10507
  IFS=$as_save_IFS
 
10508
  test -z "$as_dir" && as_dir=.
 
10509
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10510
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10511
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
10512
       ac_prog_rejected=yes
 
10513
       continue
 
10514
     fi
 
10515
    ac_cv_prog_CC="cc"
 
10516
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10517
    break 2
 
10518
  fi
 
10519
done
 
10520
  done
 
10521
IFS=$as_save_IFS
 
10522
 
 
10523
if test $ac_prog_rejected = yes; then
 
10524
  # We found a bogon in the path, so make sure we never use it.
 
10525
  set dummy $ac_cv_prog_CC
 
10526
  shift
 
10527
  if test $# != 0; then
 
10528
    # We chose a different compiler from the bogus one.
 
10529
    # However, it has the same basename, so the bogon will be chosen
 
10530
    # first if we set CC to just the basename; use the full file name.
 
10531
    shift
 
10532
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
10533
  fi
 
10534
fi
 
10535
fi
 
10536
fi
 
10537
CC=$ac_cv_prog_CC
 
10538
if test -n "$CC"; then
 
10539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
10540
$as_echo "$CC" >&6; }
 
10541
else
 
10542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10543
$as_echo "no" >&6; }
 
10544
fi
 
10545
 
 
10546
 
 
10547
fi
 
10548
if test -z "$CC"; then
 
10549
  if test -n "$ac_tool_prefix"; then
 
10550
  for ac_prog in cl.exe
 
10551
  do
 
10552
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
10553
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
10554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10555
$as_echo_n "checking for $ac_word... " >&6; }
 
10556
if test "${ac_cv_prog_CC+set}" = set; then :
 
10557
  $as_echo_n "(cached) " >&6
 
10558
else
 
10559
  if test -n "$CC"; then
 
10560
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
10561
else
 
10562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10563
for as_dir in $PATH
 
10564
do
 
10565
  IFS=$as_save_IFS
 
10566
  test -z "$as_dir" && as_dir=.
 
10567
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10568
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10569
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
10570
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10571
    break 2
 
10572
  fi
 
10573
done
 
10574
  done
 
10575
IFS=$as_save_IFS
 
10576
 
 
10577
fi
 
10578
fi
 
10579
CC=$ac_cv_prog_CC
 
10580
if test -n "$CC"; then
 
10581
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
10582
$as_echo "$CC" >&6; }
 
10583
else
 
10584
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10585
$as_echo "no" >&6; }
 
10586
fi
 
10587
 
 
10588
 
 
10589
    test -n "$CC" && break
 
10590
  done
 
10591
fi
 
10592
if test -z "$CC"; then
 
10593
  ac_ct_CC=$CC
 
10594
  for ac_prog in cl.exe
 
10595
do
 
10596
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
10597
set dummy $ac_prog; ac_word=$2
 
10598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
10599
$as_echo_n "checking for $ac_word... " >&6; }
 
10600
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
10601
  $as_echo_n "(cached) " >&6
 
10602
else
 
10603
  if test -n "$ac_ct_CC"; then
 
10604
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
10605
else
 
10606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10607
for as_dir in $PATH
 
10608
do
 
10609
  IFS=$as_save_IFS
 
10610
  test -z "$as_dir" && as_dir=.
 
10611
    for ac_exec_ext in '' $ac_executable_extensions; do
 
10612
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
10613
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
10614
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10615
    break 2
 
10616
  fi
 
10617
done
 
10618
  done
 
10619
IFS=$as_save_IFS
 
10620
 
 
10621
fi
 
10622
fi
 
10623
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
10624
if test -n "$ac_ct_CC"; then
 
10625
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
10626
$as_echo "$ac_ct_CC" >&6; }
 
10627
else
 
10628
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
10629
$as_echo "no" >&6; }
 
10630
fi
 
10631
 
 
10632
 
 
10633
  test -n "$ac_ct_CC" && break
 
10634
done
 
10635
 
 
10636
  if test "x$ac_ct_CC" = x; then
 
10637
    CC=""
 
10638
  else
 
10639
    case $cross_compiling:$ac_tool_warned in
 
10640
yes:)
 
10641
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
10642
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
10643
ac_tool_warned=yes ;;
 
10644
esac
 
10645
    CC=$ac_ct_CC
 
10646
  fi
 
10647
fi
 
10648
 
 
10649
fi
 
10650
 
 
10651
 
 
10652
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
10653
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
10654
as_fn_error "no acceptable C compiler found in \$PATH
 
10655
See \`config.log' for more details." "$LINENO" 5; }
 
10656
 
 
10657
# Provide some information about the compiler.
 
10658
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
10659
set X $ac_compile
 
10660
ac_compiler=$2
 
10661
for ac_option in --version -v -V -qversion; do
 
10662
  { { ac_try="$ac_compiler $ac_option >&5"
 
10663
case "(($ac_try" in
 
10664
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10665
  *) ac_try_echo=$ac_try;;
 
10666
esac
 
10667
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
10668
$as_echo "$ac_try_echo"; } >&5
 
10669
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
10670
  ac_status=$?
 
10671
  if test -s conftest.err; then
 
10672
    sed '10a\
 
10673
... rest of stderr output deleted ...
 
10674
         10q' conftest.err >conftest.er1
 
10675
    cat conftest.er1 >&5
 
10676
  fi
 
10677
  rm -f conftest.er1 conftest.err
 
10678
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10679
  test $ac_status = 0; }
 
10680
done
 
10681
 
 
10682
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
10683
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
10684
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
10685
  $as_echo_n "(cached) " >&6
 
10686
else
 
10687
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10688
/* end confdefs.h.  */
 
10689
 
 
10690
int
 
10691
main ()
 
10692
{
 
10693
#ifndef __GNUC__
 
10694
       choke me
 
10695
#endif
 
10696
 
 
10697
  ;
 
10698
  return 0;
 
10699
}
 
10700
_ACEOF
 
10701
if ac_fn_c_try_compile "$LINENO"; then :
 
10702
  ac_compiler_gnu=yes
 
10703
else
 
10704
  ac_compiler_gnu=no
 
10705
fi
 
10706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10707
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
10708
 
 
10709
fi
 
10710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
10711
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
10712
if test $ac_compiler_gnu = yes; then
 
10713
  GCC=yes
 
10714
else
 
10715
  GCC=
 
10716
fi
 
10717
ac_test_CFLAGS=${CFLAGS+set}
 
10718
ac_save_CFLAGS=$CFLAGS
 
10719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
10720
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
10721
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
10722
  $as_echo_n "(cached) " >&6
 
10723
else
 
10724
  ac_save_c_werror_flag=$ac_c_werror_flag
 
10725
   ac_c_werror_flag=yes
 
10726
   ac_cv_prog_cc_g=no
 
10727
   CFLAGS="-g"
 
10728
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10729
/* end confdefs.h.  */
 
10730
 
 
10731
int
 
10732
main ()
 
10733
{
 
10734
 
 
10735
  ;
 
10736
  return 0;
 
10737
}
 
10738
_ACEOF
 
10739
if ac_fn_c_try_compile "$LINENO"; then :
 
10740
  ac_cv_prog_cc_g=yes
 
10741
else
 
10742
  CFLAGS=""
 
10743
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10744
/* end confdefs.h.  */
 
10745
 
 
10746
int
 
10747
main ()
 
10748
{
 
10749
 
 
10750
  ;
 
10751
  return 0;
 
10752
}
 
10753
_ACEOF
 
10754
if ac_fn_c_try_compile "$LINENO"; then :
 
10755
 
 
10756
else
 
10757
  ac_c_werror_flag=$ac_save_c_werror_flag
 
10758
         CFLAGS="-g"
 
10759
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10760
/* end confdefs.h.  */
 
10761
 
 
10762
int
 
10763
main ()
 
10764
{
 
10765
 
 
10766
  ;
 
10767
  return 0;
 
10768
}
 
10769
_ACEOF
 
10770
if ac_fn_c_try_compile "$LINENO"; then :
 
10771
  ac_cv_prog_cc_g=yes
 
10772
fi
 
10773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10774
fi
 
10775
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10776
fi
 
10777
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
10778
   ac_c_werror_flag=$ac_save_c_werror_flag
 
10779
fi
 
10780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
10781
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
10782
if test "$ac_test_CFLAGS" = set; then
 
10783
  CFLAGS=$ac_save_CFLAGS
 
10784
elif test $ac_cv_prog_cc_g = yes; then
 
10785
  if test "$GCC" = yes; then
 
10786
    CFLAGS="-g -O2"
 
10787
  else
 
10788
    CFLAGS="-g"
 
10789
  fi
 
10790
else
 
10791
  if test "$GCC" = yes; then
 
10792
    CFLAGS="-O2"
 
10793
  else
 
10794
    CFLAGS=
 
10795
  fi
 
10796
fi
 
10797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
10798
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
10799
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
10800
  $as_echo_n "(cached) " >&6
 
10801
else
 
10802
  ac_cv_prog_cc_c89=no
 
10803
ac_save_CC=$CC
 
10804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10805
/* end confdefs.h.  */
 
10806
#include <stdarg.h>
 
10807
#include <stdio.h>
 
10808
#include <sys/types.h>
 
10809
#include <sys/stat.h>
 
10810
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
10811
struct buf { int x; };
 
10812
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
10813
static char *e (p, i)
 
10814
     char **p;
 
10815
     int i;
 
10816
{
 
10817
  return p[i];
 
10818
}
 
10819
static char *f (char * (*g) (char **, int), char **p, ...)
 
10820
{
 
10821
  char *s;
 
10822
  va_list v;
 
10823
  va_start (v,p);
 
10824
  s = g (p, va_arg (v,int));
 
10825
  va_end (v);
 
10826
  return s;
 
10827
}
 
10828
 
 
10829
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
10830
   function prototypes and stuff, but not '\xHH' hex character constants.
 
10831
   These don't provoke an error unfortunately, instead are silently treated
 
10832
   as 'x'.  The following induces an error, until -std is added to get
 
10833
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
10834
   array size at least.  It's necessary to write '\x00'==0 to get something
 
10835
   that's true only with -std.  */
 
10836
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
10837
 
 
10838
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
10839
   inside strings and character constants.  */
 
10840
#define FOO(x) 'x'
 
10841
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
10842
 
 
10843
int test (int i, double x);
 
10844
struct s1 {int (*f) (int a);};
 
10845
struct s2 {int (*f) (double a);};
 
10846
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
10847
int argc;
 
10848
char **argv;
 
10849
int
 
10850
main ()
 
10851
{
 
10852
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
10853
  ;
 
10854
  return 0;
 
10855
}
 
10856
_ACEOF
 
10857
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
10858
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
10859
do
 
10860
  CC="$ac_save_CC $ac_arg"
 
10861
  if ac_fn_c_try_compile "$LINENO"; then :
 
10862
  ac_cv_prog_cc_c89=$ac_arg
 
10863
fi
 
10864
rm -f core conftest.err conftest.$ac_objext
 
10865
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
10866
done
 
10867
rm -f conftest.$ac_ext
 
10868
CC=$ac_save_CC
 
10869
 
 
10870
fi
 
10871
# AC_CACHE_VAL
 
10872
case "x$ac_cv_prog_cc_c89" in
 
10873
  x)
 
10874
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
10875
$as_echo "none needed" >&6; } ;;
 
10876
  xno)
 
10877
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
10878
$as_echo "unsupported" >&6; } ;;
 
10879
  *)
 
10880
    CC="$CC $ac_cv_prog_cc_c89"
 
10881
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
10882
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
10883
esac
 
10884
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
10885
 
 
10886
fi
 
10887
 
 
10888
ac_ext=c
 
10889
ac_cpp='$CPP $CPPFLAGS'
 
10890
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10891
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10892
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10893
 
 
10894
depcc="$CC"   am_compiler_list=
 
10895
 
 
10896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
10897
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
10898
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
10899
  $as_echo_n "(cached) " >&6
 
10900
else
 
10901
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
10902
  # We make a subdir and do the tests there.  Otherwise we can end up
 
10903
  # making bogus files that we don't know about and never remove.  For
 
10904
  # instance it was reported that on HP-UX the gcc test will end up
 
10905
  # making a dummy file named `D' -- because `-MD' means `put the output
 
10906
  # in D'.
 
10907
  mkdir conftest.dir
 
10908
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
10909
  # using a relative directory.
 
10910
  cp "$am_depcomp" conftest.dir
 
10911
  cd conftest.dir
 
10912
  # We will build objects and dependencies in a subdirectory because
 
10913
  # it helps to detect inapplicable dependency modes.  For instance
 
10914
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
10915
  # side effect of compilation, but ICC will put the dependencies in
 
10916
  # the current directory while Tru64 will put them in the object
 
10917
  # directory.
 
10918
  mkdir sub
 
10919
 
 
10920
  am_cv_CC_dependencies_compiler_type=none
 
10921
  if test "$am_compiler_list" = ""; then
 
10922
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
10923
  fi
 
10924
  am__universal=false
 
10925
  case " $depcc " in #(
 
10926
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
10927
     esac
 
10928
 
 
10929
  for depmode in $am_compiler_list; do
 
10930
    # Setup a source with many dependencies, because some compilers
 
10931
    # like to wrap large dependency lists on column 80 (with \), and
 
10932
    # we should not choose a depcomp mode which is confused by this.
 
10933
    #
 
10934
    # We need to recreate these files for each test, as the compiler may
 
10935
    # overwrite some of them when testing with obscure command lines.
 
10936
    # This happens at least with the AIX C compiler.
 
10937
    : > sub/conftest.c
 
10938
    for i in 1 2 3 4 5 6; do
 
10939
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
10940
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
10941
      # Solaris 8's {/usr,}/bin/sh.
 
10942
      touch sub/conftst$i.h
 
10943
    done
 
10944
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
10945
 
 
10946
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
10947
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
10948
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
10949
    # versions had trouble with output in subdirs
 
10950
    am__obj=sub/conftest.${OBJEXT-o}
 
10951
    am__minus_obj="-o $am__obj"
 
10952
    case $depmode in
 
10953
    gcc)
 
10954
      # This depmode causes a compiler race in universal mode.
 
10955
      test "$am__universal" = false || continue
 
10956
      ;;
 
10957
    nosideeffect)
 
10958
      # after this tag, mechanisms are not by side-effect, so they'll
 
10959
      # only be used when explicitly requested
 
10960
      if test "x$enable_dependency_tracking" = xyes; then
 
10961
        continue
 
10962
      else
 
10963
        break
 
10964
      fi
 
10965
      ;;
 
10966
    msvisualcpp | msvcmsys)
 
10967
      # This compiler won't grok `-c -o', but also, the minuso test has
 
10968
      # not run yet.  These depmodes are late enough in the game, and
 
10969
      # so weak that their functioning should not be impacted.
 
10970
      am__obj=conftest.${OBJEXT-o}
 
10971
      am__minus_obj=
 
10972
      ;;
 
10973
    none) break ;;
 
10974
    esac
 
10975
    if depmode=$depmode \
 
10976
       source=sub/conftest.c object=$am__obj \
 
10977
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
10978
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
10979
         >/dev/null 2>conftest.err &&
 
10980
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
10981
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
10982
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
10983
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
10984
      # icc doesn't choke on unknown options, it will just issue warnings
 
10985
      # or remarks (even with -Werror).  So we grep stderr for any message
 
10986
      # that says an option was ignored or not supported.
 
10987
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
10988
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
10989
      # The diagnosis changed in icc 8.0:
 
10990
      #   icc: Command line remark: option '-MP' not supported
 
10991
      if (grep 'ignoring option' conftest.err ||
 
10992
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
10993
        am_cv_CC_dependencies_compiler_type=$depmode
 
10994
        break
 
10995
      fi
 
10996
    fi
 
10997
  done
 
10998
 
 
10999
  cd ..
 
11000
  rm -rf conftest.dir
 
11001
else
 
11002
  am_cv_CC_dependencies_compiler_type=none
 
11003
fi
 
11004
 
 
11005
fi
 
11006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
11007
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
11008
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
11009
 
 
11010
 if
 
11011
  test "x$enable_dependency_tracking" != xno \
 
11012
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
11013
  am__fastdepCC_TRUE=
 
11014
  am__fastdepCC_FALSE='#'
 
11015
else
 
11016
  am__fastdepCC_TRUE='#'
 
11017
  am__fastdepCC_FALSE=
 
11018
fi
 
11019
 
 
11020
 
 
11021
 
 
11022
 
 
11023
ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile mtdev.pc"
 
11024
 
 
11025
cat >confcache <<\_ACEOF
 
11026
# This file is a shell script that caches the results of configure
 
11027
# tests run on this system so they can be shared between configure
 
11028
# scripts and configure runs, see configure's option --config-cache.
 
11029
# It is not useful on other systems.  If it contains results you don't
 
11030
# want to keep, you may remove or edit it.
 
11031
#
 
11032
# config.status only pays attention to the cache file if you give it
 
11033
# the --recheck option to rerun configure.
 
11034
#
 
11035
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
11036
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
11037
# following values.
 
11038
 
 
11039
_ACEOF
 
11040
 
 
11041
# The following way of writing the cache mishandles newlines in values,
 
11042
# but we know of no workaround that is simple, portable, and efficient.
 
11043
# So, we kill variables containing newlines.
 
11044
# Ultrix sh set writes to stderr and can't be redirected directly,
 
11045
# and sets the high bit in the cache file unless we assign to the vars.
 
11046
(
 
11047
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
11048
    eval ac_val=\$$ac_var
 
11049
    case $ac_val in #(
 
11050
    *${as_nl}*)
 
11051
      case $ac_var in #(
 
11052
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
11053
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
11054
      esac
 
11055
      case $ac_var in #(
 
11056
      _ | IFS | as_nl) ;; #(
 
11057
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
11058
      *) { eval $ac_var=; unset $ac_var;} ;;
 
11059
      esac ;;
 
11060
    esac
 
11061
  done
 
11062
 
 
11063
  (set) 2>&1 |
 
11064
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
11065
    *${as_nl}ac_space=\ *)
 
11066
      # `set' does not quote correctly, so add quotes: double-quote
 
11067
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
11068
      sed -n \
 
11069
        "s/'/'\\\\''/g;
 
11070
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
11071
      ;; #(
 
11072
    *)
 
11073
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
11074
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
11075
      ;;
 
11076
    esac |
 
11077
    sort
 
11078
) |
 
11079
  sed '
 
11080
     /^ac_cv_env_/b end
 
11081
     t clear
 
11082
     :clear
 
11083
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
11084
     t end
 
11085
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
11086
     :end' >>confcache
 
11087
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
11088
  if test -w "$cache_file"; then
 
11089
    test "x$cache_file" != "x/dev/null" &&
 
11090
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
11091
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
11092
    cat confcache >$cache_file
 
11093
  else
 
11094
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
11095
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
11096
  fi
 
11097
fi
 
11098
rm -f confcache
 
11099
 
 
11100
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
11101
# Let make expand exec_prefix.
 
11102
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
11103
 
 
11104
DEFS=-DHAVE_CONFIG_H
 
11105
 
 
11106
ac_libobjs=
 
11107
ac_ltlibobjs=
 
11108
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
11109
  # 1. Remove the extension, and $U if already installed.
 
11110
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
11111
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
11112
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
11113
  #    will be set to the directory where LIBOBJS objects are built.
 
11114
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
11115
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
11116
done
 
11117
LIBOBJS=$ac_libobjs
 
11118
 
 
11119
LTLIBOBJS=$ac_ltlibobjs
 
11120
 
 
11121
 
 
11122
 if test -n "$EXEEXT"; then
 
11123
  am__EXEEXT_TRUE=
 
11124
  am__EXEEXT_FALSE='#'
 
11125
else
 
11126
  am__EXEEXT_TRUE='#'
 
11127
  am__EXEEXT_FALSE=
 
11128
fi
 
11129
 
 
11130
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
11131
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
11132
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11133
fi
 
11134
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
11135
  as_fn_error "conditional \"AMDEP\" was never defined.
 
11136
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11137
fi
 
11138
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
11139
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
11140
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11141
fi
 
11142
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
11143
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
11144
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
11145
fi
 
11146
 
 
11147
: ${CONFIG_STATUS=./config.status}
 
11148
ac_write_fail=0
 
11149
ac_clean_files_save=$ac_clean_files
 
11150
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
11151
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
11152
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
11153
as_write_fail=0
 
11154
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
11155
#! $SHELL
 
11156
# Generated by $as_me.
 
11157
# Run this file to recreate the current configuration.
 
11158
# Compiler output produced by configure, useful for debugging
 
11159
# configure, is in config.log if it exists.
 
11160
 
 
11161
debug=false
 
11162
ac_cs_recheck=false
 
11163
ac_cs_silent=false
 
11164
 
 
11165
SHELL=\${CONFIG_SHELL-$SHELL}
 
11166
export SHELL
 
11167
_ASEOF
 
11168
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
11169
## -------------------- ##
 
11170
## M4sh Initialization. ##
 
11171
## -------------------- ##
 
11172
 
 
11173
# Be more Bourne compatible
 
11174
DUALCASE=1; export DUALCASE # for MKS sh
 
11175
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
11176
  emulate sh
 
11177
  NULLCMD=:
 
11178
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
11179
  # is contrary to our usage.  Disable this feature.
 
11180
  alias -g '${1+"$@"}'='"$@"'
 
11181
  setopt NO_GLOB_SUBST
 
11182
else
 
11183
  case `(set -o) 2>/dev/null` in #(
 
11184
  *posix*) :
 
11185
    set -o posix ;; #(
 
11186
  *) :
 
11187
     ;;
 
11188
esac
 
11189
fi
 
11190
 
 
11191
 
 
11192
as_nl='
 
11193
'
 
11194
export as_nl
 
11195
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
11196
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
11197
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
11198
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
11199
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
11200
# but without wasting forks for bash or zsh.
 
11201
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
11202
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11203
  as_echo='print -r --'
 
11204
  as_echo_n='print -rn --'
 
11205
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
11206
  as_echo='printf %s\n'
 
11207
  as_echo_n='printf %s'
 
11208
else
 
11209
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
11210
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
11211
    as_echo_n='/usr/ucb/echo -n'
 
11212
  else
 
11213
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
11214
    as_echo_n_body='eval
 
11215
      arg=$1;
 
11216
      case $arg in #(
 
11217
      *"$as_nl"*)
 
11218
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
11219
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
11220
      esac;
 
11221
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
11222
    '
 
11223
    export as_echo_n_body
 
11224
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
11225
  fi
 
11226
  export as_echo_body
 
11227
  as_echo='sh -c $as_echo_body as_echo'
 
11228
fi
 
11229
 
 
11230
# The user is always right.
 
11231
if test "${PATH_SEPARATOR+set}" != set; then
 
11232
  PATH_SEPARATOR=:
 
11233
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
11234
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
11235
      PATH_SEPARATOR=';'
 
11236
  }
 
11237
fi
 
11238
 
 
11239
 
 
11240
# IFS
 
11241
# We need space, tab and new line, in precisely that order.  Quoting is
 
11242
# there to prevent editors from complaining about space-tab.
 
11243
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
11244
# splitting by setting IFS to empty value.)
 
11245
IFS=" ""        $as_nl"
 
11246
 
 
11247
# Find who we are.  Look in the path if we contain no directory separator.
 
11248
case $0 in #((
 
11249
  *[\\/]* ) as_myself=$0 ;;
 
11250
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11251
for as_dir in $PATH
 
11252
do
 
11253
  IFS=$as_save_IFS
 
11254
  test -z "$as_dir" && as_dir=.
 
11255
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
11256
  done
 
11257
IFS=$as_save_IFS
 
11258
 
 
11259
     ;;
 
11260
esac
 
11261
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
11262
# in which case we are not to be found in the path.
 
11263
if test "x$as_myself" = x; then
 
11264
  as_myself=$0
 
11265
fi
 
11266
if test ! -f "$as_myself"; then
 
11267
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
11268
  exit 1
 
11269
fi
 
11270
 
 
11271
# Unset variables that we do not need and which cause bugs (e.g. in
 
11272
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
11273
# suppresses any "Segmentation fault" message there.  '((' could
 
11274
# trigger a bug in pdksh 5.2.14.
 
11275
for as_var in BASH_ENV ENV MAIL MAILPATH
 
11276
do eval test x\${$as_var+set} = xset \
 
11277
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
11278
done
 
11279
PS1='$ '
 
11280
PS2='> '
 
11281
PS4='+ '
 
11282
 
 
11283
# NLS nuisances.
 
11284
LC_ALL=C
 
11285
export LC_ALL
 
11286
LANGUAGE=C
 
11287
export LANGUAGE
 
11288
 
 
11289
# CDPATH.
 
11290
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11291
 
 
11292
 
 
11293
# as_fn_error ERROR [LINENO LOG_FD]
 
11294
# ---------------------------------
 
11295
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
11296
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
11297
# script with status $?, using 1 if that was 0.
 
11298
as_fn_error ()
 
11299
{
 
11300
  as_status=$?; test $as_status -eq 0 && as_status=1
 
11301
  if test "$3"; then
 
11302
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
11303
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
11304
  fi
 
11305
  $as_echo "$as_me: error: $1" >&2
 
11306
  as_fn_exit $as_status
 
11307
} # as_fn_error
 
11308
 
 
11309
 
 
11310
# as_fn_set_status STATUS
 
11311
# -----------------------
 
11312
# Set $? to STATUS, without forking.
 
11313
as_fn_set_status ()
 
11314
{
 
11315
  return $1
 
11316
} # as_fn_set_status
 
11317
 
 
11318
# as_fn_exit STATUS
 
11319
# -----------------
 
11320
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
11321
as_fn_exit ()
 
11322
{
 
11323
  set +e
 
11324
  as_fn_set_status $1
 
11325
  exit $1
 
11326
} # as_fn_exit
 
11327
 
 
11328
# as_fn_unset VAR
 
11329
# ---------------
 
11330
# Portably unset VAR.
 
11331
as_fn_unset ()
 
11332
{
 
11333
  { eval $1=; unset $1;}
 
11334
}
 
11335
as_unset=as_fn_unset
 
11336
# as_fn_append VAR VALUE
 
11337
# ----------------------
 
11338
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
11339
# advantage of any shell optimizations that allow amortized linear growth over
 
11340
# repeated appends, instead of the typical quadratic growth present in naive
 
11341
# implementations.
 
11342
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
11343
  eval 'as_fn_append ()
 
11344
  {
 
11345
    eval $1+=\$2
 
11346
  }'
 
11347
else
 
11348
  as_fn_append ()
 
11349
  {
 
11350
    eval $1=\$$1\$2
 
11351
  }
 
11352
fi # as_fn_append
 
11353
 
 
11354
# as_fn_arith ARG...
 
11355
# ------------------
 
11356
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
11357
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
11358
# must be portable across $(()) and expr.
 
11359
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
11360
  eval 'as_fn_arith ()
 
11361
  {
 
11362
    as_val=$(( $* ))
 
11363
  }'
 
11364
else
 
11365
  as_fn_arith ()
 
11366
  {
 
11367
    as_val=`expr "$@" || test $? -eq 1`
 
11368
  }
 
11369
fi # as_fn_arith
 
11370
 
 
11371
 
 
11372
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
11373
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
11374
  as_expr=expr
 
11375
else
 
11376
  as_expr=false
 
11377
fi
 
11378
 
 
11379
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
11380
  as_basename=basename
 
11381
else
 
11382
  as_basename=false
 
11383
fi
 
11384
 
 
11385
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
11386
  as_dirname=dirname
 
11387
else
 
11388
  as_dirname=false
 
11389
fi
 
11390
 
 
11391
as_me=`$as_basename -- "$0" ||
 
11392
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
11393
         X"$0" : 'X\(//\)$' \| \
 
11394
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
11395
$as_echo X/"$0" |
 
11396
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
11397
            s//\1/
 
11398
            q
 
11399
          }
 
11400
          /^X\/\(\/\/\)$/{
 
11401
            s//\1/
 
11402
            q
 
11403
          }
 
11404
          /^X\/\(\/\).*/{
 
11405
            s//\1/
 
11406
            q
 
11407
          }
 
11408
          s/.*/./; q'`
 
11409
 
 
11410
# Avoid depending upon Character Ranges.
 
11411
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
11412
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
11413
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
11414
as_cr_digits='0123456789'
 
11415
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
11416
 
 
11417
ECHO_C= ECHO_N= ECHO_T=
 
11418
case `echo -n x` in #(((((
 
11419
-n*)
 
11420
  case `echo 'xy\c'` in
 
11421
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
11422
  xy)  ECHO_C='\c';;
 
11423
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
11424
       ECHO_T=' ';;
 
11425
  esac;;
 
11426
*)
 
11427
  ECHO_N='-n';;
 
11428
esac
 
11429
 
 
11430
rm -f conf$$ conf$$.exe conf$$.file
 
11431
if test -d conf$$.dir; then
 
11432
  rm -f conf$$.dir/conf$$.file
 
11433
else
 
11434
  rm -f conf$$.dir
 
11435
  mkdir conf$$.dir 2>/dev/null
 
11436
fi
 
11437
if (echo >conf$$.file) 2>/dev/null; then
 
11438
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
11439
    as_ln_s='ln -s'
 
11440
    # ... but there are two gotchas:
 
11441
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
11442
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
11443
    # In both cases, we have to default to `cp -p'.
 
11444
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
11445
      as_ln_s='cp -p'
 
11446
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
11447
    as_ln_s=ln
 
11448
  else
 
11449
    as_ln_s='cp -p'
 
11450
  fi
 
11451
else
 
11452
  as_ln_s='cp -p'
 
11453
fi
 
11454
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
11455
rmdir conf$$.dir 2>/dev/null
 
11456
 
 
11457
 
 
11458
# as_fn_mkdir_p
 
11459
# -------------
 
11460
# Create "$as_dir" as a directory, including parents if necessary.
 
11461
as_fn_mkdir_p ()
 
11462
{
 
11463
 
 
11464
  case $as_dir in #(
 
11465
  -*) as_dir=./$as_dir;;
 
11466
  esac
 
11467
  test -d "$as_dir" || eval $as_mkdir_p || {
 
11468
    as_dirs=
 
11469
    while :; do
 
11470
      case $as_dir in #(
 
11471
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
11472
      *) as_qdir=$as_dir;;
 
11473
      esac
 
11474
      as_dirs="'$as_qdir' $as_dirs"
 
11475
      as_dir=`$as_dirname -- "$as_dir" ||
 
11476
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11477
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11478
         X"$as_dir" : 'X\(//\)$' \| \
 
11479
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
11480
$as_echo X"$as_dir" |
 
11481
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
11482
            s//\1/
 
11483
            q
 
11484
          }
 
11485
          /^X\(\/\/\)[^/].*/{
 
11486
            s//\1/
 
11487
            q
 
11488
          }
 
11489
          /^X\(\/\/\)$/{
 
11490
            s//\1/
 
11491
            q
 
11492
          }
 
11493
          /^X\(\/\).*/{
 
11494
            s//\1/
 
11495
            q
 
11496
          }
 
11497
          s/.*/./; q'`
 
11498
      test -d "$as_dir" && break
 
11499
    done
 
11500
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
11501
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
11502
 
 
11503
 
 
11504
} # as_fn_mkdir_p
 
11505
if mkdir -p . 2>/dev/null; then
 
11506
  as_mkdir_p='mkdir -p "$as_dir"'
 
11507
else
 
11508
  test -d ./-p && rmdir ./-p
 
11509
  as_mkdir_p=false
 
11510
fi
 
11511
 
 
11512
if test -x / >/dev/null 2>&1; then
 
11513
  as_test_x='test -x'
 
11514
else
 
11515
  if ls -dL / >/dev/null 2>&1; then
 
11516
    as_ls_L_option=L
 
11517
  else
 
11518
    as_ls_L_option=
 
11519
  fi
 
11520
  as_test_x='
 
11521
    eval sh -c '\''
 
11522
      if test -d "$1"; then
 
11523
        test -d "$1/.";
 
11524
      else
 
11525
        case $1 in #(
 
11526
        -*)set "./$1";;
 
11527
        esac;
 
11528
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
11529
        ???[sx]*):;;*)false;;esac;fi
 
11530
    '\'' sh
 
11531
  '
 
11532
fi
 
11533
as_executable_p=$as_test_x
 
11534
 
 
11535
# Sed expression to map a string onto a valid CPP name.
 
11536
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
11537
 
 
11538
# Sed expression to map a string onto a valid variable name.
 
11539
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
11540
 
 
11541
 
 
11542
exec 6>&1
 
11543
## ----------------------------------- ##
 
11544
## Main body of $CONFIG_STATUS script. ##
 
11545
## ----------------------------------- ##
 
11546
_ASEOF
 
11547
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
11548
 
 
11549
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11550
# Save the log message, to keep $0 and so on meaningful, and to
 
11551
# report actual input values of CONFIG_FILES etc. instead of their
 
11552
# values after options handling.
 
11553
ac_log="
 
11554
This file was extended by Multitouch Protocol Translation Library $as_me 1.0.8, which was
 
11555
generated by GNU Autoconf 2.65.  Invocation command line was
 
11556
 
 
11557
  CONFIG_FILES    = $CONFIG_FILES
 
11558
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
11559
  CONFIG_LINKS    = $CONFIG_LINKS
 
11560
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
11561
  $ $0 $@
 
11562
 
 
11563
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
11564
"
 
11565
 
 
11566
_ACEOF
 
11567
 
 
11568
case $ac_config_files in *"
 
11569
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
11570
esac
 
11571
 
 
11572
case $ac_config_headers in *"
 
11573
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
11574
esac
 
11575
 
 
11576
 
 
11577
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11578
# Files that config.status was made for.
 
11579
config_files="$ac_config_files"
 
11580
config_headers="$ac_config_headers"
 
11581
config_commands="$ac_config_commands"
 
11582
 
 
11583
_ACEOF
 
11584
 
 
11585
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11586
ac_cs_usage="\
 
11587
\`$as_me' instantiates files and other configuration actions
 
11588
from templates according to the current configuration.  Unless the files
 
11589
and actions are specified as TAGs, all are instantiated by default.
 
11590
 
 
11591
Usage: $0 [OPTION]... [TAG]...
 
11592
 
 
11593
  -h, --help       print this help, then exit
 
11594
  -V, --version    print version number and configuration settings, then exit
 
11595
      --config     print configuration, then exit
 
11596
  -q, --quiet, --silent
 
11597
                   do not print progress messages
 
11598
  -d, --debug      don't remove temporary files
 
11599
      --recheck    update $as_me by reconfiguring in the same conditions
 
11600
      --file=FILE[:TEMPLATE]
 
11601
                   instantiate the configuration file FILE
 
11602
      --header=FILE[:TEMPLATE]
 
11603
                   instantiate the configuration header FILE
 
11604
 
 
11605
Configuration files:
 
11606
$config_files
 
11607
 
 
11608
Configuration headers:
 
11609
$config_headers
 
11610
 
 
11611
Configuration commands:
 
11612
$config_commands
 
11613
 
 
11614
Report bugs to the package provider."
 
11615
 
 
11616
_ACEOF
 
11617
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11618
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
11619
ac_cs_version="\\
 
11620
Multitouch Protocol Translation Library config.status 1.0.8
 
11621
configured by $0, generated by GNU Autoconf 2.65,
 
11622
  with options \\"\$ac_cs_config\\"
 
11623
 
 
11624
Copyright (C) 2009 Free Software Foundation, Inc.
 
11625
This config.status script is free software; the Free Software Foundation
 
11626
gives unlimited permission to copy, distribute and modify it."
 
11627
 
 
11628
ac_pwd='$ac_pwd'
 
11629
srcdir='$srcdir'
 
11630
INSTALL='$INSTALL'
 
11631
MKDIR_P='$MKDIR_P'
 
11632
AWK='$AWK'
 
11633
test -n "\$AWK" || AWK=awk
 
11634
_ACEOF
 
11635
 
 
11636
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11637
# The default lists apply if the user does not specify any file.
 
11638
ac_need_defaults=:
 
11639
while test $# != 0
 
11640
do
 
11641
  case $1 in
 
11642
  --*=*)
 
11643
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
11644
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
11645
    ac_shift=:
 
11646
    ;;
 
11647
  *)
 
11648
    ac_option=$1
 
11649
    ac_optarg=$2
 
11650
    ac_shift=shift
 
11651
    ;;
 
11652
  esac
 
11653
 
 
11654
  case $ac_option in
 
11655
  # Handling of the options.
 
11656
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
11657
    ac_cs_recheck=: ;;
 
11658
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
11659
    $as_echo "$ac_cs_version"; exit ;;
 
11660
  --config | --confi | --conf | --con | --co | --c )
 
11661
    $as_echo "$ac_cs_config"; exit ;;
 
11662
  --debug | --debu | --deb | --de | --d | -d )
 
11663
    debug=: ;;
 
11664
  --file | --fil | --fi | --f )
 
11665
    $ac_shift
 
11666
    case $ac_optarg in
 
11667
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
11668
    esac
 
11669
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
11670
    ac_need_defaults=false;;
 
11671
  --header | --heade | --head | --hea )
 
11672
    $ac_shift
 
11673
    case $ac_optarg in
 
11674
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
11675
    esac
 
11676
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
11677
    ac_need_defaults=false;;
 
11678
  --he | --h)
 
11679
    # Conflict between --help and --header
 
11680
    as_fn_error "ambiguous option: \`$1'
 
11681
Try \`$0 --help' for more information.";;
 
11682
  --help | --hel | -h )
 
11683
    $as_echo "$ac_cs_usage"; exit ;;
 
11684
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
11685
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
11686
    ac_cs_silent=: ;;
 
11687
 
 
11688
  # This is an error.
 
11689
  -*) as_fn_error "unrecognized option: \`$1'
 
11690
Try \`$0 --help' for more information." ;;
 
11691
 
 
11692
  *) as_fn_append ac_config_targets " $1"
 
11693
     ac_need_defaults=false ;;
 
11694
 
 
11695
  esac
 
11696
  shift
 
11697
done
 
11698
 
 
11699
ac_configure_extra_args=
 
11700
 
 
11701
if $ac_cs_silent; then
 
11702
  exec 6>/dev/null
 
11703
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
11704
fi
 
11705
 
 
11706
_ACEOF
 
11707
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11708
if \$ac_cs_recheck; then
 
11709
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
11710
  shift
 
11711
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
11712
  CONFIG_SHELL='$SHELL'
 
11713
  export CONFIG_SHELL
 
11714
  exec "\$@"
 
11715
fi
 
11716
 
 
11717
_ACEOF
 
11718
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11719
exec 5>>config.log
 
11720
{
 
11721
  echo
 
11722
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
11723
## Running $as_me. ##
 
11724
_ASBOX
 
11725
  $as_echo "$ac_log"
 
11726
} >&5
 
11727
 
 
11728
_ACEOF
 
11729
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
11730
#
 
11731
# INIT-COMMANDS
 
11732
#
 
11733
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
11734
 
 
11735
 
 
11736
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11737
# if CDPATH is set.
 
11738
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11739
 
 
11740
sed_quote_subst='$sed_quote_subst'
 
11741
double_quote_subst='$double_quote_subst'
 
11742
delay_variable_subst='$delay_variable_subst'
 
11743
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
11744
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
11745
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
11746
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
11747
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
11748
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
11749
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
11750
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
11751
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
11752
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
11753
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
11754
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
11755
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
11756
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
11757
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
11758
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
11759
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
11760
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
11761
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
11762
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
11763
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
11764
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
11765
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
11766
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
11767
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
11768
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
11769
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11770
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11771
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
11772
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
11773
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
11774
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
11775
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
11776
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
11777
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
11778
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11779
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11780
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11781
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
11782
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
11783
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
11784
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
11785
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
11786
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
11787
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
11788
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
11789
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
11790
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
11791
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
11792
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
11793
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11794
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
11795
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
11796
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
11797
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
11798
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
11799
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
11800
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
11801
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
11802
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
11803
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
11804
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
11805
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11806
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11807
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
11808
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
11809
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11810
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11811
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
11812
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11813
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11814
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11815
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11816
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11817
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11818
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
11819
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11820
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
11821
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11822
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
11823
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
11824
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
11825
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
11826
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
11827
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
11828
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
11829
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
11830
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
11831
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
11832
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
11833
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11834
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
11835
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
11836
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11837
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11838
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
11839
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
11840
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
11841
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
11842
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
11843
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
11844
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
11845
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11846
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11847
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11848
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11849
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11850
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
11851
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
11852
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
11853
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11854
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
11855
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
11856
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
11857
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
11858
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
11859
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
11860
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
11861
 
 
11862
LTCC='$LTCC'
 
11863
LTCFLAGS='$LTCFLAGS'
 
11864
compiler='$compiler_DEFAULT'
 
11865
 
 
11866
# Quote evaled strings.
 
11867
for var in SED \
 
11868
GREP \
 
11869
EGREP \
 
11870
FGREP \
 
11871
LD \
 
11872
NM \
 
11873
LN_S \
 
11874
lt_SP2NL \
 
11875
lt_NL2SP \
 
11876
reload_flag \
 
11877
OBJDUMP \
 
11878
deplibs_check_method \
 
11879
file_magic_cmd \
 
11880
AR \
 
11881
AR_FLAGS \
 
11882
STRIP \
 
11883
RANLIB \
 
11884
CC \
 
11885
CFLAGS \
 
11886
compiler \
 
11887
lt_cv_sys_global_symbol_pipe \
 
11888
lt_cv_sys_global_symbol_to_cdecl \
 
11889
lt_cv_sys_global_symbol_to_c_name_address \
 
11890
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
11891
SHELL \
 
11892
ECHO \
 
11893
lt_prog_compiler_no_builtin_flag \
 
11894
lt_prog_compiler_wl \
 
11895
lt_prog_compiler_pic \
 
11896
lt_prog_compiler_static \
 
11897
lt_cv_prog_compiler_c_o \
 
11898
need_locks \
 
11899
DSYMUTIL \
 
11900
NMEDIT \
 
11901
LIPO \
 
11902
OTOOL \
 
11903
OTOOL64 \
 
11904
shrext_cmds \
 
11905
export_dynamic_flag_spec \
 
11906
whole_archive_flag_spec \
 
11907
compiler_needs_object \
 
11908
with_gnu_ld \
 
11909
allow_undefined_flag \
 
11910
no_undefined_flag \
 
11911
hardcode_libdir_flag_spec \
 
11912
hardcode_libdir_flag_spec_ld \
 
11913
hardcode_libdir_separator \
 
11914
fix_srcfile_path \
 
11915
exclude_expsyms \
 
11916
include_expsyms \
 
11917
file_list_spec \
 
11918
variables_saved_for_relink \
 
11919
libname_spec \
 
11920
library_names_spec \
 
11921
soname_spec \
 
11922
finish_eval \
 
11923
old_striplib \
 
11924
striplib; do
 
11925
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
11926
    *[\\\\\\\`\\"\\\$]*)
 
11927
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
11928
      ;;
 
11929
    *)
 
11930
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
11931
      ;;
 
11932
    esac
 
11933
done
 
11934
 
 
11935
# Double-quote double-evaled strings.
 
11936
for var in reload_cmds \
 
11937
old_postinstall_cmds \
 
11938
old_postuninstall_cmds \
 
11939
old_archive_cmds \
 
11940
extract_expsyms_cmds \
 
11941
old_archive_from_new_cmds \
 
11942
old_archive_from_expsyms_cmds \
 
11943
archive_cmds \
 
11944
archive_expsym_cmds \
 
11945
module_cmds \
 
11946
module_expsym_cmds \
 
11947
export_symbols_cmds \
 
11948
prelink_cmds \
 
11949
postinstall_cmds \
 
11950
postuninstall_cmds \
 
11951
finish_cmds \
 
11952
sys_lib_search_path_spec \
 
11953
sys_lib_dlsearch_path_spec; do
 
11954
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
11955
    *[\\\\\\\`\\"\\\$]*)
 
11956
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
11957
      ;;
 
11958
    *)
 
11959
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
11960
      ;;
 
11961
    esac
 
11962
done
 
11963
 
 
11964
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
11965
case \$lt_ECHO in
 
11966
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
11967
  ;;
 
11968
esac
 
11969
 
 
11970
ac_aux_dir='$ac_aux_dir'
 
11971
xsi_shell='$xsi_shell'
 
11972
lt_shell_append='$lt_shell_append'
 
11973
 
 
11974
# See if we are running on zsh, and set the options which allow our
 
11975
# commands through without removal of \ escapes INIT.
 
11976
if test -n "\${ZSH_VERSION+set}" ; then
 
11977
   setopt NO_GLOB_SUBST
 
11978
fi
 
11979
 
 
11980
 
 
11981
    PACKAGE='$PACKAGE'
 
11982
    VERSION='$VERSION'
 
11983
    TIMESTAMP='$TIMESTAMP'
 
11984
    RM='$RM'
 
11985
    ofile='$ofile'
 
11986
 
 
11987
 
 
11988
 
 
11989
 
 
11990
_ACEOF
 
11991
 
 
11992
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
11993
 
 
11994
# Handling of arguments.
 
11995
for ac_config_target in $ac_config_targets
 
11996
do
 
11997
  case $ac_config_target in
 
11998
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
11999
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
12000
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
12001
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
12002
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
12003
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
12004
    "mtdev.pc") CONFIG_FILES="$CONFIG_FILES mtdev.pc" ;;
 
12005
 
 
12006
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
12007
  esac
 
12008
done
 
12009
 
 
12010
 
 
12011
# If the user did not use the arguments to specify the items to instantiate,
 
12012
# then the envvar interface is used.  Set only those that are not.
 
12013
# We use the long form for the default assignment because of an extremely
 
12014
# bizarre bug on SunOS 4.1.3.
 
12015
if $ac_need_defaults; then
 
12016
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
12017
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
12018
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
12019
fi
 
12020
 
 
12021
# Have a temporary directory for convenience.  Make it in the build tree
 
12022
# simply because there is no reason against having it here, and in addition,
 
12023
# creating and moving files from /tmp can sometimes cause problems.
 
12024
# Hook for its removal unless debugging.
 
12025
# Note that there is a small window in which the directory will not be cleaned:
 
12026
# after its creation but before its name has been assigned to `$tmp'.
 
12027
$debug ||
 
12028
{
 
12029
  tmp=
 
12030
  trap 'exit_status=$?
 
12031
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
12032
' 0
 
12033
  trap 'as_fn_exit 1' 1 2 13 15
 
12034
}
 
12035
# Create a (secure) tmp directory for tmp files.
 
12036
 
 
12037
{
 
12038
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
12039
  test -n "$tmp" && test -d "$tmp"
 
12040
}  ||
 
12041
{
 
12042
  tmp=./conf$$-$RANDOM
 
12043
  (umask 077 && mkdir "$tmp")
 
12044
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
12045
 
 
12046
# Set up the scripts for CONFIG_FILES section.
 
12047
# No need to generate them if there are no CONFIG_FILES.
 
12048
# This happens for instance with `./config.status config.h'.
 
12049
if test -n "$CONFIG_FILES"; then
 
12050
 
 
12051
 
 
12052
ac_cr=`echo X | tr X '\015'`
 
12053
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
12054
# But we know of no other shell where ac_cr would be empty at this
 
12055
# point, so we can use a bashism as a fallback.
 
12056
if test "x$ac_cr" = x; then
 
12057
  eval ac_cr=\$\'\\r\'
 
12058
fi
 
12059
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
12060
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
12061
  ac_cs_awk_cr='\r'
 
12062
else
 
12063
  ac_cs_awk_cr=$ac_cr
 
12064
fi
 
12065
 
 
12066
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
12067
_ACEOF
 
12068
 
 
12069
 
 
12070
{
 
12071
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
12072
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
12073
  echo "_ACEOF"
 
12074
} >conf$$subs.sh ||
 
12075
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
12076
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
12077
ac_delim='%!_!# '
 
12078
for ac_last_try in false false false false false :; do
 
12079
  . ./conf$$subs.sh ||
 
12080
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
12081
 
 
12082
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
12083
  if test $ac_delim_n = $ac_delim_num; then
 
12084
    break
 
12085
  elif $ac_last_try; then
 
12086
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
12087
  else
 
12088
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12089
  fi
 
12090
done
 
12091
rm -f conf$$subs.sh
 
12092
 
 
12093
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12094
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
12095
_ACEOF
 
12096
sed -n '
 
12097
h
 
12098
s/^/S["/; s/!.*/"]=/
 
12099
p
 
12100
g
 
12101
s/^[^!]*!//
 
12102
:repl
 
12103
t repl
 
12104
s/'"$ac_delim"'$//
 
12105
t delim
 
12106
:nl
 
12107
h
 
12108
s/\(.\{148\}\)..*/\1/
 
12109
t more1
 
12110
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
12111
p
 
12112
n
 
12113
b repl
 
12114
:more1
 
12115
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
12116
p
 
12117
g
 
12118
s/.\{148\}//
 
12119
t nl
 
12120
:delim
 
12121
h
 
12122
s/\(.\{148\}\)..*/\1/
 
12123
t more2
 
12124
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
12125
p
 
12126
b
 
12127
:more2
 
12128
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
12129
p
 
12130
g
 
12131
s/.\{148\}//
 
12132
t delim
 
12133
' <conf$$subs.awk | sed '
 
12134
/^[^""]/{
 
12135
  N
 
12136
  s/\n//
 
12137
}
 
12138
' >>$CONFIG_STATUS || ac_write_fail=1
 
12139
rm -f conf$$subs.awk
 
12140
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12141
_ACAWK
 
12142
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
12143
  for (key in S) S_is_set[key] = 1
 
12144
  FS = ""
 
12145
 
 
12146
}
 
12147
{
 
12148
  line = $ 0
 
12149
  nfields = split(line, field, "@")
 
12150
  substed = 0
 
12151
  len = length(field[1])
 
12152
  for (i = 2; i < nfields; i++) {
 
12153
    key = field[i]
 
12154
    keylen = length(key)
 
12155
    if (S_is_set[key]) {
 
12156
      value = S[key]
 
12157
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
12158
      len += length(value) + length(field[++i])
 
12159
      substed = 1
 
12160
    } else
 
12161
      len += 1 + keylen
 
12162
  }
 
12163
 
 
12164
  print line
 
12165
}
 
12166
 
 
12167
_ACAWK
 
12168
_ACEOF
 
12169
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12170
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
12171
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
12172
else
 
12173
  cat
 
12174
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
12175
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
12176
_ACEOF
 
12177
 
 
12178
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
12179
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
12180
# trailing colons and then remove the whole line if VPATH becomes empty
 
12181
# (actually we leave an empty line to preserve line numbers).
 
12182
if test "x$srcdir" = x.; then
 
12183
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
12184
s/:*\$(srcdir):*/:/
 
12185
s/:*\${srcdir}:*/:/
 
12186
s/:*@srcdir@:*/:/
 
12187
s/^\([^=]*=[     ]*\):*/\1/
 
12188
s/:*$//
 
12189
s/^[^=]*=[       ]*$//
 
12190
}'
 
12191
fi
 
12192
 
 
12193
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12194
fi # test -n "$CONFIG_FILES"
 
12195
 
 
12196
# Set up the scripts for CONFIG_HEADERS section.
 
12197
# No need to generate them if there are no CONFIG_HEADERS.
 
12198
# This happens for instance with `./config.status Makefile'.
 
12199
if test -n "$CONFIG_HEADERS"; then
 
12200
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
12201
BEGIN {
 
12202
_ACEOF
 
12203
 
 
12204
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
12205
# here-document in config.status, that substitutes the proper values into
 
12206
# config.h.in to produce config.h.
 
12207
 
 
12208
# Create a delimiter string that does not exist in confdefs.h, to ease
 
12209
# handling of long lines.
 
12210
ac_delim='%!_!# '
 
12211
for ac_last_try in false false :; do
 
12212
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
12213
  if test -z "$ac_t"; then
 
12214
    break
 
12215
  elif $ac_last_try; then
 
12216
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
12217
  else
 
12218
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12219
  fi
 
12220
done
 
12221
 
 
12222
# For the awk script, D is an array of macro values keyed by name,
 
12223
# likewise P contains macro parameters if any.  Preserve backslash
 
12224
# newline sequences.
 
12225
 
 
12226
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
12227
sed -n '
 
12228
s/.\{148\}/&'"$ac_delim"'/g
 
12229
t rset
 
12230
:rset
 
12231
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
12232
t def
 
12233
d
 
12234
:def
 
12235
s/\\$//
 
12236
t bsnl
 
12237
s/["\\]/\\&/g
 
12238
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
12239
D["\1"]=" \3"/p
 
12240
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
12241
d
 
12242
:bsnl
 
12243
s/["\\]/\\&/g
 
12244
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
12245
D["\1"]=" \3\\\\\\n"\\/p
 
12246
t cont
 
12247
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
12248
t cont
 
12249
d
 
12250
:cont
 
12251
n
 
12252
s/.\{148\}/&'"$ac_delim"'/g
 
12253
t clear
 
12254
:clear
 
12255
s/\\$//
 
12256
t bsnlc
 
12257
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
12258
d
 
12259
:bsnlc
 
12260
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
12261
b cont
 
12262
' <confdefs.h | sed '
 
12263
s/'"$ac_delim"'/"\\\
 
12264
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
12265
 
 
12266
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12267
  for (key in D) D_is_set[key] = 1
 
12268
  FS = ""
 
12269
}
 
12270
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
12271
  line = \$ 0
 
12272
  split(line, arg, " ")
 
12273
  if (arg[1] == "#") {
 
12274
    defundef = arg[2]
 
12275
    mac1 = arg[3]
 
12276
  } else {
 
12277
    defundef = substr(arg[1], 2)
 
12278
    mac1 = arg[2]
 
12279
  }
 
12280
  split(mac1, mac2, "(") #)
 
12281
  macro = mac2[1]
 
12282
  prefix = substr(line, 1, index(line, defundef) - 1)
 
12283
  if (D_is_set[macro]) {
 
12284
    # Preserve the white space surrounding the "#".
 
12285
    print prefix "define", macro P[macro] D[macro]
 
12286
    next
 
12287
  } else {
 
12288
    # Replace #undef with comments.  This is necessary, for example,
 
12289
    # in the case of _POSIX_SOURCE, which is predefined and required
 
12290
    # on some systems where configure will not decide to define it.
 
12291
    if (defundef == "undef") {
 
12292
      print "/*", prefix defundef, macro, "*/"
 
12293
      next
 
12294
    }
 
12295
  }
 
12296
}
 
12297
{ print }
 
12298
_ACAWK
 
12299
_ACEOF
 
12300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12301
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
12302
fi # test -n "$CONFIG_HEADERS"
 
12303
 
 
12304
 
 
12305
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
12306
shift
 
12307
for ac_tag
 
12308
do
 
12309
  case $ac_tag in
 
12310
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
12311
  esac
 
12312
  case $ac_mode$ac_tag in
 
12313
  :[FHL]*:*);;
 
12314
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
12315
  :[FH]-) ac_tag=-:-;;
 
12316
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
12317
  esac
 
12318
  ac_save_IFS=$IFS
 
12319
  IFS=:
 
12320
  set x $ac_tag
 
12321
  IFS=$ac_save_IFS
 
12322
  shift
 
12323
  ac_file=$1
 
12324
  shift
 
12325
 
 
12326
  case $ac_mode in
 
12327
  :L) ac_source=$1;;
 
12328
  :[FH])
 
12329
    ac_file_inputs=
 
12330
    for ac_f
 
12331
    do
 
12332
      case $ac_f in
 
12333
      -) ac_f="$tmp/stdin";;
 
12334
      *) # Look for the file first in the build tree, then in the source tree
 
12335
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
12336
         # because $ac_f cannot contain `:'.
 
12337
         test -f "$ac_f" ||
 
12338
           case $ac_f in
 
12339
           [\\/$]*) false;;
 
12340
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
12341
           esac ||
 
12342
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
12343
      esac
 
12344
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
12345
      as_fn_append ac_file_inputs " '$ac_f'"
 
12346
    done
 
12347
 
 
12348
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
12349
    # use $as_me), people would be surprised to read:
 
12350
    #    /* config.h.  Generated by config.status.  */
 
12351
    configure_input='Generated from '`
 
12352
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
12353
        `' by configure.'
 
12354
    if test x"$ac_file" != x-; then
 
12355
      configure_input="$ac_file.  $configure_input"
 
12356
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
12357
$as_echo "$as_me: creating $ac_file" >&6;}
 
12358
    fi
 
12359
    # Neutralize special characters interpreted by sed in replacement strings.
 
12360
    case $configure_input in #(
 
12361
    *\&* | *\|* | *\\* )
 
12362
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
12363
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
12364
    *) ac_sed_conf_input=$configure_input;;
 
12365
    esac
 
12366
 
 
12367
    case $ac_tag in
 
12368
    *:-:* | *:-) cat >"$tmp/stdin" \
 
12369
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
12370
    esac
 
12371
    ;;
 
12372
  esac
 
12373
 
 
12374
  ac_dir=`$as_dirname -- "$ac_file" ||
 
12375
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12376
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
12377
         X"$ac_file" : 'X\(//\)$' \| \
 
12378
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
12379
$as_echo X"$ac_file" |
 
12380
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12381
            s//\1/
 
12382
            q
 
12383
          }
 
12384
          /^X\(\/\/\)[^/].*/{
 
12385
            s//\1/
 
12386
            q
 
12387
          }
 
12388
          /^X\(\/\/\)$/{
 
12389
            s//\1/
 
12390
            q
 
12391
          }
 
12392
          /^X\(\/\).*/{
 
12393
            s//\1/
 
12394
            q
 
12395
          }
 
12396
          s/.*/./; q'`
 
12397
  as_dir="$ac_dir"; as_fn_mkdir_p
 
12398
  ac_builddir=.
 
12399
 
 
12400
case "$ac_dir" in
 
12401
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
12402
*)
 
12403
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
12404
  # A ".." for each directory in $ac_dir_suffix.
 
12405
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
12406
  case $ac_top_builddir_sub in
 
12407
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
12408
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
12409
  esac ;;
 
12410
esac
 
12411
ac_abs_top_builddir=$ac_pwd
 
12412
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
12413
# for backward compatibility:
 
12414
ac_top_builddir=$ac_top_build_prefix
 
12415
 
 
12416
case $srcdir in
 
12417
  .)  # We are building in place.
 
12418
    ac_srcdir=.
 
12419
    ac_top_srcdir=$ac_top_builddir_sub
 
12420
    ac_abs_top_srcdir=$ac_pwd ;;
 
12421
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
12422
    ac_srcdir=$srcdir$ac_dir_suffix;
 
12423
    ac_top_srcdir=$srcdir
 
12424
    ac_abs_top_srcdir=$srcdir ;;
 
12425
  *) # Relative name.
 
12426
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
12427
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
12428
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
12429
esac
 
12430
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
12431
 
 
12432
 
 
12433
  case $ac_mode in
 
12434
  :F)
 
12435
  #
 
12436
  # CONFIG_FILE
 
12437
  #
 
12438
 
 
12439
  case $INSTALL in
 
12440
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
12441
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
12442
  esac
 
12443
  ac_MKDIR_P=$MKDIR_P
 
12444
  case $MKDIR_P in
 
12445
  [\\/$]* | ?:[\\/]* ) ;;
 
12446
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
12447
  esac
 
12448
_ACEOF
 
12449
 
 
12450
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12451
# If the template does not know about datarootdir, expand it.
 
12452
# FIXME: This hack should be removed a few years after 2.60.
 
12453
ac_datarootdir_hack=; ac_datarootdir_seen=
 
12454
ac_sed_dataroot='
 
12455
/datarootdir/ {
 
12456
  p
 
12457
  q
 
12458
}
 
12459
/@datadir@/p
 
12460
/@docdir@/p
 
12461
/@infodir@/p
 
12462
/@localedir@/p
 
12463
/@mandir@/p'
 
12464
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
12465
*datarootdir*) ac_datarootdir_seen=yes;;
 
12466
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
12467
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
12468
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
12469
_ACEOF
 
12470
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12471
  ac_datarootdir_hack='
 
12472
  s&@datadir@&$datadir&g
 
12473
  s&@docdir@&$docdir&g
 
12474
  s&@infodir@&$infodir&g
 
12475
  s&@localedir@&$localedir&g
 
12476
  s&@mandir@&$mandir&g
 
12477
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
12478
esac
 
12479
_ACEOF
 
12480
 
 
12481
# Neutralize VPATH when `$srcdir' = `.'.
 
12482
# Shell code in configure.ac might set extrasub.
 
12483
# FIXME: do we really want to maintain this feature?
 
12484
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
12485
ac_sed_extra="$ac_vpsub
 
12486
$extrasub
 
12487
_ACEOF
 
12488
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
12489
:t
 
12490
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
12491
s|@configure_input@|$ac_sed_conf_input|;t t
 
12492
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
12493
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
12494
s&@srcdir@&$ac_srcdir&;t t
 
12495
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
12496
s&@top_srcdir@&$ac_top_srcdir&;t t
 
12497
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
12498
s&@builddir@&$ac_builddir&;t t
 
12499
s&@abs_builddir@&$ac_abs_builddir&;t t
 
12500
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
12501
s&@INSTALL@&$ac_INSTALL&;t t
 
12502
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
12503
$ac_datarootdir_hack
 
12504
"
 
12505
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
12506
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
12507
 
 
12508
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
12509
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
12510
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
12511
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12512
which seems to be undefined.  Please make sure it is defined." >&5
 
12513
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12514
which seems to be undefined.  Please make sure it is defined." >&2;}
 
12515
 
 
12516
  rm -f "$tmp/stdin"
 
12517
  case $ac_file in
 
12518
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
12519
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
12520
  esac \
 
12521
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
12522
 ;;
 
12523
  :H)
 
12524
  #
 
12525
  # CONFIG_HEADER
 
12526
  #
 
12527
  if test x"$ac_file" != x-; then
 
12528
    {
 
12529
      $as_echo "/* $configure_input  */" \
 
12530
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
12531
    } >"$tmp/config.h" \
 
12532
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
12533
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
12534
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
12535
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
12536
    else
 
12537
      rm -f "$ac_file"
 
12538
      mv "$tmp/config.h" "$ac_file" \
 
12539
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
12540
    fi
 
12541
  else
 
12542
    $as_echo "/* $configure_input  */" \
 
12543
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
12544
      || as_fn_error "could not create -" "$LINENO" 5
 
12545
  fi
 
12546
# Compute "$ac_file"'s index in $config_headers.
 
12547
_am_arg="$ac_file"
 
12548
_am_stamp_count=1
 
12549
for _am_header in $config_headers :; do
 
12550
  case $_am_header in
 
12551
    $_am_arg | $_am_arg:* )
 
12552
      break ;;
 
12553
    * )
 
12554
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
12555
  esac
 
12556
done
 
12557
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
12558
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12559
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
12560
         X"$_am_arg" : 'X\(//\)$' \| \
 
12561
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
12562
$as_echo X"$_am_arg" |
 
12563
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12564
            s//\1/
 
12565
            q
 
12566
          }
 
12567
          /^X\(\/\/\)[^/].*/{
 
12568
            s//\1/
 
12569
            q
 
12570
          }
 
12571
          /^X\(\/\/\)$/{
 
12572
            s//\1/
 
12573
            q
 
12574
          }
 
12575
          /^X\(\/\).*/{
 
12576
            s//\1/
 
12577
            q
 
12578
          }
 
12579
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
12580
 ;;
 
12581
 
 
12582
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
12583
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
12584
 ;;
 
12585
  esac
 
12586
 
 
12587
 
 
12588
  case $ac_file$ac_mode in
 
12589
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
12590
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
12591
  # are listed without --file.  Let's play safe and only enable the eval
 
12592
  # if we detect the quoting.
 
12593
  case $CONFIG_FILES in
 
12594
  *\'*) eval set x "$CONFIG_FILES" ;;
 
12595
  *)   set x $CONFIG_FILES ;;
 
12596
  esac
 
12597
  shift
 
12598
  for mf
 
12599
  do
 
12600
    # Strip MF so we end up with the name of the file.
 
12601
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
12602
    # Check whether this is an Automake generated Makefile or not.
 
12603
    # We used to match only the files named `Makefile.in', but
 
12604
    # some people rename them; so instead we look at the file content.
 
12605
    # Grep'ing the first line is not enough: some people post-process
 
12606
    # each Makefile.in and add a new line on top of each file to say so.
 
12607
    # Grep'ing the whole file is not good either: AIX grep has a line
 
12608
    # limit of 2048, but all sed's we know have understand at least 4000.
 
12609
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
12610
      dirpart=`$as_dirname -- "$mf" ||
 
12611
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12612
         X"$mf" : 'X\(//\)[^/]' \| \
 
12613
         X"$mf" : 'X\(//\)$' \| \
 
12614
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
12615
$as_echo X"$mf" |
 
12616
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12617
            s//\1/
 
12618
            q
 
12619
          }
 
12620
          /^X\(\/\/\)[^/].*/{
 
12621
            s//\1/
 
12622
            q
 
12623
          }
 
12624
          /^X\(\/\/\)$/{
 
12625
            s//\1/
 
12626
            q
 
12627
          }
 
12628
          /^X\(\/\).*/{
 
12629
            s//\1/
 
12630
            q
 
12631
          }
 
12632
          s/.*/./; q'`
 
12633
    else
 
12634
      continue
 
12635
    fi
 
12636
    # Extract the definition of DEPDIR, am__include, and am__quote
 
12637
    # from the Makefile without running `make'.
 
12638
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
12639
    test -z "$DEPDIR" && continue
 
12640
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
12641
    test -z "am__include" && continue
 
12642
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
12643
    # When using ansi2knr, U may be empty or an underscore; expand it
 
12644
    U=`sed -n 's/^U = //p' < "$mf"`
 
12645
    # Find all dependency output files, they are included files with
 
12646
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
12647
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
12648
    # expansion.
 
12649
    for file in `sed -n "
 
12650
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
12651
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
12652
      # Make sure the directory exists.
 
12653
      test -f "$dirpart/$file" && continue
 
12654
      fdir=`$as_dirname -- "$file" ||
 
12655
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12656
         X"$file" : 'X\(//\)[^/]' \| \
 
12657
         X"$file" : 'X\(//\)$' \| \
 
12658
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
12659
$as_echo X"$file" |
 
12660
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12661
            s//\1/
 
12662
            q
 
12663
          }
 
12664
          /^X\(\/\/\)[^/].*/{
 
12665
            s//\1/
 
12666
            q
 
12667
          }
 
12668
          /^X\(\/\/\)$/{
 
12669
            s//\1/
 
12670
            q
 
12671
          }
 
12672
          /^X\(\/\).*/{
 
12673
            s//\1/
 
12674
            q
 
12675
          }
 
12676
          s/.*/./; q'`
 
12677
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
12678
      # echo "creating $dirpart/$file"
 
12679
      echo '# dummy' > "$dirpart/$file"
 
12680
    done
 
12681
  done
 
12682
}
 
12683
 ;;
 
12684
    "libtool":C)
 
12685
 
 
12686
    # See if we are running on zsh, and set the options which allow our
 
12687
    # commands through without removal of \ escapes.
 
12688
    if test -n "${ZSH_VERSION+set}" ; then
 
12689
      setopt NO_GLOB_SUBST
 
12690
    fi
 
12691
 
 
12692
    cfgfile="${ofile}T"
 
12693
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
12694
    $RM "$cfgfile"
 
12695
 
 
12696
    cat <<_LT_EOF >> "$cfgfile"
 
12697
#! $SHELL
 
12698
 
 
12699
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
12700
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
12701
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12702
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
12703
#
 
12704
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
12705
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
12706
#   Written by Gordon Matzigkeit, 1996
 
12707
#
 
12708
#   This file is part of GNU Libtool.
 
12709
#
 
12710
# GNU Libtool is free software; you can redistribute it and/or
 
12711
# modify it under the terms of the GNU General Public License as
 
12712
# published by the Free Software Foundation; either version 2 of
 
12713
# the License, or (at your option) any later version.
 
12714
#
 
12715
# As a special exception to the GNU General Public License,
 
12716
# if you distribute this file as part of a program or library that
 
12717
# is built using GNU Libtool, you may include this file under the
 
12718
# same distribution terms that you use for the rest of that program.
 
12719
#
 
12720
# GNU Libtool is distributed in the hope that it will be useful,
 
12721
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12722
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12723
# GNU General Public License for more details.
 
12724
#
 
12725
# You should have received a copy of the GNU General Public License
 
12726
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
12727
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
12728
# obtained by writing to the Free Software Foundation, Inc.,
 
12729
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
12730
 
 
12731
 
 
12732
# The names of the tagged configurations supported by this script.
 
12733
available_tags=""
 
12734
 
 
12735
# ### BEGIN LIBTOOL CONFIG
 
12736
 
 
12737
# Which release of libtool.m4 was used?
 
12738
macro_version=$macro_version
 
12739
macro_revision=$macro_revision
 
12740
 
 
12741
# Whether or not to build shared libraries.
 
12742
build_libtool_libs=$enable_shared
 
12743
 
 
12744
# Whether or not to build static libraries.
 
12745
build_old_libs=$enable_static
 
12746
 
 
12747
# What type of objects to build.
 
12748
pic_mode=$pic_mode
 
12749
 
 
12750
# Whether or not to optimize for fast installation.
 
12751
fast_install=$enable_fast_install
 
12752
 
 
12753
# The host system.
 
12754
host_alias=$host_alias
 
12755
host=$host
 
12756
host_os=$host_os
 
12757
 
 
12758
# The build system.
 
12759
build_alias=$build_alias
 
12760
build=$build
 
12761
build_os=$build_os
 
12762
 
 
12763
# A sed program that does not truncate output.
 
12764
SED=$lt_SED
 
12765
 
 
12766
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
12767
Xsed="\$SED -e 1s/^X//"
 
12768
 
 
12769
# A grep program that handles long lines.
 
12770
GREP=$lt_GREP
 
12771
 
 
12772
# An ERE matcher.
 
12773
EGREP=$lt_EGREP
 
12774
 
 
12775
# A literal string matcher.
 
12776
FGREP=$lt_FGREP
 
12777
 
 
12778
# A BSD- or MS-compatible name lister.
 
12779
NM=$lt_NM
 
12780
 
 
12781
# Whether we need soft or hard links.
 
12782
LN_S=$lt_LN_S
 
12783
 
 
12784
# What is the maximum length of a command?
 
12785
max_cmd_len=$max_cmd_len
 
12786
 
 
12787
# Object file suffix (normally "o").
 
12788
objext=$ac_objext
 
12789
 
 
12790
# Executable file suffix (normally "").
 
12791
exeext=$exeext
 
12792
 
 
12793
# whether the shell understands "unset".
 
12794
lt_unset=$lt_unset
 
12795
 
 
12796
# turn spaces into newlines.
 
12797
SP2NL=$lt_lt_SP2NL
 
12798
 
 
12799
# turn newlines into spaces.
 
12800
NL2SP=$lt_lt_NL2SP
 
12801
 
 
12802
# How to create reloadable object files.
 
12803
reload_flag=$lt_reload_flag
 
12804
reload_cmds=$lt_reload_cmds
 
12805
 
 
12806
# An object symbol dumper.
 
12807
OBJDUMP=$lt_OBJDUMP
 
12808
 
 
12809
# Method to check whether dependent libraries are shared objects.
 
12810
deplibs_check_method=$lt_deplibs_check_method
 
12811
 
 
12812
# Command to use when deplibs_check_method == "file_magic".
 
12813
file_magic_cmd=$lt_file_magic_cmd
 
12814
 
 
12815
# The archiver.
 
12816
AR=$lt_AR
 
12817
AR_FLAGS=$lt_AR_FLAGS
 
12818
 
 
12819
# A symbol stripping program.
 
12820
STRIP=$lt_STRIP
 
12821
 
 
12822
# Commands used to install an old-style archive.
 
12823
RANLIB=$lt_RANLIB
 
12824
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12825
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12826
 
 
12827
# A C compiler.
 
12828
LTCC=$lt_CC
 
12829
 
 
12830
# LTCC compiler flags.
 
12831
LTCFLAGS=$lt_CFLAGS
 
12832
 
 
12833
# Take the output of nm and produce a listing of raw symbols and C names.
 
12834
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12835
 
 
12836
# Transform the output of nm in a proper C declaration.
 
12837
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12838
 
 
12839
# Transform the output of nm in a C name address pair.
 
12840
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12841
 
 
12842
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
12843
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
12844
 
 
12845
# The name of the directory that contains temporary libtool files.
 
12846
objdir=$objdir
 
12847
 
 
12848
# Shell to use when invoking shell scripts.
 
12849
SHELL=$lt_SHELL
 
12850
 
 
12851
# An echo program that does not interpret backslashes.
 
12852
ECHO=$lt_ECHO
 
12853
 
 
12854
# Used to examine libraries when file_magic_cmd begins with "file".
 
12855
MAGIC_CMD=$MAGIC_CMD
 
12856
 
 
12857
# Must we lock files when doing compilation?
 
12858
need_locks=$lt_need_locks
 
12859
 
 
12860
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
12861
DSYMUTIL=$lt_DSYMUTIL
 
12862
 
 
12863
# Tool to change global to local symbols on Mac OS X.
 
12864
NMEDIT=$lt_NMEDIT
 
12865
 
 
12866
# Tool to manipulate fat objects and archives on Mac OS X.
 
12867
LIPO=$lt_LIPO
 
12868
 
 
12869
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
12870
OTOOL=$lt_OTOOL
 
12871
 
 
12872
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
12873
OTOOL64=$lt_OTOOL64
 
12874
 
 
12875
# Old archive suffix (normally "a").
 
12876
libext=$libext
 
12877
 
 
12878
# Shared library suffix (normally ".so").
 
12879
shrext_cmds=$lt_shrext_cmds
 
12880
 
 
12881
# The commands to extract the exported symbol list from a shared archive.
 
12882
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12883
 
 
12884
# Variables whose values should be saved in libtool wrapper scripts and
 
12885
# restored at link time.
 
12886
variables_saved_for_relink=$lt_variables_saved_for_relink
 
12887
 
 
12888
# Do we need the "lib" prefix for modules?
 
12889
need_lib_prefix=$need_lib_prefix
 
12890
 
 
12891
# Do we need a version for libraries?
 
12892
need_version=$need_version
 
12893
 
 
12894
# Library versioning type.
 
12895
version_type=$version_type
 
12896
 
 
12897
# Shared library runtime path variable.
 
12898
runpath_var=$runpath_var
 
12899
 
 
12900
# Shared library path variable.
 
12901
shlibpath_var=$shlibpath_var
 
12902
 
 
12903
# Is shlibpath searched before the hard-coded library search path?
 
12904
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12905
 
 
12906
# Format of library name prefix.
 
12907
libname_spec=$lt_libname_spec
 
12908
 
 
12909
# List of archive names.  First name is the real one, the rest are links.
 
12910
# The last name is the one that the linker finds with -lNAME
 
12911
library_names_spec=$lt_library_names_spec
 
12912
 
 
12913
# The coded name of the library, if different from the real name.
 
12914
soname_spec=$lt_soname_spec
 
12915
 
 
12916
# Command to use after installation of a shared archive.
 
12917
postinstall_cmds=$lt_postinstall_cmds
 
12918
 
 
12919
# Command to use after uninstallation of a shared archive.
 
12920
postuninstall_cmds=$lt_postuninstall_cmds
 
12921
 
 
12922
# Commands used to finish a libtool library installation in a directory.
 
12923
finish_cmds=$lt_finish_cmds
 
12924
 
 
12925
# As "finish_cmds", except a single script fragment to be evaled but
 
12926
# not shown.
 
12927
finish_eval=$lt_finish_eval
 
12928
 
 
12929
# Whether we should hardcode library paths into libraries.
 
12930
hardcode_into_libs=$hardcode_into_libs
 
12931
 
 
12932
# Compile-time system search path for libraries.
 
12933
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12934
 
 
12935
# Run-time system search path for libraries.
 
12936
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12937
 
 
12938
# Whether dlopen is supported.
 
12939
dlopen_support=$enable_dlopen
 
12940
 
 
12941
# Whether dlopen of programs is supported.
 
12942
dlopen_self=$enable_dlopen_self
 
12943
 
 
12944
# Whether dlopen of statically linked programs is supported.
 
12945
dlopen_self_static=$enable_dlopen_self_static
 
12946
 
 
12947
# Commands to strip libraries.
 
12948
old_striplib=$lt_old_striplib
 
12949
striplib=$lt_striplib
 
12950
 
 
12951
 
 
12952
# The linker used to build libraries.
 
12953
LD=$lt_LD
 
12954
 
 
12955
# Commands used to build an old-style archive.
 
12956
old_archive_cmds=$lt_old_archive_cmds
 
12957
 
 
12958
# A language specific compiler.
 
12959
CC=$lt_compiler
 
12960
 
 
12961
# Is the compiler the GNU compiler?
 
12962
with_gcc=$GCC
 
12963
 
 
12964
# Compiler flag to turn off builtin functions.
 
12965
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
12966
 
 
12967
# How to pass a linker flag through the compiler.
 
12968
wl=$lt_lt_prog_compiler_wl
 
12969
 
 
12970
# Additional compiler flags for building library objects.
 
12971
pic_flag=$lt_lt_prog_compiler_pic
 
12972
 
 
12973
# Compiler flag to prevent dynamic linking.
 
12974
link_static_flag=$lt_lt_prog_compiler_static
 
12975
 
 
12976
# Does compiler simultaneously support -c and -o options?
 
12977
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
12978
 
 
12979
# Whether or not to add -lc for building shared libraries.
 
12980
build_libtool_need_lc=$archive_cmds_need_lc
 
12981
 
 
12982
# Whether or not to disallow shared libs when runtime libs are static.
 
12983
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
12984
 
 
12985
# Compiler flag to allow reflexive dlopens.
 
12986
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
12987
 
 
12988
# Compiler flag to generate shared objects directly from archives.
 
12989
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
12990
 
 
12991
# Whether the compiler copes with passing no objects directly.
 
12992
compiler_needs_object=$lt_compiler_needs_object
 
12993
 
 
12994
# Create an old-style archive from a shared archive.
 
12995
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
12996
 
 
12997
# Create a temporary old-style archive to link instead of a shared archive.
 
12998
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
12999
 
 
13000
# Commands used to build a shared archive.
 
13001
archive_cmds=$lt_archive_cmds
 
13002
archive_expsym_cmds=$lt_archive_expsym_cmds
 
13003
 
 
13004
# Commands used to build a loadable module if different from building
 
13005
# a shared archive.
 
13006
module_cmds=$lt_module_cmds
 
13007
module_expsym_cmds=$lt_module_expsym_cmds
 
13008
 
 
13009
# Whether we are building with GNU ld or not.
 
13010
with_gnu_ld=$lt_with_gnu_ld
 
13011
 
 
13012
# Flag that allows shared libraries with undefined symbols to be built.
 
13013
allow_undefined_flag=$lt_allow_undefined_flag
 
13014
 
 
13015
# Flag that enforces no undefined symbols.
 
13016
no_undefined_flag=$lt_no_undefined_flag
 
13017
 
 
13018
# Flag to hardcode \$libdir into a binary during linking.
 
13019
# This must work even if \$libdir does not exist
 
13020
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
13021
 
 
13022
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
13023
# during linking.  This must work even if \$libdir does not exist.
 
13024
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
13025
 
 
13026
# Whether we need a single "-rpath" flag with a separated argument.
 
13027
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
13028
 
 
13029
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
13030
# DIR into the resulting binary.
 
13031
hardcode_direct=$hardcode_direct
 
13032
 
 
13033
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
13034
# DIR into the resulting binary and the resulting library dependency is
 
13035
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
13036
# library is relocated.
 
13037
hardcode_direct_absolute=$hardcode_direct_absolute
 
13038
 
 
13039
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
13040
# into the resulting binary.
 
13041
hardcode_minus_L=$hardcode_minus_L
 
13042
 
 
13043
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
13044
# into the resulting binary.
 
13045
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
13046
 
 
13047
# Set to "yes" if building a shared library automatically hardcodes DIR
 
13048
# into the library and all subsequent libraries and executables linked
 
13049
# against it.
 
13050
hardcode_automatic=$hardcode_automatic
 
13051
 
 
13052
# Set to yes if linker adds runtime paths of dependent libraries
 
13053
# to runtime path list.
 
13054
inherit_rpath=$inherit_rpath
 
13055
 
 
13056
# Whether libtool must link a program against all its dependency libraries.
 
13057
link_all_deplibs=$link_all_deplibs
 
13058
 
 
13059
# Fix the shell variable \$srcfile for the compiler.
 
13060
fix_srcfile_path=$lt_fix_srcfile_path
 
13061
 
 
13062
# Set to "yes" if exported symbols are required.
 
13063
always_export_symbols=$always_export_symbols
 
13064
 
 
13065
# The commands to list exported symbols.
 
13066
export_symbols_cmds=$lt_export_symbols_cmds
 
13067
 
 
13068
# Symbols that should not be listed in the preloaded symbols.
 
13069
exclude_expsyms=$lt_exclude_expsyms
 
13070
 
 
13071
# Symbols that must always be exported.
 
13072
include_expsyms=$lt_include_expsyms
 
13073
 
 
13074
# Commands necessary for linking programs (against libraries) with templates.
 
13075
prelink_cmds=$lt_prelink_cmds
 
13076
 
 
13077
# Specify filename containing input files.
 
13078
file_list_spec=$lt_file_list_spec
 
13079
 
 
13080
# How to hardcode a shared library path into an executable.
 
13081
hardcode_action=$hardcode_action
 
13082
 
 
13083
# ### END LIBTOOL CONFIG
 
13084
 
 
13085
_LT_EOF
 
13086
 
 
13087
  case $host_os in
 
13088
  aix3*)
 
13089
    cat <<\_LT_EOF >> "$cfgfile"
 
13090
# AIX sometimes has problems with the GCC collect2 program.  For some
 
13091
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
13092
# vanish in a puff of smoke.
 
13093
if test "X${COLLECT_NAMES+set}" != Xset; then
 
13094
  COLLECT_NAMES=
 
13095
  export COLLECT_NAMES
 
13096
fi
 
13097
_LT_EOF
 
13098
    ;;
 
13099
  esac
 
13100
 
 
13101
 
 
13102
ltmain="$ac_aux_dir/ltmain.sh"
 
13103
 
 
13104
 
 
13105
  # We use sed instead of cat because bash on DJGPP gets confused if
 
13106
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
13107
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
13108
  # is reportedly fixed, but why not run on old versions too?
 
13109
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
13110
    || (rm -f "$cfgfile"; exit 1)
 
13111
 
 
13112
  case $xsi_shell in
 
13113
  yes)
 
13114
    cat << \_LT_EOF >> "$cfgfile"
 
13115
 
 
13116
# func_dirname file append nondir_replacement
 
13117
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
13118
# otherwise set result to NONDIR_REPLACEMENT.
 
13119
func_dirname ()
 
13120
{
 
13121
  case ${1} in
 
13122
    */*) func_dirname_result="${1%/*}${2}" ;;
 
13123
    *  ) func_dirname_result="${3}" ;;
 
13124
  esac
 
13125
}
 
13126
 
 
13127
# func_basename file
 
13128
func_basename ()
 
13129
{
 
13130
  func_basename_result="${1##*/}"
 
13131
}
 
13132
 
 
13133
# func_dirname_and_basename file append nondir_replacement
 
13134
# perform func_basename and func_dirname in a single function
 
13135
# call:
 
13136
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
13137
#             add APPEND to the result, otherwise set result
 
13138
#             to NONDIR_REPLACEMENT.
 
13139
#             value returned in "$func_dirname_result"
 
13140
#   basename: Compute filename of FILE.
 
13141
#             value retuned in "$func_basename_result"
 
13142
# Implementation must be kept synchronized with func_dirname
 
13143
# and func_basename. For efficiency, we do not delegate to
 
13144
# those functions but instead duplicate the functionality here.
 
13145
func_dirname_and_basename ()
 
13146
{
 
13147
  case ${1} in
 
13148
    */*) func_dirname_result="${1%/*}${2}" ;;
 
13149
    *  ) func_dirname_result="${3}" ;;
 
13150
  esac
 
13151
  func_basename_result="${1##*/}"
 
13152
}
 
13153
 
 
13154
# func_stripname prefix suffix name
 
13155
# strip PREFIX and SUFFIX off of NAME.
 
13156
# PREFIX and SUFFIX must not contain globbing or regex special
 
13157
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
13158
# dot (in which case that matches only a dot).
 
13159
func_stripname ()
 
13160
{
 
13161
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
13162
  # positional parameters, so assign one to ordinary parameter first.
 
13163
  func_stripname_result=${3}
 
13164
  func_stripname_result=${func_stripname_result#"${1}"}
 
13165
  func_stripname_result=${func_stripname_result%"${2}"}
 
13166
}
 
13167
 
 
13168
# func_opt_split
 
13169
func_opt_split ()
 
13170
{
 
13171
  func_opt_split_opt=${1%%=*}
 
13172
  func_opt_split_arg=${1#*=}
 
13173
}
 
13174
 
 
13175
# func_lo2o object
 
13176
func_lo2o ()
 
13177
{
 
13178
  case ${1} in
 
13179
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
13180
    *)    func_lo2o_result=${1} ;;
 
13181
  esac
 
13182
}
 
13183
 
 
13184
# func_xform libobj-or-source
 
13185
func_xform ()
 
13186
{
 
13187
  func_xform_result=${1%.*}.lo
 
13188
}
 
13189
 
 
13190
# func_arith arithmetic-term...
 
13191
func_arith ()
 
13192
{
 
13193
  func_arith_result=$(( $* ))
 
13194
}
 
13195
 
 
13196
# func_len string
 
13197
# STRING may not start with a hyphen.
 
13198
func_len ()
 
13199
{
 
13200
  func_len_result=${#1}
 
13201
}
 
13202
 
 
13203
_LT_EOF
 
13204
    ;;
 
13205
  *) # Bourne compatible functions.
 
13206
    cat << \_LT_EOF >> "$cfgfile"
 
13207
 
 
13208
# func_dirname file append nondir_replacement
 
13209
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
13210
# otherwise set result to NONDIR_REPLACEMENT.
 
13211
func_dirname ()
 
13212
{
 
13213
  # Extract subdirectory from the argument.
 
13214
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
13215
  if test "X$func_dirname_result" = "X${1}"; then
 
13216
    func_dirname_result="${3}"
 
13217
  else
 
13218
    func_dirname_result="$func_dirname_result${2}"
 
13219
  fi
 
13220
}
 
13221
 
 
13222
# func_basename file
 
13223
func_basename ()
 
13224
{
 
13225
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
13226
}
 
13227
 
 
13228
 
 
13229
# func_stripname prefix suffix name
 
13230
# strip PREFIX and SUFFIX off of NAME.
 
13231
# PREFIX and SUFFIX must not contain globbing or regex special
 
13232
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
13233
# dot (in which case that matches only a dot).
 
13234
# func_strip_suffix prefix name
 
13235
func_stripname ()
 
13236
{
 
13237
  case ${2} in
 
13238
    .*) func_stripname_result=`$ECHO "X${3}" \
 
13239
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
13240
    *)  func_stripname_result=`$ECHO "X${3}" \
 
13241
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
13242
  esac
 
13243
}
 
13244
 
 
13245
# sed scripts:
 
13246
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
13247
my_sed_long_arg='1s/^-[^=]*=//'
 
13248
 
 
13249
# func_opt_split
 
13250
func_opt_split ()
 
13251
{
 
13252
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
13253
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
13254
}
 
13255
 
 
13256
# func_lo2o object
 
13257
func_lo2o ()
 
13258
{
 
13259
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
13260
}
 
13261
 
 
13262
# func_xform libobj-or-source
 
13263
func_xform ()
 
13264
{
 
13265
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
13266
}
 
13267
 
 
13268
# func_arith arithmetic-term...
 
13269
func_arith ()
 
13270
{
 
13271
  func_arith_result=`expr "$@"`
 
13272
}
 
13273
 
 
13274
# func_len string
 
13275
# STRING may not start with a hyphen.
 
13276
func_len ()
 
13277
{
 
13278
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
13279
}
 
13280
 
 
13281
_LT_EOF
 
13282
esac
 
13283
 
 
13284
case $lt_shell_append in
 
13285
  yes)
 
13286
    cat << \_LT_EOF >> "$cfgfile"
 
13287
 
 
13288
# func_append var value
 
13289
# Append VALUE to the end of shell variable VAR.
 
13290
func_append ()
 
13291
{
 
13292
  eval "$1+=\$2"
 
13293
}
 
13294
_LT_EOF
 
13295
    ;;
 
13296
  *)
 
13297
    cat << \_LT_EOF >> "$cfgfile"
 
13298
 
 
13299
# func_append var value
 
13300
# Append VALUE to the end of shell variable VAR.
 
13301
func_append ()
 
13302
{
 
13303
  eval "$1=\$$1\$2"
 
13304
}
 
13305
 
 
13306
_LT_EOF
 
13307
    ;;
 
13308
  esac
 
13309
 
 
13310
 
 
13311
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
13312
    || (rm -f "$cfgfile"; exit 1)
 
13313
 
 
13314
  mv -f "$cfgfile" "$ofile" ||
 
13315
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
13316
  chmod +x "$ofile"
 
13317
 
 
13318
 ;;
 
13319
 
 
13320
  esac
 
13321
done # for ac_tag
 
13322
 
 
13323
 
 
13324
as_fn_exit 0
 
13325
_ACEOF
 
13326
ac_clean_files=$ac_clean_files_save
 
13327
 
 
13328
test $ac_write_fail = 0 ||
 
13329
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
13330
 
 
13331
 
 
13332
# configure is writing to config.log, and then calls config.status.
 
13333
# config.status does its own redirection, appending to config.log.
 
13334
# Unfortunately, on DOS this fails, as config.log is still kept open
 
13335
# by configure, so config.status won't be able to write to it; its
 
13336
# output is simply discarded.  So we exec the FD to /dev/null,
 
13337
# effectively closing config.log, so it can be properly (re)opened and
 
13338
# appended to by config.status.  When coming back to configure, we
 
13339
# need to make the FD available again.
 
13340
if test "$no_create" != yes; then
 
13341
  ac_cs_success=:
 
13342
  ac_config_status_args=
 
13343
  test "$silent" = yes &&
 
13344
    ac_config_status_args="$ac_config_status_args --quiet"
 
13345
  exec 5>/dev/null
 
13346
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
13347
  exec 5>>config.log
 
13348
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
13349
  # would make configure fail if this is the last instruction.
 
13350
  $ac_cs_success || as_fn_exit $?
 
13351
fi
 
13352
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
13353
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
13354
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
13355
fi
 
13356