~ubuntu-branches/ubuntu/quantal/libjpeg6b/quantal-updates

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2010-06-29 13:55:42 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100629135542-u2ux634ovmawtrog
Tags: 6b1-1
* New upstream release
  - libjpeg62 has now versionned symbols.
  - Updated build system that use current libtool.
  - Full source code for the build system.
* debian/copyright: add 6b1 upstream download URL.
* debian/control:
  - libjpeg62-dev: Provides libjpeg-dev since the transition has been
    postponed.
  - Remove now useless dependency on libtool and sharutils
  - Bump Standards-Version to 3.9.0.
* Get rid of dpatch system. Patches were only relevant to libjpeg-progs
  which is not build from this package anymore.
* Move to new source format 3.0 (quilt). Patches applied:
  - use-autotools-dev: Use autotools-dev version of config.sub/.guess.
  - extern_C-jpeglib.h: Wrap jpeglib.h with extern "C" {} if __cplusplus 
    is defined.
* debian/rules:
  - Adjust for new build system and new patch system.
* debian/shlibs: add (>=6b1) to avoid linker warnings with libjpeg6b.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.12 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
3
# Generated by GNU Autoconf 2.65 for libjpeg 6.2.1.
 
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
#
6
10
#
7
11
# This configure script is free software; the Free Software Foundation
8
12
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
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
#
12
689
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --enable-shared         build shared library using GNU libtool"
16
 
ac_help="$ac_help
17
 
  --enable-static         build static library using GNU libtool"
18
 
ac_help="$ac_help
19
 
  --enable-maxmem[=N]     enable use of temp files, set max mem usage to N MB"
20
 
ac_help="$ac_help
21
 
"
 
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='libjpeg'
 
700
PACKAGE_TARNAME='libjpeg'
 
701
PACKAGE_VERSION='6.2.1'
 
702
PACKAGE_STRING='libjpeg 6.2.1'
 
703
PACKAGE_BUGREPORT=''
 
704
PACKAGE_URL=''
 
705
 
 
706
# Factoring default headers for most tests.
 
707
ac_includes_default="\
 
708
#include <stdio.h>
 
709
#ifdef HAVE_SYS_TYPES_H
 
710
# include <sys/types.h>
 
711
#endif
 
712
#ifdef HAVE_SYS_STAT_H
 
713
# include <sys/stat.h>
 
714
#endif
 
715
#ifdef STDC_HEADERS
 
716
# include <stdlib.h>
 
717
# include <stddef.h>
 
718
#else
 
719
# ifdef HAVE_STDLIB_H
 
720
#  include <stdlib.h>
 
721
# endif
 
722
#endif
 
723
#ifdef HAVE_STRING_H
 
724
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
725
#  include <memory.h>
 
726
# endif
 
727
# include <string.h>
 
728
#endif
 
729
#ifdef HAVE_STRINGS_H
 
730
# include <strings.h>
 
731
#endif
 
732
#ifdef HAVE_INTTYPES_H
 
733
# include <inttypes.h>
 
734
#endif
 
735
#ifdef HAVE_STDINT_H
 
736
# include <stdint.h>
 
737
#endif
 
738
#ifdef HAVE_UNISTD_H
 
739
# include <unistd.h>
 
740
#endif"
 
741
 
 
742
ac_subst_vars='am__EXEEXT_FALSE
 
743
am__EXEEXT_TRUE
 
744
LTLIBOBJS
 
745
LIBOBJS
 
746
JPEG_LIB_VERSION
 
747
MEMORYMGR
 
748
OTOOL64
 
749
OTOOL
 
750
LIPO
 
751
NMEDIT
 
752
DSYMUTIL
 
753
lt_ECHO
 
754
RANLIB
 
755
AR
 
756
NM
 
757
ac_ct_DUMPBIN
 
758
DUMPBIN
 
759
LD
 
760
FGREP
 
761
SED
 
762
LIBTOOL
 
763
OBJDUMP
 
764
DLLTOOL
 
765
AS
 
766
HAVE_LD_VERSION_SCRIPT_FALSE
 
767
HAVE_LD_VERSION_SCRIPT_TRUE
 
768
LN_S
 
769
MAINT
 
770
MAINTAINER_MODE_FALSE
 
771
MAINTAINER_MODE_TRUE
 
772
ANSI2KNR
 
773
U
 
774
EGREP
 
775
GREP
 
776
CPP
 
777
am__fastdepCC_FALSE
 
778
am__fastdepCC_TRUE
 
779
CCDEPMODE
 
780
AMDEPBACKSLASH
 
781
AMDEP_FALSE
 
782
AMDEP_TRUE
 
783
am__quote
 
784
am__include
 
785
DEPDIR
 
786
OBJEXT
 
787
EXEEXT
 
788
ac_ct_CC
 
789
CPPFLAGS
 
790
LDFLAGS
 
791
CFLAGS
 
792
CC
 
793
AM_BACKSLASH
 
794
AM_DEFAULT_VERBOSITY
 
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_os
 
819
target_vendor
 
820
target_cpu
 
821
target
 
822
host_os
 
823
host_vendor
 
824
host_cpu
 
825
host
 
826
build_os
 
827
build_vendor
 
828
build_cpu
 
829
build
 
830
target_alias
 
831
host_alias
 
832
build_alias
 
833
LIBS
 
834
ECHO_T
 
835
ECHO_N
 
836
ECHO_C
 
837
DEFS
 
838
mandir
 
839
localedir
 
840
libdir
 
841
psdir
 
842
pdfdir
 
843
dvidir
 
844
htmldir
 
845
infodir
 
846
docdir
 
847
oldincludedir
 
848
includedir
 
849
localstatedir
 
850
sharedstatedir
 
851
sysconfdir
 
852
datadir
 
853
datarootdir
 
854
libexecdir
 
855
sbindir
 
856
bindir
 
857
program_transform_name
 
858
prefix
 
859
exec_prefix
 
860
PACKAGE_URL
 
861
PACKAGE_BUGREPORT
 
862
PACKAGE_STRING
 
863
PACKAGE_VERSION
 
864
PACKAGE_TARNAME
 
865
PACKAGE_NAME
 
866
PATH_SEPARATOR
 
867
SHELL'
 
868
ac_subst_files=''
 
869
ac_user_opts='
 
870
enable_option_checking
 
871
enable_silent_rules
 
872
enable_dependency_tracking
 
873
enable_maintainer_mode
 
874
enable_ld_version_script
 
875
enable_shared
 
876
enable_static
 
877
with_pic
 
878
enable_fast_install
 
879
with_gnu_ld
 
880
enable_libtool_lock
 
881
enable_maxmem
 
882
'
 
883
      ac_precious_vars='build_alias
 
884
host_alias
 
885
target_alias
 
886
CC
 
887
CFLAGS
 
888
LDFLAGS
 
889
LIBS
 
890
CPPFLAGS
 
891
CPP'
 
892
 
22
893
 
23
894
# Initialize some variables set by options.
 
895
ac_init_help=
 
896
ac_init_version=false
 
897
ac_unrecognized_opts=
 
898
ac_unrecognized_sep=
24
899
# The variables have the same names as the options, with
25
900
# dashes changed to underlines.
26
 
build=NONE
27
 
cache_file=./config.cache
 
901
cache_file=/dev/null
28
902
exec_prefix=NONE
29
 
host=NONE
30
903
no_create=
31
 
nonopt=NONE
32
904
no_recursion=
33
905
prefix=NONE
34
906
program_prefix=NONE
37
909
silent=
38
910
site=
39
911
srcdir=
40
 
target=NONE
41
912
verbose=
42
913
x_includes=NONE
43
914
x_libraries=NONE
 
915
 
 
916
# Installation directory options.
 
917
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
918
# and all the variables that are supposed to be based on exec_prefix
 
919
# by default will actually change.
 
920
# Use braces instead of parens because sh, perl, etc. also accept them.
 
921
# (The list follows the same order as the GNU Coding Standards.)
44
922
bindir='${exec_prefix}/bin'
45
923
sbindir='${exec_prefix}/sbin'
46
924
libexecdir='${exec_prefix}/libexec'
47
 
datadir='${prefix}/share'
 
925
datarootdir='${prefix}/share'
 
926
datadir='${datarootdir}'
48
927
sysconfdir='${prefix}/etc'
49
928
sharedstatedir='${prefix}/com'
50
929
localstatedir='${prefix}/var'
51
 
libdir='${exec_prefix}/lib'
52
930
includedir='${prefix}/include'
53
931
oldincludedir='/usr/include'
54
 
infodir='${prefix}/info'
55
 
mandir='${prefix}/man'
56
 
 
57
 
# Initialize some other variables.
58
 
subdirs=
59
 
MFLAGS= MAKEFLAGS=
60
 
# Maximum number of lines to put in a shell here document.
61
 
ac_max_here_lines=12
 
932
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
933
infodir='${datarootdir}/info'
 
934
htmldir='${docdir}'
 
935
dvidir='${docdir}'
 
936
pdfdir='${docdir}'
 
937
psdir='${docdir}'
 
938
libdir='${exec_prefix}/lib'
 
939
localedir='${datarootdir}/locale'
 
940
mandir='${datarootdir}/man'
62
941
 
63
942
ac_prev=
 
943
ac_dashdash=
64
944
for ac_option
65
945
do
66
 
 
67
946
  # If the previous option needs an argument, assign it.
68
947
  if test -n "$ac_prev"; then
69
 
    eval "$ac_prev=\$ac_option"
 
948
    eval $ac_prev=\$ac_option
70
949
    ac_prev=
71
950
    continue
72
951
  fi
73
952
 
74
 
  case "$ac_option" in
75
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76
 
  *) ac_optarg= ;;
 
953
  case $ac_option in
 
954
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
955
  *)    ac_optarg=yes ;;
77
956
  esac
78
957
 
79
958
  # Accept the important Cygnus configure options, so we can diagnose typos.
80
959
 
81
 
  case "$ac_option" in
 
960
  case $ac_dashdash$ac_option in
 
961
  --)
 
962
    ac_dashdash=yes ;;
82
963
 
83
964
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
84
965
    ac_prev=bindir ;;
85
966
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86
 
    bindir="$ac_optarg" ;;
 
967
    bindir=$ac_optarg ;;
87
968
 
88
969
  -build | --build | --buil | --bui | --bu)
89
 
    ac_prev=build ;;
 
970
    ac_prev=build_alias ;;
90
971
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91
 
    build="$ac_optarg" ;;
 
972
    build_alias=$ac_optarg ;;
92
973
 
93
974
  -cache-file | --cache-file | --cache-fil | --cache-fi \
94
975
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95
976
    ac_prev=cache_file ;;
96
977
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97
978
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98
 
    cache_file="$ac_optarg" ;;
99
 
 
100
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
979
    cache_file=$ac_optarg ;;
 
980
 
 
981
  --config-cache | -C)
 
982
    cache_file=config.cache ;;
 
983
 
 
984
  -datadir | --datadir | --datadi | --datad)
101
985
    ac_prev=datadir ;;
102
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103
 
  | --da=*)
104
 
    datadir="$ac_optarg" ;;
 
986
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
987
    datadir=$ac_optarg ;;
 
988
 
 
989
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
990
  | --dataroo | --dataro | --datar)
 
991
    ac_prev=datarootdir ;;
 
992
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
993
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
994
    datarootdir=$ac_optarg ;;
105
995
 
106
996
  -disable-* | --disable-*)
107
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
997
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
108
998
    # Reject names that are not valid shell variable names.
109
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111
 
    fi
112
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113
 
    eval "enable_${ac_feature}=no" ;;
 
999
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1000
      as_fn_error "invalid feature name: $ac_useropt"
 
1001
    ac_useropt_orig=$ac_useropt
 
1002
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1003
    case $ac_user_opts in
 
1004
      *"
 
1005
"enable_$ac_useropt"
 
1006
"*) ;;
 
1007
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1008
         ac_unrecognized_sep=', ';;
 
1009
    esac
 
1010
    eval enable_$ac_useropt=no ;;
 
1011
 
 
1012
  -docdir | --docdir | --docdi | --doc | --do)
 
1013
    ac_prev=docdir ;;
 
1014
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1015
    docdir=$ac_optarg ;;
 
1016
 
 
1017
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1018
    ac_prev=dvidir ;;
 
1019
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1020
    dvidir=$ac_optarg ;;
114
1021
 
115
1022
  -enable-* | --enable-*)
116
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
1023
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
117
1024
    # Reject names that are not valid shell variable names.
118
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120
 
    fi
121
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122
 
    case "$ac_option" in
123
 
      *=*) ;;
124
 
      *) ac_optarg=yes ;;
 
1025
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1026
      as_fn_error "invalid feature name: $ac_useropt"
 
1027
    ac_useropt_orig=$ac_useropt
 
1028
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1029
    case $ac_user_opts in
 
1030
      *"
 
1031
"enable_$ac_useropt"
 
1032
"*) ;;
 
1033
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1034
         ac_unrecognized_sep=', ';;
125
1035
    esac
126
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
1036
    eval enable_$ac_useropt=\$ac_optarg ;;
127
1037
 
128
1038
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129
1039
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132
1042
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133
1043
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134
1044
  | --exec=* | --exe=* | --ex=*)
135
 
    exec_prefix="$ac_optarg" ;;
 
1045
    exec_prefix=$ac_optarg ;;
136
1046
 
137
1047
  -gas | --gas | --ga | --g)
138
1048
    # Obsolete; use --with-gas.
139
1049
    with_gas=yes ;;
140
1050
 
141
 
  -help | --help | --hel | --he)
142
 
    # Omit some internal or obsolete options to make the list less imposing.
143
 
    # This message is too long to be a string in the A/UX 3.1 sh.
144
 
    cat << EOF
145
 
Usage: configure [options] [host]
146
 
Options: [defaults in brackets after descriptions]
147
 
Configuration:
148
 
  --cache-file=FILE       cache test results in FILE
149
 
  --help                  print this message
150
 
  --no-create             do not create output files
151
 
  --quiet, --silent       do not print \`checking...' messages
152
 
  --version               print the version of autoconf that created configure
153
 
Directory and file names:
154
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
155
 
                          [$ac_default_prefix]
156
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
157
 
                          [same as prefix]
158
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
159
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
160
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
161
 
  --datadir=DIR           read-only architecture-independent data in DIR
162
 
                          [PREFIX/share]
163
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
164
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
165
 
                          [PREFIX/com]
166
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
167
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
168
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
169
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
170
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
171
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
172
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
173
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
174
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
175
 
  --program-transform-name=PROGRAM
176
 
                          run sed PROGRAM on installed program names
177
 
EOF
178
 
    cat << EOF
179
 
Host type:
180
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
181
 
  --host=HOST             configure for HOST [guessed]
182
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
183
 
Features and packages:
184
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
185
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
186
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
187
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
188
 
  --x-includes=DIR        X include files are in DIR
189
 
  --x-libraries=DIR       X library files are in DIR
190
 
EOF
191
 
    if test -n "$ac_help"; then
192
 
      echo "--enable and --with options recognized:$ac_help"
193
 
    fi
194
 
    exit 0 ;;
 
1051
  -help | --help | --hel | --he | -h)
 
1052
    ac_init_help=long ;;
 
1053
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1054
    ac_init_help=recursive ;;
 
1055
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1056
    ac_init_help=short ;;
195
1057
 
196
1058
  -host | --host | --hos | --ho)
197
 
    ac_prev=host ;;
 
1059
    ac_prev=host_alias ;;
198
1060
  -host=* | --host=* | --hos=* | --ho=*)
199
 
    host="$ac_optarg" ;;
 
1061
    host_alias=$ac_optarg ;;
 
1062
 
 
1063
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1064
    ac_prev=htmldir ;;
 
1065
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1066
  | --ht=*)
 
1067
    htmldir=$ac_optarg ;;
200
1068
 
201
1069
  -includedir | --includedir | --includedi | --included | --include \
202
1070
  | --includ | --inclu | --incl | --inc)
203
1071
    ac_prev=includedir ;;
204
1072
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205
1073
  | --includ=* | --inclu=* | --incl=* | --inc=*)
206
 
    includedir="$ac_optarg" ;;
 
1074
    includedir=$ac_optarg ;;
207
1075
 
208
1076
  -infodir | --infodir | --infodi | --infod | --info | --inf)
209
1077
    ac_prev=infodir ;;
210
1078
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211
 
    infodir="$ac_optarg" ;;
 
1079
    infodir=$ac_optarg ;;
212
1080
 
213
1081
  -libdir | --libdir | --libdi | --libd)
214
1082
    ac_prev=libdir ;;
215
1083
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
216
 
    libdir="$ac_optarg" ;;
 
1084
    libdir=$ac_optarg ;;
217
1085
 
218
1086
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219
1087
  | --libexe | --libex | --libe)
220
1088
    ac_prev=libexecdir ;;
221
1089
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222
1090
  | --libexe=* | --libex=* | --libe=*)
223
 
    libexecdir="$ac_optarg" ;;
 
1091
    libexecdir=$ac_optarg ;;
 
1092
 
 
1093
  -localedir | --localedir | --localedi | --localed | --locale)
 
1094
    ac_prev=localedir ;;
 
1095
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1096
    localedir=$ac_optarg ;;
224
1097
 
225
1098
  -localstatedir | --localstatedir | --localstatedi | --localstated \
226
 
  | --localstate | --localstat | --localsta | --localst \
227
 
  | --locals | --local | --loca | --loc | --lo)
 
1099
  | --localstate | --localstat | --localsta | --localst | --locals)
228
1100
    ac_prev=localstatedir ;;
229
1101
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232
 
    localstatedir="$ac_optarg" ;;
 
1102
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1103
    localstatedir=$ac_optarg ;;
233
1104
 
234
1105
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235
1106
    ac_prev=mandir ;;
236
1107
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237
 
    mandir="$ac_optarg" ;;
 
1108
    mandir=$ac_optarg ;;
238
1109
 
239
1110
  -nfp | --nfp | --nf)
240
1111
    # Obsolete; use --without-fp.
241
1112
    with_fp=no ;;
242
1113
 
243
1114
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244
 
  | --no-cr | --no-c)
 
1115
  | --no-cr | --no-c | -n)
245
1116
    no_create=yes ;;
246
1117
 
247
1118
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
255
1126
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256
1127
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257
1128
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258
 
    oldincludedir="$ac_optarg" ;;
 
1129
    oldincludedir=$ac_optarg ;;
259
1130
 
260
1131
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261
1132
    ac_prev=prefix ;;
262
1133
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263
 
    prefix="$ac_optarg" ;;
 
1134
    prefix=$ac_optarg ;;
264
1135
 
265
1136
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
266
1137
  | --program-pre | --program-pr | --program-p)
267
1138
    ac_prev=program_prefix ;;
268
1139
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
269
1140
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270
 
    program_prefix="$ac_optarg" ;;
 
1141
    program_prefix=$ac_optarg ;;
271
1142
 
272
1143
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
273
1144
  | --program-suf | --program-su | --program-s)
274
1145
    ac_prev=program_suffix ;;
275
1146
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
276
1147
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277
 
    program_suffix="$ac_optarg" ;;
 
1148
    program_suffix=$ac_optarg ;;
278
1149
 
279
1150
  -program-transform-name | --program-transform-name \
280
1151
  | --program-transform-nam | --program-transform-na \
291
1162
  | --program-transfo=* | --program-transf=* \
292
1163
  | --program-trans=* | --program-tran=* \
293
1164
  | --progr-tra=* | --program-tr=* | --program-t=*)
294
 
    program_transform_name="$ac_optarg" ;;
 
1165
    program_transform_name=$ac_optarg ;;
 
1166
 
 
1167
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1168
    ac_prev=pdfdir ;;
 
1169
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1170
    pdfdir=$ac_optarg ;;
 
1171
 
 
1172
  -psdir | --psdir | --psdi | --psd | --ps)
 
1173
    ac_prev=psdir ;;
 
1174
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1175
    psdir=$ac_optarg ;;
295
1176
 
296
1177
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297
1178
  | -silent | --silent | --silen | --sile | --sil)
301
1182
    ac_prev=sbindir ;;
302
1183
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303
1184
  | --sbi=* | --sb=*)
304
 
    sbindir="$ac_optarg" ;;
 
1185
    sbindir=$ac_optarg ;;
305
1186
 
306
1187
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
307
1188
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
312
1193
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313
1194
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314
1195
  | --sha=* | --sh=*)
315
 
    sharedstatedir="$ac_optarg" ;;
 
1196
    sharedstatedir=$ac_optarg ;;
316
1197
 
317
1198
  -site | --site | --sit)
318
1199
    ac_prev=site ;;
319
1200
  -site=* | --site=* | --sit=*)
320
 
    site="$ac_optarg" ;;
 
1201
    site=$ac_optarg ;;
321
1202
 
322
1203
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323
1204
    ac_prev=srcdir ;;
324
1205
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325
 
    srcdir="$ac_optarg" ;;
 
1206
    srcdir=$ac_optarg ;;
326
1207
 
327
1208
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328
1209
  | --syscon | --sysco | --sysc | --sys | --sy)
329
1210
    ac_prev=sysconfdir ;;
330
1211
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331
1212
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332
 
    sysconfdir="$ac_optarg" ;;
 
1213
    sysconfdir=$ac_optarg ;;
333
1214
 
334
1215
  -target | --target | --targe | --targ | --tar | --ta | --t)
335
 
    ac_prev=target ;;
 
1216
    ac_prev=target_alias ;;
336
1217
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337
 
    target="$ac_optarg" ;;
 
1218
    target_alias=$ac_optarg ;;
338
1219
 
339
1220
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
340
1221
    verbose=yes ;;
341
1222
 
342
 
  -version | --version | --versio | --versi | --vers)
343
 
    echo "configure generated by autoconf version 2.12"
344
 
    exit 0 ;;
 
1223
  -version | --version | --versio | --versi | --vers | -V)
 
1224
    ac_init_version=: ;;
345
1225
 
346
1226
  -with-* | --with-*)
347
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
1227
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
348
1228
    # Reject names that are not valid shell variable names.
349
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351
 
    fi
352
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
353
 
    case "$ac_option" in
354
 
      *=*) ;;
355
 
      *) ac_optarg=yes ;;
 
1229
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1230
      as_fn_error "invalid package name: $ac_useropt"
 
1231
    ac_useropt_orig=$ac_useropt
 
1232
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1233
    case $ac_user_opts in
 
1234
      *"
 
1235
"with_$ac_useropt"
 
1236
"*) ;;
 
1237
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1238
         ac_unrecognized_sep=', ';;
356
1239
    esac
357
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
1240
    eval with_$ac_useropt=\$ac_optarg ;;
358
1241
 
359
1242
  -without-* | --without-*)
360
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
1243
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
361
1244
    # Reject names that are not valid shell variable names.
362
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364
 
    fi
365
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
366
 
    eval "with_${ac_package}=no" ;;
 
1245
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1246
      as_fn_error "invalid package name: $ac_useropt"
 
1247
    ac_useropt_orig=$ac_useropt
 
1248
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1249
    case $ac_user_opts in
 
1250
      *"
 
1251
"with_$ac_useropt"
 
1252
"*) ;;
 
1253
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1254
         ac_unrecognized_sep=', ';;
 
1255
    esac
 
1256
    eval with_$ac_useropt=no ;;
367
1257
 
368
1258
  --x)
369
1259
    # Obsolete; use --with-x.
374
1264
    ac_prev=x_includes ;;
375
1265
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376
1266
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377
 
    x_includes="$ac_optarg" ;;
 
1267
    x_includes=$ac_optarg ;;
378
1268
 
379
1269
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
380
1270
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381
1271
    ac_prev=x_libraries ;;
382
1272
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383
1273
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384
 
    x_libraries="$ac_optarg" ;;
 
1274
    x_libraries=$ac_optarg ;;
385
1275
 
386
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
1276
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1277
Try \`$0 --help' for more information."
387
1278
    ;;
388
1279
 
389
1280
  *=*)
390
 
    varname=`echo "$ac_option"|sed -e 's/=.*//'`
391
 
    # Reject names that aren't valid shell variable names.
392
 
    if test -n "`echo $varname| sed 's/[a-zA-Z0-9_]//g'`"; then
393
 
      { echo "configure: error: $varname: invalid shell variable name" 1>&2; exit 1; }
394
 
    fi
395
 
    val="`echo "$ac_option"|sed 's/[^=]*=//'`"
396
 
    test -n "$verbose" && echo "        setting shell variable $varname to $val"
397
 
    eval "$varname='$val'"
398
 
    eval "export $varname" ;;
 
1281
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1282
    # Reject names that are not valid shell variable names.
 
1283
    case $ac_envvar in #(
 
1284
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1285
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1286
    esac
 
1287
    eval $ac_envvar=\$ac_optarg
 
1288
    export $ac_envvar ;;
399
1289
 
400
1290
  *)
401
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
403
 
    fi
404
 
    if test "x$nonopt" != xNONE; then
405
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406
 
    fi
407
 
    nonopt="$ac_option"
 
1291
    # FIXME: should be removed in autoconf 3.0.
 
1292
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1293
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1294
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1295
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
408
1296
    ;;
409
1297
 
410
1298
  esac
411
1299
done
412
1300
 
413
1301
if test -n "$ac_prev"; then
414
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415
 
fi
416
 
 
417
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
 
 
419
 
# File descriptor usage:
420
 
# 0 standard input
421
 
# 1 file creation
422
 
# 2 errors and warnings
423
 
# 3 some systems may open it to /dev/tty
424
 
# 4 used on the Kubota Titan
425
 
# 6 checking for... messages and results
426
 
# 5 compiler messages saved in config.log
427
 
if test "$silent" = yes; then
428
 
  exec 6>/dev/null
429
 
else
430
 
  exec 6>&1
431
 
fi
432
 
exec 5>./config.log
433
 
 
434
 
echo "\
435
 
This file contains any messages produced by compilers while
436
 
running configure, to aid debugging if configure makes a mistake.
437
 
" 1>&5
438
 
 
439
 
# Strip out --no-create and --no-recursion so they do not pile up.
440
 
# Also quote any args containing shell metacharacters.
441
 
ac_configure_args=
442
 
for ac_arg
 
1302
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1303
  as_fn_error "missing argument to $ac_option"
 
1304
fi
 
1305
 
 
1306
if test -n "$ac_unrecognized_opts"; then
 
1307
  case $enable_option_checking in
 
1308
    no) ;;
 
1309
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1310
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1311
  esac
 
1312
fi
 
1313
 
 
1314
# Check all directory arguments for consistency.
 
1315
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1316
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1317
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1318
                libdir localedir mandir
443
1319
do
444
 
  case "$ac_arg" in
445
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446
 
  | --no-cr | --no-c) ;;
447
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452
 
  esac
 
1320
  eval ac_val=\$$ac_var
 
1321
  # Remove trailing slashes.
 
1322
  case $ac_val in
 
1323
    */ )
 
1324
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1325
      eval $ac_var=\$ac_val;;
 
1326
  esac
 
1327
  # Be sure to have absolute directory names.
 
1328
  case $ac_val in
 
1329
    [\\/$]* | ?:[\\/]* )  continue;;
 
1330
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1331
  esac
 
1332
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
453
1333
done
454
1334
 
455
 
# NLS nuisances.
456
 
# Only set these to C if already set.  These must not be set unconditionally
457
 
# because not all systems understand e.g. LANG=C (notably SCO).
458
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459
 
# Non-C LC_CTYPE values break the ctype check.
460
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
 
 
465
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
466
 
rm -rf conftest* confdefs.h
467
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
468
 
echo > confdefs.h
469
 
 
470
 
# A filename unique to this package, relative to the directory that
471
 
# configure is in, which we can look for to find out if srcdir is correct.
472
 
ac_unique_file=jcmaster.c
 
1335
# There might be people who depend on the old broken behavior: `$host'
 
1336
# used to hold the argument of --host etc.
 
1337
# FIXME: To remove some day.
 
1338
build=$build_alias
 
1339
host=$host_alias
 
1340
target=$target_alias
 
1341
 
 
1342
# FIXME: To remove some day.
 
1343
if test "x$host_alias" != x; then
 
1344
  if test "x$build_alias" = x; then
 
1345
    cross_compiling=maybe
 
1346
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1347
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1348
  elif test "x$build_alias" != "x$host_alias"; then
 
1349
    cross_compiling=yes
 
1350
  fi
 
1351
fi
 
1352
 
 
1353
ac_tool_prefix=
 
1354
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1355
 
 
1356
test "$silent" = yes && exec 6>/dev/null
 
1357
 
 
1358
 
 
1359
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1360
ac_ls_di=`ls -di .` &&
 
1361
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1362
  as_fn_error "working directory cannot be determined"
 
1363
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1364
  as_fn_error "pwd does not report name of working directory"
 
1365
 
473
1366
 
474
1367
# Find the source files, if location was not specified.
475
1368
if test -z "$srcdir"; then
476
1369
  ac_srcdir_defaulted=yes
477
 
  # Try the directory containing this script, then its parent.
478
 
  ac_prog=$0
479
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
1370
  # Try the directory containing this script, then the parent directory.
 
1371
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1372
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1373
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1374
         X"$as_myself" : 'X\(//\)$' \| \
 
1375
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1376
$as_echo X"$as_myself" |
 
1377
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1378
            s//\1/
 
1379
            q
 
1380
          }
 
1381
          /^X\(\/\/\)[^/].*/{
 
1382
            s//\1/
 
1383
            q
 
1384
          }
 
1385
          /^X\(\/\/\)$/{
 
1386
            s//\1/
 
1387
            q
 
1388
          }
 
1389
          /^X\(\/\).*/{
 
1390
            s//\1/
 
1391
            q
 
1392
          }
 
1393
          s/.*/./; q'`
481
1394
  srcdir=$ac_confdir
482
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1395
  if test ! -r "$srcdir/$ac_unique_file"; then
483
1396
    srcdir=..
484
1397
  fi
485
1398
else
486
1399
  ac_srcdir_defaulted=no
487
1400
fi
488
 
if test ! -r $srcdir/$ac_unique_file; then
489
 
  if test "$ac_srcdir_defaulted" = yes; then
490
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491
 
  else
492
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493
 
  fi
494
 
fi
495
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
 
 
497
 
# Prefer explicitly selected file to automatically selected ones.
498
 
if test -z "$CONFIG_SITE"; then
499
 
  if test "x$prefix" != xNONE; then
500
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501
 
  else
502
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503
 
  fi
504
 
fi
505
 
for ac_site_file in $CONFIG_SITE; do
506
 
  if test -r "$ac_site_file"; then
507
 
    echo "loading site script $ac_site_file"
 
1401
if test ! -r "$srcdir/$ac_unique_file"; then
 
1402
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1403
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1404
fi
 
1405
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1406
ac_abs_confdir=`(
 
1407
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1408
        pwd)`
 
1409
# When building in place, set srcdir=.
 
1410
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1411
  srcdir=.
 
1412
fi
 
1413
# Remove unnecessary trailing slashes from srcdir.
 
1414
# Double slashes in file names in object file debugging info
 
1415
# mess up M-x gdb in Emacs.
 
1416
case $srcdir in
 
1417
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1418
esac
 
1419
for ac_var in $ac_precious_vars; do
 
1420
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1421
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1422
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1423
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1424
done
 
1425
 
 
1426
#
 
1427
# Report the --help message.
 
1428
#
 
1429
if test "$ac_init_help" = "long"; then
 
1430
  # Omit some internal or obsolete options to make the list less imposing.
 
1431
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1432
  cat <<_ACEOF
 
1433
\`configure' configures libjpeg 6.2.1 to adapt to many kinds of systems.
 
1434
 
 
1435
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1436
 
 
1437
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1438
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1439
 
 
1440
Defaults for the options are specified in brackets.
 
1441
 
 
1442
Configuration:
 
1443
  -h, --help              display this help and exit
 
1444
      --help=short        display options specific to this package
 
1445
      --help=recursive    display the short help of all the included packages
 
1446
  -V, --version           display version information and exit
 
1447
  -q, --quiet, --silent   do not print \`checking...' messages
 
1448
      --cache-file=FILE   cache test results in FILE [disabled]
 
1449
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1450
  -n, --no-create         do not create output files
 
1451
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1452
 
 
1453
Installation directories:
 
1454
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1455
                          [$ac_default_prefix]
 
1456
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1457
                          [PREFIX]
 
1458
 
 
1459
By default, \`make install' will install all the files in
 
1460
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1461
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1462
for instance \`--prefix=\$HOME'.
 
1463
 
 
1464
For better control, use the options below.
 
1465
 
 
1466
Fine tuning of the installation directories:
 
1467
  --bindir=DIR            user executables [EPREFIX/bin]
 
1468
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1469
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1470
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1471
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1472
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1473
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1474
  --includedir=DIR        C header files [PREFIX/include]
 
1475
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1476
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1477
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1478
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1479
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1480
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1481
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libjpeg]
 
1482
  --htmldir=DIR           html documentation [DOCDIR]
 
1483
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1484
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1485
  --psdir=DIR             ps documentation [DOCDIR]
 
1486
_ACEOF
 
1487
 
 
1488
  cat <<\_ACEOF
 
1489
 
 
1490
Program names:
 
1491
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1492
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1493
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1494
 
 
1495
System types:
 
1496
  --build=BUILD     configure for building on BUILD [guessed]
 
1497
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1498
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1499
_ACEOF
 
1500
fi
 
1501
 
 
1502
if test -n "$ac_init_help"; then
 
1503
  case $ac_init_help in
 
1504
     short | recursive ) echo "Configuration of libjpeg 6.2.1:";;
 
1505
   esac
 
1506
  cat <<\_ACEOF
 
1507
 
 
1508
Optional Features:
 
1509
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1510
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1511
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1512
  --enable-silent-rules          less verbose build output (undo: `make V=1')
 
1513
  --disable-silent-rules         verbose build output (undo: `make V=0')
 
1514
  --disable-dependency-tracking  speeds up one-time build
 
1515
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1516
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1517
                          (and sometimes confusing) to the casual installer
 
1518
  --enable-ld-version-script
 
1519
                          enable linker version script (default is enabled
 
1520
                          when possible)
 
1521
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1522
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1523
  --enable-fast-install[=PKGS]
 
1524
                          optimize for fast installation [default=yes]
 
1525
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1526
  --enable-maxmem=N     enable use of temp files, set max mem usage to N MB
 
1527
 
 
1528
Optional Packages:
 
1529
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1530
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1531
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1532
                          both]
 
1533
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1534
 
 
1535
Some influential environment variables:
 
1536
  CC          C compiler command
 
1537
  CFLAGS      C compiler flags
 
1538
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1539
              nonstandard directory <lib dir>
 
1540
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1541
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1542
              you have headers in a nonstandard directory <include dir>
 
1543
  CPP         C preprocessor
 
1544
 
 
1545
Use these variables to override the choices made by `configure' or to help
 
1546
it to find libraries and programs with nonstandard names/locations.
 
1547
 
 
1548
Report bugs to the package provider.
 
1549
_ACEOF
 
1550
ac_status=$?
 
1551
fi
 
1552
 
 
1553
if test "$ac_init_help" = "recursive"; then
 
1554
  # If there are subdirs, report their specific --help.
 
1555
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1556
    test -d "$ac_dir" ||
 
1557
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1558
      continue
 
1559
    ac_builddir=.
 
1560
 
 
1561
case "$ac_dir" in
 
1562
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1563
*)
 
1564
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1565
  # A ".." for each directory in $ac_dir_suffix.
 
1566
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1567
  case $ac_top_builddir_sub in
 
1568
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1569
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1570
  esac ;;
 
1571
esac
 
1572
ac_abs_top_builddir=$ac_pwd
 
1573
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1574
# for backward compatibility:
 
1575
ac_top_builddir=$ac_top_build_prefix
 
1576
 
 
1577
case $srcdir in
 
1578
  .)  # We are building in place.
 
1579
    ac_srcdir=.
 
1580
    ac_top_srcdir=$ac_top_builddir_sub
 
1581
    ac_abs_top_srcdir=$ac_pwd ;;
 
1582
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1583
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1584
    ac_top_srcdir=$srcdir
 
1585
    ac_abs_top_srcdir=$srcdir ;;
 
1586
  *) # Relative name.
 
1587
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1588
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1589
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1590
esac
 
1591
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1592
 
 
1593
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1594
    # Check for guested configure.
 
1595
    if test -f "$ac_srcdir/configure.gnu"; then
 
1596
      echo &&
 
1597
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1598
    elif test -f "$ac_srcdir/configure"; then
 
1599
      echo &&
 
1600
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1601
    else
 
1602
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1603
    fi || ac_status=$?
 
1604
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1605
  done
 
1606
fi
 
1607
 
 
1608
test -n "$ac_init_help" && exit $ac_status
 
1609
if $ac_init_version; then
 
1610
  cat <<\_ACEOF
 
1611
libjpeg configure 6.2.1
 
1612
generated by GNU Autoconf 2.65
 
1613
 
 
1614
Copyright (C) 2009 Free Software Foundation, Inc.
 
1615
This configure script is free software; the Free Software Foundation
 
1616
gives unlimited permission to copy, distribute and modify it.
 
1617
_ACEOF
 
1618
  exit
 
1619
fi
 
1620
 
 
1621
## ------------------------ ##
 
1622
## Autoconf initialization. ##
 
1623
## ------------------------ ##
 
1624
 
 
1625
# ac_fn_c_try_compile LINENO
 
1626
# --------------------------
 
1627
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1628
ac_fn_c_try_compile ()
 
1629
{
 
1630
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1631
  rm -f conftest.$ac_objext
 
1632
  if { { ac_try="$ac_compile"
 
1633
case "(($ac_try" in
 
1634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1635
  *) ac_try_echo=$ac_try;;
 
1636
esac
 
1637
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1638
$as_echo "$ac_try_echo"; } >&5
 
1639
  (eval "$ac_compile") 2>conftest.err
 
1640
  ac_status=$?
 
1641
  if test -s conftest.err; then
 
1642
    grep -v '^ *+' conftest.err >conftest.er1
 
1643
    cat conftest.er1 >&5
 
1644
    mv -f conftest.er1 conftest.err
 
1645
  fi
 
1646
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1647
  test $ac_status = 0; } && {
 
1648
         test -z "$ac_c_werror_flag" ||
 
1649
         test ! -s conftest.err
 
1650
       } && test -s conftest.$ac_objext; then :
 
1651
  ac_retval=0
 
1652
else
 
1653
  $as_echo "$as_me: failed program was:" >&5
 
1654
sed 's/^/| /' conftest.$ac_ext >&5
 
1655
 
 
1656
        ac_retval=1
 
1657
fi
 
1658
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1659
  as_fn_set_status $ac_retval
 
1660
 
 
1661
} # ac_fn_c_try_compile
 
1662
 
 
1663
# ac_fn_c_try_cpp LINENO
 
1664
# ----------------------
 
1665
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1666
ac_fn_c_try_cpp ()
 
1667
{
 
1668
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1669
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1670
case "(($ac_try" in
 
1671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1672
  *) ac_try_echo=$ac_try;;
 
1673
esac
 
1674
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1675
$as_echo "$ac_try_echo"; } >&5
 
1676
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1677
  ac_status=$?
 
1678
  if test -s conftest.err; then
 
1679
    grep -v '^ *+' conftest.err >conftest.er1
 
1680
    cat conftest.er1 >&5
 
1681
    mv -f conftest.er1 conftest.err
 
1682
  fi
 
1683
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1684
  test $ac_status = 0; } >/dev/null && {
 
1685
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1686
         test ! -s conftest.err
 
1687
       }; then :
 
1688
  ac_retval=0
 
1689
else
 
1690
  $as_echo "$as_me: failed program was:" >&5
 
1691
sed 's/^/| /' conftest.$ac_ext >&5
 
1692
 
 
1693
    ac_retval=1
 
1694
fi
 
1695
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1696
  as_fn_set_status $ac_retval
 
1697
 
 
1698
} # ac_fn_c_try_cpp
 
1699
 
 
1700
# ac_fn_c_try_run LINENO
 
1701
# ----------------------
 
1702
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1703
# that executables *can* be run.
 
1704
ac_fn_c_try_run ()
 
1705
{
 
1706
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1707
  if { { ac_try="$ac_link"
 
1708
case "(($ac_try" in
 
1709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1710
  *) ac_try_echo=$ac_try;;
 
1711
esac
 
1712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1713
$as_echo "$ac_try_echo"; } >&5
 
1714
  (eval "$ac_link") 2>&5
 
1715
  ac_status=$?
 
1716
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1717
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1718
  { { case "(($ac_try" in
 
1719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1720
  *) ac_try_echo=$ac_try;;
 
1721
esac
 
1722
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1723
$as_echo "$ac_try_echo"; } >&5
 
1724
  (eval "$ac_try") 2>&5
 
1725
  ac_status=$?
 
1726
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1727
  test $ac_status = 0; }; }; then :
 
1728
  ac_retval=0
 
1729
else
 
1730
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1731
       $as_echo "$as_me: failed program was:" >&5
 
1732
sed 's/^/| /' conftest.$ac_ext >&5
 
1733
 
 
1734
       ac_retval=$ac_status
 
1735
fi
 
1736
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1737
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1738
  as_fn_set_status $ac_retval
 
1739
 
 
1740
} # ac_fn_c_try_run
 
1741
 
 
1742
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1743
# -------------------------------------------------------
 
1744
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1745
# the include files in INCLUDES and setting the cache variable VAR
 
1746
# accordingly.
 
1747
ac_fn_c_check_header_mongrel ()
 
1748
{
 
1749
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1750
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1751
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1752
$as_echo_n "checking for $2... " >&6; }
 
1753
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1754
  $as_echo_n "(cached) " >&6
 
1755
fi
 
1756
eval ac_res=\$$3
 
1757
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1758
$as_echo "$ac_res" >&6; }
 
1759
else
 
1760
  # Is the header compilable?
 
1761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1762
$as_echo_n "checking $2 usability... " >&6; }
 
1763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1764
/* end confdefs.h.  */
 
1765
$4
 
1766
#include <$2>
 
1767
_ACEOF
 
1768
if ac_fn_c_try_compile "$LINENO"; then :
 
1769
  ac_header_compiler=yes
 
1770
else
 
1771
  ac_header_compiler=no
 
1772
fi
 
1773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1775
$as_echo "$ac_header_compiler" >&6; }
 
1776
 
 
1777
# Is the header present?
 
1778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1779
$as_echo_n "checking $2 presence... " >&6; }
 
1780
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1781
/* end confdefs.h.  */
 
1782
#include <$2>
 
1783
_ACEOF
 
1784
if ac_fn_c_try_cpp "$LINENO"; then :
 
1785
  ac_header_preproc=yes
 
1786
else
 
1787
  ac_header_preproc=no
 
1788
fi
 
1789
rm -f conftest.err conftest.$ac_ext
 
1790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1791
$as_echo "$ac_header_preproc" >&6; }
 
1792
 
 
1793
# So?  What about this header?
 
1794
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1795
  yes:no: )
 
1796
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1797
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1798
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1799
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1800
    ;;
 
1801
  no:yes:* )
 
1802
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1803
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1804
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1805
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1806
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1807
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1808
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1809
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1810
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1811
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1812
    ;;
 
1813
esac
 
1814
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1815
$as_echo_n "checking for $2... " >&6; }
 
1816
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1817
  $as_echo_n "(cached) " >&6
 
1818
else
 
1819
  eval "$3=\$ac_header_compiler"
 
1820
fi
 
1821
eval ac_res=\$$3
 
1822
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1823
$as_echo "$ac_res" >&6; }
 
1824
fi
 
1825
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1826
 
 
1827
} # ac_fn_c_check_header_mongrel
 
1828
 
 
1829
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1830
# -------------------------------------------------------
 
1831
# Tests whether HEADER exists and can be compiled using the include files in
 
1832
# INCLUDES, setting the cache variable VAR accordingly.
 
1833
ac_fn_c_check_header_compile ()
 
1834
{
 
1835
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1836
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1837
$as_echo_n "checking for $2... " >&6; }
 
1838
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1839
  $as_echo_n "(cached) " >&6
 
1840
else
 
1841
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1842
/* end confdefs.h.  */
 
1843
$4
 
1844
#include <$2>
 
1845
_ACEOF
 
1846
if ac_fn_c_try_compile "$LINENO"; then :
 
1847
  eval "$3=yes"
 
1848
else
 
1849
  eval "$3=no"
 
1850
fi
 
1851
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1852
fi
 
1853
eval ac_res=\$$3
 
1854
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1855
$as_echo "$ac_res" >&6; }
 
1856
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1857
 
 
1858
} # ac_fn_c_check_header_compile
 
1859
 
 
1860
# ac_fn_c_try_link LINENO
 
1861
# -----------------------
 
1862
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1863
ac_fn_c_try_link ()
 
1864
{
 
1865
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1866
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1867
  if { { ac_try="$ac_link"
 
1868
case "(($ac_try" in
 
1869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1870
  *) ac_try_echo=$ac_try;;
 
1871
esac
 
1872
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1873
$as_echo "$ac_try_echo"; } >&5
 
1874
  (eval "$ac_link") 2>conftest.err
 
1875
  ac_status=$?
 
1876
  if test -s conftest.err; then
 
1877
    grep -v '^ *+' conftest.err >conftest.er1
 
1878
    cat conftest.er1 >&5
 
1879
    mv -f conftest.er1 conftest.err
 
1880
  fi
 
1881
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1882
  test $ac_status = 0; } && {
 
1883
         test -z "$ac_c_werror_flag" ||
 
1884
         test ! -s conftest.err
 
1885
       } && test -s conftest$ac_exeext && {
 
1886
         test "$cross_compiling" = yes ||
 
1887
         $as_test_x conftest$ac_exeext
 
1888
       }; then :
 
1889
  ac_retval=0
 
1890
else
 
1891
  $as_echo "$as_me: failed program was:" >&5
 
1892
sed 's/^/| /' conftest.$ac_ext >&5
 
1893
 
 
1894
        ac_retval=1
 
1895
fi
 
1896
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1897
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1898
  # interfere with the next link command; also delete a directory that is
 
1899
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1900
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1901
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1902
  as_fn_set_status $ac_retval
 
1903
 
 
1904
} # ac_fn_c_try_link
 
1905
 
 
1906
# ac_fn_c_check_func LINENO FUNC VAR
 
1907
# ----------------------------------
 
1908
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1909
ac_fn_c_check_func ()
 
1910
{
 
1911
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1912
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1913
$as_echo_n "checking for $2... " >&6; }
 
1914
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1915
  $as_echo_n "(cached) " >&6
 
1916
else
 
1917
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1918
/* end confdefs.h.  */
 
1919
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1920
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1921
#define $2 innocuous_$2
 
1922
 
 
1923
/* System header to define __stub macros and hopefully few prototypes,
 
1924
    which can conflict with char $2 (); below.
 
1925
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1926
    <limits.h> exists even on freestanding compilers.  */
 
1927
 
 
1928
#ifdef __STDC__
 
1929
# include <limits.h>
 
1930
#else
 
1931
# include <assert.h>
 
1932
#endif
 
1933
 
 
1934
#undef $2
 
1935
 
 
1936
/* Override any GCC internal prototype to avoid an error.
 
1937
   Use char because int might match the return type of a GCC
 
1938
   builtin and then its argument prototype would still apply.  */
 
1939
#ifdef __cplusplus
 
1940
extern "C"
 
1941
#endif
 
1942
char $2 ();
 
1943
/* The GNU C library defines this for functions which it implements
 
1944
    to always fail with ENOSYS.  Some functions are actually named
 
1945
    something starting with __ and the normal name is an alias.  */
 
1946
#if defined __stub_$2 || defined __stub___$2
 
1947
choke me
 
1948
#endif
 
1949
 
 
1950
int
 
1951
main ()
 
1952
{
 
1953
return $2 ();
 
1954
  ;
 
1955
  return 0;
 
1956
}
 
1957
_ACEOF
 
1958
if ac_fn_c_try_link "$LINENO"; then :
 
1959
  eval "$3=yes"
 
1960
else
 
1961
  eval "$3=no"
 
1962
fi
 
1963
rm -f core conftest.err conftest.$ac_objext \
 
1964
    conftest$ac_exeext conftest.$ac_ext
 
1965
fi
 
1966
eval ac_res=\$$3
 
1967
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1968
$as_echo "$ac_res" >&6; }
 
1969
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1970
 
 
1971
} # ac_fn_c_check_func
 
1972
cat >config.log <<_ACEOF
 
1973
This file contains any messages produced by compilers while
 
1974
running configure, to aid debugging if configure makes a mistake.
 
1975
 
 
1976
It was created by libjpeg $as_me 6.2.1, which was
 
1977
generated by GNU Autoconf 2.65.  Invocation command line was
 
1978
 
 
1979
  $ $0 $@
 
1980
 
 
1981
_ACEOF
 
1982
exec 5>>config.log
 
1983
{
 
1984
cat <<_ASUNAME
 
1985
## --------- ##
 
1986
## Platform. ##
 
1987
## --------- ##
 
1988
 
 
1989
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1990
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1991
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1992
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1993
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1994
 
 
1995
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1996
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1997
 
 
1998
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1999
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2000
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2001
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2002
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2003
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2004
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2005
 
 
2006
_ASUNAME
 
2007
 
 
2008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2009
for as_dir in $PATH
 
2010
do
 
2011
  IFS=$as_save_IFS
 
2012
  test -z "$as_dir" && as_dir=.
 
2013
    $as_echo "PATH: $as_dir"
 
2014
  done
 
2015
IFS=$as_save_IFS
 
2016
 
 
2017
} >&5
 
2018
 
 
2019
cat >&5 <<_ACEOF
 
2020
 
 
2021
 
 
2022
## ----------- ##
 
2023
## Core tests. ##
 
2024
## ----------- ##
 
2025
 
 
2026
_ACEOF
 
2027
 
 
2028
 
 
2029
# Keep a trace of the command line.
 
2030
# Strip out --no-create and --no-recursion so they do not pile up.
 
2031
# Strip out --silent because we don't want to record it for future runs.
 
2032
# Also quote any args containing shell meta-characters.
 
2033
# Make two passes to allow for proper duplicate-argument suppression.
 
2034
ac_configure_args=
 
2035
ac_configure_args0=
 
2036
ac_configure_args1=
 
2037
ac_must_keep_next=false
 
2038
for ac_pass in 1 2
 
2039
do
 
2040
  for ac_arg
 
2041
  do
 
2042
    case $ac_arg in
 
2043
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2044
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2045
    | -silent | --silent | --silen | --sile | --sil)
 
2046
      continue ;;
 
2047
    *\'*)
 
2048
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2049
    esac
 
2050
    case $ac_pass in
 
2051
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2052
    2)
 
2053
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2054
      if test $ac_must_keep_next = true; then
 
2055
        ac_must_keep_next=false # Got value, back to normal.
 
2056
      else
 
2057
        case $ac_arg in
 
2058
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2059
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2060
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2061
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2062
            case "$ac_configure_args0 " in
 
2063
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2064
            esac
 
2065
            ;;
 
2066
          -* ) ac_must_keep_next=true ;;
 
2067
        esac
 
2068
      fi
 
2069
      as_fn_append ac_configure_args " '$ac_arg'"
 
2070
      ;;
 
2071
    esac
 
2072
  done
 
2073
done
 
2074
{ ac_configure_args0=; unset ac_configure_args0;}
 
2075
{ ac_configure_args1=; unset ac_configure_args1;}
 
2076
 
 
2077
# When interrupted or exit'd, cleanup temporary files, and complete
 
2078
# config.log.  We remove comments because anyway the quotes in there
 
2079
# would cause problems or look ugly.
 
2080
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2081
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2082
trap 'exit_status=$?
 
2083
  # Save into config.log some information that might help in debugging.
 
2084
  {
 
2085
    echo
 
2086
 
 
2087
    cat <<\_ASBOX
 
2088
## ---------------- ##
 
2089
## Cache variables. ##
 
2090
## ---------------- ##
 
2091
_ASBOX
 
2092
    echo
 
2093
    # The following way of writing the cache mishandles newlines in values,
 
2094
(
 
2095
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2096
    eval ac_val=\$$ac_var
 
2097
    case $ac_val in #(
 
2098
    *${as_nl}*)
 
2099
      case $ac_var in #(
 
2100
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2101
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2102
      esac
 
2103
      case $ac_var in #(
 
2104
      _ | IFS | as_nl) ;; #(
 
2105
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2106
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2107
      esac ;;
 
2108
    esac
 
2109
  done
 
2110
  (set) 2>&1 |
 
2111
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2112
    *${as_nl}ac_space=\ *)
 
2113
      sed -n \
 
2114
        "s/'\''/'\''\\\\'\'''\''/g;
 
2115
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2116
      ;; #(
 
2117
    *)
 
2118
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2119
      ;;
 
2120
    esac |
 
2121
    sort
 
2122
)
 
2123
    echo
 
2124
 
 
2125
    cat <<\_ASBOX
 
2126
## ----------------- ##
 
2127
## Output variables. ##
 
2128
## ----------------- ##
 
2129
_ASBOX
 
2130
    echo
 
2131
    for ac_var in $ac_subst_vars
 
2132
    do
 
2133
      eval ac_val=\$$ac_var
 
2134
      case $ac_val in
 
2135
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2136
      esac
 
2137
      $as_echo "$ac_var='\''$ac_val'\''"
 
2138
    done | sort
 
2139
    echo
 
2140
 
 
2141
    if test -n "$ac_subst_files"; then
 
2142
      cat <<\_ASBOX
 
2143
## ------------------- ##
 
2144
## File substitutions. ##
 
2145
## ------------------- ##
 
2146
_ASBOX
 
2147
      echo
 
2148
      for ac_var in $ac_subst_files
 
2149
      do
 
2150
        eval ac_val=\$$ac_var
 
2151
        case $ac_val in
 
2152
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2153
        esac
 
2154
        $as_echo "$ac_var='\''$ac_val'\''"
 
2155
      done | sort
 
2156
      echo
 
2157
    fi
 
2158
 
 
2159
    if test -s confdefs.h; then
 
2160
      cat <<\_ASBOX
 
2161
## ----------- ##
 
2162
## confdefs.h. ##
 
2163
## ----------- ##
 
2164
_ASBOX
 
2165
      echo
 
2166
      cat confdefs.h
 
2167
      echo
 
2168
    fi
 
2169
    test "$ac_signal" != 0 &&
 
2170
      $as_echo "$as_me: caught signal $ac_signal"
 
2171
    $as_echo "$as_me: exit $exit_status"
 
2172
  } >&5
 
2173
  rm -f core *.core core.conftest.* &&
 
2174
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2175
    exit $exit_status
 
2176
' 0
 
2177
for ac_signal in 1 2 13 15; do
 
2178
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2179
done
 
2180
ac_signal=0
 
2181
 
 
2182
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2183
rm -f -r conftest* confdefs.h
 
2184
 
 
2185
$as_echo "/* confdefs.h */" > confdefs.h
 
2186
 
 
2187
# Predefined preprocessor variables.
 
2188
 
 
2189
cat >>confdefs.h <<_ACEOF
 
2190
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2191
_ACEOF
 
2192
 
 
2193
cat >>confdefs.h <<_ACEOF
 
2194
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2195
_ACEOF
 
2196
 
 
2197
cat >>confdefs.h <<_ACEOF
 
2198
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2199
_ACEOF
 
2200
 
 
2201
cat >>confdefs.h <<_ACEOF
 
2202
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2203
_ACEOF
 
2204
 
 
2205
cat >>confdefs.h <<_ACEOF
 
2206
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2207
_ACEOF
 
2208
 
 
2209
cat >>confdefs.h <<_ACEOF
 
2210
#define PACKAGE_URL "$PACKAGE_URL"
 
2211
_ACEOF
 
2212
 
 
2213
 
 
2214
# Let the site file select an alternate cache file if it wants to.
 
2215
# Prefer an explicitly selected file to automatically selected ones.
 
2216
ac_site_file1=NONE
 
2217
ac_site_file2=NONE
 
2218
if test -n "$CONFIG_SITE"; then
 
2219
  ac_site_file1=$CONFIG_SITE
 
2220
elif test "x$prefix" != xNONE; then
 
2221
  ac_site_file1=$prefix/share/config.site
 
2222
  ac_site_file2=$prefix/etc/config.site
 
2223
else
 
2224
  ac_site_file1=$ac_default_prefix/share/config.site
 
2225
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2226
fi
 
2227
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2228
do
 
2229
  test "x$ac_site_file" = xNONE && continue
 
2230
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2231
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2232
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2233
    sed 's/^/| /' "$ac_site_file" >&5
508
2234
    . "$ac_site_file"
509
2235
  fi
510
2236
done
511
2237
 
512
 
 
513
 
ac_ext=c
514
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
515
 
ac_cpp='$CPP $CPPFLAGS'
516
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
517
 
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
518
 
cross_compiling=$ac_cv_prog_cc_cross
519
 
 
520
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523
 
    ac_n= ac_c='
524
 
' ac_t='        '
525
 
  else
526
 
    ac_n=-n ac_c= ac_t=
527
 
  fi
528
 
else
529
 
  ac_n= ac_c='\c' ac_t=
530
 
fi
531
 
 
532
 
 
533
 
 
534
 
# Extract the first word of "gcc", so it can be a program name with args.
535
 
set dummy gcc; ac_word=$2
536
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
537
 
echo "configure:538: checking for $ac_word" >&5
538
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
539
 
  echo $ac_n "(cached) $ac_c" 1>&6
540
 
else
541
 
  if test -n "$CC"; then
542
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
543
 
else
544
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
545
 
  for ac_dir in $PATH; do
546
 
    test -z "$ac_dir" && ac_dir=.
547
 
    if test -f $ac_dir/$ac_word; then
548
 
      ac_cv_prog_CC="gcc"
549
 
      break
550
 
    fi
551
 
  done
552
 
  IFS="$ac_save_ifs"
553
 
fi
554
 
fi
555
 
CC="$ac_cv_prog_CC"
556
 
if test -n "$CC"; then
557
 
  echo "$ac_t""$CC" 1>&6
558
 
else
559
 
  echo "$ac_t""no" 1>&6
560
 
fi
561
 
 
562
 
if test -z "$CC"; then
563
 
  # Extract the first word of "cc", so it can be a program name with args.
564
 
set dummy cc; ac_word=$2
565
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
566
 
echo "configure:567: checking for $ac_word" >&5
567
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
568
 
  echo $ac_n "(cached) $ac_c" 1>&6
569
 
else
570
 
  if test -n "$CC"; then
571
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
572
 
else
573
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
574
 
  ac_prog_rejected=no
575
 
  for ac_dir in $PATH; do
576
 
    test -z "$ac_dir" && ac_dir=.
577
 
    if test -f $ac_dir/$ac_word; then
578
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
579
 
        ac_prog_rejected=yes
580
 
        continue
581
 
      fi
582
 
      ac_cv_prog_CC="cc"
583
 
      break
584
 
    fi
585
 
  done
586
 
  IFS="$ac_save_ifs"
587
 
if test $ac_prog_rejected = yes; then
588
 
  # We found a bogon in the path, so make sure we never use it.
589
 
  set dummy $ac_cv_prog_CC
590
 
  shift
591
 
  if test $# -gt 0; then
592
 
    # We chose a different compiler from the bogus one.
593
 
    # However, it has the same basename, so the bogon will be chosen
594
 
    # first if we set CC to just the basename; use the full file name.
595
 
    shift
596
 
    set dummy "$ac_dir/$ac_word" "$@"
597
 
    shift
598
 
    ac_cv_prog_CC="$@"
599
 
  fi
600
 
fi
601
 
fi
602
 
fi
603
 
CC="$ac_cv_prog_CC"
604
 
if test -n "$CC"; then
605
 
  echo "$ac_t""$CC" 1>&6
606
 
else
607
 
  echo "$ac_t""no" 1>&6
608
 
fi
609
 
 
610
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
611
 
fi
612
 
 
613
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
614
 
echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
615
 
 
616
 
ac_ext=c
617
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
618
 
ac_cpp='$CPP $CPPFLAGS'
619
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
620
 
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
621
 
cross_compiling=$ac_cv_prog_cc_cross
622
 
 
623
 
cat > conftest.$ac_ext <<EOF
624
 
#line 625 "configure"
625
 
#include "confdefs.h"
626
 
main(){return(0);}
627
 
EOF
628
 
if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
629
 
  ac_cv_prog_cc_works=yes
630
 
  # If we can't run a trivial program, we are probably using a cross compiler.
631
 
  if (./conftest; exit) 2>/dev/null; then
632
 
    ac_cv_prog_cc_cross=no
633
 
  else
634
 
    ac_cv_prog_cc_cross=yes
635
 
  fi
636
 
else
637
 
  echo "configure: failed program was:" >&5
638
 
  cat conftest.$ac_ext >&5
639
 
  ac_cv_prog_cc_works=no
640
 
fi
641
 
rm -fr conftest*
642
 
 
643
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
644
 
if test $ac_cv_prog_cc_works = no; then
645
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
646
 
fi
647
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
648
 
echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
649
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
650
 
cross_compiling=$ac_cv_prog_cc_cross
651
 
 
652
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
653
 
echo "configure:654: checking whether we are using GNU C" >&5
654
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
655
 
  echo $ac_n "(cached) $ac_c" 1>&6
656
 
else
657
 
  cat > conftest.c <<EOF
658
 
#ifdef __GNUC__
659
 
  yes;
660
 
#endif
661
 
EOF
662
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
663
 
  ac_cv_prog_gcc=yes
664
 
else
665
 
  ac_cv_prog_gcc=no
666
 
fi
667
 
fi
668
 
 
669
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
670
 
 
671
 
if test $ac_cv_prog_gcc = yes; then
672
 
  GCC=yes
673
 
  test "${CFLAGS+set}" = set || CFLAGS="-O2"
674
 
else
675
 
  GCC=
676
 
  test "${CFLAGS+set}" = set || CFLAGS="-O"
677
 
fi
678
 
 
679
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
680
 
echo "configure:681: checking how to run the C preprocessor" >&5
681
 
# On Suns, sometimes $CPP names a directory.
682
 
if test -n "$CPP" && test -d "$CPP"; then
683
 
  CPP=
684
 
fi
685
 
if test -z "$CPP"; then
686
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
687
 
  echo $ac_n "(cached) $ac_c" 1>&6
688
 
else
689
 
    # This must be in double quotes, not single quotes, because CPP may get
690
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
691
 
  CPP="${CC-cc} -E"
692
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
693
 
  # not just through cpp.
694
 
  cat > conftest.$ac_ext <<EOF
695
 
#line 696 "configure"
696
 
#include "confdefs.h"
697
 
#include <assert.h>
698
 
Syntax Error
699
 
EOF
700
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
701
 
{ (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
702
 
ac_err=`grep -v '^ *+' conftest.out`
703
 
if test -z "$ac_err"; then
704
 
  :
705
 
else
706
 
  echo "$ac_err" >&5
707
 
  echo "configure: failed program was:" >&5
708
 
  cat conftest.$ac_ext >&5
709
 
  rm -rf conftest*
710
 
  CPP="${CC-cc} -E -traditional-cpp"
711
 
  cat > conftest.$ac_ext <<EOF
712
 
#line 713 "configure"
713
 
#include "confdefs.h"
714
 
#include <assert.h>
715
 
Syntax Error
716
 
EOF
717
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
718
 
{ (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
719
 
ac_err=`grep -v '^ *+' conftest.out`
720
 
if test -z "$ac_err"; then
721
 
  :
722
 
else
723
 
  echo "$ac_err" >&5
724
 
  echo "configure: failed program was:" >&5
725
 
  cat conftest.$ac_ext >&5
726
 
  rm -rf conftest*
727
 
  CPP=/lib/cpp
728
 
fi
729
 
rm -f conftest*
730
 
fi
731
 
rm -f conftest*
732
 
  ac_cv_prog_CPP="$CPP"
733
 
fi
734
 
  CPP="$ac_cv_prog_CPP"
735
 
else
736
 
  ac_cv_prog_CPP="$CPP"
737
 
fi
738
 
echo "$ac_t""$CPP" 1>&6
739
 
 
740
 
echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
741
 
echo "configure:742: checking for function prototypes" >&5
742
 
if eval "test \"`echo '$''{'ijg_cv_have_prototypes'+set}'`\" = set"; then
743
 
  echo $ac_n "(cached) $ac_c" 1>&6
744
 
else
745
 
  cat > conftest.$ac_ext <<EOF
746
 
#line 747 "configure"
747
 
#include "confdefs.h"
 
2238
if test -r "$cache_file"; then
 
2239
  # Some versions of bash will fail to source /dev/null (special files
 
2240
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2241
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2242
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2243
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2244
    case $cache_file in
 
2245
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2246
      *)                      . "./$cache_file";;
 
2247
    esac
 
2248
  fi
 
2249
else
 
2250
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2251
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2252
  >$cache_file
 
2253
fi
 
2254
 
 
2255
# Check that the precious variables saved in the cache have kept the same
 
2256
# value.
 
2257
ac_cache_corrupted=false
 
2258
for ac_var in $ac_precious_vars; do
 
2259
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2260
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2261
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2262
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2263
  case $ac_old_set,$ac_new_set in
 
2264
    set,)
 
2265
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2266
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2267
      ac_cache_corrupted=: ;;
 
2268
    ,set)
 
2269
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2270
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2271
      ac_cache_corrupted=: ;;
 
2272
    ,);;
 
2273
    *)
 
2274
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2275
        # differences in whitespace do not lead to failure.
 
2276
        ac_old_val_w=`echo x $ac_old_val`
 
2277
        ac_new_val_w=`echo x $ac_new_val`
 
2278
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2279
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2280
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2281
          ac_cache_corrupted=:
 
2282
        else
 
2283
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2284
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2285
          eval $ac_var=\$ac_old_val
 
2286
        fi
 
2287
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2288
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2289
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2290
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2291
      fi;;
 
2292
  esac
 
2293
  # Pass precious variables to config.status.
 
2294
  if test "$ac_new_set" = set; then
 
2295
    case $ac_new_val in
 
2296
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2297
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2298
    esac
 
2299
    case " $ac_configure_args " in
 
2300
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2301
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2302
    esac
 
2303
  fi
 
2304
done
 
2305
if $ac_cache_corrupted; then
 
2306
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2308
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2309
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2310
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2311
fi
 
2312
## -------------------- ##
 
2313
## Main body of script. ##
 
2314
## -------------------- ##
 
2315
 
 
2316
ac_ext=c
 
2317
ac_cpp='$CPP $CPPFLAGS'
 
2318
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2319
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2320
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2321
 
 
2322
 
 
2323
 
 
2324
# Directory where autotools helper scripts lives.
 
2325
ac_aux_dir=
 
2326
for ac_dir in . "$srcdir"/.; do
 
2327
  for ac_t in install-sh install.sh shtool; do
 
2328
    if test -f "$ac_dir/$ac_t"; then
 
2329
      ac_aux_dir=$ac_dir
 
2330
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2331
      break 2
 
2332
    fi
 
2333
  done
 
2334
done
 
2335
if test -z "$ac_aux_dir"; then
 
2336
  as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
 
2337
fi
 
2338
 
 
2339
# These three variables are undocumented and unsupported,
 
2340
# and are intended to be withdrawn in a future Autoconf release.
 
2341
# They can cause serious problems if a builder's source tree is in a directory
 
2342
# whose full name contains unusual characters.
 
2343
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2344
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2345
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2346
 
 
2347
 
 
2348
 
 
2349
# Generate configuration headers.
 
2350
ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg"
 
2351
 
 
2352
 
 
2353
# Hack: disable autoheader so that it doesn't overwrite our cfg template.
 
2354
AUTOHEADER="echo autoheader ignored"
 
2355
 
 
2356
# Check system type
 
2357
# Make sure we can run config.sub.
 
2358
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2359
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2360
 
 
2361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2362
$as_echo_n "checking build system type... " >&6; }
 
2363
if test "${ac_cv_build+set}" = set; then :
 
2364
  $as_echo_n "(cached) " >&6
 
2365
else
 
2366
  ac_build_alias=$build_alias
 
2367
test "x$ac_build_alias" = x &&
 
2368
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2369
test "x$ac_build_alias" = x &&
 
2370
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2371
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2372
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2373
 
 
2374
fi
 
2375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2376
$as_echo "$ac_cv_build" >&6; }
 
2377
case $ac_cv_build in
 
2378
*-*-*) ;;
 
2379
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2380
esac
 
2381
build=$ac_cv_build
 
2382
ac_save_IFS=$IFS; IFS='-'
 
2383
set x $ac_cv_build
 
2384
shift
 
2385
build_cpu=$1
 
2386
build_vendor=$2
 
2387
shift; shift
 
2388
# Remember, the first character of IFS is used to create $*,
 
2389
# except with old shells:
 
2390
build_os=$*
 
2391
IFS=$ac_save_IFS
 
2392
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2393
 
 
2394
 
 
2395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2396
$as_echo_n "checking host system type... " >&6; }
 
2397
if test "${ac_cv_host+set}" = set; then :
 
2398
  $as_echo_n "(cached) " >&6
 
2399
else
 
2400
  if test "x$host_alias" = x; then
 
2401
  ac_cv_host=$ac_cv_build
 
2402
else
 
2403
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2404
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2405
fi
 
2406
 
 
2407
fi
 
2408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2409
$as_echo "$ac_cv_host" >&6; }
 
2410
case $ac_cv_host in
 
2411
*-*-*) ;;
 
2412
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2413
esac
 
2414
host=$ac_cv_host
 
2415
ac_save_IFS=$IFS; IFS='-'
 
2416
set x $ac_cv_host
 
2417
shift
 
2418
host_cpu=$1
 
2419
host_vendor=$2
 
2420
shift; shift
 
2421
# Remember, the first character of IFS is used to create $*,
 
2422
# except with old shells:
 
2423
host_os=$*
 
2424
IFS=$ac_save_IFS
 
2425
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2426
 
 
2427
 
 
2428
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2429
$as_echo_n "checking target system type... " >&6; }
 
2430
if test "${ac_cv_target+set}" = set; then :
 
2431
  $as_echo_n "(cached) " >&6
 
2432
else
 
2433
  if test "x$target_alias" = x; then
 
2434
  ac_cv_target=$ac_cv_host
 
2435
else
 
2436
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2437
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2438
fi
 
2439
 
 
2440
fi
 
2441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2442
$as_echo "$ac_cv_target" >&6; }
 
2443
case $ac_cv_target in
 
2444
*-*-*) ;;
 
2445
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2446
esac
 
2447
target=$ac_cv_target
 
2448
ac_save_IFS=$IFS; IFS='-'
 
2449
set x $ac_cv_target
 
2450
shift
 
2451
target_cpu=$1
 
2452
target_vendor=$2
 
2453
shift; shift
 
2454
# Remember, the first character of IFS is used to create $*,
 
2455
# except with old shells:
 
2456
target_os=$*
 
2457
IFS=$ac_save_IFS
 
2458
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2459
 
 
2460
 
 
2461
# The aliases save the names the user supplied, while $host etc.
 
2462
# will get canonicalized.
 
2463
test -n "$target_alias" &&
 
2464
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2465
    NONENONEs,x,x, &&
 
2466
  program_prefix=${target_alias}-
 
2467
 
 
2468
# Initialize Automake
 
2469
# Don't require all the GNU mandated files
 
2470
am__api_version='1.11'
 
2471
 
 
2472
# Find a good install program.  We prefer a C program (faster),
 
2473
# so one script is as good as another.  But avoid the broken or
 
2474
# incompatible versions:
 
2475
# SysV /etc/install, /usr/sbin/install
 
2476
# SunOS /usr/etc/install
 
2477
# IRIX /sbin/install
 
2478
# AIX /bin/install
 
2479
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2480
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2481
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2482
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2483
# OS/2's system install, which has a completely different semantic
 
2484
# ./install, which can be erroneously created by make from ./install.sh.
 
2485
# Reject install programs that cannot install multiple files.
 
2486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2487
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2488
if test -z "$INSTALL"; then
 
2489
if test "${ac_cv_path_install+set}" = set; then :
 
2490
  $as_echo_n "(cached) " >&6
 
2491
else
 
2492
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2493
for as_dir in $PATH
 
2494
do
 
2495
  IFS=$as_save_IFS
 
2496
  test -z "$as_dir" && as_dir=.
 
2497
    # Account for people who put trailing slashes in PATH elements.
 
2498
case $as_dir/ in #((
 
2499
  ./ | .// | /[cC]/* | \
 
2500
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2501
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2502
  /usr/ucb/* ) ;;
 
2503
  *)
 
2504
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2505
    # Don't use installbsd from OSF since it installs stuff as root
 
2506
    # by default.
 
2507
    for ac_prog in ginstall scoinst install; do
 
2508
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2509
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2510
          if test $ac_prog = install &&
 
2511
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2512
            # AIX install.  It has an incompatible calling convention.
 
2513
            :
 
2514
          elif test $ac_prog = install &&
 
2515
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2516
            # program-specific install script used by HP pwplus--don't use.
 
2517
            :
 
2518
          else
 
2519
            rm -rf conftest.one conftest.two conftest.dir
 
2520
            echo one > conftest.one
 
2521
            echo two > conftest.two
 
2522
            mkdir conftest.dir
 
2523
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2524
              test -s conftest.one && test -s conftest.two &&
 
2525
              test -s conftest.dir/conftest.one &&
 
2526
              test -s conftest.dir/conftest.two
 
2527
            then
 
2528
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2529
              break 3
 
2530
            fi
 
2531
          fi
 
2532
        fi
 
2533
      done
 
2534
    done
 
2535
    ;;
 
2536
esac
 
2537
 
 
2538
  done
 
2539
IFS=$as_save_IFS
 
2540
 
 
2541
rm -rf conftest.one conftest.two conftest.dir
 
2542
 
 
2543
fi
 
2544
  if test "${ac_cv_path_install+set}" = set; then
 
2545
    INSTALL=$ac_cv_path_install
 
2546
  else
 
2547
    # As a last resort, use the slow shell script.  Don't cache a
 
2548
    # value for INSTALL within a source directory, because that will
 
2549
    # break other packages using the cache if that directory is
 
2550
    # removed, or if the value is a relative name.
 
2551
    INSTALL=$ac_install_sh
 
2552
  fi
 
2553
fi
 
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2555
$as_echo "$INSTALL" >&6; }
 
2556
 
 
2557
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2558
# It thinks the first close brace ends the variable substitution.
 
2559
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2560
 
 
2561
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2562
 
 
2563
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2564
 
 
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2566
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2567
# Just in case
 
2568
sleep 1
 
2569
echo timestamp > conftest.file
 
2570
# Reject unsafe characters in $srcdir or the absolute working directory
 
2571
# name.  Accept space and tab only in the latter.
 
2572
am_lf='
 
2573
'
 
2574
case `pwd` in
 
2575
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2576
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
 
2577
esac
 
2578
case $srcdir in
 
2579
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2580
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
 
2581
esac
 
2582
 
 
2583
# Do `set' in a subshell so we don't clobber the current shell's
 
2584
# arguments.  Must try -L first in case configure is actually a
 
2585
# symlink; some systems play weird games with the mod time of symlinks
 
2586
# (eg FreeBSD returns the mod time of the symlink's containing
 
2587
# directory).
 
2588
if (
 
2589
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2590
   if test "$*" = "X"; then
 
2591
      # -L didn't work.
 
2592
      set X `ls -t "$srcdir/configure" conftest.file`
 
2593
   fi
 
2594
   rm -f conftest.file
 
2595
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2596
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2597
 
 
2598
      # If neither matched, then we have a broken ls.  This can happen
 
2599
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2600
      # broken ls alias from the environment.  This has actually
 
2601
      # happened.  Such a system could not be considered "sane".
 
2602
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
 
2603
alias in your environment" "$LINENO" 5
 
2604
   fi
 
2605
 
 
2606
   test "$2" = conftest.file
 
2607
   )
 
2608
then
 
2609
   # Ok.
 
2610
   :
 
2611
else
 
2612
   as_fn_error "newly created file is older than distributed files!
 
2613
Check your system clock" "$LINENO" 5
 
2614
fi
 
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2616
$as_echo "yes" >&6; }
 
2617
test "$program_prefix" != NONE &&
 
2618
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2619
# Use a double $ so make ignores it.
 
2620
test "$program_suffix" != NONE &&
 
2621
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2622
# Double any \ or $.
 
2623
# By default was `s,x,x', remove it if useless.
 
2624
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2625
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2626
 
 
2627
# expand $ac_aux_dir to an absolute path
 
2628
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2629
 
 
2630
if test x"${MISSING+set}" != xset; then
 
2631
  case $am_aux_dir in
 
2632
  *\ * | *\     *)
 
2633
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2634
  *)
 
2635
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2636
  esac
 
2637
fi
 
2638
# Use eval to expand $SHELL
 
2639
if eval "$MISSING --run true"; then
 
2640
  am_missing_run="$MISSING --run "
 
2641
else
 
2642
  am_missing_run=
 
2643
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
 
2644
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2645
fi
 
2646
 
 
2647
if test x"${install_sh}" != xset; then
 
2648
  case $am_aux_dir in
 
2649
  *\ * | *\     *)
 
2650
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2651
  *)
 
2652
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2653
  esac
 
2654
fi
 
2655
 
 
2656
# Installed binaries are usually stripped using `strip' when the user
 
2657
# run `make install-strip'.  However `strip' might not be the right
 
2658
# tool to use in cross-compilation environments, therefore Automake
 
2659
# will honor the `STRIP' environment variable to overrule this program.
 
2660
if test "$cross_compiling" != no; then
 
2661
  if test -n "$ac_tool_prefix"; then
 
2662
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2663
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2665
$as_echo_n "checking for $ac_word... " >&6; }
 
2666
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
2667
  $as_echo_n "(cached) " >&6
 
2668
else
 
2669
  if test -n "$STRIP"; then
 
2670
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2671
else
 
2672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2673
for as_dir in $PATH
 
2674
do
 
2675
  IFS=$as_save_IFS
 
2676
  test -z "$as_dir" && as_dir=.
 
2677
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2678
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2679
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2680
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2681
    break 2
 
2682
  fi
 
2683
done
 
2684
  done
 
2685
IFS=$as_save_IFS
 
2686
 
 
2687
fi
 
2688
fi
 
2689
STRIP=$ac_cv_prog_STRIP
 
2690
if test -n "$STRIP"; then
 
2691
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2692
$as_echo "$STRIP" >&6; }
 
2693
else
 
2694
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2695
$as_echo "no" >&6; }
 
2696
fi
 
2697
 
 
2698
 
 
2699
fi
 
2700
if test -z "$ac_cv_prog_STRIP"; then
 
2701
  ac_ct_STRIP=$STRIP
 
2702
  # Extract the first word of "strip", so it can be a program name with args.
 
2703
set dummy strip; ac_word=$2
 
2704
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2705
$as_echo_n "checking for $ac_word... " >&6; }
 
2706
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
2707
  $as_echo_n "(cached) " >&6
 
2708
else
 
2709
  if test -n "$ac_ct_STRIP"; then
 
2710
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2711
else
 
2712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2713
for as_dir in $PATH
 
2714
do
 
2715
  IFS=$as_save_IFS
 
2716
  test -z "$as_dir" && as_dir=.
 
2717
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2718
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2719
    ac_cv_prog_ac_ct_STRIP="strip"
 
2720
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2721
    break 2
 
2722
  fi
 
2723
done
 
2724
  done
 
2725
IFS=$as_save_IFS
 
2726
 
 
2727
fi
 
2728
fi
 
2729
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2730
if test -n "$ac_ct_STRIP"; then
 
2731
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2732
$as_echo "$ac_ct_STRIP" >&6; }
 
2733
else
 
2734
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2735
$as_echo "no" >&6; }
 
2736
fi
 
2737
 
 
2738
  if test "x$ac_ct_STRIP" = x; then
 
2739
    STRIP=":"
 
2740
  else
 
2741
    case $cross_compiling:$ac_tool_warned in
 
2742
yes:)
 
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2744
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2745
ac_tool_warned=yes ;;
 
2746
esac
 
2747
    STRIP=$ac_ct_STRIP
 
2748
  fi
 
2749
else
 
2750
  STRIP="$ac_cv_prog_STRIP"
 
2751
fi
 
2752
 
 
2753
fi
 
2754
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2755
 
 
2756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2757
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2758
if test -z "$MKDIR_P"; then
 
2759
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
2760
  $as_echo_n "(cached) " >&6
 
2761
else
 
2762
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2763
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2764
do
 
2765
  IFS=$as_save_IFS
 
2766
  test -z "$as_dir" && as_dir=.
 
2767
    for ac_prog in mkdir gmkdir; do
 
2768
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2769
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2770
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2771
             'mkdir (GNU coreutils) '* | \
 
2772
             'mkdir (coreutils) '* | \
 
2773
             'mkdir (fileutils) '4.1*)
 
2774
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2775
               break 3;;
 
2776
           esac
 
2777
         done
 
2778
       done
 
2779
  done
 
2780
IFS=$as_save_IFS
 
2781
 
 
2782
fi
 
2783
 
 
2784
  test -d ./--version && rmdir ./--version
 
2785
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2786
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2787
  else
 
2788
    # As a last resort, use the slow shell script.  Don't cache a
 
2789
    # value for MKDIR_P within a source directory, because that will
 
2790
    # break other packages using the cache if that directory is
 
2791
    # removed, or if the value is a relative name.
 
2792
    MKDIR_P="$ac_install_sh -d"
 
2793
  fi
 
2794
fi
 
2795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2796
$as_echo "$MKDIR_P" >&6; }
 
2797
 
 
2798
mkdir_p="$MKDIR_P"
 
2799
case $mkdir_p in
 
2800
  [\\/$]* | ?:[\\/]*) ;;
 
2801
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2802
esac
 
2803
 
 
2804
for ac_prog in gawk mawk nawk awk
 
2805
do
 
2806
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2807
set dummy $ac_prog; ac_word=$2
 
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2809
$as_echo_n "checking for $ac_word... " >&6; }
 
2810
if test "${ac_cv_prog_AWK+set}" = set; then :
 
2811
  $as_echo_n "(cached) " >&6
 
2812
else
 
2813
  if test -n "$AWK"; then
 
2814
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2815
else
 
2816
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2817
for as_dir in $PATH
 
2818
do
 
2819
  IFS=$as_save_IFS
 
2820
  test -z "$as_dir" && as_dir=.
 
2821
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2822
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2823
    ac_cv_prog_AWK="$ac_prog"
 
2824
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2825
    break 2
 
2826
  fi
 
2827
done
 
2828
  done
 
2829
IFS=$as_save_IFS
 
2830
 
 
2831
fi
 
2832
fi
 
2833
AWK=$ac_cv_prog_AWK
 
2834
if test -n "$AWK"; then
 
2835
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2836
$as_echo "$AWK" >&6; }
 
2837
else
 
2838
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2839
$as_echo "no" >&6; }
 
2840
fi
 
2841
 
 
2842
 
 
2843
  test -n "$AWK" && break
 
2844
done
 
2845
 
 
2846
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2847
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2848
set x ${MAKE-make}
 
2849
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2850
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
2851
  $as_echo_n "(cached) " >&6
 
2852
else
 
2853
  cat >conftest.make <<\_ACEOF
 
2854
SHELL = /bin/sh
 
2855
all:
 
2856
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2857
_ACEOF
 
2858
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2859
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2860
  *@@@%%%=?*=@@@%%%*)
 
2861
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2862
  *)
 
2863
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2864
esac
 
2865
rm -f conftest.make
 
2866
fi
 
2867
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2869
$as_echo "yes" >&6; }
 
2870
  SET_MAKE=
 
2871
else
 
2872
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2873
$as_echo "no" >&6; }
 
2874
  SET_MAKE="MAKE=${MAKE-make}"
 
2875
fi
 
2876
 
 
2877
rm -rf .tst 2>/dev/null
 
2878
mkdir .tst 2>/dev/null
 
2879
if test -d .tst; then
 
2880
  am__leading_dot=.
 
2881
else
 
2882
  am__leading_dot=_
 
2883
fi
 
2884
rmdir .tst 2>/dev/null
 
2885
 
 
2886
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2887
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2888
  # is not polluted with repeated "-I."
 
2889
  am__isrc=' -I$(srcdir)'
 
2890
  # test to see if srcdir already configured
 
2891
  if test -f $srcdir/config.status; then
 
2892
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2893
  fi
 
2894
fi
 
2895
 
 
2896
# test whether we have cygpath
 
2897
if test -z "$CYGPATH_W"; then
 
2898
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2899
    CYGPATH_W='cygpath -w'
 
2900
  else
 
2901
    CYGPATH_W=echo
 
2902
  fi
 
2903
fi
 
2904
 
 
2905
 
 
2906
# Define the identity of the package.
 
2907
 PACKAGE='libjpeg'
 
2908
 VERSION='6.2.1'
 
2909
 
 
2910
 
 
2911
cat >>confdefs.h <<_ACEOF
 
2912
#define PACKAGE "$PACKAGE"
 
2913
_ACEOF
 
2914
 
 
2915
 
 
2916
cat >>confdefs.h <<_ACEOF
 
2917
#define VERSION "$VERSION"
 
2918
_ACEOF
 
2919
 
 
2920
# Some tools Automake needs.
 
2921
 
 
2922
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2923
 
 
2924
 
 
2925
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2926
 
 
2927
 
 
2928
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2929
 
 
2930
 
 
2931
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2932
 
 
2933
 
 
2934
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2935
 
 
2936
# We need awk for the "check" target.  The system "awk" is bad on
 
2937
# some platforms.
 
2938
# Always define AMTAR for backward compatibility.
 
2939
 
 
2940
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2941
 
 
2942
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2943
 
 
2944
 
 
2945
 
 
2946
 
 
2947
 
 
2948
 
 
2949
# Make --enable-silent-rules the default.
 
2950
# To get verbose build output you may configure
 
2951
# with --disable-silent-rules or use "make V=1".
 
2952
# Check whether --enable-silent-rules was given.
 
2953
if test "${enable_silent_rules+set}" = set; then :
 
2954
  enableval=$enable_silent_rules;
 
2955
fi
 
2956
 
 
2957
case $enable_silent_rules in
 
2958
yes) AM_DEFAULT_VERBOSITY=0;;
 
2959
no)  AM_DEFAULT_VERBOSITY=1;;
 
2960
*)   AM_DEFAULT_VERBOSITY=0;;
 
2961
esac
 
2962
AM_BACKSLASH='\'
 
2963
 
 
2964
 
 
2965
# This is required when using the de-ANSI-fication feature.
 
2966
DEPDIR="${am__leading_dot}deps"
 
2967
 
 
2968
ac_config_commands="$ac_config_commands depfiles"
 
2969
 
 
2970
 
 
2971
am_make=${MAKE-make}
 
2972
cat > confinc << 'END'
 
2973
am__doit:
 
2974
        @echo this is the am__doit target
 
2975
.PHONY: am__doit
 
2976
END
 
2977
# If we don't find an include directive, just comment out the code.
 
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2979
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2980
am__include="#"
 
2981
am__quote=
 
2982
_am_result=none
 
2983
# First try GNU make style include.
 
2984
echo "include confinc" > confmf
 
2985
# Ignore all kinds of additional output from `make'.
 
2986
case `$am_make -s -f confmf 2> /dev/null` in #(
 
2987
*the\ am__doit\ target*)
 
2988
  am__include=include
 
2989
  am__quote=
 
2990
  _am_result=GNU
 
2991
  ;;
 
2992
esac
 
2993
# Now try BSD make style include.
 
2994
if test "$am__include" = "#"; then
 
2995
   echo '.include "confinc"' > confmf
 
2996
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
2997
   *the\ am__doit\ target*)
 
2998
     am__include=.include
 
2999
     am__quote="\""
 
3000
     _am_result=BSD
 
3001
     ;;
 
3002
   esac
 
3003
fi
 
3004
 
 
3005
 
 
3006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3007
$as_echo "$_am_result" >&6; }
 
3008
rm -f confinc confmf
 
3009
 
 
3010
# Check whether --enable-dependency-tracking was given.
 
3011
if test "${enable_dependency_tracking+set}" = set; then :
 
3012
  enableval=$enable_dependency_tracking;
 
3013
fi
 
3014
 
 
3015
if test "x$enable_dependency_tracking" != xno; then
 
3016
  am_depcomp="$ac_aux_dir/depcomp"
 
3017
  AMDEPBACKSLASH='\'
 
3018
fi
 
3019
 if test "x$enable_dependency_tracking" != xno; then
 
3020
  AMDEP_TRUE=
 
3021
  AMDEP_FALSE='#'
 
3022
else
 
3023
  AMDEP_TRUE='#'
 
3024
  AMDEP_FALSE=
 
3025
fi
 
3026
 
 
3027
 
 
3028
ac_ext=c
 
3029
ac_cpp='$CPP $CPPFLAGS'
 
3030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3033
if test -n "$ac_tool_prefix"; then
 
3034
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3035
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3037
$as_echo_n "checking for $ac_word... " >&6; }
 
3038
if test "${ac_cv_prog_CC+set}" = set; then :
 
3039
  $as_echo_n "(cached) " >&6
 
3040
else
 
3041
  if test -n "$CC"; then
 
3042
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3043
else
 
3044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3045
for as_dir in $PATH
 
3046
do
 
3047
  IFS=$as_save_IFS
 
3048
  test -z "$as_dir" && as_dir=.
 
3049
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3050
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3051
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3052
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3053
    break 2
 
3054
  fi
 
3055
done
 
3056
  done
 
3057
IFS=$as_save_IFS
 
3058
 
 
3059
fi
 
3060
fi
 
3061
CC=$ac_cv_prog_CC
 
3062
if test -n "$CC"; then
 
3063
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3064
$as_echo "$CC" >&6; }
 
3065
else
 
3066
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3067
$as_echo "no" >&6; }
 
3068
fi
 
3069
 
 
3070
 
 
3071
fi
 
3072
if test -z "$ac_cv_prog_CC"; then
 
3073
  ac_ct_CC=$CC
 
3074
  # Extract the first word of "gcc", so it can be a program name with args.
 
3075
set dummy gcc; ac_word=$2
 
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3077
$as_echo_n "checking for $ac_word... " >&6; }
 
3078
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3079
  $as_echo_n "(cached) " >&6
 
3080
else
 
3081
  if test -n "$ac_ct_CC"; then
 
3082
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3083
else
 
3084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3085
for as_dir in $PATH
 
3086
do
 
3087
  IFS=$as_save_IFS
 
3088
  test -z "$as_dir" && as_dir=.
 
3089
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3090
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3091
    ac_cv_prog_ac_ct_CC="gcc"
 
3092
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3093
    break 2
 
3094
  fi
 
3095
done
 
3096
  done
 
3097
IFS=$as_save_IFS
 
3098
 
 
3099
fi
 
3100
fi
 
3101
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3102
if test -n "$ac_ct_CC"; then
 
3103
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3104
$as_echo "$ac_ct_CC" >&6; }
 
3105
else
 
3106
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3107
$as_echo "no" >&6; }
 
3108
fi
 
3109
 
 
3110
  if test "x$ac_ct_CC" = x; then
 
3111
    CC=""
 
3112
  else
 
3113
    case $cross_compiling:$ac_tool_warned in
 
3114
yes:)
 
3115
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3116
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3117
ac_tool_warned=yes ;;
 
3118
esac
 
3119
    CC=$ac_ct_CC
 
3120
  fi
 
3121
else
 
3122
  CC="$ac_cv_prog_CC"
 
3123
fi
 
3124
 
 
3125
if test -z "$CC"; then
 
3126
          if test -n "$ac_tool_prefix"; then
 
3127
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3128
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3130
$as_echo_n "checking for $ac_word... " >&6; }
 
3131
if test "${ac_cv_prog_CC+set}" = set; then :
 
3132
  $as_echo_n "(cached) " >&6
 
3133
else
 
3134
  if test -n "$CC"; then
 
3135
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3136
else
 
3137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3138
for as_dir in $PATH
 
3139
do
 
3140
  IFS=$as_save_IFS
 
3141
  test -z "$as_dir" && as_dir=.
 
3142
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3143
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3144
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3145
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3146
    break 2
 
3147
  fi
 
3148
done
 
3149
  done
 
3150
IFS=$as_save_IFS
 
3151
 
 
3152
fi
 
3153
fi
 
3154
CC=$ac_cv_prog_CC
 
3155
if test -n "$CC"; then
 
3156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3157
$as_echo "$CC" >&6; }
 
3158
else
 
3159
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3160
$as_echo "no" >&6; }
 
3161
fi
 
3162
 
 
3163
 
 
3164
  fi
 
3165
fi
 
3166
if test -z "$CC"; then
 
3167
  # Extract the first word of "cc", so it can be a program name with args.
 
3168
set dummy cc; ac_word=$2
 
3169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3170
$as_echo_n "checking for $ac_word... " >&6; }
 
3171
if test "${ac_cv_prog_CC+set}" = set; then :
 
3172
  $as_echo_n "(cached) " >&6
 
3173
else
 
3174
  if test -n "$CC"; then
 
3175
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3176
else
 
3177
  ac_prog_rejected=no
 
3178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3179
for as_dir in $PATH
 
3180
do
 
3181
  IFS=$as_save_IFS
 
3182
  test -z "$as_dir" && as_dir=.
 
3183
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3184
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3185
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3186
       ac_prog_rejected=yes
 
3187
       continue
 
3188
     fi
 
3189
    ac_cv_prog_CC="cc"
 
3190
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3191
    break 2
 
3192
  fi
 
3193
done
 
3194
  done
 
3195
IFS=$as_save_IFS
 
3196
 
 
3197
if test $ac_prog_rejected = yes; then
 
3198
  # We found a bogon in the path, so make sure we never use it.
 
3199
  set dummy $ac_cv_prog_CC
 
3200
  shift
 
3201
  if test $# != 0; then
 
3202
    # We chose a different compiler from the bogus one.
 
3203
    # However, it has the same basename, so the bogon will be chosen
 
3204
    # first if we set CC to just the basename; use the full file name.
 
3205
    shift
 
3206
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3207
  fi
 
3208
fi
 
3209
fi
 
3210
fi
 
3211
CC=$ac_cv_prog_CC
 
3212
if test -n "$CC"; then
 
3213
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3214
$as_echo "$CC" >&6; }
 
3215
else
 
3216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3217
$as_echo "no" >&6; }
 
3218
fi
 
3219
 
 
3220
 
 
3221
fi
 
3222
if test -z "$CC"; then
 
3223
  if test -n "$ac_tool_prefix"; then
 
3224
  for ac_prog in cl.exe
 
3225
  do
 
3226
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3227
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3229
$as_echo_n "checking for $ac_word... " >&6; }
 
3230
if test "${ac_cv_prog_CC+set}" = set; then :
 
3231
  $as_echo_n "(cached) " >&6
 
3232
else
 
3233
  if test -n "$CC"; then
 
3234
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3235
else
 
3236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3237
for as_dir in $PATH
 
3238
do
 
3239
  IFS=$as_save_IFS
 
3240
  test -z "$as_dir" && as_dir=.
 
3241
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3243
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3244
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3245
    break 2
 
3246
  fi
 
3247
done
 
3248
  done
 
3249
IFS=$as_save_IFS
 
3250
 
 
3251
fi
 
3252
fi
 
3253
CC=$ac_cv_prog_CC
 
3254
if test -n "$CC"; then
 
3255
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3256
$as_echo "$CC" >&6; }
 
3257
else
 
3258
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3259
$as_echo "no" >&6; }
 
3260
fi
 
3261
 
 
3262
 
 
3263
    test -n "$CC" && break
 
3264
  done
 
3265
fi
 
3266
if test -z "$CC"; then
 
3267
  ac_ct_CC=$CC
 
3268
  for ac_prog in cl.exe
 
3269
do
 
3270
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3271
set dummy $ac_prog; ac_word=$2
 
3272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3273
$as_echo_n "checking for $ac_word... " >&6; }
 
3274
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3275
  $as_echo_n "(cached) " >&6
 
3276
else
 
3277
  if test -n "$ac_ct_CC"; then
 
3278
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3279
else
 
3280
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3281
for as_dir in $PATH
 
3282
do
 
3283
  IFS=$as_save_IFS
 
3284
  test -z "$as_dir" && as_dir=.
 
3285
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3286
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3287
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3288
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3289
    break 2
 
3290
  fi
 
3291
done
 
3292
  done
 
3293
IFS=$as_save_IFS
 
3294
 
 
3295
fi
 
3296
fi
 
3297
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3298
if test -n "$ac_ct_CC"; then
 
3299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3300
$as_echo "$ac_ct_CC" >&6; }
 
3301
else
 
3302
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3303
$as_echo "no" >&6; }
 
3304
fi
 
3305
 
 
3306
 
 
3307
  test -n "$ac_ct_CC" && break
 
3308
done
 
3309
 
 
3310
  if test "x$ac_ct_CC" = x; then
 
3311
    CC=""
 
3312
  else
 
3313
    case $cross_compiling:$ac_tool_warned in
 
3314
yes:)
 
3315
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3316
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3317
ac_tool_warned=yes ;;
 
3318
esac
 
3319
    CC=$ac_ct_CC
 
3320
  fi
 
3321
fi
 
3322
 
 
3323
fi
 
3324
 
 
3325
 
 
3326
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3327
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3328
as_fn_error "no acceptable C compiler found in \$PATH
 
3329
See \`config.log' for more details." "$LINENO" 5; }
 
3330
 
 
3331
# Provide some information about the compiler.
 
3332
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3333
set X $ac_compile
 
3334
ac_compiler=$2
 
3335
for ac_option in --version -v -V -qversion; do
 
3336
  { { ac_try="$ac_compiler $ac_option >&5"
 
3337
case "(($ac_try" in
 
3338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3339
  *) ac_try_echo=$ac_try;;
 
3340
esac
 
3341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3342
$as_echo "$ac_try_echo"; } >&5
 
3343
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3344
  ac_status=$?
 
3345
  if test -s conftest.err; then
 
3346
    sed '10a\
 
3347
... rest of stderr output deleted ...
 
3348
         10q' conftest.err >conftest.er1
 
3349
    cat conftest.er1 >&5
 
3350
  fi
 
3351
  rm -f conftest.er1 conftest.err
 
3352
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3353
  test $ac_status = 0; }
 
3354
done
 
3355
 
 
3356
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3357
/* end confdefs.h.  */
 
3358
 
 
3359
int
 
3360
main ()
 
3361
{
 
3362
 
 
3363
  ;
 
3364
  return 0;
 
3365
}
 
3366
_ACEOF
 
3367
ac_clean_files_save=$ac_clean_files
 
3368
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3369
# Try to create an executable without -o first, disregard a.out.
 
3370
# It will help us diagnose broken compilers, and finding out an intuition
 
3371
# of exeext.
 
3372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3373
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3374
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3375
 
 
3376
# The possible output files:
 
3377
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3378
 
 
3379
ac_rmfiles=
 
3380
for ac_file in $ac_files
 
3381
do
 
3382
  case $ac_file in
 
3383
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3384
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3385
  esac
 
3386
done
 
3387
rm -f $ac_rmfiles
 
3388
 
 
3389
if { { ac_try="$ac_link_default"
 
3390
case "(($ac_try" in
 
3391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3392
  *) ac_try_echo=$ac_try;;
 
3393
esac
 
3394
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3395
$as_echo "$ac_try_echo"; } >&5
 
3396
  (eval "$ac_link_default") 2>&5
 
3397
  ac_status=$?
 
3398
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3399
  test $ac_status = 0; }; then :
 
3400
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3401
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3402
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3403
# so that the user can short-circuit this test for compilers unknown to
 
3404
# Autoconf.
 
3405
for ac_file in $ac_files ''
 
3406
do
 
3407
  test -f "$ac_file" || continue
 
3408
  case $ac_file in
 
3409
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3410
        ;;
 
3411
    [ab].out )
 
3412
        # We found the default executable, but exeext='' is most
 
3413
        # certainly right.
 
3414
        break;;
 
3415
    *.* )
 
3416
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3417
        then :; else
 
3418
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3419
        fi
 
3420
        # We set ac_cv_exeext here because the later test for it is not
 
3421
        # safe: cross compilers may not add the suffix if given an `-o'
 
3422
        # argument, so we may need to know it at that point already.
 
3423
        # Even if this section looks crufty: it has the advantage of
 
3424
        # actually working.
 
3425
        break;;
 
3426
    * )
 
3427
        break;;
 
3428
  esac
 
3429
done
 
3430
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3431
 
 
3432
else
 
3433
  ac_file=''
 
3434
fi
 
3435
if test -z "$ac_file"; then :
 
3436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3437
$as_echo "no" >&6; }
 
3438
$as_echo "$as_me: failed program was:" >&5
 
3439
sed 's/^/| /' conftest.$ac_ext >&5
 
3440
 
 
3441
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3442
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3443
{ as_fn_set_status 77
 
3444
as_fn_error "C compiler cannot create executables
 
3445
See \`config.log' for more details." "$LINENO" 5; }; }
 
3446
else
 
3447
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3448
$as_echo "yes" >&6; }
 
3449
fi
 
3450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3451
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3453
$as_echo "$ac_file" >&6; }
 
3454
ac_exeext=$ac_cv_exeext
 
3455
 
 
3456
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3457
ac_clean_files=$ac_clean_files_save
 
3458
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3459
$as_echo_n "checking for suffix of executables... " >&6; }
 
3460
if { { ac_try="$ac_link"
 
3461
case "(($ac_try" in
 
3462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3463
  *) ac_try_echo=$ac_try;;
 
3464
esac
 
3465
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3466
$as_echo "$ac_try_echo"; } >&5
 
3467
  (eval "$ac_link") 2>&5
 
3468
  ac_status=$?
 
3469
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3470
  test $ac_status = 0; }; then :
 
3471
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3472
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3473
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3474
# `rm'.
 
3475
for ac_file in conftest.exe conftest conftest.*; do
 
3476
  test -f "$ac_file" || continue
 
3477
  case $ac_file in
 
3478
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3479
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3480
          break;;
 
3481
    * ) break;;
 
3482
  esac
 
3483
done
 
3484
else
 
3485
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3486
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3487
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
3488
See \`config.log' for more details." "$LINENO" 5; }
 
3489
fi
 
3490
rm -f conftest conftest$ac_cv_exeext
 
3491
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3492
$as_echo "$ac_cv_exeext" >&6; }
 
3493
 
 
3494
rm -f conftest.$ac_ext
 
3495
EXEEXT=$ac_cv_exeext
 
3496
ac_exeext=$EXEEXT
 
3497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3498
/* end confdefs.h.  */
 
3499
#include <stdio.h>
 
3500
int
 
3501
main ()
 
3502
{
 
3503
FILE *f = fopen ("conftest.out", "w");
 
3504
 return ferror (f) || fclose (f) != 0;
 
3505
 
 
3506
  ;
 
3507
  return 0;
 
3508
}
 
3509
_ACEOF
 
3510
ac_clean_files="$ac_clean_files conftest.out"
 
3511
# Check that the compiler produces executables we can run.  If not, either
 
3512
# the compiler is broken, or we cross compile.
 
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3514
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3515
if test "$cross_compiling" != yes; then
 
3516
  { { ac_try="$ac_link"
 
3517
case "(($ac_try" in
 
3518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3519
  *) ac_try_echo=$ac_try;;
 
3520
esac
 
3521
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3522
$as_echo "$ac_try_echo"; } >&5
 
3523
  (eval "$ac_link") 2>&5
 
3524
  ac_status=$?
 
3525
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3526
  test $ac_status = 0; }
 
3527
  if { ac_try='./conftest$ac_cv_exeext'
 
3528
  { { case "(($ac_try" in
 
3529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3530
  *) ac_try_echo=$ac_try;;
 
3531
esac
 
3532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3533
$as_echo "$ac_try_echo"; } >&5
 
3534
  (eval "$ac_try") 2>&5
 
3535
  ac_status=$?
 
3536
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3537
  test $ac_status = 0; }; }; then
 
3538
    cross_compiling=no
 
3539
  else
 
3540
    if test "$cross_compiling" = maybe; then
 
3541
        cross_compiling=yes
 
3542
    else
 
3543
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3544
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3545
as_fn_error "cannot run C compiled programs.
 
3546
If you meant to cross compile, use \`--host'.
 
3547
See \`config.log' for more details." "$LINENO" 5; }
 
3548
    fi
 
3549
  fi
 
3550
fi
 
3551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3552
$as_echo "$cross_compiling" >&6; }
 
3553
 
 
3554
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3555
ac_clean_files=$ac_clean_files_save
 
3556
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3557
$as_echo_n "checking for suffix of object files... " >&6; }
 
3558
if test "${ac_cv_objext+set}" = set; then :
 
3559
  $as_echo_n "(cached) " >&6
 
3560
else
 
3561
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3562
/* end confdefs.h.  */
 
3563
 
 
3564
int
 
3565
main ()
 
3566
{
 
3567
 
 
3568
  ;
 
3569
  return 0;
 
3570
}
 
3571
_ACEOF
 
3572
rm -f conftest.o conftest.obj
 
3573
if { { ac_try="$ac_compile"
 
3574
case "(($ac_try" in
 
3575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3576
  *) ac_try_echo=$ac_try;;
 
3577
esac
 
3578
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3579
$as_echo "$ac_try_echo"; } >&5
 
3580
  (eval "$ac_compile") 2>&5
 
3581
  ac_status=$?
 
3582
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3583
  test $ac_status = 0; }; then :
 
3584
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3585
  test -f "$ac_file" || continue;
 
3586
  case $ac_file in
 
3587
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3588
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3589
       break;;
 
3590
  esac
 
3591
done
 
3592
else
 
3593
  $as_echo "$as_me: failed program was:" >&5
 
3594
sed 's/^/| /' conftest.$ac_ext >&5
 
3595
 
 
3596
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3597
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3598
as_fn_error "cannot compute suffix of object files: cannot compile
 
3599
See \`config.log' for more details." "$LINENO" 5; }
 
3600
fi
 
3601
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3602
fi
 
3603
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3604
$as_echo "$ac_cv_objext" >&6; }
 
3605
OBJEXT=$ac_cv_objext
 
3606
ac_objext=$OBJEXT
 
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3608
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3609
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3610
  $as_echo_n "(cached) " >&6
 
3611
else
 
3612
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3613
/* end confdefs.h.  */
 
3614
 
 
3615
int
 
3616
main ()
 
3617
{
 
3618
#ifndef __GNUC__
 
3619
       choke me
 
3620
#endif
 
3621
 
 
3622
  ;
 
3623
  return 0;
 
3624
}
 
3625
_ACEOF
 
3626
if ac_fn_c_try_compile "$LINENO"; then :
 
3627
  ac_compiler_gnu=yes
 
3628
else
 
3629
  ac_compiler_gnu=no
 
3630
fi
 
3631
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3632
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3633
 
 
3634
fi
 
3635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3636
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3637
if test $ac_compiler_gnu = yes; then
 
3638
  GCC=yes
 
3639
else
 
3640
  GCC=
 
3641
fi
 
3642
ac_test_CFLAGS=${CFLAGS+set}
 
3643
ac_save_CFLAGS=$CFLAGS
 
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3645
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3646
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3647
  $as_echo_n "(cached) " >&6
 
3648
else
 
3649
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3650
   ac_c_werror_flag=yes
 
3651
   ac_cv_prog_cc_g=no
 
3652
   CFLAGS="-g"
 
3653
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3654
/* end confdefs.h.  */
 
3655
 
 
3656
int
 
3657
main ()
 
3658
{
 
3659
 
 
3660
  ;
 
3661
  return 0;
 
3662
}
 
3663
_ACEOF
 
3664
if ac_fn_c_try_compile "$LINENO"; then :
 
3665
  ac_cv_prog_cc_g=yes
 
3666
else
 
3667
  CFLAGS=""
 
3668
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3669
/* end confdefs.h.  */
 
3670
 
 
3671
int
 
3672
main ()
 
3673
{
 
3674
 
 
3675
  ;
 
3676
  return 0;
 
3677
}
 
3678
_ACEOF
 
3679
if ac_fn_c_try_compile "$LINENO"; then :
 
3680
 
 
3681
else
 
3682
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3683
         CFLAGS="-g"
 
3684
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3685
/* end confdefs.h.  */
 
3686
 
 
3687
int
 
3688
main ()
 
3689
{
 
3690
 
 
3691
  ;
 
3692
  return 0;
 
3693
}
 
3694
_ACEOF
 
3695
if ac_fn_c_try_compile "$LINENO"; then :
 
3696
  ac_cv_prog_cc_g=yes
 
3697
fi
 
3698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3699
fi
 
3700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3701
fi
 
3702
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3703
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3704
fi
 
3705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3706
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3707
if test "$ac_test_CFLAGS" = set; then
 
3708
  CFLAGS=$ac_save_CFLAGS
 
3709
elif test $ac_cv_prog_cc_g = yes; then
 
3710
  if test "$GCC" = yes; then
 
3711
    CFLAGS="-g -O2"
 
3712
  else
 
3713
    CFLAGS="-g"
 
3714
  fi
 
3715
else
 
3716
  if test "$GCC" = yes; then
 
3717
    CFLAGS="-O2"
 
3718
  else
 
3719
    CFLAGS=
 
3720
  fi
 
3721
fi
 
3722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3723
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3724
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3725
  $as_echo_n "(cached) " >&6
 
3726
else
 
3727
  ac_cv_prog_cc_c89=no
 
3728
ac_save_CC=$CC
 
3729
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3730
/* end confdefs.h.  */
 
3731
#include <stdarg.h>
 
3732
#include <stdio.h>
 
3733
#include <sys/types.h>
 
3734
#include <sys/stat.h>
 
3735
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3736
struct buf { int x; };
 
3737
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3738
static char *e (p, i)
 
3739
     char **p;
 
3740
     int i;
 
3741
{
 
3742
  return p[i];
 
3743
}
 
3744
static char *f (char * (*g) (char **, int), char **p, ...)
 
3745
{
 
3746
  char *s;
 
3747
  va_list v;
 
3748
  va_start (v,p);
 
3749
  s = g (p, va_arg (v,int));
 
3750
  va_end (v);
 
3751
  return s;
 
3752
}
 
3753
 
 
3754
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3755
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3756
   These don't provoke an error unfortunately, instead are silently treated
 
3757
   as 'x'.  The following induces an error, until -std is added to get
 
3758
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3759
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3760
   that's true only with -std.  */
 
3761
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3762
 
 
3763
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3764
   inside strings and character constants.  */
 
3765
#define FOO(x) 'x'
 
3766
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3767
 
 
3768
int test (int i, double x);
 
3769
struct s1 {int (*f) (int a);};
 
3770
struct s2 {int (*f) (double a);};
 
3771
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3772
int argc;
 
3773
char **argv;
 
3774
int
 
3775
main ()
 
3776
{
 
3777
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3778
  ;
 
3779
  return 0;
 
3780
}
 
3781
_ACEOF
 
3782
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3783
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3784
do
 
3785
  CC="$ac_save_CC $ac_arg"
 
3786
  if ac_fn_c_try_compile "$LINENO"; then :
 
3787
  ac_cv_prog_cc_c89=$ac_arg
 
3788
fi
 
3789
rm -f core conftest.err conftest.$ac_objext
 
3790
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3791
done
 
3792
rm -f conftest.$ac_ext
 
3793
CC=$ac_save_CC
 
3794
 
 
3795
fi
 
3796
# AC_CACHE_VAL
 
3797
case "x$ac_cv_prog_cc_c89" in
 
3798
  x)
 
3799
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3800
$as_echo "none needed" >&6; } ;;
 
3801
  xno)
 
3802
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3803
$as_echo "unsupported" >&6; } ;;
 
3804
  *)
 
3805
    CC="$CC $ac_cv_prog_cc_c89"
 
3806
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3807
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3808
esac
 
3809
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3810
 
 
3811
fi
 
3812
 
 
3813
ac_ext=c
 
3814
ac_cpp='$CPP $CPPFLAGS'
 
3815
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3816
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3817
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3818
 
 
3819
depcc="$CC"   am_compiler_list=
 
3820
 
 
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3822
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3823
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
3824
  $as_echo_n "(cached) " >&6
 
3825
else
 
3826
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3827
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3828
  # making bogus files that we don't know about and never remove.  For
 
3829
  # instance it was reported that on HP-UX the gcc test will end up
 
3830
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3831
  # in D'.
 
3832
  mkdir conftest.dir
 
3833
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3834
  # using a relative directory.
 
3835
  cp "$am_depcomp" conftest.dir
 
3836
  cd conftest.dir
 
3837
  # We will build objects and dependencies in a subdirectory because
 
3838
  # it helps to detect inapplicable dependency modes.  For instance
 
3839
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3840
  # side effect of compilation, but ICC will put the dependencies in
 
3841
  # the current directory while Tru64 will put them in the object
 
3842
  # directory.
 
3843
  mkdir sub
 
3844
 
 
3845
  am_cv_CC_dependencies_compiler_type=none
 
3846
  if test "$am_compiler_list" = ""; then
 
3847
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3848
  fi
 
3849
  am__universal=false
 
3850
  case " $depcc " in #(
 
3851
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3852
     esac
 
3853
 
 
3854
  for depmode in $am_compiler_list; do
 
3855
    # Setup a source with many dependencies, because some compilers
 
3856
    # like to wrap large dependency lists on column 80 (with \), and
 
3857
    # we should not choose a depcomp mode which is confused by this.
 
3858
    #
 
3859
    # We need to recreate these files for each test, as the compiler may
 
3860
    # overwrite some of them when testing with obscure command lines.
 
3861
    # This happens at least with the AIX C compiler.
 
3862
    : > sub/conftest.c
 
3863
    for i in 1 2 3 4 5 6; do
 
3864
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3865
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3866
      # Solaris 8's {/usr,}/bin/sh.
 
3867
      touch sub/conftst$i.h
 
3868
    done
 
3869
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3870
 
 
3871
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3872
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3873
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3874
    # versions had trouble with output in subdirs
 
3875
    am__obj=sub/conftest.${OBJEXT-o}
 
3876
    am__minus_obj="-o $am__obj"
 
3877
    case $depmode in
 
3878
    gcc)
 
3879
      # This depmode causes a compiler race in universal mode.
 
3880
      test "$am__universal" = false || continue
 
3881
      ;;
 
3882
    nosideeffect)
 
3883
      # after this tag, mechanisms are not by side-effect, so they'll
 
3884
      # only be used when explicitly requested
 
3885
      if test "x$enable_dependency_tracking" = xyes; then
 
3886
        continue
 
3887
      else
 
3888
        break
 
3889
      fi
 
3890
      ;;
 
3891
    msvisualcpp | msvcmsys)
 
3892
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3893
      # not run yet.  These depmodes are late enough in the game, and
 
3894
      # so weak that their functioning should not be impacted.
 
3895
      am__obj=conftest.${OBJEXT-o}
 
3896
      am__minus_obj=
 
3897
      ;;
 
3898
    none) break ;;
 
3899
    esac
 
3900
    if depmode=$depmode \
 
3901
       source=sub/conftest.c object=$am__obj \
 
3902
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3903
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3904
         >/dev/null 2>conftest.err &&
 
3905
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3906
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3907
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3908
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3909
      # icc doesn't choke on unknown options, it will just issue warnings
 
3910
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3911
      # that says an option was ignored or not supported.
 
3912
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3913
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3914
      # The diagnosis changed in icc 8.0:
 
3915
      #   icc: Command line remark: option '-MP' not supported
 
3916
      if (grep 'ignoring option' conftest.err ||
 
3917
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3918
        am_cv_CC_dependencies_compiler_type=$depmode
 
3919
        break
 
3920
      fi
 
3921
    fi
 
3922
  done
 
3923
 
 
3924
  cd ..
 
3925
  rm -rf conftest.dir
 
3926
else
 
3927
  am_cv_CC_dependencies_compiler_type=none
 
3928
fi
 
3929
 
 
3930
fi
 
3931
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3932
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3933
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3934
 
 
3935
 if
 
3936
  test "x$enable_dependency_tracking" != xno \
 
3937
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3938
  am__fastdepCC_TRUE=
 
3939
  am__fastdepCC_FALSE='#'
 
3940
else
 
3941
  am__fastdepCC_TRUE='#'
 
3942
  am__fastdepCC_FALSE=
 
3943
fi
 
3944
 
 
3945
 
 
3946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
 
3947
$as_echo_n "checking for function prototypes... " >&6; }
 
3948
if test "$ac_cv_prog_cc_c89" != no; then
 
3949
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3950
$as_echo "yes" >&6; }
 
3951
 
 
3952
$as_echo "#define PROTOTYPES 1" >>confdefs.h
 
3953
 
 
3954
 
 
3955
$as_echo "#define __PROTOTYPES 1" >>confdefs.h
 
3956
 
 
3957
else
 
3958
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3959
$as_echo "no" >&6; }
 
3960
fi
 
3961
 
 
3962
 
 
3963
ac_ext=c
 
3964
ac_cpp='$CPP $CPPFLAGS'
 
3965
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3966
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3967
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3969
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3970
# On Suns, sometimes $CPP names a directory.
 
3971
if test -n "$CPP" && test -d "$CPP"; then
 
3972
  CPP=
 
3973
fi
 
3974
if test -z "$CPP"; then
 
3975
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3976
  $as_echo_n "(cached) " >&6
 
3977
else
 
3978
      # Double quotes because CPP needs to be expanded
 
3979
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3980
    do
 
3981
      ac_preproc_ok=false
 
3982
for ac_c_preproc_warn_flag in '' yes
 
3983
do
 
3984
  # Use a header file that comes with gcc, so configuring glibc
 
3985
  # with a fresh cross-compiler works.
 
3986
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3987
  # <limits.h> exists even on freestanding compilers.
 
3988
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3989
  # not just through cpp. "Syntax error" is here to catch this case.
 
3990
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3991
/* end confdefs.h.  */
 
3992
#ifdef __STDC__
 
3993
# include <limits.h>
 
3994
#else
 
3995
# include <assert.h>
 
3996
#endif
 
3997
                     Syntax error
 
3998
_ACEOF
 
3999
if ac_fn_c_try_cpp "$LINENO"; then :
 
4000
 
 
4001
else
 
4002
  # Broken: fails on valid input.
 
4003
continue
 
4004
fi
 
4005
rm -f conftest.err conftest.$ac_ext
 
4006
 
 
4007
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4008
  # can be detected and how.
 
4009
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4010
/* end confdefs.h.  */
 
4011
#include <ac_nonexistent.h>
 
4012
_ACEOF
 
4013
if ac_fn_c_try_cpp "$LINENO"; then :
 
4014
  # Broken: success on invalid input.
 
4015
continue
 
4016
else
 
4017
  # Passes both tests.
 
4018
ac_preproc_ok=:
 
4019
break
 
4020
fi
 
4021
rm -f conftest.err conftest.$ac_ext
 
4022
 
 
4023
done
 
4024
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4025
rm -f conftest.err conftest.$ac_ext
 
4026
if $ac_preproc_ok; then :
 
4027
  break
 
4028
fi
 
4029
 
 
4030
    done
 
4031
    ac_cv_prog_CPP=$CPP
 
4032
 
 
4033
fi
 
4034
  CPP=$ac_cv_prog_CPP
 
4035
else
 
4036
  ac_cv_prog_CPP=$CPP
 
4037
fi
 
4038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
4039
$as_echo "$CPP" >&6; }
 
4040
ac_preproc_ok=false
 
4041
for ac_c_preproc_warn_flag in '' yes
 
4042
do
 
4043
  # Use a header file that comes with gcc, so configuring glibc
 
4044
  # with a fresh cross-compiler works.
 
4045
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4046
  # <limits.h> exists even on freestanding compilers.
 
4047
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4048
  # not just through cpp. "Syntax error" is here to catch this case.
 
4049
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4050
/* end confdefs.h.  */
 
4051
#ifdef __STDC__
 
4052
# include <limits.h>
 
4053
#else
 
4054
# include <assert.h>
 
4055
#endif
 
4056
                     Syntax error
 
4057
_ACEOF
 
4058
if ac_fn_c_try_cpp "$LINENO"; then :
 
4059
 
 
4060
else
 
4061
  # Broken: fails on valid input.
 
4062
continue
 
4063
fi
 
4064
rm -f conftest.err conftest.$ac_ext
 
4065
 
 
4066
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4067
  # can be detected and how.
 
4068
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4069
/* end confdefs.h.  */
 
4070
#include <ac_nonexistent.h>
 
4071
_ACEOF
 
4072
if ac_fn_c_try_cpp "$LINENO"; then :
 
4073
  # Broken: success on invalid input.
 
4074
continue
 
4075
else
 
4076
  # Passes both tests.
 
4077
ac_preproc_ok=:
 
4078
break
 
4079
fi
 
4080
rm -f conftest.err conftest.$ac_ext
 
4081
 
 
4082
done
 
4083
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4084
rm -f conftest.err conftest.$ac_ext
 
4085
if $ac_preproc_ok; then :
 
4086
 
 
4087
else
 
4088
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4089
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4090
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
4091
See \`config.log' for more details." "$LINENO" 5; }
 
4092
fi
 
4093
 
 
4094
ac_ext=c
 
4095
ac_cpp='$CPP $CPPFLAGS'
 
4096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4099
 
 
4100
 
 
4101
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4102
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4103
if test "${ac_cv_path_GREP+set}" = set; then :
 
4104
  $as_echo_n "(cached) " >&6
 
4105
else
 
4106
  if test -z "$GREP"; then
 
4107
  ac_path_GREP_found=false
 
4108
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4109
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4110
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4111
do
 
4112
  IFS=$as_save_IFS
 
4113
  test -z "$as_dir" && as_dir=.
 
4114
    for ac_prog in grep ggrep; do
 
4115
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4116
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4117
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4118
# Check for GNU ac_path_GREP and select it if it is found.
 
4119
  # Check for GNU $ac_path_GREP
 
4120
case `"$ac_path_GREP" --version 2>&1` in
 
4121
*GNU*)
 
4122
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4123
*)
 
4124
  ac_count=0
 
4125
  $as_echo_n 0123456789 >"conftest.in"
 
4126
  while :
 
4127
  do
 
4128
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4129
    mv "conftest.tmp" "conftest.in"
 
4130
    cp "conftest.in" "conftest.nl"
 
4131
    $as_echo 'GREP' >> "conftest.nl"
 
4132
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4133
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4134
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4135
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4136
      # Best one so far, save it but keep looking for a better one
 
4137
      ac_cv_path_GREP="$ac_path_GREP"
 
4138
      ac_path_GREP_max=$ac_count
 
4139
    fi
 
4140
    # 10*(2^10) chars as input seems more than enough
 
4141
    test $ac_count -gt 10 && break
 
4142
  done
 
4143
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4144
esac
 
4145
 
 
4146
      $ac_path_GREP_found && break 3
 
4147
    done
 
4148
  done
 
4149
  done
 
4150
IFS=$as_save_IFS
 
4151
  if test -z "$ac_cv_path_GREP"; then
 
4152
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4153
  fi
 
4154
else
 
4155
  ac_cv_path_GREP=$GREP
 
4156
fi
 
4157
 
 
4158
fi
 
4159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4160
$as_echo "$ac_cv_path_GREP" >&6; }
 
4161
 GREP="$ac_cv_path_GREP"
 
4162
 
 
4163
 
 
4164
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4165
$as_echo_n "checking for egrep... " >&6; }
 
4166
if test "${ac_cv_path_EGREP+set}" = set; then :
 
4167
  $as_echo_n "(cached) " >&6
 
4168
else
 
4169
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4170
   then ac_cv_path_EGREP="$GREP -E"
 
4171
   else
 
4172
     if test -z "$EGREP"; then
 
4173
  ac_path_EGREP_found=false
 
4174
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4175
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4176
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4177
do
 
4178
  IFS=$as_save_IFS
 
4179
  test -z "$as_dir" && as_dir=.
 
4180
    for ac_prog in egrep; do
 
4181
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4182
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4183
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4184
# Check for GNU ac_path_EGREP and select it if it is found.
 
4185
  # Check for GNU $ac_path_EGREP
 
4186
case `"$ac_path_EGREP" --version 2>&1` in
 
4187
*GNU*)
 
4188
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4189
*)
 
4190
  ac_count=0
 
4191
  $as_echo_n 0123456789 >"conftest.in"
 
4192
  while :
 
4193
  do
 
4194
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4195
    mv "conftest.tmp" "conftest.in"
 
4196
    cp "conftest.in" "conftest.nl"
 
4197
    $as_echo 'EGREP' >> "conftest.nl"
 
4198
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4199
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4200
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4201
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4202
      # Best one so far, save it but keep looking for a better one
 
4203
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4204
      ac_path_EGREP_max=$ac_count
 
4205
    fi
 
4206
    # 10*(2^10) chars as input seems more than enough
 
4207
    test $ac_count -gt 10 && break
 
4208
  done
 
4209
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4210
esac
 
4211
 
 
4212
      $ac_path_EGREP_found && break 3
 
4213
    done
 
4214
  done
 
4215
  done
 
4216
IFS=$as_save_IFS
 
4217
  if test -z "$ac_cv_path_EGREP"; then
 
4218
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4219
  fi
 
4220
else
 
4221
  ac_cv_path_EGREP=$EGREP
 
4222
fi
 
4223
 
 
4224
   fi
 
4225
fi
 
4226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4227
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4228
 EGREP="$ac_cv_path_EGREP"
 
4229
 
 
4230
 
 
4231
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
4232
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4233
if test "${ac_cv_header_stdc+set}" = set; then :
 
4234
  $as_echo_n "(cached) " >&6
 
4235
else
 
4236
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4237
/* end confdefs.h.  */
 
4238
#include <stdlib.h>
 
4239
#include <stdarg.h>
 
4240
#include <string.h>
 
4241
#include <float.h>
 
4242
 
 
4243
int
 
4244
main ()
 
4245
{
 
4246
 
 
4247
  ;
 
4248
  return 0;
 
4249
}
 
4250
_ACEOF
 
4251
if ac_fn_c_try_compile "$LINENO"; then :
 
4252
  ac_cv_header_stdc=yes
 
4253
else
 
4254
  ac_cv_header_stdc=no
 
4255
fi
 
4256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4257
 
 
4258
if test $ac_cv_header_stdc = yes; then
 
4259
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4260
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4261
/* end confdefs.h.  */
 
4262
#include <string.h>
 
4263
 
 
4264
_ACEOF
 
4265
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4266
  $EGREP "memchr" >/dev/null 2>&1; then :
 
4267
 
 
4268
else
 
4269
  ac_cv_header_stdc=no
 
4270
fi
 
4271
rm -f conftest*
 
4272
 
 
4273
fi
 
4274
 
 
4275
if test $ac_cv_header_stdc = yes; then
 
4276
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4277
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4278
/* end confdefs.h.  */
 
4279
#include <stdlib.h>
 
4280
 
 
4281
_ACEOF
 
4282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4283
  $EGREP "free" >/dev/null 2>&1; then :
 
4284
 
 
4285
else
 
4286
  ac_cv_header_stdc=no
 
4287
fi
 
4288
rm -f conftest*
 
4289
 
 
4290
fi
 
4291
 
 
4292
if test $ac_cv_header_stdc = yes; then
 
4293
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4294
  if test "$cross_compiling" = yes; then :
 
4295
  :
 
4296
else
 
4297
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4298
/* end confdefs.h.  */
 
4299
#include <ctype.h>
 
4300
#include <stdlib.h>
 
4301
#if ((' ' & 0x0FF) == 0x020)
 
4302
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4303
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4304
#else
 
4305
# define ISLOWER(c) \
 
4306
                   (('a' <= (c) && (c) <= 'i') \
 
4307
                     || ('j' <= (c) && (c) <= 'r') \
 
4308
                     || ('s' <= (c) && (c) <= 'z'))
 
4309
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4310
#endif
 
4311
 
 
4312
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4313
int
 
4314
main ()
 
4315
{
 
4316
  int i;
 
4317
  for (i = 0; i < 256; i++)
 
4318
    if (XOR (islower (i), ISLOWER (i))
 
4319
        || toupper (i) != TOUPPER (i))
 
4320
      return 2;
 
4321
  return 0;
 
4322
}
 
4323
_ACEOF
 
4324
if ac_fn_c_try_run "$LINENO"; then :
 
4325
 
 
4326
else
 
4327
  ac_cv_header_stdc=no
 
4328
fi
 
4329
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4330
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4331
fi
 
4332
 
 
4333
fi
 
4334
fi
 
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
4336
$as_echo "$ac_cv_header_stdc" >&6; }
 
4337
if test $ac_cv_header_stdc = yes; then
 
4338
 
 
4339
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
4340
 
 
4341
fi
 
4342
 
 
4343
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4344
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4345
                  inttypes.h stdint.h unistd.h
 
4346
do :
 
4347
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4348
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
4349
"
 
4350
eval as_val=\$$as_ac_Header
 
4351
   if test "x$as_val" = x""yes; then :
 
4352
  cat >>confdefs.h <<_ACEOF
 
4353
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4354
_ACEOF
 
4355
 
 
4356
fi
 
4357
 
 
4358
done
 
4359
 
 
4360
 
 
4361
 
 
4362
if test "$ac_cv_prog_cc_stdc" != no; then
 
4363
  U= ANSI2KNR=
 
4364
else
 
4365
  U=_ ANSI2KNR=./ansi2knr
 
4366
fi
 
4367
# Ensure some checks needed by ansi2knr itself.
 
4368
 
 
4369
for ac_header in string.h
 
4370
do :
 
4371
  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
4372
if test "x$ac_cv_header_string_h" = x""yes; then :
 
4373
  cat >>confdefs.h <<_ACEOF
 
4374
#define HAVE_STRING_H 1
 
4375
_ACEOF
 
4376
 
 
4377
fi
 
4378
 
 
4379
done
 
4380
 
 
4381
 
 
4382
 
 
4383
# Add configure option --enable-maintainer-mode which enables
 
4384
# dependency checking and generation useful to package maintainers.
 
4385
# This is made an option to avoid confusing end users.
 
4386
 
 
4387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
4388
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
4389
    # Check whether --enable-maintainer-mode was given.
 
4390
if test "${enable_maintainer_mode+set}" = set; then :
 
4391
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
4392
else
 
4393
  USE_MAINTAINER_MODE=no
 
4394
fi
 
4395
 
 
4396
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
4397
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
4398
   if test $USE_MAINTAINER_MODE = yes; then
 
4399
  MAINTAINER_MODE_TRUE=
 
4400
  MAINTAINER_MODE_FALSE='#'
 
4401
else
 
4402
  MAINTAINER_MODE_TRUE='#'
 
4403
  MAINTAINER_MODE_FALSE=
 
4404
fi
 
4405
 
 
4406
  MAINT=$MAINTAINER_MODE_TRUE
 
4407
 
 
4408
 
 
4409
 
 
4410
# Check for programs
 
4411
ac_ext=c
 
4412
ac_cpp='$CPP $CPPFLAGS'
 
4413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4416
if test -n "$ac_tool_prefix"; then
 
4417
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
4418
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
4419
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4420
$as_echo_n "checking for $ac_word... " >&6; }
 
4421
if test "${ac_cv_prog_CC+set}" = set; then :
 
4422
  $as_echo_n "(cached) " >&6
 
4423
else
 
4424
  if test -n "$CC"; then
 
4425
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4426
else
 
4427
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4428
for as_dir in $PATH
 
4429
do
 
4430
  IFS=$as_save_IFS
 
4431
  test -z "$as_dir" && as_dir=.
 
4432
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4433
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4434
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
4435
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4436
    break 2
 
4437
  fi
 
4438
done
 
4439
  done
 
4440
IFS=$as_save_IFS
 
4441
 
 
4442
fi
 
4443
fi
 
4444
CC=$ac_cv_prog_CC
 
4445
if test -n "$CC"; then
 
4446
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4447
$as_echo "$CC" >&6; }
 
4448
else
 
4449
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4450
$as_echo "no" >&6; }
 
4451
fi
 
4452
 
 
4453
 
 
4454
fi
 
4455
if test -z "$ac_cv_prog_CC"; then
 
4456
  ac_ct_CC=$CC
 
4457
  # Extract the first word of "gcc", so it can be a program name with args.
 
4458
set dummy gcc; ac_word=$2
 
4459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4460
$as_echo_n "checking for $ac_word... " >&6; }
 
4461
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4462
  $as_echo_n "(cached) " >&6
 
4463
else
 
4464
  if test -n "$ac_ct_CC"; then
 
4465
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4466
else
 
4467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4468
for as_dir in $PATH
 
4469
do
 
4470
  IFS=$as_save_IFS
 
4471
  test -z "$as_dir" && as_dir=.
 
4472
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4473
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4474
    ac_cv_prog_ac_ct_CC="gcc"
 
4475
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4476
    break 2
 
4477
  fi
 
4478
done
 
4479
  done
 
4480
IFS=$as_save_IFS
 
4481
 
 
4482
fi
 
4483
fi
 
4484
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4485
if test -n "$ac_ct_CC"; then
 
4486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4487
$as_echo "$ac_ct_CC" >&6; }
 
4488
else
 
4489
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4490
$as_echo "no" >&6; }
 
4491
fi
 
4492
 
 
4493
  if test "x$ac_ct_CC" = x; then
 
4494
    CC=""
 
4495
  else
 
4496
    case $cross_compiling:$ac_tool_warned in
 
4497
yes:)
 
4498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4499
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4500
ac_tool_warned=yes ;;
 
4501
esac
 
4502
    CC=$ac_ct_CC
 
4503
  fi
 
4504
else
 
4505
  CC="$ac_cv_prog_CC"
 
4506
fi
 
4507
 
 
4508
if test -z "$CC"; then
 
4509
          if test -n "$ac_tool_prefix"; then
 
4510
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
4511
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
4512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4513
$as_echo_n "checking for $ac_word... " >&6; }
 
4514
if test "${ac_cv_prog_CC+set}" = set; then :
 
4515
  $as_echo_n "(cached) " >&6
 
4516
else
 
4517
  if test -n "$CC"; then
 
4518
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4519
else
 
4520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4521
for as_dir in $PATH
 
4522
do
 
4523
  IFS=$as_save_IFS
 
4524
  test -z "$as_dir" && as_dir=.
 
4525
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4526
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4527
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
4528
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4529
    break 2
 
4530
  fi
 
4531
done
 
4532
  done
 
4533
IFS=$as_save_IFS
 
4534
 
 
4535
fi
 
4536
fi
 
4537
CC=$ac_cv_prog_CC
 
4538
if test -n "$CC"; then
 
4539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4540
$as_echo "$CC" >&6; }
 
4541
else
 
4542
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4543
$as_echo "no" >&6; }
 
4544
fi
 
4545
 
 
4546
 
 
4547
  fi
 
4548
fi
 
4549
if test -z "$CC"; then
 
4550
  # Extract the first word of "cc", so it can be a program name with args.
 
4551
set dummy cc; ac_word=$2
 
4552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4553
$as_echo_n "checking for $ac_word... " >&6; }
 
4554
if test "${ac_cv_prog_CC+set}" = set; then :
 
4555
  $as_echo_n "(cached) " >&6
 
4556
else
 
4557
  if test -n "$CC"; then
 
4558
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4559
else
 
4560
  ac_prog_rejected=no
 
4561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4562
for as_dir in $PATH
 
4563
do
 
4564
  IFS=$as_save_IFS
 
4565
  test -z "$as_dir" && as_dir=.
 
4566
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4568
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
4569
       ac_prog_rejected=yes
 
4570
       continue
 
4571
     fi
 
4572
    ac_cv_prog_CC="cc"
 
4573
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4574
    break 2
 
4575
  fi
 
4576
done
 
4577
  done
 
4578
IFS=$as_save_IFS
 
4579
 
 
4580
if test $ac_prog_rejected = yes; then
 
4581
  # We found a bogon in the path, so make sure we never use it.
 
4582
  set dummy $ac_cv_prog_CC
 
4583
  shift
 
4584
  if test $# != 0; then
 
4585
    # We chose a different compiler from the bogus one.
 
4586
    # However, it has the same basename, so the bogon will be chosen
 
4587
    # first if we set CC to just the basename; use the full file name.
 
4588
    shift
 
4589
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
4590
  fi
 
4591
fi
 
4592
fi
 
4593
fi
 
4594
CC=$ac_cv_prog_CC
 
4595
if test -n "$CC"; then
 
4596
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4597
$as_echo "$CC" >&6; }
 
4598
else
 
4599
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4600
$as_echo "no" >&6; }
 
4601
fi
 
4602
 
 
4603
 
 
4604
fi
 
4605
if test -z "$CC"; then
 
4606
  if test -n "$ac_tool_prefix"; then
 
4607
  for ac_prog in cl.exe
 
4608
  do
 
4609
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4610
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4611
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4612
$as_echo_n "checking for $ac_word... " >&6; }
 
4613
if test "${ac_cv_prog_CC+set}" = set; then :
 
4614
  $as_echo_n "(cached) " >&6
 
4615
else
 
4616
  if test -n "$CC"; then
 
4617
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
4618
else
 
4619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4620
for as_dir in $PATH
 
4621
do
 
4622
  IFS=$as_save_IFS
 
4623
  test -z "$as_dir" && as_dir=.
 
4624
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4625
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4626
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
4627
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4628
    break 2
 
4629
  fi
 
4630
done
 
4631
  done
 
4632
IFS=$as_save_IFS
 
4633
 
 
4634
fi
 
4635
fi
 
4636
CC=$ac_cv_prog_CC
 
4637
if test -n "$CC"; then
 
4638
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
4639
$as_echo "$CC" >&6; }
 
4640
else
 
4641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4642
$as_echo "no" >&6; }
 
4643
fi
 
4644
 
 
4645
 
 
4646
    test -n "$CC" && break
 
4647
  done
 
4648
fi
 
4649
if test -z "$CC"; then
 
4650
  ac_ct_CC=$CC
 
4651
  for ac_prog in cl.exe
 
4652
do
 
4653
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4654
set dummy $ac_prog; ac_word=$2
 
4655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4656
$as_echo_n "checking for $ac_word... " >&6; }
 
4657
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
4658
  $as_echo_n "(cached) " >&6
 
4659
else
 
4660
  if test -n "$ac_ct_CC"; then
 
4661
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
4662
else
 
4663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4664
for as_dir in $PATH
 
4665
do
 
4666
  IFS=$as_save_IFS
 
4667
  test -z "$as_dir" && as_dir=.
 
4668
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4669
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4670
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
4671
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4672
    break 2
 
4673
  fi
 
4674
done
 
4675
  done
 
4676
IFS=$as_save_IFS
 
4677
 
 
4678
fi
 
4679
fi
 
4680
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
4681
if test -n "$ac_ct_CC"; then
 
4682
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
4683
$as_echo "$ac_ct_CC" >&6; }
 
4684
else
 
4685
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4686
$as_echo "no" >&6; }
 
4687
fi
 
4688
 
 
4689
 
 
4690
  test -n "$ac_ct_CC" && break
 
4691
done
 
4692
 
 
4693
  if test "x$ac_ct_CC" = x; then
 
4694
    CC=""
 
4695
  else
 
4696
    case $cross_compiling:$ac_tool_warned in
 
4697
yes:)
 
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4699
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4700
ac_tool_warned=yes ;;
 
4701
esac
 
4702
    CC=$ac_ct_CC
 
4703
  fi
 
4704
fi
 
4705
 
 
4706
fi
 
4707
 
 
4708
 
 
4709
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
4710
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4711
as_fn_error "no acceptable C compiler found in \$PATH
 
4712
See \`config.log' for more details." "$LINENO" 5; }
 
4713
 
 
4714
# Provide some information about the compiler.
 
4715
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
4716
set X $ac_compile
 
4717
ac_compiler=$2
 
4718
for ac_option in --version -v -V -qversion; do
 
4719
  { { ac_try="$ac_compiler $ac_option >&5"
 
4720
case "(($ac_try" in
 
4721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4722
  *) ac_try_echo=$ac_try;;
 
4723
esac
 
4724
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
4725
$as_echo "$ac_try_echo"; } >&5
 
4726
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
4727
  ac_status=$?
 
4728
  if test -s conftest.err; then
 
4729
    sed '10a\
 
4730
... rest of stderr output deleted ...
 
4731
         10q' conftest.err >conftest.er1
 
4732
    cat conftest.er1 >&5
 
4733
  fi
 
4734
  rm -f conftest.er1 conftest.err
 
4735
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
4736
  test $ac_status = 0; }
 
4737
done
 
4738
 
 
4739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
4740
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4741
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
4742
  $as_echo_n "(cached) " >&6
 
4743
else
 
4744
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4745
/* end confdefs.h.  */
 
4746
 
 
4747
int
 
4748
main ()
 
4749
{
 
4750
#ifndef __GNUC__
 
4751
       choke me
 
4752
#endif
 
4753
 
 
4754
  ;
 
4755
  return 0;
 
4756
}
 
4757
_ACEOF
 
4758
if ac_fn_c_try_compile "$LINENO"; then :
 
4759
  ac_compiler_gnu=yes
 
4760
else
 
4761
  ac_compiler_gnu=no
 
4762
fi
 
4763
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4764
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4765
 
 
4766
fi
 
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
4768
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4769
if test $ac_compiler_gnu = yes; then
 
4770
  GCC=yes
 
4771
else
 
4772
  GCC=
 
4773
fi
 
4774
ac_test_CFLAGS=${CFLAGS+set}
 
4775
ac_save_CFLAGS=$CFLAGS
 
4776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
4777
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4778
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
4779
  $as_echo_n "(cached) " >&6
 
4780
else
 
4781
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4782
   ac_c_werror_flag=yes
 
4783
   ac_cv_prog_cc_g=no
 
4784
   CFLAGS="-g"
 
4785
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4786
/* end confdefs.h.  */
 
4787
 
 
4788
int
 
4789
main ()
 
4790
{
 
4791
 
 
4792
  ;
 
4793
  return 0;
 
4794
}
 
4795
_ACEOF
 
4796
if ac_fn_c_try_compile "$LINENO"; then :
 
4797
  ac_cv_prog_cc_g=yes
 
4798
else
 
4799
  CFLAGS=""
 
4800
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4801
/* end confdefs.h.  */
 
4802
 
 
4803
int
 
4804
main ()
 
4805
{
 
4806
 
 
4807
  ;
 
4808
  return 0;
 
4809
}
 
4810
_ACEOF
 
4811
if ac_fn_c_try_compile "$LINENO"; then :
 
4812
 
 
4813
else
 
4814
  ac_c_werror_flag=$ac_save_c_werror_flag
 
4815
         CFLAGS="-g"
 
4816
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4817
/* end confdefs.h.  */
 
4818
 
 
4819
int
 
4820
main ()
 
4821
{
 
4822
 
 
4823
  ;
 
4824
  return 0;
 
4825
}
 
4826
_ACEOF
 
4827
if ac_fn_c_try_compile "$LINENO"; then :
 
4828
  ac_cv_prog_cc_g=yes
 
4829
fi
 
4830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4831
fi
 
4832
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4833
fi
 
4834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4835
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4836
fi
 
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
4838
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4839
if test "$ac_test_CFLAGS" = set; then
 
4840
  CFLAGS=$ac_save_CFLAGS
 
4841
elif test $ac_cv_prog_cc_g = yes; then
 
4842
  if test "$GCC" = yes; then
 
4843
    CFLAGS="-g -O2"
 
4844
  else
 
4845
    CFLAGS="-g"
 
4846
  fi
 
4847
else
 
4848
  if test "$GCC" = yes; then
 
4849
    CFLAGS="-O2"
 
4850
  else
 
4851
    CFLAGS=
 
4852
  fi
 
4853
fi
 
4854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
4855
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4856
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
4857
  $as_echo_n "(cached) " >&6
 
4858
else
 
4859
  ac_cv_prog_cc_c89=no
 
4860
ac_save_CC=$CC
 
4861
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4862
/* end confdefs.h.  */
 
4863
#include <stdarg.h>
 
4864
#include <stdio.h>
 
4865
#include <sys/types.h>
 
4866
#include <sys/stat.h>
 
4867
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4868
struct buf { int x; };
 
4869
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4870
static char *e (p, i)
 
4871
     char **p;
 
4872
     int i;
 
4873
{
 
4874
  return p[i];
 
4875
}
 
4876
static char *f (char * (*g) (char **, int), char **p, ...)
 
4877
{
 
4878
  char *s;
 
4879
  va_list v;
 
4880
  va_start (v,p);
 
4881
  s = g (p, va_arg (v,int));
 
4882
  va_end (v);
 
4883
  return s;
 
4884
}
 
4885
 
 
4886
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4887
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4888
   These don't provoke an error unfortunately, instead are silently treated
 
4889
   as 'x'.  The following induces an error, until -std is added to get
 
4890
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4891
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4892
   that's true only with -std.  */
 
4893
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4894
 
 
4895
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4896
   inside strings and character constants.  */
 
4897
#define FOO(x) 'x'
 
4898
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4899
 
 
4900
int test (int i, double x);
 
4901
struct s1 {int (*f) (int a);};
 
4902
struct s2 {int (*f) (double a);};
 
4903
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4904
int argc;
 
4905
char **argv;
 
4906
int
 
4907
main ()
 
4908
{
 
4909
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4910
  ;
 
4911
  return 0;
 
4912
}
 
4913
_ACEOF
 
4914
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4915
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4916
do
 
4917
  CC="$ac_save_CC $ac_arg"
 
4918
  if ac_fn_c_try_compile "$LINENO"; then :
 
4919
  ac_cv_prog_cc_c89=$ac_arg
 
4920
fi
 
4921
rm -f core conftest.err conftest.$ac_objext
 
4922
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4923
done
 
4924
rm -f conftest.$ac_ext
 
4925
CC=$ac_save_CC
 
4926
 
 
4927
fi
 
4928
# AC_CACHE_VAL
 
4929
case "x$ac_cv_prog_cc_c89" in
 
4930
  x)
 
4931
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
4932
$as_echo "none needed" >&6; } ;;
 
4933
  xno)
 
4934
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
4935
$as_echo "unsupported" >&6; } ;;
 
4936
  *)
 
4937
    CC="$CC $ac_cv_prog_cc_c89"
 
4938
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
4939
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4940
esac
 
4941
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
4942
 
 
4943
fi
 
4944
 
 
4945
ac_ext=c
 
4946
ac_cpp='$CPP $CPPFLAGS'
 
4947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4950
 
 
4951
depcc="$CC"   am_compiler_list=
 
4952
 
 
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
4954
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4955
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
 
4956
  $as_echo_n "(cached) " >&6
 
4957
else
 
4958
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4959
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4960
  # making bogus files that we don't know about and never remove.  For
 
4961
  # instance it was reported that on HP-UX the gcc test will end up
 
4962
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4963
  # in D'.
 
4964
  mkdir conftest.dir
 
4965
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4966
  # using a relative directory.
 
4967
  cp "$am_depcomp" conftest.dir
 
4968
  cd conftest.dir
 
4969
  # We will build objects and dependencies in a subdirectory because
 
4970
  # it helps to detect inapplicable dependency modes.  For instance
 
4971
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4972
  # side effect of compilation, but ICC will put the dependencies in
 
4973
  # the current directory while Tru64 will put them in the object
 
4974
  # directory.
 
4975
  mkdir sub
 
4976
 
 
4977
  am_cv_CC_dependencies_compiler_type=none
 
4978
  if test "$am_compiler_list" = ""; then
 
4979
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4980
  fi
 
4981
  am__universal=false
 
4982
  case " $depcc " in #(
 
4983
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4984
     esac
 
4985
 
 
4986
  for depmode in $am_compiler_list; do
 
4987
    # Setup a source with many dependencies, because some compilers
 
4988
    # like to wrap large dependency lists on column 80 (with \), and
 
4989
    # we should not choose a depcomp mode which is confused by this.
 
4990
    #
 
4991
    # We need to recreate these files for each test, as the compiler may
 
4992
    # overwrite some of them when testing with obscure command lines.
 
4993
    # This happens at least with the AIX C compiler.
 
4994
    : > sub/conftest.c
 
4995
    for i in 1 2 3 4 5 6; do
 
4996
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4997
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4998
      # Solaris 8's {/usr,}/bin/sh.
 
4999
      touch sub/conftst$i.h
 
5000
    done
 
5001
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5002
 
 
5003
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5004
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5005
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
5006
    # versions had trouble with output in subdirs
 
5007
    am__obj=sub/conftest.${OBJEXT-o}
 
5008
    am__minus_obj="-o $am__obj"
 
5009
    case $depmode in
 
5010
    gcc)
 
5011
      # This depmode causes a compiler race in universal mode.
 
5012
      test "$am__universal" = false || continue
 
5013
      ;;
 
5014
    nosideeffect)
 
5015
      # after this tag, mechanisms are not by side-effect, so they'll
 
5016
      # only be used when explicitly requested
 
5017
      if test "x$enable_dependency_tracking" = xyes; then
 
5018
        continue
 
5019
      else
 
5020
        break
 
5021
      fi
 
5022
      ;;
 
5023
    msvisualcpp | msvcmsys)
 
5024
      # This compiler won't grok `-c -o', but also, the minuso test has
 
5025
      # not run yet.  These depmodes are late enough in the game, and
 
5026
      # so weak that their functioning should not be impacted.
 
5027
      am__obj=conftest.${OBJEXT-o}
 
5028
      am__minus_obj=
 
5029
      ;;
 
5030
    none) break ;;
 
5031
    esac
 
5032
    if depmode=$depmode \
 
5033
       source=sub/conftest.c object=$am__obj \
 
5034
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5035
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
5036
         >/dev/null 2>conftest.err &&
 
5037
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5038
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5039
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
5040
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5041
      # icc doesn't choke on unknown options, it will just issue warnings
 
5042
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5043
      # that says an option was ignored or not supported.
 
5044
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5045
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5046
      # The diagnosis changed in icc 8.0:
 
5047
      #   icc: Command line remark: option '-MP' not supported
 
5048
      if (grep 'ignoring option' conftest.err ||
 
5049
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5050
        am_cv_CC_dependencies_compiler_type=$depmode
 
5051
        break
 
5052
      fi
 
5053
    fi
 
5054
  done
 
5055
 
 
5056
  cd ..
 
5057
  rm -rf conftest.dir
 
5058
else
 
5059
  am_cv_CC_dependencies_compiler_type=none
 
5060
fi
 
5061
 
 
5062
fi
 
5063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
5064
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
5065
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
5066
 
 
5067
 if
 
5068
  test "x$enable_dependency_tracking" != xno \
 
5069
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
5070
  am__fastdepCC_TRUE=
 
5071
  am__fastdepCC_FALSE='#'
 
5072
else
 
5073
  am__fastdepCC_TRUE='#'
 
5074
  am__fastdepCC_FALSE=
 
5075
fi
 
5076
 
 
5077
 
 
5078
   case $ac_cv_prog_cc_stdc in #(
 
5079
  no) :
 
5080
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
 
5081
  *) :
 
5082
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
 
5083
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
 
5084
if test "${ac_cv_prog_cc_c99+set}" = set; then :
 
5085
  $as_echo_n "(cached) " >&6
 
5086
else
 
5087
  ac_cv_prog_cc_c99=no
 
5088
ac_save_CC=$CC
 
5089
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5090
/* end confdefs.h.  */
 
5091
#include <stdarg.h>
 
5092
#include <stdbool.h>
 
5093
#include <stdlib.h>
 
5094
#include <wchar.h>
 
5095
#include <stdio.h>
 
5096
 
 
5097
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
 
5098
#define debug(...) fprintf (stderr, __VA_ARGS__)
 
5099
#define showlist(...) puts (#__VA_ARGS__)
 
5100
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 
5101
static void
 
5102
test_varargs_macros (void)
 
5103
{
 
5104
  int x = 1234;
 
5105
  int y = 5678;
 
5106
  debug ("Flag");
 
5107
  debug ("X = %d\n", x);
 
5108
  showlist (The first, second, and third items.);
 
5109
  report (x>y, "x is %d but y is %d", x, y);
 
5110
}
 
5111
 
 
5112
// Check long long types.
 
5113
#define BIG64 18446744073709551615ull
 
5114
#define BIG32 4294967295ul
 
5115
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 
5116
#if !BIG_OK
 
5117
  your preprocessor is broken;
 
5118
#endif
 
5119
#if BIG_OK
 
5120
#else
 
5121
  your preprocessor is broken;
 
5122
#endif
 
5123
static long long int bignum = -9223372036854775807LL;
 
5124
static unsigned long long int ubignum = BIG64;
 
5125
 
 
5126
struct incomplete_array
 
5127
{
 
5128
  int datasize;
 
5129
  double data[];
 
5130
};
 
5131
 
 
5132
struct named_init {
 
5133
  int number;
 
5134
  const wchar_t *name;
 
5135
  double average;
 
5136
};
 
5137
 
 
5138
typedef const char *ccp;
 
5139
 
 
5140
static inline int
 
5141
test_restrict (ccp restrict text)
 
5142
{
 
5143
  // See if C++-style comments work.
 
5144
  // Iterate through items via the restricted pointer.
 
5145
  // Also check for declarations in for loops.
 
5146
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
 
5147
    continue;
 
5148
  return 0;
 
5149
}
 
5150
 
 
5151
// Check varargs and va_copy.
 
5152
static void
 
5153
test_varargs (const char *format, ...)
 
5154
{
 
5155
  va_list args;
 
5156
  va_start (args, format);
 
5157
  va_list args_copy;
 
5158
  va_copy (args_copy, args);
 
5159
 
 
5160
  const char *str;
 
5161
  int number;
 
5162
  float fnumber;
 
5163
 
 
5164
  while (*format)
 
5165
    {
 
5166
      switch (*format++)
 
5167
        {
 
5168
        case 's': // string
 
5169
          str = va_arg (args_copy, const char *);
 
5170
          break;
 
5171
        case 'd': // int
 
5172
          number = va_arg (args_copy, int);
 
5173
          break;
 
5174
        case 'f': // float
 
5175
          fnumber = va_arg (args_copy, double);
 
5176
          break;
 
5177
        default:
 
5178
          break;
 
5179
        }
 
5180
    }
 
5181
  va_end (args_copy);
 
5182
  va_end (args);
 
5183
}
 
5184
 
 
5185
int
 
5186
main ()
 
5187
{
 
5188
 
 
5189
  // Check bool.
 
5190
  _Bool success = false;
 
5191
 
 
5192
  // Check restrict.
 
5193
  if (test_restrict ("String literal") == 0)
 
5194
    success = true;
 
5195
  char *restrict newvar = "Another string";
 
5196
 
 
5197
  // Check varargs.
 
5198
  test_varargs ("s, d' f .", "string", 65, 34.234);
 
5199
  test_varargs_macros ();
 
5200
 
 
5201
  // Check flexible array members.
 
5202
  struct incomplete_array *ia =
 
5203
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 
5204
  ia->datasize = 10;
 
5205
  for (int i = 0; i < ia->datasize; ++i)
 
5206
    ia->data[i] = i * 1.234;
 
5207
 
 
5208
  // Check named initializers.
 
5209
  struct named_init ni = {
 
5210
    .number = 34,
 
5211
    .name = L"Test wide string",
 
5212
    .average = 543.34343,
 
5213
  };
 
5214
 
 
5215
  ni.number = 58;
 
5216
 
 
5217
  int dynamic_array[ni.number];
 
5218
  dynamic_array[ni.number - 1] = 543;
 
5219
 
 
5220
  // work around unused variable warnings
 
5221
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
 
5222
          || dynamic_array[ni.number - 1] != 543);
 
5223
 
 
5224
  ;
 
5225
  return 0;
 
5226
}
 
5227
_ACEOF
 
5228
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
 
5229
do
 
5230
  CC="$ac_save_CC $ac_arg"
 
5231
  if ac_fn_c_try_compile "$LINENO"; then :
 
5232
  ac_cv_prog_cc_c99=$ac_arg
 
5233
fi
 
5234
rm -f core conftest.err conftest.$ac_objext
 
5235
  test "x$ac_cv_prog_cc_c99" != "xno" && break
 
5236
done
 
5237
rm -f conftest.$ac_ext
 
5238
CC=$ac_save_CC
 
5239
 
 
5240
fi
 
5241
# AC_CACHE_VAL
 
5242
case "x$ac_cv_prog_cc_c99" in
 
5243
  x)
 
5244
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5245
$as_echo "none needed" >&6; } ;;
 
5246
  xno)
 
5247
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5248
$as_echo "unsupported" >&6; } ;;
 
5249
  *)
 
5250
    CC="$CC $ac_cv_prog_cc_c99"
 
5251
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 
5252
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
 
5253
esac
 
5254
if test "x$ac_cv_prog_cc_c99" != xno; then :
 
5255
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 
5256
else
 
5257
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
5258
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
5259
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
5260
  $as_echo_n "(cached) " >&6
 
5261
else
 
5262
  ac_cv_prog_cc_c89=no
 
5263
ac_save_CC=$CC
 
5264
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5265
/* end confdefs.h.  */
 
5266
#include <stdarg.h>
 
5267
#include <stdio.h>
 
5268
#include <sys/types.h>
 
5269
#include <sys/stat.h>
 
5270
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
5271
struct buf { int x; };
 
5272
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
5273
static char *e (p, i)
 
5274
     char **p;
 
5275
     int i;
 
5276
{
 
5277
  return p[i];
 
5278
}
 
5279
static char *f (char * (*g) (char **, int), char **p, ...)
 
5280
{
 
5281
  char *s;
 
5282
  va_list v;
 
5283
  va_start (v,p);
 
5284
  s = g (p, va_arg (v,int));
 
5285
  va_end (v);
 
5286
  return s;
 
5287
}
 
5288
 
 
5289
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
5290
   function prototypes and stuff, but not '\xHH' hex character constants.
 
5291
   These don't provoke an error unfortunately, instead are silently treated
 
5292
   as 'x'.  The following induces an error, until -std is added to get
 
5293
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
5294
   array size at least.  It's necessary to write '\x00'==0 to get something
 
5295
   that's true only with -std.  */
 
5296
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
5297
 
 
5298
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
5299
   inside strings and character constants.  */
 
5300
#define FOO(x) 'x'
 
5301
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
5302
 
 
5303
int test (int i, double x);
 
5304
struct s1 {int (*f) (int a);};
 
5305
struct s2 {int (*f) (double a);};
 
5306
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
5307
int argc;
 
5308
char **argv;
 
5309
int
 
5310
main ()
 
5311
{
 
5312
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
5313
  ;
 
5314
  return 0;
 
5315
}
 
5316
_ACEOF
 
5317
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
5318
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
5319
do
 
5320
  CC="$ac_save_CC $ac_arg"
 
5321
  if ac_fn_c_try_compile "$LINENO"; then :
 
5322
  ac_cv_prog_cc_c89=$ac_arg
 
5323
fi
 
5324
rm -f core conftest.err conftest.$ac_objext
 
5325
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
5326
done
 
5327
rm -f conftest.$ac_ext
 
5328
CC=$ac_save_CC
 
5329
 
 
5330
fi
 
5331
# AC_CACHE_VAL
 
5332
case "x$ac_cv_prog_cc_c89" in
 
5333
  x)
 
5334
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5335
$as_echo "none needed" >&6; } ;;
 
5336
  xno)
 
5337
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5338
$as_echo "unsupported" >&6; } ;;
 
5339
  *)
 
5340
    CC="$CC $ac_cv_prog_cc_c89"
 
5341
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
5342
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
5343
esac
 
5344
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
5345
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 
5346
else
 
5347
  ac_cv_prog_cc_stdc=no
 
5348
fi
 
5349
 
 
5350
fi
 
5351
 ;;
 
5352
esac
 
5353
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
 
5354
$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
 
5355
  if test "${ac_cv_prog_cc_stdc+set}" = set; then :
 
5356
  $as_echo_n "(cached) " >&6
 
5357
fi
 
5358
 
 
5359
  case $ac_cv_prog_cc_stdc in #(
 
5360
  no) :
 
5361
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
5362
$as_echo "unsupported" >&6; } ;; #(
 
5363
  '') :
 
5364
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
5365
$as_echo "none needed" >&6; } ;; #(
 
5366
  *) :
 
5367
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
 
5368
$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
 
5369
esac
 
5370
 
 
5371
ac_ext=c
 
5372
ac_cpp='$CPP $CPPFLAGS'
 
5373
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5374
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5375
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
5377
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
5378
# On Suns, sometimes $CPP names a directory.
 
5379
if test -n "$CPP" && test -d "$CPP"; then
 
5380
  CPP=
 
5381
fi
 
5382
if test -z "$CPP"; then
 
5383
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
5384
  $as_echo_n "(cached) " >&6
 
5385
else
 
5386
      # Double quotes because CPP needs to be expanded
 
5387
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5388
    do
 
5389
      ac_preproc_ok=false
 
5390
for ac_c_preproc_warn_flag in '' yes
 
5391
do
 
5392
  # Use a header file that comes with gcc, so configuring glibc
 
5393
  # with a fresh cross-compiler works.
 
5394
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5395
  # <limits.h> exists even on freestanding compilers.
 
5396
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5397
  # not just through cpp. "Syntax error" is here to catch this case.
 
5398
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5399
/* end confdefs.h.  */
 
5400
#ifdef __STDC__
 
5401
# include <limits.h>
 
5402
#else
 
5403
# include <assert.h>
 
5404
#endif
 
5405
                     Syntax error
 
5406
_ACEOF
 
5407
if ac_fn_c_try_cpp "$LINENO"; then :
 
5408
 
 
5409
else
 
5410
  # Broken: fails on valid input.
 
5411
continue
 
5412
fi
 
5413
rm -f conftest.err conftest.$ac_ext
 
5414
 
 
5415
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5416
  # can be detected and how.
 
5417
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5418
/* end confdefs.h.  */
 
5419
#include <ac_nonexistent.h>
 
5420
_ACEOF
 
5421
if ac_fn_c_try_cpp "$LINENO"; then :
 
5422
  # Broken: success on invalid input.
 
5423
continue
 
5424
else
 
5425
  # Passes both tests.
 
5426
ac_preproc_ok=:
 
5427
break
 
5428
fi
 
5429
rm -f conftest.err conftest.$ac_ext
 
5430
 
 
5431
done
 
5432
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5433
rm -f conftest.err conftest.$ac_ext
 
5434
if $ac_preproc_ok; then :
 
5435
  break
 
5436
fi
 
5437
 
 
5438
    done
 
5439
    ac_cv_prog_CPP=$CPP
 
5440
 
 
5441
fi
 
5442
  CPP=$ac_cv_prog_CPP
 
5443
else
 
5444
  ac_cv_prog_CPP=$CPP
 
5445
fi
 
5446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
5447
$as_echo "$CPP" >&6; }
 
5448
ac_preproc_ok=false
 
5449
for ac_c_preproc_warn_flag in '' yes
 
5450
do
 
5451
  # Use a header file that comes with gcc, so configuring glibc
 
5452
  # with a fresh cross-compiler works.
 
5453
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5454
  # <limits.h> exists even on freestanding compilers.
 
5455
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5456
  # not just through cpp. "Syntax error" is here to catch this case.
 
5457
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5458
/* end confdefs.h.  */
 
5459
#ifdef __STDC__
 
5460
# include <limits.h>
 
5461
#else
 
5462
# include <assert.h>
 
5463
#endif
 
5464
                     Syntax error
 
5465
_ACEOF
 
5466
if ac_fn_c_try_cpp "$LINENO"; then :
 
5467
 
 
5468
else
 
5469
  # Broken: fails on valid input.
 
5470
continue
 
5471
fi
 
5472
rm -f conftest.err conftest.$ac_ext
 
5473
 
 
5474
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5475
  # can be detected and how.
 
5476
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5477
/* end confdefs.h.  */
 
5478
#include <ac_nonexistent.h>
 
5479
_ACEOF
 
5480
if ac_fn_c_try_cpp "$LINENO"; then :
 
5481
  # Broken: success on invalid input.
 
5482
continue
 
5483
else
 
5484
  # Passes both tests.
 
5485
ac_preproc_ok=:
 
5486
break
 
5487
fi
 
5488
rm -f conftest.err conftest.$ac_ext
 
5489
 
 
5490
done
 
5491
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5492
rm -f conftest.err conftest.$ac_ext
 
5493
if $ac_preproc_ok; then :
 
5494
 
 
5495
else
 
5496
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
5497
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5498
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
5499
See \`config.log' for more details." "$LINENO" 5; }
 
5500
fi
 
5501
 
 
5502
ac_ext=c
 
5503
ac_cpp='$CPP $CPPFLAGS'
 
5504
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5505
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5506
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5507
 
 
5508
 
 
5509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5510
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
5511
set x ${MAKE-make}
 
5512
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
5513
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
5514
  $as_echo_n "(cached) " >&6
 
5515
else
 
5516
  cat >conftest.make <<\_ACEOF
 
5517
SHELL = /bin/sh
 
5518
all:
 
5519
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
5520
_ACEOF
 
5521
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
5522
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
5523
  *@@@%%%=?*=@@@%%%*)
 
5524
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
5525
  *)
 
5526
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
5527
esac
 
5528
rm -f conftest.make
 
5529
fi
 
5530
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
5531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5532
$as_echo "yes" >&6; }
 
5533
  SET_MAKE=
 
5534
else
 
5535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5536
$as_echo "no" >&6; }
 
5537
  SET_MAKE="MAKE=${MAKE-make}"
 
5538
fi
 
5539
 
 
5540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
5541
$as_echo_n "checking whether ln -s works... " >&6; }
 
5542
LN_S=$as_ln_s
 
5543
if test "$LN_S" = "ln -s"; then
 
5544
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5545
$as_echo "yes" >&6; }
 
5546
else
 
5547
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
5548
$as_echo "no, using $LN_S" >&6; }
 
5549
fi
 
5550
 
 
5551
 
 
5552
# Check if LD supports linker scripts,
 
5553
# and define automake conditional HAVE_LD_VERSION_SCRIPT if so.
 
5554
# Check whether --enable-ld-version-script was given.
 
5555
if test "${enable_ld_version_script+set}" = set; then :
 
5556
  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
 
5557
fi
 
5558
 
 
5559
if test -z "$have_ld_version_script"; then
 
5560
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
 
5561
$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
 
5562
  save_LDFLAGS="$LDFLAGS"
 
5563
  LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
 
5564
  cat > conftest.map <<EOF
 
5565
VERS_1 {
 
5566
        global: sym;
 
5567
};
 
5568
 
 
5569
VERS_2 {
 
5570
        global: sym;
 
5571
} VERS_1;
 
5572
EOF
 
5573
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5574
/* end confdefs.h.  */
 
5575
 
 
5576
int
 
5577
main ()
 
5578
{
 
5579
 
 
5580
  ;
 
5581
  return 0;
 
5582
}
 
5583
_ACEOF
 
5584
if ac_fn_c_try_link "$LINENO"; then :
 
5585
  have_ld_version_script=yes
 
5586
else
 
5587
  have_ld_version_script=no
 
5588
fi
 
5589
rm -f core conftest.err conftest.$ac_objext \
 
5590
    conftest$ac_exeext conftest.$ac_ext
 
5591
  rm -f conftest.map
 
5592
  LDFLAGS="$save_LDFLAGS"
 
5593
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
 
5594
$as_echo "$have_ld_version_script" >&6; }
 
5595
fi
 
5596
 if test "$have_ld_version_script" = "yes"; then
 
5597
  HAVE_LD_VERSION_SCRIPT_TRUE=
 
5598
  HAVE_LD_VERSION_SCRIPT_FALSE='#'
 
5599
else
 
5600
  HAVE_LD_VERSION_SCRIPT_TRUE='#'
 
5601
  HAVE_LD_VERSION_SCRIPT_FALSE=
 
5602
fi
 
5603
 
 
5604
 
 
5605
# See if compiler supports prototypes.
 
5606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
 
5607
$as_echo_n "checking for function prototypes... " >&6; }
 
5608
if test "${ijg_cv_have_prototypes+set}" = set; then :
 
5609
  $as_echo_n "(cached) " >&6
 
5610
else
 
5611
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5612
/* end confdefs.h.  */
748
5613
 
749
5614
int testfunction (int arg1, int * arg2); /* check prototypes */
750
5615
struct methods_struct {         /* check method-pointer declarations */
757
5622
int test2function (void)        /* check void arg list */
758
5623
{ return 0; }
759
5624
 
760
 
int main() {
761
 
 
762
 
; return 0; }
763
 
EOF
764
 
if { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
765
 
  rm -rf conftest*
 
5625
int
 
5626
main ()
 
5627
{
 
5628
 
 
5629
  ;
 
5630
  return 0;
 
5631
}
 
5632
_ACEOF
 
5633
if ac_fn_c_try_compile "$LINENO"; then :
766
5634
  ijg_cv_have_prototypes=yes
767
5635
else
768
 
  echo "configure: failed program was:" >&5
769
 
  cat conftest.$ac_ext >&5
770
 
  rm -rf conftest*
771
5636
  ijg_cv_have_prototypes=no
772
5637
fi
773
 
rm -f conftest*
 
5638
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
774
5639
fi
775
5640
 
776
 
echo "$ac_t""$ijg_cv_have_prototypes" 1>&6
 
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5
 
5642
$as_echo "$ijg_cv_have_prototypes" >&6; }
777
5643
if test $ijg_cv_have_prototypes = yes; then
778
 
  cat >> confdefs.h <<\EOF
779
 
#define HAVE_PROTOTYPES 
780
 
EOF
 
5644
 
 
5645
$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
781
5646
 
782
5647
else
783
5648
  echo Your compiler does not seem to know about function prototypes.
786
5651
  echo "   ./configure  CC='cc -switch'"
787
5652
  echo where -switch is the proper switch.
788
5653
fi
789
 
ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
790
 
echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
791
 
echo "configure:792: checking for stddef.h" >&5
792
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
793
 
  echo $ac_n "(cached) $ac_c" 1>&6
794
 
else
795
 
  cat > conftest.$ac_ext <<EOF
796
 
#line 797 "configure"
797
 
#include "confdefs.h"
798
 
#include <stddef.h>
799
 
EOF
800
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
801
 
{ (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
802
 
ac_err=`grep -v '^ *+' conftest.out`
803
 
if test -z "$ac_err"; then
804
 
  rm -rf conftest*
805
 
  eval "ac_cv_header_$ac_safe=yes"
806
 
else
807
 
  echo "$ac_err" >&5
808
 
  echo "configure: failed program was:" >&5
809
 
  cat conftest.$ac_ext >&5
810
 
  rm -rf conftest*
811
 
  eval "ac_cv_header_$ac_safe=no"
812
 
fi
813
 
rm -f conftest*
814
 
fi
815
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
816
 
  echo "$ac_t""yes" 1>&6
817
 
  cat >> confdefs.h <<\EOF
818
 
#define HAVE_STDDEF_H 
819
 
EOF
820
 
 
821
 
else
822
 
  echo "$ac_t""no" 1>&6
823
 
fi
824
 
 
825
 
ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
826
 
echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
827
 
echo "configure:828: checking for stdlib.h" >&5
828
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
829
 
  echo $ac_n "(cached) $ac_c" 1>&6
830
 
else
831
 
  cat > conftest.$ac_ext <<EOF
832
 
#line 833 "configure"
833
 
#include "confdefs.h"
834
 
#include <stdlib.h>
835
 
EOF
836
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
837
 
{ (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
838
 
ac_err=`grep -v '^ *+' conftest.out`
839
 
if test -z "$ac_err"; then
840
 
  rm -rf conftest*
841
 
  eval "ac_cv_header_$ac_safe=yes"
842
 
else
843
 
  echo "$ac_err" >&5
844
 
  echo "configure: failed program was:" >&5
845
 
  cat conftest.$ac_ext >&5
846
 
  rm -rf conftest*
847
 
  eval "ac_cv_header_$ac_safe=no"
848
 
fi
849
 
rm -f conftest*
850
 
fi
851
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
852
 
  echo "$ac_t""yes" 1>&6
853
 
  cat >> confdefs.h <<\EOF
854
 
#define HAVE_STDLIB_H 
855
 
EOF
856
 
 
857
 
else
858
 
  echo "$ac_t""no" 1>&6
859
 
fi
860
 
 
861
 
ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
862
 
echo $ac_n "checking for string.h""... $ac_c" 1>&6
863
 
echo "configure:864: checking for string.h" >&5
864
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
865
 
  echo $ac_n "(cached) $ac_c" 1>&6
866
 
else
867
 
  cat > conftest.$ac_ext <<EOF
868
 
#line 869 "configure"
869
 
#include "confdefs.h"
870
 
#include <string.h>
871
 
EOF
872
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
873
 
{ (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
874
 
ac_err=`grep -v '^ *+' conftest.out`
875
 
if test -z "$ac_err"; then
876
 
  rm -rf conftest*
877
 
  eval "ac_cv_header_$ac_safe=yes"
878
 
else
879
 
  echo "$ac_err" >&5
880
 
  echo "configure: failed program was:" >&5
881
 
  cat conftest.$ac_ext >&5
882
 
  rm -rf conftest*
883
 
  eval "ac_cv_header_$ac_safe=no"
884
 
fi
885
 
rm -f conftest*
886
 
fi
887
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
888
 
  echo "$ac_t""yes" 1>&6
889
 
  :
890
 
else
891
 
  echo "$ac_t""no" 1>&6
892
 
cat >> confdefs.h <<\EOF
893
 
#define NEED_BSD_STRINGS 
894
 
EOF
895
 
 
896
 
fi
897
 
 
898
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
899
 
echo "configure:900: checking for size_t" >&5
900
 
cat > conftest.$ac_ext <<EOF
901
 
#line 902 "configure"
902
 
#include "confdefs.h"
 
5654
 
 
5655
# Check header files
 
5656
for ac_header in stddef.h stdlib.h locale.h
 
5657
do :
 
5658
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5659
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
5660
eval as_val=\$$as_ac_Header
 
5661
   if test "x$as_val" = x""yes; then :
 
5662
  cat >>confdefs.h <<_ACEOF
 
5663
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5664
_ACEOF
 
5665
 
 
5666
fi
 
5667
 
 
5668
done
 
5669
 
 
5670
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
 
5671
if test "x$ac_cv_header_string_h" = x""yes; then :
 
5672
 
 
5673
else
 
5674
 
 
5675
$as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h
 
5676
 
 
5677
fi
 
5678
 
 
5679
 
 
5680
 
 
5681
# See whether type size_t is defined in any ANSI-standard places;
 
5682
# if not, perhaps it is defined in <sys/types.h>.
 
5683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5
 
5684
$as_echo_n "checking for size_t... " >&6; }
 
5685
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5686
/* end confdefs.h.  */
903
5687
 
904
5688
#ifdef HAVE_STDDEF_H
905
5689
#include <stddef.h>
915
5699
#endif
916
5700
typedef size_t my_size_t;
917
5701
 
918
 
int main() {
919
 
 my_size_t foovar; 
920
 
; return 0; }
921
 
EOF
922
 
if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
923
 
  rm -rf conftest*
 
5702
int
 
5703
main ()
 
5704
{
 
5705
 my_size_t foovar;
 
5706
  ;
 
5707
  return 0;
 
5708
}
 
5709
_ACEOF
 
5710
if ac_fn_c_try_compile "$LINENO"; then :
924
5711
  ijg_size_t_ok=yes
925
5712
else
926
 
  echo "configure: failed program was:" >&5
927
 
  cat conftest.$ac_ext >&5
928
 
  rm -rf conftest*
929
5713
  ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
930
5714
fi
931
 
rm -f conftest*
932
 
echo "$ac_t""$ijg_size_t_ok" 1>&6
 
5715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
 
5717
$as_echo "$ijg_size_t_ok" >&6; }
933
5718
if test "$ijg_size_t_ok" != yes; then
934
 
ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
935
 
echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
936
 
echo "configure:937: checking for sys/types.h" >&5
937
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
938
 
  echo $ac_n "(cached) $ac_c" 1>&6
939
 
else
940
 
  cat > conftest.$ac_ext <<EOF
941
 
#line 942 "configure"
942
 
#include "confdefs.h"
943
 
#include <sys/types.h>
944
 
EOF
945
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
946
 
{ (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
947
 
ac_err=`grep -v '^ *+' conftest.out`
948
 
if test -z "$ac_err"; then
949
 
  rm -rf conftest*
950
 
  eval "ac_cv_header_$ac_safe=yes"
951
 
else
952
 
  echo "$ac_err" >&5
953
 
  echo "configure: failed program was:" >&5
954
 
  cat conftest.$ac_ext >&5
955
 
  rm -rf conftest*
956
 
  eval "ac_cv_header_$ac_safe=no"
957
 
fi
958
 
rm -f conftest*
959
 
fi
960
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
961
 
  echo "$ac_t""yes" 1>&6
962
 
  cat >> confdefs.h <<\EOF
963
 
#define NEED_SYS_TYPES_H 
964
 
EOF
965
 
 
966
 
cat > conftest.$ac_ext <<EOF
967
 
#line 968 "configure"
968
 
#include "confdefs.h"
969
 
#include <sys/types.h>
970
 
EOF
 
5719
ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
 
5720
if test "x$ac_cv_header_sys_types_h" = x""yes; then :
 
5721
 
 
5722
$as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h
 
5723
 
 
5724
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5725
/* end confdefs.h.  */
 
5726
#include <sys/types.h>
 
5727
_ACEOF
971
5728
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
972
 
  egrep "size_t" >/dev/null 2>&1; then
973
 
  rm -rf conftest*
 
5729
  $EGREP "size_t" >/dev/null 2>&1; then :
974
5730
  ijg_size_t_ok="size_t is in sys/types.h"
975
5731
else
976
 
  rm -rf conftest*
977
5732
  ijg_size_t_ok=no
978
5733
fi
979
5734
rm -f conftest*
980
5735
 
981
5736
else
982
 
  echo "$ac_t""no" 1>&6
983
 
ijg_size_t_ok=no
 
5737
  ijg_size_t_ok=no
984
5738
fi
985
5739
 
986
 
echo "$ac_t""$ijg_size_t_ok" 1>&6
 
5740
 
 
5741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5
 
5742
$as_echo "$ijg_size_t_ok" >&6; }
987
5743
if test "$ijg_size_t_ok" = no; then
988
5744
  echo Type size_t is not defined in any of the usual places.
989
5745
  echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
990
5746
fi
991
5747
fi
992
 
echo $ac_n "checking for type unsigned char""... $ac_c" 1>&6
993
 
echo "configure:994: checking for type unsigned char" >&5
994
 
cat > conftest.$ac_ext <<EOF
995
 
#line 996 "configure"
996
 
#include "confdefs.h"
997
 
 
998
 
int main() {
999
 
 unsigned char un_char; 
1000
 
; return 0; }
1001
 
EOF
1002
 
if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1003
 
  rm -rf conftest*
1004
 
  echo "$ac_t""yes" 1>&6
1005
 
cat >> confdefs.h <<\EOF
1006
 
#define HAVE_UNSIGNED_CHAR 
1007
 
EOF
1008
 
 
1009
 
else
1010
 
  echo "configure: failed program was:" >&5
1011
 
  cat conftest.$ac_ext >&5
1012
 
  rm -rf conftest*
1013
 
  echo "$ac_t""no" 1>&6
1014
 
fi
1015
 
rm -f conftest*
1016
 
echo $ac_n "checking for type unsigned short""... $ac_c" 1>&6
1017
 
echo "configure:1018: checking for type unsigned short" >&5
1018
 
cat > conftest.$ac_ext <<EOF
1019
 
#line 1020 "configure"
1020
 
#include "confdefs.h"
1021
 
 
1022
 
int main() {
1023
 
 unsigned short un_short; 
1024
 
; return 0; }
1025
 
EOF
1026
 
if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1027
 
  rm -rf conftest*
1028
 
  echo "$ac_t""yes" 1>&6
1029
 
cat >> confdefs.h <<\EOF
1030
 
#define HAVE_UNSIGNED_SHORT 
1031
 
EOF
1032
 
 
1033
 
else
1034
 
  echo "configure: failed program was:" >&5
1035
 
  cat conftest.$ac_ext >&5
1036
 
  rm -rf conftest*
1037
 
  echo "$ac_t""no" 1>&6
1038
 
fi
1039
 
rm -f conftest*
1040
 
echo $ac_n "checking for type void""... $ac_c" 1>&6
1041
 
echo "configure:1042: checking for type void" >&5
1042
 
cat > conftest.$ac_ext <<EOF
1043
 
#line 1044 "configure"
1044
 
#include "confdefs.h"
 
5748
 
 
5749
# Check compiler characteristics
 
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5
 
5751
$as_echo_n "checking for type unsigned char... " >&6; }
 
5752
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5753
/* end confdefs.h.  */
 
5754
 
 
5755
int
 
5756
main ()
 
5757
{
 
5758
 unsigned char un_char;
 
5759
  ;
 
5760
  return 0;
 
5761
}
 
5762
_ACEOF
 
5763
if ac_fn_c_try_compile "$LINENO"; then :
 
5764
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5765
$as_echo "yes" >&6; }
 
5766
 
 
5767
$as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h
 
5768
 
 
5769
else
 
5770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5771
$as_echo "no" >&6; }
 
5772
fi
 
5773
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5774
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5
 
5775
$as_echo_n "checking for type unsigned short... " >&6; }
 
5776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5777
/* end confdefs.h.  */
 
5778
 
 
5779
int
 
5780
main ()
 
5781
{
 
5782
 unsigned short un_short;
 
5783
  ;
 
5784
  return 0;
 
5785
}
 
5786
_ACEOF
 
5787
if ac_fn_c_try_compile "$LINENO"; then :
 
5788
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5789
$as_echo "yes" >&6; }
 
5790
 
 
5791
$as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h
 
5792
 
 
5793
else
 
5794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5795
$as_echo "no" >&6; }
 
5796
fi
 
5797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5
 
5799
$as_echo_n "checking for type void... " >&6; }
 
5800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5801
/* end confdefs.h.  */
1045
5802
 
1046
5803
/* Caution: a C++ compiler will insist on valid prototypes */
1047
5804
typedef void * void_ptr;        /* check void * */
1064
5821
  (*arg2) (1, 2);               /* check call of fcn returning void */
1065
5822
}
1066
5823
 
1067
 
int main() {
1068
 
 
1069
 
; return 0; }
1070
 
EOF
1071
 
if { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1072
 
  rm -rf conftest*
1073
 
  echo "$ac_t""yes" 1>&6
 
5824
int
 
5825
main ()
 
5826
{
 
5827
 
 
5828
  ;
 
5829
  return 0;
 
5830
}
 
5831
_ACEOF
 
5832
if ac_fn_c_try_compile "$LINENO"; then :
 
5833
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
5834
$as_echo "yes" >&6; }
1074
5835
else
1075
 
  echo "configure: failed program was:" >&5
1076
 
  cat conftest.$ac_ext >&5
1077
 
  rm -rf conftest*
1078
 
  echo "$ac_t""no" 1>&6
1079
 
cat >> confdefs.h <<\EOF
1080
 
#define void char
1081
 
EOF
 
5836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5837
$as_echo "no" >&6; }
 
5838
 
 
5839
$as_echo "#define void char" >>confdefs.h
1082
5840
 
1083
5841
fi
1084
 
rm -f conftest*
1085
 
 
1086
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
1087
 
echo "configure:1088: checking for working const" >&5
1088
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1089
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
5842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
5844
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
5845
if test "${ac_cv_c_const+set}" = set; then :
 
5846
  $as_echo_n "(cached) " >&6
1090
5847
else
1091
 
  cat > conftest.$ac_ext <<EOF
1092
 
#line 1093 "configure"
1093
 
#include "confdefs.h"
1094
 
 
1095
 
int main() {
1096
 
 
1097
 
/* Ultrix mips cc rejects this.  */
1098
 
typedef int charset[2]; const charset x;
1099
 
/* SunOS 4.1.1 cc rejects this.  */
1100
 
char const *const *ccp;
1101
 
char **p;
1102
 
/* NEC SVR4.0.2 mips cc rejects this.  */
1103
 
struct point {int x, y;};
1104
 
static struct point const zero = {0,0};
1105
 
/* AIX XL C 1.02.0.0 rejects this.
1106
 
   It does not let you subtract one const X* pointer from another in an arm
1107
 
   of an if-expression whose if-part is not a constant expression */
1108
 
const char *g = "string";
1109
 
ccp = &g + (g ? g-g : 0);
1110
 
/* HPUX 7.0 cc rejects these. */
1111
 
++ccp;
1112
 
p = (char**) ccp;
1113
 
ccp = (char const *const *) p;
1114
 
{ /* SCO 3.2v4 cc rejects this.  */
1115
 
  char *t;
1116
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
1117
 
 
1118
 
  *t++ = 0;
1119
 
}
1120
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1121
 
  int x[] = {25, 17};
1122
 
  const int *foo = &x[0];
1123
 
  ++foo;
1124
 
}
1125
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1126
 
  typedef const int *iptr;
1127
 
  iptr p = 0;
1128
 
  ++p;
1129
 
}
1130
 
{ /* AIX XL C 1.02.0.0 rejects this saying
1131
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1132
 
  struct s { int j; const int *ap[3]; };
1133
 
  struct s *b; b->j = 5;
1134
 
}
1135
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1136
 
  const int foo = 10;
1137
 
}
1138
 
 
1139
 
; return 0; }
1140
 
EOF
1141
 
if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1142
 
  rm -rf conftest*
 
5848
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5849
/* end confdefs.h.  */
 
5850
 
 
5851
int
 
5852
main ()
 
5853
{
 
5854
/* FIXME: Include the comments suggested by Paul. */
 
5855
#ifndef __cplusplus
 
5856
  /* Ultrix mips cc rejects this.  */
 
5857
  typedef int charset[2];
 
5858
  const charset cs;
 
5859
  /* SunOS 4.1.1 cc rejects this.  */
 
5860
  char const *const *pcpcc;
 
5861
  char **ppc;
 
5862
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
5863
  struct point {int x, y;};
 
5864
  static struct point const zero = {0,0};
 
5865
  /* AIX XL C 1.02.0.0 rejects this.
 
5866
     It does not let you subtract one const X* pointer from another in
 
5867
     an arm of an if-expression whose if-part is not a constant
 
5868
     expression */
 
5869
  const char *g = "string";
 
5870
  pcpcc = &g + (g ? g-g : 0);
 
5871
  /* HPUX 7.0 cc rejects these. */
 
5872
  ++pcpcc;
 
5873
  ppc = (char**) pcpcc;
 
5874
  pcpcc = (char const *const *) ppc;
 
5875
  { /* SCO 3.2v4 cc rejects this.  */
 
5876
    char *t;
 
5877
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
5878
 
 
5879
    *t++ = 0;
 
5880
    if (s) return 0;
 
5881
  }
 
5882
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
5883
    int x[] = {25, 17};
 
5884
    const int *foo = &x[0];
 
5885
    ++foo;
 
5886
  }
 
5887
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
5888
    typedef const int *iptr;
 
5889
    iptr p = 0;
 
5890
    ++p;
 
5891
  }
 
5892
  { /* AIX XL C 1.02.0.0 rejects this saying
 
5893
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
5894
    struct s { int j; const int *ap[3]; };
 
5895
    struct s *b; b->j = 5;
 
5896
  }
 
5897
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
5898
    const int foo = 10;
 
5899
    if (!foo) return 0;
 
5900
  }
 
5901
  return !cs[0] && !zero.x;
 
5902
#endif
 
5903
 
 
5904
  ;
 
5905
  return 0;
 
5906
}
 
5907
_ACEOF
 
5908
if ac_fn_c_try_compile "$LINENO"; then :
1143
5909
  ac_cv_c_const=yes
1144
5910
else
1145
 
  echo "configure: failed program was:" >&5
1146
 
  cat conftest.$ac_ext >&5
1147
 
  rm -rf conftest*
1148
5911
  ac_cv_c_const=no
1149
5912
fi
1150
 
rm -f conftest*
 
5913
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1151
5914
fi
1152
 
 
1153
 
echo "$ac_t""$ac_cv_c_const" 1>&6
 
5915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
5916
$as_echo "$ac_cv_c_const" >&6; }
1154
5917
if test $ac_cv_c_const = no; then
1155
 
  cat >> confdefs.h <<\EOF
1156
 
#define const 
1157
 
EOF
 
5918
 
 
5919
$as_echo "#define const /**/" >>confdefs.h
1158
5920
 
1159
5921
fi
1160
5922
 
1161
 
echo $ac_n "checking for inline""... $ac_c" 1>&6
1162
 
echo "configure:1163: checking for inline" >&5
 
5923
 
 
5924
# Check for non-broken inline under various spellings
 
5925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 
5926
$as_echo_n "checking for inline... " >&6; }
1163
5927
ijg_cv_inline=""
1164
 
cat > conftest.$ac_ext <<EOF
1165
 
#line 1166 "configure"
1166
 
#include "confdefs.h"
 
5928
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5929
/* end confdefs.h.  */
1167
5930
 
1168
 
int main() {
 
5931
int
 
5932
main ()
 
5933
{
1169
5934
} __inline__ int foo() { return 0; }
1170
5935
int bar() { return foo();
1171
 
; return 0; }
1172
 
EOF
1173
 
if { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1174
 
  rm -rf conftest*
 
5936
  ;
 
5937
  return 0;
 
5938
}
 
5939
_ACEOF
 
5940
if ac_fn_c_try_compile "$LINENO"; then :
1175
5941
  ijg_cv_inline="__inline__"
1176
5942
else
1177
 
  echo "configure: failed program was:" >&5
1178
 
  cat conftest.$ac_ext >&5
1179
 
  rm -rf conftest*
1180
 
  cat > conftest.$ac_ext <<EOF
1181
 
#line 1182 "configure"
1182
 
#include "confdefs.h"
 
5943
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5944
/* end confdefs.h.  */
1183
5945
 
1184
 
int main() {
 
5946
int
 
5947
main ()
 
5948
{
1185
5949
} __inline int foo() { return 0; }
1186
5950
int bar() { return foo();
1187
 
; return 0; }
1188
 
EOF
1189
 
if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1190
 
  rm -rf conftest*
 
5951
  ;
 
5952
  return 0;
 
5953
}
 
5954
_ACEOF
 
5955
if ac_fn_c_try_compile "$LINENO"; then :
1191
5956
  ijg_cv_inline="__inline"
1192
5957
else
1193
 
  echo "configure: failed program was:" >&5
1194
 
  cat conftest.$ac_ext >&5
1195
 
  rm -rf conftest*
1196
 
  cat > conftest.$ac_ext <<EOF
1197
 
#line 1198 "configure"
1198
 
#include "confdefs.h"
 
5958
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5959
/* end confdefs.h.  */
1199
5960
 
1200
 
int main() {
 
5961
int
 
5962
main ()
 
5963
{
1201
5964
} inline int foo() { return 0; }
1202
5965
int bar() { return foo();
1203
 
; return 0; }
1204
 
EOF
1205
 
if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1206
 
  rm -rf conftest*
 
5966
  ;
 
5967
  return 0;
 
5968
}
 
5969
_ACEOF
 
5970
if ac_fn_c_try_compile "$LINENO"; then :
1207
5971
  ijg_cv_inline="inline"
1208
 
else
1209
 
  echo "configure: failed program was:" >&5
1210
 
  cat conftest.$ac_ext >&5
1211
 
fi
1212
 
rm -f conftest*
1213
 
fi
1214
 
rm -f conftest*
1215
 
fi
1216
 
rm -f conftest*
1217
 
echo "$ac_t""$ijg_cv_inline" 1>&6
1218
 
cat >> confdefs.h <<EOF
 
5972
fi
 
5973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5974
fi
 
5975
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5976
fi
 
5977
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5
 
5979
$as_echo "$ijg_cv_inline" >&6; }
 
5980
 
 
5981
cat >>confdefs.h <<_ACEOF
1219
5982
#define INLINE $ijg_cv_inline
1220
 
EOF
1221
 
 
1222
 
echo $ac_n "checking for broken incomplete types""... $ac_c" 1>&6
1223
 
echo "configure:1224: checking for broken incomplete types" >&5
1224
 
cat > conftest.$ac_ext <<EOF
1225
 
#line 1226 "configure"
1226
 
#include "confdefs.h"
1227
 
 typedef struct undefined_structure * undef_struct_ptr; 
1228
 
int main() {
1229
 
 
1230
 
; return 0; }
1231
 
EOF
1232
 
if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233
 
  rm -rf conftest*
1234
 
  echo "$ac_t""ok" 1>&6
 
5983
_ACEOF
 
5984
 
 
5985
 
 
5986
# We cannot check for bogus warnings, but at least we can check for errors
 
5987
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5
 
5988
$as_echo_n "checking for broken incomplete types... " >&6; }
 
5989
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5990
/* end confdefs.h.  */
 
5991
 typedef struct undefined_structure * undef_struct_ptr;
 
5992
int
 
5993
main ()
 
5994
{
 
5995
 
 
5996
  ;
 
5997
  return 0;
 
5998
}
 
5999
_ACEOF
 
6000
if ac_fn_c_try_compile "$LINENO"; then :
 
6001
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6002
$as_echo "ok" >&6; }
1235
6003
else
1236
 
  echo "configure: failed program was:" >&5
1237
 
  cat conftest.$ac_ext >&5
1238
 
  rm -rf conftest*
1239
 
  echo "$ac_t""broken" 1>&6
1240
 
cat >> confdefs.h <<\EOF
1241
 
#define INCOMPLETE_TYPES_BROKEN 
1242
 
EOF
 
6004
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5
 
6005
$as_echo "broken" >&6; }
 
6006
 
 
6007
$as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h
1243
6008
 
1244
6009
fi
1245
 
rm -f conftest*
1246
 
echo $ac_n "checking for short external names""... $ac_c" 1>&6
1247
 
echo "configure:1248: checking for short external names" >&5
1248
 
cat > conftest.$ac_ext <<EOF
1249
 
#line 1250 "configure"
1250
 
#include "confdefs.h"
 
6010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6011
 
 
6012
# Test whether global names are unique to at least 15 chars
 
6013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5
 
6014
$as_echo_n "checking for short external names... " >&6; }
 
6015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6016
/* end confdefs.h.  */
1251
6017
 
1252
6018
int possibly_duplicate_function () { return 0; }
1253
6019
int possibly_dupli_function () { return 1; }
1254
6020
 
1255
 
int main() {
1256
 
 
1257
 
; return 0; }
1258
 
EOF
1259
 
if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1260
 
  rm -rf conftest*
1261
 
  echo "$ac_t""ok" 1>&6
 
6021
int
 
6022
main ()
 
6023
{
 
6024
 
 
6025
  ;
 
6026
  return 0;
 
6027
}
 
6028
_ACEOF
 
6029
if ac_fn_c_try_link "$LINENO"; then :
 
6030
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6031
$as_echo "ok" >&6; }
1262
6032
else
1263
 
  echo "configure: failed program was:" >&5
1264
 
  cat conftest.$ac_ext >&5
1265
 
  rm -rf conftest*
1266
 
  echo "$ac_t""short" 1>&6
1267
 
cat >> confdefs.h <<\EOF
1268
 
#define NEED_SHORT_EXTERNAL_NAMES 
1269
 
EOF
 
6033
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5
 
6034
$as_echo "short" >&6; }
 
6035
 
 
6036
$as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h
1270
6037
 
1271
6038
fi
1272
 
rm -f conftest*
1273
 
echo $ac_n "checking to see if char is signed""... $ac_c" 1>&6
1274
 
echo "configure:1275: checking to see if char is signed" >&5
1275
 
if test "$cross_compiling" = yes; then
 
6039
rm -f core conftest.err conftest.$ac_objext \
 
6040
    conftest$ac_exeext conftest.$ac_ext
 
6041
 
 
6042
# Run-time checks
 
6043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5
 
6044
$as_echo_n "checking to see if char is signed... " >&6; }
 
6045
if test "$cross_compiling" = yes; then :
1276
6046
  echo Assuming that char is signed on target machine.
1277
6047
echo If it is unsigned, this will be a little bit inefficient.
1278
6048
 
1279
6049
else
1280
 
  cat > conftest.$ac_ext <<EOF
1281
 
#line 1282 "configure"
1282
 
#include "confdefs.h"
 
6050
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6051
/* end confdefs.h.  */
1283
6052
 
1284
6053
#ifdef HAVE_PROTOTYPES
1285
6054
int is_char_signed (int arg)
1298
6067
  return 1;                     /* assume char is signed otherwise */
1299
6068
}
1300
6069
char signed_char_check = (char) (-67);
1301
 
main() {
 
6070
int main() {
1302
6071
  exit(is_char_signed((int) signed_char_check));
1303
6072
}
1304
 
EOF
1305
 
if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1306
 
then
1307
 
  echo "$ac_t""no" 1>&6
1308
 
cat >> confdefs.h <<\EOF
1309
 
#define CHAR_IS_UNSIGNED 
1310
 
EOF
1311
 
 
1312
 
else
1313
 
  echo "configure: failed program was:" >&5
1314
 
  cat conftest.$ac_ext >&5
1315
 
  rm -fr conftest*
1316
 
  echo "$ac_t""yes" 1>&6
1317
 
fi
1318
 
rm -fr conftest*
1319
 
fi
1320
 
 
1321
 
echo $ac_n "checking to see if right shift is signed""... $ac_c" 1>&6
1322
 
echo "configure:1323: checking to see if right shift is signed" >&5
1323
 
if test "$cross_compiling" = yes; then
1324
 
  echo "$ac_t""Assuming that right shift is signed on target machine." 1>&6
1325
 
else
1326
 
  cat > conftest.$ac_ext <<EOF
1327
 
#line 1328 "configure"
1328
 
#include "confdefs.h"
 
6073
_ACEOF
 
6074
if ac_fn_c_try_run "$LINENO"; then :
 
6075
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6076
$as_echo "no" >&6; }
 
6077
 
 
6078
$as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h
 
6079
 
 
6080
else
 
6081
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6082
$as_echo "yes" >&6; }
 
6083
fi
 
6084
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6085
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6086
fi
 
6087
 
 
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5
 
6089
$as_echo_n "checking to see if right shift is signed... " >&6; }
 
6090
if test "$cross_compiling" = yes; then :
 
6091
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5
 
6092
$as_echo "Assuming that right shift is signed on target machine." >&6; }
 
6093
else
 
6094
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6095
/* end confdefs.h.  */
1329
6096
 
1330
6097
#ifdef HAVE_PROTOTYPES
1331
6098
int is_shifting_signed (long arg)
1350
6117
  printf("I fear the JPEG software will not work at all.\n\n");
1351
6118
  return 0;                     /* try it with unsigned anyway */
1352
6119
}
1353
 
main() {
 
6120
int main() {
1354
6121
  exit(is_shifting_signed(-0x7F7E80B1L));
1355
6122
}
1356
 
EOF
1357
 
if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1358
 
then
1359
 
  echo "$ac_t""no" 1>&6
1360
 
cat >> confdefs.h <<\EOF
1361
 
#define RIGHT_SHIFT_IS_UNSIGNED 
1362
 
EOF
1363
 
 
1364
 
else
1365
 
  echo "configure: failed program was:" >&5
1366
 
  cat conftest.$ac_ext >&5
1367
 
  rm -fr conftest*
1368
 
  echo "$ac_t""yes" 1>&6
1369
 
fi
1370
 
rm -fr conftest*
1371
 
fi
1372
 
 
1373
 
echo $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6
1374
 
echo "configure:1375: checking to see if fopen accepts b spec" >&5
1375
 
if test "$cross_compiling" = yes; then
1376
 
  echo "$ac_t""Assuming that it does." 1>&6
1377
 
else
1378
 
  cat > conftest.$ac_ext <<EOF
1379
 
#line 1380 "configure"
1380
 
#include "confdefs.h"
 
6123
_ACEOF
 
6124
if ac_fn_c_try_run "$LINENO"; then :
 
6125
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6126
$as_echo "no" >&6; }
 
6127
 
 
6128
$as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h
 
6129
 
 
6130
else
 
6131
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6132
$as_echo "yes" >&6; }
 
6133
fi
 
6134
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6135
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6136
fi
 
6137
 
 
6138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5
 
6139
$as_echo_n "checking to see if fopen accepts b spec... " >&6; }
 
6140
if test "$cross_compiling" = yes; then :
 
6141
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5
 
6142
$as_echo "Assuming that it does." >&6; }
 
6143
else
 
6144
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6145
/* end confdefs.h.  */
1381
6146
 
1382
6147
#include <stdio.h>
1383
 
main() {
 
6148
int main() {
1384
6149
  if (fopen("conftestdata", "wb") != NULL)
1385
6150
    exit(0);
1386
6151
  exit(1);
1387
6152
}
1388
 
EOF
1389
 
if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1390
 
then
1391
 
  echo "$ac_t""yes" 1>&6
1392
 
else
1393
 
  echo "configure: failed program was:" >&5
1394
 
  cat conftest.$ac_ext >&5
1395
 
  rm -fr conftest*
1396
 
  echo "$ac_t""no" 1>&6
1397
 
cat >> confdefs.h <<\EOF
1398
 
#define DONT_USE_B_MODE 
1399
 
EOF
1400
 
 
1401
 
fi
1402
 
rm -fr conftest*
1403
 
fi
1404
 
 
1405
 
ac_aux_dir=
1406
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407
 
  if test -f $ac_dir/install-sh; then
1408
 
    ac_aux_dir=$ac_dir
1409
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1410
 
    break
1411
 
  elif test -f $ac_dir/install.sh; then
1412
 
    ac_aux_dir=$ac_dir
1413
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1414
 
    break
1415
 
  fi
1416
 
done
1417
 
if test -z "$ac_aux_dir"; then
1418
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1419
 
fi
1420
 
ac_config_guess=$ac_aux_dir/config.guess
1421
 
ac_config_sub=$ac_aux_dir/config.sub
1422
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1423
 
 
1424
 
# Find a good install program.  We prefer a C program (faster),
1425
 
# so one script is as good as another.  But avoid the broken or
1426
 
# incompatible versions:
1427
 
# SysV /etc/install, /usr/sbin/install
1428
 
# SunOS /usr/etc/install
1429
 
# IRIX /sbin/install
1430
 
# AIX /bin/install
1431
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1432
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1433
 
# ./install, which can be erroneously created by make from ./install.sh.
1434
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1435
 
echo "configure:1436: checking for a BSD compatible install" >&5
1436
 
if test -z "$INSTALL"; then
1437
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1438
 
  echo $ac_n "(cached) $ac_c" 1>&6
1439
 
else
1440
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
 
6153
_ACEOF
 
6154
if ac_fn_c_try_run "$LINENO"; then :
 
6155
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
6156
$as_echo "yes" >&6; }
 
6157
else
 
6158
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6159
$as_echo "no" >&6; }
 
6160
 
 
6161
$as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h
 
6162
 
 
6163
fi
 
6164
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
6165
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
6166
fi
 
6167
 
 
6168
 
 
6169
# Configure libtool
 
6170
enable_win32_dll=yes
 
6171
 
 
6172
case $host in
 
6173
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
 
6174
  if test -n "$ac_tool_prefix"; then
 
6175
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
6176
set dummy ${ac_tool_prefix}as; ac_word=$2
 
6177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6178
$as_echo_n "checking for $ac_word... " >&6; }
 
6179
if test "${ac_cv_prog_AS+set}" = set; then :
 
6180
  $as_echo_n "(cached) " >&6
 
6181
else
 
6182
  if test -n "$AS"; then
 
6183
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
6184
else
 
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6186
for as_dir in $PATH
 
6187
do
 
6188
  IFS=$as_save_IFS
 
6189
  test -z "$as_dir" && as_dir=.
 
6190
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6191
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6192
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
6193
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6194
    break 2
 
6195
  fi
 
6196
done
 
6197
  done
 
6198
IFS=$as_save_IFS
 
6199
 
 
6200
fi
 
6201
fi
 
6202
AS=$ac_cv_prog_AS
 
6203
if test -n "$AS"; then
 
6204
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
 
6205
$as_echo "$AS" >&6; }
 
6206
else
 
6207
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6208
$as_echo "no" >&6; }
 
6209
fi
 
6210
 
 
6211
 
 
6212
fi
 
6213
if test -z "$ac_cv_prog_AS"; then
 
6214
  ac_ct_AS=$AS
 
6215
  # Extract the first word of "as", so it can be a program name with args.
 
6216
set dummy as; ac_word=$2
 
6217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6218
$as_echo_n "checking for $ac_word... " >&6; }
 
6219
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
 
6220
  $as_echo_n "(cached) " >&6
 
6221
else
 
6222
  if test -n "$ac_ct_AS"; then
 
6223
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
6224
else
 
6225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6226
for as_dir in $PATH
 
6227
do
 
6228
  IFS=$as_save_IFS
 
6229
  test -z "$as_dir" && as_dir=.
 
6230
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6231
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6232
    ac_cv_prog_ac_ct_AS="as"
 
6233
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6234
    break 2
 
6235
  fi
 
6236
done
 
6237
  done
 
6238
IFS=$as_save_IFS
 
6239
 
 
6240
fi
 
6241
fi
 
6242
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
6243
if test -n "$ac_ct_AS"; then
 
6244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
 
6245
$as_echo "$ac_ct_AS" >&6; }
 
6246
else
 
6247
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6248
$as_echo "no" >&6; }
 
6249
fi
 
6250
 
 
6251
  if test "x$ac_ct_AS" = x; then
 
6252
    AS="false"
 
6253
  else
 
6254
    case $cross_compiling:$ac_tool_warned in
 
6255
yes:)
 
6256
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6257
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6258
ac_tool_warned=yes ;;
 
6259
esac
 
6260
    AS=$ac_ct_AS
 
6261
  fi
 
6262
else
 
6263
  AS="$ac_cv_prog_AS"
 
6264
fi
 
6265
 
 
6266
  if test -n "$ac_tool_prefix"; then
 
6267
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
6268
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
6269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6270
$as_echo_n "checking for $ac_word... " >&6; }
 
6271
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
 
6272
  $as_echo_n "(cached) " >&6
 
6273
else
 
6274
  if test -n "$DLLTOOL"; then
 
6275
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
6276
else
 
6277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6278
for as_dir in $PATH
 
6279
do
 
6280
  IFS=$as_save_IFS
 
6281
  test -z "$as_dir" && as_dir=.
 
6282
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6283
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6284
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
6285
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6286
    break 2
 
6287
  fi
 
6288
done
 
6289
  done
 
6290
IFS=$as_save_IFS
 
6291
 
 
6292
fi
 
6293
fi
 
6294
DLLTOOL=$ac_cv_prog_DLLTOOL
 
6295
if test -n "$DLLTOOL"; then
 
6296
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
6297
$as_echo "$DLLTOOL" >&6; }
 
6298
else
 
6299
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6300
$as_echo "no" >&6; }
 
6301
fi
 
6302
 
 
6303
 
 
6304
fi
 
6305
if test -z "$ac_cv_prog_DLLTOOL"; then
 
6306
  ac_ct_DLLTOOL=$DLLTOOL
 
6307
  # Extract the first word of "dlltool", so it can be a program name with args.
 
6308
set dummy dlltool; ac_word=$2
 
6309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6310
$as_echo_n "checking for $ac_word... " >&6; }
 
6311
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
 
6312
  $as_echo_n "(cached) " >&6
 
6313
else
 
6314
  if test -n "$ac_ct_DLLTOOL"; then
 
6315
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
6316
else
 
6317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6318
for as_dir in $PATH
 
6319
do
 
6320
  IFS=$as_save_IFS
 
6321
  test -z "$as_dir" && as_dir=.
 
6322
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6323
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6324
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
6325
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6326
    break 2
 
6327
  fi
 
6328
done
 
6329
  done
 
6330
IFS=$as_save_IFS
 
6331
 
 
6332
fi
 
6333
fi
 
6334
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
6335
if test -n "$ac_ct_DLLTOOL"; then
 
6336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
6337
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
6338
else
 
6339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6340
$as_echo "no" >&6; }
 
6341
fi
 
6342
 
 
6343
  if test "x$ac_ct_DLLTOOL" = x; then
 
6344
    DLLTOOL="false"
 
6345
  else
 
6346
    case $cross_compiling:$ac_tool_warned in
 
6347
yes:)
 
6348
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6349
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6350
ac_tool_warned=yes ;;
 
6351
esac
 
6352
    DLLTOOL=$ac_ct_DLLTOOL
 
6353
  fi
 
6354
else
 
6355
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
6356
fi
 
6357
 
 
6358
  if test -n "$ac_tool_prefix"; then
 
6359
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6360
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6362
$as_echo_n "checking for $ac_word... " >&6; }
 
6363
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
6364
  $as_echo_n "(cached) " >&6
 
6365
else
 
6366
  if test -n "$OBJDUMP"; then
 
6367
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6368
else
 
6369
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6370
for as_dir in $PATH
 
6371
do
 
6372
  IFS=$as_save_IFS
 
6373
  test -z "$as_dir" && as_dir=.
 
6374
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6375
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6376
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6377
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6378
    break 2
 
6379
  fi
 
6380
done
 
6381
  done
 
6382
IFS=$as_save_IFS
 
6383
 
 
6384
fi
 
6385
fi
 
6386
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6387
if test -n "$OBJDUMP"; then
 
6388
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
6389
$as_echo "$OBJDUMP" >&6; }
 
6390
else
 
6391
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6392
$as_echo "no" >&6; }
 
6393
fi
 
6394
 
 
6395
 
 
6396
fi
 
6397
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6398
  ac_ct_OBJDUMP=$OBJDUMP
 
6399
  # Extract the first word of "objdump", so it can be a program name with args.
 
6400
set dummy objdump; ac_word=$2
 
6401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6402
$as_echo_n "checking for $ac_word... " >&6; }
 
6403
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
6404
  $as_echo_n "(cached) " >&6
 
6405
else
 
6406
  if test -n "$ac_ct_OBJDUMP"; then
 
6407
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6408
else
 
6409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6410
for as_dir in $PATH
 
6411
do
 
6412
  IFS=$as_save_IFS
 
6413
  test -z "$as_dir" && as_dir=.
 
6414
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6415
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6416
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6417
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6418
    break 2
 
6419
  fi
 
6420
done
 
6421
  done
 
6422
IFS=$as_save_IFS
 
6423
 
 
6424
fi
 
6425
fi
 
6426
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6427
if test -n "$ac_ct_OBJDUMP"; then
 
6428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
6429
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
6430
else
 
6431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6432
$as_echo "no" >&6; }
 
6433
fi
 
6434
 
 
6435
  if test "x$ac_ct_OBJDUMP" = x; then
 
6436
    OBJDUMP="false"
 
6437
  else
 
6438
    case $cross_compiling:$ac_tool_warned in
 
6439
yes:)
 
6440
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6441
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6442
ac_tool_warned=yes ;;
 
6443
esac
 
6444
    OBJDUMP=$ac_ct_OBJDUMP
 
6445
  fi
 
6446
else
 
6447
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6448
fi
 
6449
 
 
6450
  ;;
 
6451
esac
 
6452
 
 
6453
test -z "$AS" && AS=as
 
6454
 
 
6455
 
 
6456
 
 
6457
 
 
6458
 
 
6459
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6460
 
 
6461
 
 
6462
 
 
6463
 
 
6464
 
 
6465
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6466
 
 
6467
 
 
6468
 
 
6469
 
 
6470
 
 
6471
 
 
6472
 
 
6473
case `pwd` in
 
6474
  *\ * | *\     *)
 
6475
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
6476
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
6477
esac
 
6478
 
 
6479
 
 
6480
 
 
6481
macro_version='2.2.6b'
 
6482
macro_revision='1.3017'
 
6483
 
 
6484
 
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
 
 
6492
 
 
6493
 
 
6494
 
 
6495
 
 
6496
ltmain="$ac_aux_dir/ltmain.sh"
 
6497
 
 
6498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
6499
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
6500
if test "${ac_cv_path_SED+set}" = set; then :
 
6501
  $as_echo_n "(cached) " >&6
 
6502
else
 
6503
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
6504
     for ac_i in 1 2 3 4 5 6 7; do
 
6505
       ac_script="$ac_script$as_nl$ac_script"
 
6506
     done
 
6507
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
6508
     { ac_script=; unset ac_script;}
 
6509
     if test -z "$SED"; then
 
6510
  ac_path_SED_found=false
 
6511
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6513
for as_dir in $PATH
 
6514
do
 
6515
  IFS=$as_save_IFS
 
6516
  test -z "$as_dir" && as_dir=.
 
6517
    for ac_prog in sed gsed; do
 
6518
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6519
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
6520
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
6521
# Check for GNU ac_path_SED and select it if it is found.
 
6522
  # Check for GNU $ac_path_SED
 
6523
case `"$ac_path_SED" --version 2>&1` in
 
6524
*GNU*)
 
6525
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
6526
*)
 
6527
  ac_count=0
 
6528
  $as_echo_n 0123456789 >"conftest.in"
 
6529
  while :
 
6530
  do
 
6531
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6532
    mv "conftest.tmp" "conftest.in"
 
6533
    cp "conftest.in" "conftest.nl"
 
6534
    $as_echo '' >> "conftest.nl"
 
6535
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6536
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6537
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6538
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
6539
      # Best one so far, save it but keep looking for a better one
 
6540
      ac_cv_path_SED="$ac_path_SED"
 
6541
      ac_path_SED_max=$ac_count
 
6542
    fi
 
6543
    # 10*(2^10) chars as input seems more than enough
 
6544
    test $ac_count -gt 10 && break
 
6545
  done
 
6546
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6547
esac
 
6548
 
 
6549
      $ac_path_SED_found && break 3
 
6550
    done
 
6551
  done
 
6552
  done
 
6553
IFS=$as_save_IFS
 
6554
  if test -z "$ac_cv_path_SED"; then
 
6555
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
6556
  fi
 
6557
else
 
6558
  ac_cv_path_SED=$SED
 
6559
fi
 
6560
 
 
6561
fi
 
6562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
6563
$as_echo "$ac_cv_path_SED" >&6; }
 
6564
 SED="$ac_cv_path_SED"
 
6565
  rm -f conftest.sed
 
6566
 
 
6567
test -z "$SED" && SED=sed
 
6568
Xsed="$SED -e 1s/^X//"
 
6569
 
 
6570
 
 
6571
 
 
6572
 
 
6573
 
 
6574
 
 
6575
 
 
6576
 
 
6577
 
 
6578
 
 
6579
 
 
6580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
6581
$as_echo_n "checking for fgrep... " >&6; }
 
6582
if test "${ac_cv_path_FGREP+set}" = set; then :
 
6583
  $as_echo_n "(cached) " >&6
 
6584
else
 
6585
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
6586
   then ac_cv_path_FGREP="$GREP -F"
 
6587
   else
 
6588
     if test -z "$FGREP"; then
 
6589
  ac_path_FGREP_found=false
 
6590
  # Loop through the user's path and test for each of PROGNAME-LIST
 
6591
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6592
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
6593
do
 
6594
  IFS=$as_save_IFS
 
6595
  test -z "$as_dir" && as_dir=.
 
6596
    for ac_prog in fgrep; do
 
6597
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6598
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
6599
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
6600
# Check for GNU ac_path_FGREP and select it if it is found.
 
6601
  # Check for GNU $ac_path_FGREP
 
6602
case `"$ac_path_FGREP" --version 2>&1` in
 
6603
*GNU*)
 
6604
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
6605
*)
 
6606
  ac_count=0
 
6607
  $as_echo_n 0123456789 >"conftest.in"
 
6608
  while :
 
6609
  do
 
6610
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
6611
    mv "conftest.tmp" "conftest.in"
 
6612
    cp "conftest.in" "conftest.nl"
 
6613
    $as_echo 'FGREP' >> "conftest.nl"
 
6614
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
6615
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
6616
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
6617
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
6618
      # Best one so far, save it but keep looking for a better one
 
6619
      ac_cv_path_FGREP="$ac_path_FGREP"
 
6620
      ac_path_FGREP_max=$ac_count
 
6621
    fi
 
6622
    # 10*(2^10) chars as input seems more than enough
 
6623
    test $ac_count -gt 10 && break
 
6624
  done
 
6625
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
6626
esac
 
6627
 
 
6628
      $ac_path_FGREP_found && break 3
 
6629
    done
 
6630
  done
 
6631
  done
 
6632
IFS=$as_save_IFS
 
6633
  if test -z "$ac_cv_path_FGREP"; then
 
6634
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
6635
  fi
 
6636
else
 
6637
  ac_cv_path_FGREP=$FGREP
 
6638
fi
 
6639
 
 
6640
   fi
 
6641
fi
 
6642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
6643
$as_echo "$ac_cv_path_FGREP" >&6; }
 
6644
 FGREP="$ac_cv_path_FGREP"
 
6645
 
 
6646
 
 
6647
test -z "$GREP" && GREP=grep
 
6648
 
 
6649
 
 
6650
 
 
6651
 
 
6652
 
 
6653
 
 
6654
 
 
6655
 
 
6656
 
 
6657
 
 
6658
 
 
6659
 
 
6660
 
 
6661
 
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
 
 
6667
# Check whether --with-gnu-ld was given.
 
6668
if test "${with_gnu_ld+set}" = set; then :
 
6669
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
6670
else
 
6671
  with_gnu_ld=no
 
6672
fi
 
6673
 
 
6674
ac_prog=ld
 
6675
if test "$GCC" = yes; then
 
6676
  # Check if gcc -print-prog-name=ld gives a path.
 
6677
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
6678
$as_echo_n "checking for ld used by $CC... " >&6; }
 
6679
  case $host in
 
6680
  *-*-mingw*)
 
6681
    # gcc leaves a trailing carriage return which upsets mingw
 
6682
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
6683
  *)
 
6684
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
6685
  esac
 
6686
  case $ac_prog in
 
6687
    # Accept absolute paths.
 
6688
    [\\/]* | ?:[\\/]*)
 
6689
      re_direlt='/[^/][^/]*/\.\./'
 
6690
      # Canonicalize the pathname of ld
 
6691
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
6692
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
6693
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
6694
      done
 
6695
      test -z "$LD" && LD="$ac_prog"
 
6696
      ;;
 
6697
  "")
 
6698
    # If it fails, then pretend we aren't using GCC.
 
6699
    ac_prog=ld
 
6700
    ;;
 
6701
  *)
 
6702
    # If it is relative, then search for the first ld in PATH.
 
6703
    with_gnu_ld=unknown
 
6704
    ;;
 
6705
  esac
 
6706
elif test "$with_gnu_ld" = yes; then
 
6707
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
6708
$as_echo_n "checking for GNU ld... " >&6; }
 
6709
else
 
6710
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
6711
$as_echo_n "checking for non-GNU ld... " >&6; }
 
6712
fi
 
6713
if test "${lt_cv_path_LD+set}" = set; then :
 
6714
  $as_echo_n "(cached) " >&6
 
6715
else
 
6716
  if test -z "$LD"; then
 
6717
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1441
6718
  for ac_dir in $PATH; do
1442
 
    # Account for people who put trailing slashes in PATH elements.
1443
 
    case "$ac_dir/" in
1444
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1445
 
    *)
1446
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1447
 
      for ac_prog in ginstall installbsd scoinst install; do
1448
 
        if test -f $ac_dir/$ac_prog; then
1449
 
          if test $ac_prog = install &&
1450
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1451
 
            # AIX install.  It has an incompatible calling convention.
1452
 
            # OSF/1 installbsd also uses dspmsg, but is usable.
1453
 
            :
1454
 
          else
1455
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1456
 
            break 2
1457
 
          fi
1458
 
        fi
1459
 
      done
 
6719
    IFS="$lt_save_ifs"
 
6720
    test -z "$ac_dir" && ac_dir=.
 
6721
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
6722
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6723
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
6724
      # but apparently some variants of GNU ld only accept -v.
 
6725
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
6726
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6727
      *GNU* | *'with BFD'*)
 
6728
        test "$with_gnu_ld" != no && break
 
6729
        ;;
 
6730
      *)
 
6731
        test "$with_gnu_ld" != yes && break
 
6732
        ;;
 
6733
      esac
 
6734
    fi
 
6735
  done
 
6736
  IFS="$lt_save_ifs"
 
6737
else
 
6738
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6739
fi
 
6740
fi
 
6741
 
 
6742
LD="$lt_cv_path_LD"
 
6743
if test -n "$LD"; then
 
6744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
6745
$as_echo "$LD" >&6; }
 
6746
else
 
6747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6748
$as_echo "no" >&6; }
 
6749
fi
 
6750
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
 
6751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
6752
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
6753
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
 
6754
  $as_echo_n "(cached) " >&6
 
6755
else
 
6756
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
6757
case `$LD -v 2>&1 </dev/null` in
 
6758
*GNU* | *'with BFD'*)
 
6759
  lt_cv_prog_gnu_ld=yes
 
6760
  ;;
 
6761
*)
 
6762
  lt_cv_prog_gnu_ld=no
 
6763
  ;;
 
6764
esac
 
6765
fi
 
6766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
6767
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
6768
with_gnu_ld=$lt_cv_prog_gnu_ld
 
6769
 
 
6770
 
 
6771
 
 
6772
 
 
6773
 
 
6774
 
 
6775
 
 
6776
 
 
6777
 
 
6778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
6779
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
6780
if test "${lt_cv_path_NM+set}" = set; then :
 
6781
  $as_echo_n "(cached) " >&6
 
6782
else
 
6783
  if test -n "$NM"; then
 
6784
  # Let the user override the test.
 
6785
  lt_cv_path_NM="$NM"
 
6786
else
 
6787
  lt_nm_to_check="${ac_tool_prefix}nm"
 
6788
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
6789
    lt_nm_to_check="$lt_nm_to_check nm"
 
6790
  fi
 
6791
  for lt_tmp_nm in $lt_nm_to_check; do
 
6792
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6793
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
6794
      IFS="$lt_save_ifs"
 
6795
      test -z "$ac_dir" && ac_dir=.
 
6796
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
6797
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6798
        # Check to see if the nm accepts a BSD-compat flag.
 
6799
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6800
        #   nm: unknown option "B" ignored
 
6801
        # Tru64's nm complains that /dev/null is an invalid object file
 
6802
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6803
        */dev/null* | *'Invalid file or object type'*)
 
6804
          lt_cv_path_NM="$tmp_nm -B"
 
6805
          break
 
6806
          ;;
 
6807
        *)
 
6808
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6809
          */dev/null*)
 
6810
            lt_cv_path_NM="$tmp_nm -p"
 
6811
            break
 
6812
            ;;
 
6813
          *)
 
6814
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6815
            continue # so that we can try to find one that supports BSD flags
 
6816
            ;;
 
6817
          esac
 
6818
          ;;
 
6819
        esac
 
6820
      fi
 
6821
    done
 
6822
    IFS="$lt_save_ifs"
 
6823
  done
 
6824
  : ${lt_cv_path_NM=no}
 
6825
fi
 
6826
fi
 
6827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
6828
$as_echo "$lt_cv_path_NM" >&6; }
 
6829
if test "$lt_cv_path_NM" != "no"; then
 
6830
  NM="$lt_cv_path_NM"
 
6831
else
 
6832
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
6833
  if test -n "$ac_tool_prefix"; then
 
6834
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
6835
  do
 
6836
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6837
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6839
$as_echo_n "checking for $ac_word... " >&6; }
 
6840
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
 
6841
  $as_echo_n "(cached) " >&6
 
6842
else
 
6843
  if test -n "$DUMPBIN"; then
 
6844
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
6845
else
 
6846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6847
for as_dir in $PATH
 
6848
do
 
6849
  IFS=$as_save_IFS
 
6850
  test -z "$as_dir" && as_dir=.
 
6851
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6852
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6853
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
6854
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6855
    break 2
 
6856
  fi
 
6857
done
 
6858
  done
 
6859
IFS=$as_save_IFS
 
6860
 
 
6861
fi
 
6862
fi
 
6863
DUMPBIN=$ac_cv_prog_DUMPBIN
 
6864
if test -n "$DUMPBIN"; then
 
6865
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
6866
$as_echo "$DUMPBIN" >&6; }
 
6867
else
 
6868
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6869
$as_echo "no" >&6; }
 
6870
fi
 
6871
 
 
6872
 
 
6873
    test -n "$DUMPBIN" && break
 
6874
  done
 
6875
fi
 
6876
if test -z "$DUMPBIN"; then
 
6877
  ac_ct_DUMPBIN=$DUMPBIN
 
6878
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
6879
do
 
6880
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6881
set dummy $ac_prog; ac_word=$2
 
6882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6883
$as_echo_n "checking for $ac_word... " >&6; }
 
6884
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
 
6885
  $as_echo_n "(cached) " >&6
 
6886
else
 
6887
  if test -n "$ac_ct_DUMPBIN"; then
 
6888
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
6889
else
 
6890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6891
for as_dir in $PATH
 
6892
do
 
6893
  IFS=$as_save_IFS
 
6894
  test -z "$as_dir" && as_dir=.
 
6895
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6896
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6897
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
6898
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6899
    break 2
 
6900
  fi
 
6901
done
 
6902
  done
 
6903
IFS=$as_save_IFS
 
6904
 
 
6905
fi
 
6906
fi
 
6907
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
6908
if test -n "$ac_ct_DUMPBIN"; then
 
6909
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
6910
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
6911
else
 
6912
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6913
$as_echo "no" >&6; }
 
6914
fi
 
6915
 
 
6916
 
 
6917
  test -n "$ac_ct_DUMPBIN" && break
 
6918
done
 
6919
 
 
6920
  if test "x$ac_ct_DUMPBIN" = x; then
 
6921
    DUMPBIN=":"
 
6922
  else
 
6923
    case $cross_compiling:$ac_tool_warned in
 
6924
yes:)
 
6925
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6926
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6927
ac_tool_warned=yes ;;
 
6928
esac
 
6929
    DUMPBIN=$ac_ct_DUMPBIN
 
6930
  fi
 
6931
fi
 
6932
 
 
6933
 
 
6934
  if test "$DUMPBIN" != ":"; then
 
6935
    NM="$DUMPBIN"
 
6936
  fi
 
6937
fi
 
6938
test -z "$NM" && NM=nm
 
6939
 
 
6940
 
 
6941
 
 
6942
 
 
6943
 
 
6944
 
 
6945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
6946
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
6947
if test "${lt_cv_nm_interface+set}" = set; then :
 
6948
  $as_echo_n "(cached) " >&6
 
6949
else
 
6950
  lt_cv_nm_interface="BSD nm"
 
6951
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6952
  (eval echo "\"\$as_me:6952: $ac_compile\"" >&5)
 
6953
  (eval "$ac_compile" 2>conftest.err)
 
6954
  cat conftest.err >&5
 
6955
  (eval echo "\"\$as_me:6955: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6956
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
6957
  cat conftest.err >&5
 
6958
  (eval echo "\"\$as_me:6958: output\"" >&5)
 
6959
  cat conftest.out >&5
 
6960
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
6961
    lt_cv_nm_interface="MS dumpbin"
 
6962
  fi
 
6963
  rm -f conftest*
 
6964
fi
 
6965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
6966
$as_echo "$lt_cv_nm_interface" >&6; }
 
6967
 
 
6968
# find the maximum length of command line arguments
 
6969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
6970
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6971
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
 
6972
  $as_echo_n "(cached) " >&6
 
6973
else
 
6974
    i=0
 
6975
  teststring="ABCD"
 
6976
 
 
6977
  case $build_os in
 
6978
  msdosdjgpp*)
 
6979
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6980
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6981
    # during glob expansion).  Even if it were fixed, the result of this
 
6982
    # check would be larger than it should be.
 
6983
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6984
    ;;
 
6985
 
 
6986
  gnu*)
 
6987
    # Under GNU Hurd, this test is not required because there is
 
6988
    # no limit to the length of command line arguments.
 
6989
    # Libtool will interpret -1 as no limit whatsoever
 
6990
    lt_cv_sys_max_cmd_len=-1;
 
6991
    ;;
 
6992
 
 
6993
  cygwin* | mingw* | cegcc*)
 
6994
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6995
    # about 5 minutes as the teststring grows exponentially.
 
6996
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6997
    # you end up with a "frozen" computer, even though with patience
 
6998
    # the test eventually succeeds (with a max line length of 256k).
 
6999
    # Instead, let's just punt: use the minimum linelength reported by
 
7000
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7001
    lt_cv_sys_max_cmd_len=8192;
 
7002
    ;;
 
7003
 
 
7004
  amigaos*)
 
7005
    # On AmigaOS with pdksh, this test takes hours, literally.
 
7006
    # So we just punt and use a minimum line length of 8192.
 
7007
    lt_cv_sys_max_cmd_len=8192;
 
7008
    ;;
 
7009
 
 
7010
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
7011
    # This has been around since 386BSD, at least.  Likely further.
 
7012
    if test -x /sbin/sysctl; then
 
7013
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
7014
    elif test -x /usr/sbin/sysctl; then
 
7015
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
7016
    else
 
7017
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
7018
    fi
 
7019
    # And add a safety zone
 
7020
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7021
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7022
    ;;
 
7023
 
 
7024
  interix*)
 
7025
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
7026
    lt_cv_sys_max_cmd_len=196608
 
7027
    ;;
 
7028
 
 
7029
  osf*)
 
7030
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
7031
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
7032
    # nice to cause kernel panics so lets avoid the loop below.
 
7033
    # First set a reasonable default.
 
7034
    lt_cv_sys_max_cmd_len=16384
 
7035
    #
 
7036
    if test -x /sbin/sysconfig; then
 
7037
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
7038
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
7039
      esac
 
7040
    fi
 
7041
    ;;
 
7042
  sco3.2v5*)
 
7043
    lt_cv_sys_max_cmd_len=102400
 
7044
    ;;
 
7045
  sysv5* | sco5v6* | sysv4.2uw2*)
 
7046
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
7047
    if test -n "$kargmax"; then
 
7048
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
7049
    else
 
7050
      lt_cv_sys_max_cmd_len=32768
 
7051
    fi
 
7052
    ;;
 
7053
  *)
 
7054
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
7055
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
7056
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7057
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
7058
    else
 
7059
      # Make teststring a little bigger before we do anything with it.
 
7060
      # a 1K string should be a reasonable start.
 
7061
      for i in 1 2 3 4 5 6 7 8 ; do
 
7062
        teststring=$teststring$teststring
 
7063
      done
 
7064
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7065
      # If test is not a shell built-in, we'll probably end up computing a
 
7066
      # maximum length that is only half of the actual maximum length, but
 
7067
      # we can't tell.
 
7068
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
7069
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
7070
              test $i != 17 # 1/2 MB should be enough
 
7071
      do
 
7072
        i=`expr $i + 1`
 
7073
        teststring=$teststring$teststring
 
7074
      done
 
7075
      # Only check the string length outside the loop.
 
7076
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
7077
      teststring=
 
7078
      # Add a significant safety factor because C++ compilers can tack on
 
7079
      # massive amounts of additional arguments before passing them to the
 
7080
      # linker.  It appears as though 1/2 is a usable value.
 
7081
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7082
    fi
 
7083
    ;;
 
7084
  esac
 
7085
 
 
7086
fi
 
7087
 
 
7088
if test -n $lt_cv_sys_max_cmd_len ; then
 
7089
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
7090
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
7091
else
 
7092
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
7093
$as_echo "none" >&6; }
 
7094
fi
 
7095
max_cmd_len=$lt_cv_sys_max_cmd_len
 
7096
 
 
7097
 
 
7098
 
 
7099
 
 
7100
 
 
7101
 
 
7102
: ${CP="cp -f"}
 
7103
: ${MV="mv -f"}
 
7104
: ${RM="rm -f"}
 
7105
 
 
7106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
7107
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
7108
# Try some XSI features
 
7109
xsi_shell=no
 
7110
( _lt_dummy="a/b/c"
 
7111
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
7112
      = c,a/b,, \
 
7113
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
7114
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
7115
  && xsi_shell=yes
 
7116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
7117
$as_echo "$xsi_shell" >&6; }
 
7118
 
 
7119
 
 
7120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
7121
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
7122
lt_shell_append=no
 
7123
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
7124
    >/dev/null 2>&1 \
 
7125
  && lt_shell_append=yes
 
7126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
7127
$as_echo "$lt_shell_append" >&6; }
 
7128
 
 
7129
 
 
7130
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7131
  lt_unset=unset
 
7132
else
 
7133
  lt_unset=false
 
7134
fi
 
7135
 
 
7136
 
 
7137
 
 
7138
 
 
7139
 
 
7140
# test EBCDIC or ASCII
 
7141
case `echo X|tr X '\101'` in
 
7142
 A) # ASCII based system
 
7143
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
7144
  lt_SP2NL='tr \040 \012'
 
7145
  lt_NL2SP='tr \015\012 \040\040'
 
7146
  ;;
 
7147
 *) # EBCDIC based system
 
7148
  lt_SP2NL='tr \100 \n'
 
7149
  lt_NL2SP='tr \r\n \100\100'
 
7150
  ;;
 
7151
esac
 
7152
 
 
7153
 
 
7154
 
 
7155
 
 
7156
 
 
7157
 
 
7158
 
 
7159
 
 
7160
 
 
7161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
7162
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
7163
if test "${lt_cv_ld_reload_flag+set}" = set; then :
 
7164
  $as_echo_n "(cached) " >&6
 
7165
else
 
7166
  lt_cv_ld_reload_flag='-r'
 
7167
fi
 
7168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
7169
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
7170
reload_flag=$lt_cv_ld_reload_flag
 
7171
case $reload_flag in
 
7172
"" | " "*) ;;
 
7173
*) reload_flag=" $reload_flag" ;;
 
7174
esac
 
7175
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7176
case $host_os in
 
7177
  darwin*)
 
7178
    if test "$GCC" = yes; then
 
7179
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
7180
    else
 
7181
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7182
    fi
 
7183
    ;;
 
7184
esac
 
7185
 
 
7186
 
 
7187
 
 
7188
 
 
7189
 
 
7190
 
 
7191
 
 
7192
 
 
7193
 
 
7194
if test -n "$ac_tool_prefix"; then
 
7195
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
7196
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
7197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7198
$as_echo_n "checking for $ac_word... " >&6; }
 
7199
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
 
7200
  $as_echo_n "(cached) " >&6
 
7201
else
 
7202
  if test -n "$OBJDUMP"; then
 
7203
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
7204
else
 
7205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7206
for as_dir in $PATH
 
7207
do
 
7208
  IFS=$as_save_IFS
 
7209
  test -z "$as_dir" && as_dir=.
 
7210
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7211
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7212
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
7213
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7214
    break 2
 
7215
  fi
 
7216
done
 
7217
  done
 
7218
IFS=$as_save_IFS
 
7219
 
 
7220
fi
 
7221
fi
 
7222
OBJDUMP=$ac_cv_prog_OBJDUMP
 
7223
if test -n "$OBJDUMP"; then
 
7224
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
7225
$as_echo "$OBJDUMP" >&6; }
 
7226
else
 
7227
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7228
$as_echo "no" >&6; }
 
7229
fi
 
7230
 
 
7231
 
 
7232
fi
 
7233
if test -z "$ac_cv_prog_OBJDUMP"; then
 
7234
  ac_ct_OBJDUMP=$OBJDUMP
 
7235
  # Extract the first word of "objdump", so it can be a program name with args.
 
7236
set dummy objdump; ac_word=$2
 
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7238
$as_echo_n "checking for $ac_word... " >&6; }
 
7239
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
 
7240
  $as_echo_n "(cached) " >&6
 
7241
else
 
7242
  if test -n "$ac_ct_OBJDUMP"; then
 
7243
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
7244
else
 
7245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7246
for as_dir in $PATH
 
7247
do
 
7248
  IFS=$as_save_IFS
 
7249
  test -z "$as_dir" && as_dir=.
 
7250
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7252
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
7253
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7254
    break 2
 
7255
  fi
 
7256
done
 
7257
  done
 
7258
IFS=$as_save_IFS
 
7259
 
 
7260
fi
 
7261
fi
 
7262
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
7263
if test -n "$ac_ct_OBJDUMP"; then
 
7264
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
7265
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
7266
else
 
7267
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7268
$as_echo "no" >&6; }
 
7269
fi
 
7270
 
 
7271
  if test "x$ac_ct_OBJDUMP" = x; then
 
7272
    OBJDUMP="false"
 
7273
  else
 
7274
    case $cross_compiling:$ac_tool_warned in
 
7275
yes:)
 
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7277
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7278
ac_tool_warned=yes ;;
 
7279
esac
 
7280
    OBJDUMP=$ac_ct_OBJDUMP
 
7281
  fi
 
7282
else
 
7283
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
7284
fi
 
7285
 
 
7286
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7287
 
 
7288
 
 
7289
 
 
7290
 
 
7291
 
 
7292
 
 
7293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
7294
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
7295
if test "${lt_cv_deplibs_check_method+set}" = set; then :
 
7296
  $as_echo_n "(cached) " >&6
 
7297
else
 
7298
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
7299
lt_cv_file_magic_test_file=
 
7300
lt_cv_deplibs_check_method='unknown'
 
7301
# Need to set the preceding variable on all platforms that support
 
7302
# interlibrary dependencies.
 
7303
# 'none' -- dependencies not supported.
 
7304
# `unknown' -- same as none, but documents that we really don't know.
 
7305
# 'pass_all' -- all dependencies passed with no checks.
 
7306
# 'test_compile' -- check by making test program.
 
7307
# 'file_magic [[regex]]' -- check by looking for files in library path
 
7308
# which responds to the $file_magic_cmd with a given extended regex.
 
7309
# If you have `file' or equivalent on your system and you're not sure
 
7310
# whether `pass_all' will *always* work, you probably want this one.
 
7311
 
 
7312
case $host_os in
 
7313
aix[4-9]*)
 
7314
  lt_cv_deplibs_check_method=pass_all
 
7315
  ;;
 
7316
 
 
7317
beos*)
 
7318
  lt_cv_deplibs_check_method=pass_all
 
7319
  ;;
 
7320
 
 
7321
bsdi[45]*)
 
7322
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
7323
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
7324
  lt_cv_file_magic_test_file=/shlib/libc.so
 
7325
  ;;
 
7326
 
 
7327
cygwin*)
 
7328
  # func_win32_libid is a shell function defined in ltmain.sh
 
7329
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7330
  lt_cv_file_magic_cmd='func_win32_libid'
 
7331
  ;;
 
7332
 
 
7333
mingw* | pw32*)
 
7334
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
7335
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
7336
  # unless we find 'file', for example because we are cross-compiling.
 
7337
  if ( file / ) >/dev/null 2>&1; then
 
7338
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
7339
    lt_cv_file_magic_cmd='func_win32_libid'
 
7340
  else
 
7341
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
7342
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
7343
  fi
 
7344
  ;;
 
7345
 
 
7346
cegcc)
 
7347
  # use the weaker test based on 'objdump'. See mingw*.
 
7348
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
7349
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
7350
  ;;
 
7351
 
 
7352
darwin* | rhapsody*)
 
7353
  lt_cv_deplibs_check_method=pass_all
 
7354
  ;;
 
7355
 
 
7356
freebsd* | dragonfly*)
 
7357
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
7358
    case $host_cpu in
 
7359
    i*86 )
 
7360
      # Not sure whether the presence of OpenBSD here was a mistake.
 
7361
      # Let's accept both of them until this is cleared up.
 
7362
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
7363
      lt_cv_file_magic_cmd=/usr/bin/file
 
7364
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1460
7365
      ;;
1461
7366
    esac
1462
 
  done
1463
 
  IFS="$ac_save_IFS"
1464
 
 
1465
 
fi
1466
 
  if test "${ac_cv_path_install+set}" = set; then
1467
 
    INSTALL="$ac_cv_path_install"
1468
 
  else
1469
 
    # As a last resort, use the slow shell script.  We don't cache a
1470
 
    # path for INSTALL within a source directory, because that will
1471
 
    # break other packages using the cache if that directory is
1472
 
    # removed, or if the path is relative.
1473
 
    INSTALL="$ac_install_sh"
1474
 
  fi
1475
 
fi
1476
 
echo "$ac_t""$INSTALL" 1>&6
1477
 
 
1478
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1479
 
# It thinks the first close brace ends the variable substitution.
1480
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1481
 
 
1482
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1483
 
 
1484
 
# Extract the first word of "ranlib", so it can be a program name with args.
1485
 
set dummy ranlib; ac_word=$2
1486
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487
 
echo "configure:1488: checking for $ac_word" >&5
1488
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1489
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7367
  else
 
7368
    lt_cv_deplibs_check_method=pass_all
 
7369
  fi
 
7370
  ;;
 
7371
 
 
7372
gnu*)
 
7373
  lt_cv_deplibs_check_method=pass_all
 
7374
  ;;
 
7375
 
 
7376
hpux10.20* | hpux11*)
 
7377
  lt_cv_file_magic_cmd=/usr/bin/file
 
7378
  case $host_cpu in
 
7379
  ia64*)
 
7380
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
7381
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
7382
    ;;
 
7383
  hppa*64*)
 
7384
    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]'
 
7385
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
7386
    ;;
 
7387
  *)
 
7388
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
7389
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
7390
    ;;
 
7391
  esac
 
7392
  ;;
 
7393
 
 
7394
interix[3-9]*)
 
7395
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
7396
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
7397
  ;;
 
7398
 
 
7399
irix5* | irix6* | nonstopux*)
 
7400
  case $LD in
 
7401
  *-32|*"-32 ") libmagic=32-bit;;
 
7402
  *-n32|*"-n32 ") libmagic=N32;;
 
7403
  *-64|*"-64 ") libmagic=64-bit;;
 
7404
  *) libmagic=never-match;;
 
7405
  esac
 
7406
  lt_cv_deplibs_check_method=pass_all
 
7407
  ;;
 
7408
 
 
7409
# This must be Linux ELF.
 
7410
linux* | k*bsd*-gnu)
 
7411
  lt_cv_deplibs_check_method=pass_all
 
7412
  ;;
 
7413
 
 
7414
netbsd*)
 
7415
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
7416
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7417
  else
 
7418
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
7419
  fi
 
7420
  ;;
 
7421
 
 
7422
newos6*)
 
7423
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
7424
  lt_cv_file_magic_cmd=/usr/bin/file
 
7425
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
7426
  ;;
 
7427
 
 
7428
*nto* | *qnx*)
 
7429
  lt_cv_deplibs_check_method=pass_all
 
7430
  ;;
 
7431
 
 
7432
openbsd*)
 
7433
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7434
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
7435
  else
 
7436
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
7437
  fi
 
7438
  ;;
 
7439
 
 
7440
osf3* | osf4* | osf5*)
 
7441
  lt_cv_deplibs_check_method=pass_all
 
7442
  ;;
 
7443
 
 
7444
rdos*)
 
7445
  lt_cv_deplibs_check_method=pass_all
 
7446
  ;;
 
7447
 
 
7448
solaris*)
 
7449
  lt_cv_deplibs_check_method=pass_all
 
7450
  ;;
 
7451
 
 
7452
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
7453
  lt_cv_deplibs_check_method=pass_all
 
7454
  ;;
 
7455
 
 
7456
sysv4 | sysv4.3*)
 
7457
  case $host_vendor in
 
7458
  motorola)
 
7459
    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]'
 
7460
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
7461
    ;;
 
7462
  ncr)
 
7463
    lt_cv_deplibs_check_method=pass_all
 
7464
    ;;
 
7465
  sequent)
 
7466
    lt_cv_file_magic_cmd='/bin/file'
 
7467
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
7468
    ;;
 
7469
  sni)
 
7470
    lt_cv_file_magic_cmd='/bin/file'
 
7471
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
7472
    lt_cv_file_magic_test_file=/lib/libc.so
 
7473
    ;;
 
7474
  siemens)
 
7475
    lt_cv_deplibs_check_method=pass_all
 
7476
    ;;
 
7477
  pc)
 
7478
    lt_cv_deplibs_check_method=pass_all
 
7479
    ;;
 
7480
  esac
 
7481
  ;;
 
7482
 
 
7483
tpf*)
 
7484
  lt_cv_deplibs_check_method=pass_all
 
7485
  ;;
 
7486
esac
 
7487
 
 
7488
fi
 
7489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
7490
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
7491
file_magic_cmd=$lt_cv_file_magic_cmd
 
7492
deplibs_check_method=$lt_cv_deplibs_check_method
 
7493
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
7494
 
 
7495
 
 
7496
 
 
7497
 
 
7498
 
 
7499
 
 
7500
 
 
7501
 
 
7502
 
 
7503
 
 
7504
 
 
7505
 
 
7506
if test -n "$ac_tool_prefix"; then
 
7507
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7508
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7510
$as_echo_n "checking for $ac_word... " >&6; }
 
7511
if test "${ac_cv_prog_AR+set}" = set; then :
 
7512
  $as_echo_n "(cached) " >&6
 
7513
else
 
7514
  if test -n "$AR"; then
 
7515
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7516
else
 
7517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7518
for as_dir in $PATH
 
7519
do
 
7520
  IFS=$as_save_IFS
 
7521
  test -z "$as_dir" && as_dir=.
 
7522
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7523
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7524
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7525
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7526
    break 2
 
7527
  fi
 
7528
done
 
7529
  done
 
7530
IFS=$as_save_IFS
 
7531
 
 
7532
fi
 
7533
fi
 
7534
AR=$ac_cv_prog_AR
 
7535
if test -n "$AR"; then
 
7536
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
7537
$as_echo "$AR" >&6; }
 
7538
else
 
7539
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7540
$as_echo "no" >&6; }
 
7541
fi
 
7542
 
 
7543
 
 
7544
fi
 
7545
if test -z "$ac_cv_prog_AR"; then
 
7546
  ac_ct_AR=$AR
 
7547
  # Extract the first word of "ar", so it can be a program name with args.
 
7548
set dummy ar; ac_word=$2
 
7549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7550
$as_echo_n "checking for $ac_word... " >&6; }
 
7551
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
 
7552
  $as_echo_n "(cached) " >&6
 
7553
else
 
7554
  if test -n "$ac_ct_AR"; then
 
7555
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7556
else
 
7557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7558
for as_dir in $PATH
 
7559
do
 
7560
  IFS=$as_save_IFS
 
7561
  test -z "$as_dir" && as_dir=.
 
7562
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7563
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7564
    ac_cv_prog_ac_ct_AR="ar"
 
7565
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7566
    break 2
 
7567
  fi
 
7568
done
 
7569
  done
 
7570
IFS=$as_save_IFS
 
7571
 
 
7572
fi
 
7573
fi
 
7574
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7575
if test -n "$ac_ct_AR"; then
 
7576
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
7577
$as_echo "$ac_ct_AR" >&6; }
 
7578
else
 
7579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7580
$as_echo "no" >&6; }
 
7581
fi
 
7582
 
 
7583
  if test "x$ac_ct_AR" = x; then
 
7584
    AR="false"
 
7585
  else
 
7586
    case $cross_compiling:$ac_tool_warned in
 
7587
yes:)
 
7588
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7589
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7590
ac_tool_warned=yes ;;
 
7591
esac
 
7592
    AR=$ac_ct_AR
 
7593
  fi
 
7594
else
 
7595
  AR="$ac_cv_prog_AR"
 
7596
fi
 
7597
 
 
7598
test -z "$AR" && AR=ar
 
7599
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7600
 
 
7601
 
 
7602
 
 
7603
 
 
7604
 
 
7605
 
 
7606
 
 
7607
 
 
7608
 
 
7609
 
 
7610
 
 
7611
if test -n "$ac_tool_prefix"; then
 
7612
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7613
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7615
$as_echo_n "checking for $ac_word... " >&6; }
 
7616
if test "${ac_cv_prog_STRIP+set}" = set; then :
 
7617
  $as_echo_n "(cached) " >&6
 
7618
else
 
7619
  if test -n "$STRIP"; then
 
7620
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7621
else
 
7622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7623
for as_dir in $PATH
 
7624
do
 
7625
  IFS=$as_save_IFS
 
7626
  test -z "$as_dir" && as_dir=.
 
7627
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7628
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7629
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7630
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7631
    break 2
 
7632
  fi
 
7633
done
 
7634
  done
 
7635
IFS=$as_save_IFS
 
7636
 
 
7637
fi
 
7638
fi
 
7639
STRIP=$ac_cv_prog_STRIP
 
7640
if test -n "$STRIP"; then
 
7641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
7642
$as_echo "$STRIP" >&6; }
 
7643
else
 
7644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7645
$as_echo "no" >&6; }
 
7646
fi
 
7647
 
 
7648
 
 
7649
fi
 
7650
if test -z "$ac_cv_prog_STRIP"; then
 
7651
  ac_ct_STRIP=$STRIP
 
7652
  # Extract the first word of "strip", so it can be a program name with args.
 
7653
set dummy strip; ac_word=$2
 
7654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7655
$as_echo_n "checking for $ac_word... " >&6; }
 
7656
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
 
7657
  $as_echo_n "(cached) " >&6
 
7658
else
 
7659
  if test -n "$ac_ct_STRIP"; then
 
7660
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7661
else
 
7662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7663
for as_dir in $PATH
 
7664
do
 
7665
  IFS=$as_save_IFS
 
7666
  test -z "$as_dir" && as_dir=.
 
7667
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7668
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7669
    ac_cv_prog_ac_ct_STRIP="strip"
 
7670
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7671
    break 2
 
7672
  fi
 
7673
done
 
7674
  done
 
7675
IFS=$as_save_IFS
 
7676
 
 
7677
fi
 
7678
fi
 
7679
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7680
if test -n "$ac_ct_STRIP"; then
 
7681
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
7682
$as_echo "$ac_ct_STRIP" >&6; }
 
7683
else
 
7684
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7685
$as_echo "no" >&6; }
 
7686
fi
 
7687
 
 
7688
  if test "x$ac_ct_STRIP" = x; then
 
7689
    STRIP=":"
 
7690
  else
 
7691
    case $cross_compiling:$ac_tool_warned in
 
7692
yes:)
 
7693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7695
ac_tool_warned=yes ;;
 
7696
esac
 
7697
    STRIP=$ac_ct_STRIP
 
7698
  fi
 
7699
else
 
7700
  STRIP="$ac_cv_prog_STRIP"
 
7701
fi
 
7702
 
 
7703
test -z "$STRIP" && STRIP=:
 
7704
 
 
7705
 
 
7706
 
 
7707
 
 
7708
 
 
7709
 
 
7710
if test -n "$ac_tool_prefix"; then
 
7711
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7712
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7714
$as_echo_n "checking for $ac_word... " >&6; }
 
7715
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
7716
  $as_echo_n "(cached) " >&6
1490
7717
else
1491
7718
  if test -n "$RANLIB"; then
1492
7719
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1493
7720
else
1494
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1495
 
  for ac_dir in $PATH; do
1496
 
    test -z "$ac_dir" && ac_dir=.
1497
 
    if test -f $ac_dir/$ac_word; then
1498
 
      ac_cv_prog_RANLIB="ranlib"
1499
 
      break
1500
 
    fi
1501
 
  done
1502
 
  IFS="$ac_save_ifs"
1503
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1504
 
fi
1505
 
fi
1506
 
RANLIB="$ac_cv_prog_RANLIB"
1507
 
if test -n "$RANLIB"; then
1508
 
  echo "$ac_t""$RANLIB" 1>&6
1509
 
else
1510
 
  echo "$ac_t""no" 1>&6
1511
 
fi
1512
 
 
1513
 
 
1514
 
# Decide whether to use libtool,
1515
 
# and if so whether to build shared, static, or both flavors of library.
1516
 
LTSHARED="no"
1517
 
# Check whether --enable-shared or --disable-shared was given.
1518
 
if test "${enable_shared+set}" = set; then
1519
 
  enableval="$enable_shared"
1520
 
  LTSHARED="$enableval"
1521
 
fi
1522
 
 
1523
 
LTSTATIC="no"
1524
 
# Check whether --enable-static or --disable-static was given.
1525
 
if test "${enable_static+set}" = set; then
1526
 
  enableval="$enable_static"
1527
 
  LTSTATIC="$enableval"
1528
 
fi
1529
 
 
1530
 
if test "x$LTSHARED" != xno  -o  "x$LTSTATIC" != xno; then
1531
 
  USELIBTOOL="yes"
1532
 
  LIBTOOL="./libtool"
1533
 
  O="lo"
1534
 
  A="la"
1535
 
  LN='$(LIBTOOL) --mode=link $(CC)'
1536
 
  INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}'
1537
 
  INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM"
1538
 
else
1539
 
  USELIBTOOL="no"
1540
 
  LIBTOOL=""
1541
 
  O="o"
1542
 
  A="a"
1543
 
  LN='$(CC)'
1544
 
  INSTALL_LIB="$INSTALL_DATA"
1545
 
fi
1546
 
 
1547
 
 
1548
 
 
1549
 
 
1550
 
 
1551
 
 
1552
 
# Configure libtool if needed.
1553
 
if test $USELIBTOOL = yes; then
1554
 
  disable_shared=
1555
 
  disable_static=
1556
 
  if test "x$LTSHARED" = xno; then
1557
 
    disable_shared="--disable-shared"
1558
 
  fi
1559
 
  if test "x$LTSTATIC" = xno; then
1560
 
    disable_static="--disable-static"
1561
 
  fi
1562
 
  $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
1563
 
fi
 
7721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7722
for as_dir in $PATH
 
7723
do
 
7724
  IFS=$as_save_IFS
 
7725
  test -z "$as_dir" && as_dir=.
 
7726
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7727
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7728
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7729
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7730
    break 2
 
7731
  fi
 
7732
done
 
7733
  done
 
7734
IFS=$as_save_IFS
 
7735
 
 
7736
fi
 
7737
fi
 
7738
RANLIB=$ac_cv_prog_RANLIB
 
7739
if test -n "$RANLIB"; then
 
7740
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
7741
$as_echo "$RANLIB" >&6; }
 
7742
else
 
7743
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7744
$as_echo "no" >&6; }
 
7745
fi
 
7746
 
 
7747
 
 
7748
fi
 
7749
if test -z "$ac_cv_prog_RANLIB"; then
 
7750
  ac_ct_RANLIB=$RANLIB
 
7751
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7752
set dummy ranlib; ac_word=$2
 
7753
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7754
$as_echo_n "checking for $ac_word... " >&6; }
 
7755
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
7756
  $as_echo_n "(cached) " >&6
 
7757
else
 
7758
  if test -n "$ac_ct_RANLIB"; then
 
7759
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7760
else
 
7761
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7762
for as_dir in $PATH
 
7763
do
 
7764
  IFS=$as_save_IFS
 
7765
  test -z "$as_dir" && as_dir=.
 
7766
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7767
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7768
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7769
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7770
    break 2
 
7771
  fi
 
7772
done
 
7773
  done
 
7774
IFS=$as_save_IFS
 
7775
 
 
7776
fi
 
7777
fi
 
7778
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7779
if test -n "$ac_ct_RANLIB"; then
 
7780
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
7781
$as_echo "$ac_ct_RANLIB" >&6; }
 
7782
else
 
7783
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7784
$as_echo "no" >&6; }
 
7785
fi
 
7786
 
 
7787
  if test "x$ac_ct_RANLIB" = x; then
 
7788
    RANLIB=":"
 
7789
  else
 
7790
    case $cross_compiling:$ac_tool_warned in
 
7791
yes:)
 
7792
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7793
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7794
ac_tool_warned=yes ;;
 
7795
esac
 
7796
    RANLIB=$ac_ct_RANLIB
 
7797
  fi
 
7798
else
 
7799
  RANLIB="$ac_cv_prog_RANLIB"
 
7800
fi
 
7801
 
 
7802
test -z "$RANLIB" && RANLIB=:
 
7803
 
 
7804
 
 
7805
 
 
7806
 
 
7807
 
 
7808
 
 
7809
# Determine commands to create old-style static archives.
 
7810
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7811
old_postinstall_cmds='chmod 644 $oldlib'
 
7812
old_postuninstall_cmds=
 
7813
 
 
7814
if test -n "$RANLIB"; then
 
7815
  case $host_os in
 
7816
  openbsd*)
 
7817
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7818
    ;;
 
7819
  *)
 
7820
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7821
    ;;
 
7822
  esac
 
7823
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7824
fi
 
7825
 
 
7826
 
 
7827
 
 
7828
 
 
7829
 
 
7830
 
 
7831
 
 
7832
 
 
7833
 
 
7834
 
 
7835
 
 
7836
 
 
7837
 
 
7838
 
 
7839
 
 
7840
 
 
7841
 
 
7842
 
 
7843
 
 
7844
 
 
7845
 
 
7846
 
 
7847
 
 
7848
 
 
7849
 
 
7850
 
 
7851
 
 
7852
 
 
7853
 
 
7854
 
 
7855
 
 
7856
 
 
7857
 
 
7858
 
 
7859
# If no C compiler was specified, use CC.
 
7860
LTCC=${LTCC-"$CC"}
 
7861
 
 
7862
# If no C compiler flags were specified, use CFLAGS.
 
7863
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7864
 
 
7865
# Allow CC to be a program name with arguments.
 
7866
compiler=$CC
 
7867
 
 
7868
 
 
7869
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
7871
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
7872
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
 
7873
  $as_echo_n "(cached) " >&6
 
7874
else
 
7875
 
 
7876
# These are sane defaults that work on at least a few old systems.
 
7877
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7878
 
 
7879
# Character class describing NM global symbol codes.
 
7880
symcode='[BCDEGRST]'
 
7881
 
 
7882
# Regexp to match symbols that can be accessed directly from C.
 
7883
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7884
 
 
7885
# Define system-specific variables.
 
7886
case $host_os in
 
7887
aix*)
 
7888
  symcode='[BCDT]'
 
7889
  ;;
 
7890
cygwin* | mingw* | pw32* | cegcc*)
 
7891
  symcode='[ABCDGISTW]'
 
7892
  ;;
 
7893
hpux*)
 
7894
  if test "$host_cpu" = ia64; then
 
7895
    symcode='[ABCDEGRST]'
 
7896
  fi
 
7897
  ;;
 
7898
irix* | nonstopux*)
 
7899
  symcode='[BCDEGRST]'
 
7900
  ;;
 
7901
osf*)
 
7902
  symcode='[BCDEGQRST]'
 
7903
  ;;
 
7904
solaris*)
 
7905
  symcode='[BDRT]'
 
7906
  ;;
 
7907
sco3.2v5*)
 
7908
  symcode='[DT]'
 
7909
  ;;
 
7910
sysv4.2uw2*)
 
7911
  symcode='[DT]'
 
7912
  ;;
 
7913
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7914
  symcode='[ABDT]'
 
7915
  ;;
 
7916
sysv4)
 
7917
  symcode='[DFNSTU]'
 
7918
  ;;
 
7919
esac
 
7920
 
 
7921
# If we're using GNU nm, then use its standard symbol codes.
 
7922
case `$NM -V 2>&1` in
 
7923
*GNU* | *'with BFD'*)
 
7924
  symcode='[ABCDGIRSTW]' ;;
 
7925
esac
 
7926
 
 
7927
# Transform an extracted symbol line into a proper C declaration.
 
7928
# Some systems (esp. on ia64) link data and code symbols differently,
 
7929
# so use this general approach.
 
7930
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7931
 
 
7932
# Transform an extracted symbol line into symbol name and symbol address
 
7933
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7934
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'"
 
7935
 
 
7936
# Handle CRLF in mingw tool chain
 
7937
opt_cr=
 
7938
case $build_os in
 
7939
mingw*)
 
7940
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7941
  ;;
 
7942
esac
 
7943
 
 
7944
# Try without a prefix underscore, then with it.
 
7945
for ac_symprfx in "" "_"; do
 
7946
 
 
7947
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7948
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7949
 
 
7950
  # Write the raw and C identifiers.
 
7951
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7952
    # Fake it for dumpbin and say T for any non-static function
 
7953
    # and D for any global variable.
 
7954
    # Also find C++ and __fastcall symbols from MSVC++,
 
7955
    # which start with @ or ?.
 
7956
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7957
"     {last_section=section; section=\$ 3};"\
 
7958
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7959
"     \$ 0!~/External *\|/{next};"\
 
7960
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7961
"     {if(hide[section]) next};"\
 
7962
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7963
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7964
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7965
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7966
"     ' prfx=^$ac_symprfx"
 
7967
  else
 
7968
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7969
  fi
 
7970
 
 
7971
  # Check to see that the pipe works correctly.
 
7972
  pipe_works=no
 
7973
 
 
7974
  rm -f conftest*
 
7975
  cat > conftest.$ac_ext <<_LT_EOF
 
7976
#ifdef __cplusplus
 
7977
extern "C" {
 
7978
#endif
 
7979
char nm_test_var;
 
7980
void nm_test_func(void);
 
7981
void nm_test_func(void){}
 
7982
#ifdef __cplusplus
 
7983
}
 
7984
#endif
 
7985
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7986
_LT_EOF
 
7987
 
 
7988
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
7989
  (eval $ac_compile) 2>&5
 
7990
  ac_status=$?
 
7991
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7992
  test $ac_status = 0; }; then
 
7993
    # Now try to grab the symbols.
 
7994
    nlist=conftest.nm
 
7995
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
 
7996
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7997
  ac_status=$?
 
7998
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7999
  test $ac_status = 0; } && test -s "$nlist"; then
 
8000
      # Try sorting and uniquifying the output.
 
8001
      if sort "$nlist" | uniq > "$nlist"T; then
 
8002
        mv -f "$nlist"T "$nlist"
 
8003
      else
 
8004
        rm -f "$nlist"T
 
8005
      fi
 
8006
 
 
8007
      # Make sure that we snagged all the symbols we need.
 
8008
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
8009
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
8010
          cat <<_LT_EOF > conftest.$ac_ext
 
8011
#ifdef __cplusplus
 
8012
extern "C" {
 
8013
#endif
 
8014
 
 
8015
_LT_EOF
 
8016
          # Now generate the symbol file.
 
8017
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
8018
 
 
8019
          cat <<_LT_EOF >> conftest.$ac_ext
 
8020
 
 
8021
/* The mapping between symbol names and symbols.  */
 
8022
const struct {
 
8023
  const char *name;
 
8024
  void       *address;
 
8025
}
 
8026
lt__PROGRAM__LTX_preloaded_symbols[] =
 
8027
{
 
8028
  { "@PROGRAM@", (void *) 0 },
 
8029
_LT_EOF
 
8030
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
8031
          cat <<\_LT_EOF >> conftest.$ac_ext
 
8032
  {0, (void *) 0}
 
8033
};
 
8034
 
 
8035
/* This works around a problem in FreeBSD linker */
 
8036
#ifdef FREEBSD_WORKAROUND
 
8037
static const void *lt_preloaded_setup() {
 
8038
  return lt__PROGRAM__LTX_preloaded_symbols;
 
8039
}
 
8040
#endif
 
8041
 
 
8042
#ifdef __cplusplus
 
8043
}
 
8044
#endif
 
8045
_LT_EOF
 
8046
          # Now try linking the two files.
 
8047
          mv conftest.$ac_objext conftstm.$ac_objext
 
8048
          lt_save_LIBS="$LIBS"
 
8049
          lt_save_CFLAGS="$CFLAGS"
 
8050
          LIBS="conftstm.$ac_objext"
 
8051
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
8052
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
8053
  (eval $ac_link) 2>&5
 
8054
  ac_status=$?
 
8055
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8056
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
8057
            pipe_works=yes
 
8058
          fi
 
8059
          LIBS="$lt_save_LIBS"
 
8060
          CFLAGS="$lt_save_CFLAGS"
 
8061
        else
 
8062
          echo "cannot find nm_test_func in $nlist" >&5
 
8063
        fi
 
8064
      else
 
8065
        echo "cannot find nm_test_var in $nlist" >&5
 
8066
      fi
 
8067
    else
 
8068
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
8069
    fi
 
8070
  else
 
8071
    echo "$progname: failed program was:" >&5
 
8072
    cat conftest.$ac_ext >&5
 
8073
  fi
 
8074
  rm -rf conftest* conftst*
 
8075
 
 
8076
  # Do not use the global_symbol_pipe unless it works.
 
8077
  if test "$pipe_works" = yes; then
 
8078
    break
 
8079
  else
 
8080
    lt_cv_sys_global_symbol_pipe=
 
8081
  fi
 
8082
done
 
8083
 
 
8084
fi
 
8085
 
 
8086
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
8087
  lt_cv_sys_global_symbol_to_cdecl=
 
8088
fi
 
8089
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
8090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
8091
$as_echo "failed" >&6; }
 
8092
else
 
8093
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
8094
$as_echo "ok" >&6; }
 
8095
fi
 
8096
 
 
8097
 
 
8098
 
 
8099
 
 
8100
 
 
8101
 
 
8102
 
 
8103
 
 
8104
 
 
8105
 
 
8106
 
 
8107
 
 
8108
 
 
8109
 
 
8110
 
 
8111
 
 
8112
 
 
8113
 
 
8114
 
 
8115
 
 
8116
 
 
8117
 
 
8118
# Check whether --enable-libtool-lock was given.
 
8119
if test "${enable_libtool_lock+set}" = set; then :
 
8120
  enableval=$enable_libtool_lock;
 
8121
fi
 
8122
 
 
8123
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8124
 
 
8125
# Some flags need to be propagated to the compiler or linker for good
 
8126
# libtool support.
 
8127
case $host in
 
8128
ia64-*-hpux*)
 
8129
  # Find out which ABI we are using.
 
8130
  echo 'int i;' > conftest.$ac_ext
 
8131
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8132
  (eval $ac_compile) 2>&5
 
8133
  ac_status=$?
 
8134
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8135
  test $ac_status = 0; }; then
 
8136
    case `/usr/bin/file conftest.$ac_objext` in
 
8137
      *ELF-32*)
 
8138
        HPUX_IA64_MODE="32"
 
8139
        ;;
 
8140
      *ELF-64*)
 
8141
        HPUX_IA64_MODE="64"
 
8142
        ;;
 
8143
    esac
 
8144
  fi
 
8145
  rm -rf conftest*
 
8146
  ;;
 
8147
*-*-irix6*)
 
8148
  # Find out which ABI we are using.
 
8149
  echo '#line 8149 "configure"' > conftest.$ac_ext
 
8150
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8151
  (eval $ac_compile) 2>&5
 
8152
  ac_status=$?
 
8153
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8154
  test $ac_status = 0; }; then
 
8155
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
8156
      case `/usr/bin/file conftest.$ac_objext` in
 
8157
        *32-bit*)
 
8158
          LD="${LD-ld} -melf32bsmip"
 
8159
          ;;
 
8160
        *N32*)
 
8161
          LD="${LD-ld} -melf32bmipn32"
 
8162
          ;;
 
8163
        *64-bit*)
 
8164
          LD="${LD-ld} -melf64bmip"
 
8165
        ;;
 
8166
      esac
 
8167
    else
 
8168
      case `/usr/bin/file conftest.$ac_objext` in
 
8169
        *32-bit*)
 
8170
          LD="${LD-ld} -32"
 
8171
          ;;
 
8172
        *N32*)
 
8173
          LD="${LD-ld} -n32"
 
8174
          ;;
 
8175
        *64-bit*)
 
8176
          LD="${LD-ld} -64"
 
8177
          ;;
 
8178
      esac
 
8179
    fi
 
8180
  fi
 
8181
  rm -rf conftest*
 
8182
  ;;
 
8183
 
 
8184
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
8185
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
8186
  # Find out which ABI we are using.
 
8187
  echo 'int i;' > conftest.$ac_ext
 
8188
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8189
  (eval $ac_compile) 2>&5
 
8190
  ac_status=$?
 
8191
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8192
  test $ac_status = 0; }; then
 
8193
    case `/usr/bin/file conftest.o` in
 
8194
      *32-bit*)
 
8195
        case $host in
 
8196
          x86_64-*kfreebsd*-gnu)
 
8197
            LD="${LD-ld} -m elf_i386_fbsd"
 
8198
            ;;
 
8199
          x86_64-*linux*)
 
8200
            LD="${LD-ld} -m elf_i386"
 
8201
            ;;
 
8202
          ppc64-*linux*|powerpc64-*linux*)
 
8203
            LD="${LD-ld} -m elf32ppclinux"
 
8204
            ;;
 
8205
          s390x-*linux*)
 
8206
            LD="${LD-ld} -m elf_s390"
 
8207
            ;;
 
8208
          sparc64-*linux*)
 
8209
            LD="${LD-ld} -m elf32_sparc"
 
8210
            ;;
 
8211
        esac
 
8212
        ;;
 
8213
      *64-bit*)
 
8214
        case $host in
 
8215
          x86_64-*kfreebsd*-gnu)
 
8216
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
8217
            ;;
 
8218
          x86_64-*linux*)
 
8219
            LD="${LD-ld} -m elf_x86_64"
 
8220
            ;;
 
8221
          ppc*-*linux*|powerpc*-*linux*)
 
8222
            LD="${LD-ld} -m elf64ppc"
 
8223
            ;;
 
8224
          s390*-*linux*|s390*-*tpf*)
 
8225
            LD="${LD-ld} -m elf64_s390"
 
8226
            ;;
 
8227
          sparc*-*linux*)
 
8228
            LD="${LD-ld} -m elf64_sparc"
 
8229
            ;;
 
8230
        esac
 
8231
        ;;
 
8232
    esac
 
8233
  fi
 
8234
  rm -rf conftest*
 
8235
  ;;
 
8236
 
 
8237
*-*-sco3.2v5*)
 
8238
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
8239
  SAVE_CFLAGS="$CFLAGS"
 
8240
  CFLAGS="$CFLAGS -belf"
 
8241
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
8242
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
8243
if test "${lt_cv_cc_needs_belf+set}" = set; then :
 
8244
  $as_echo_n "(cached) " >&6
 
8245
else
 
8246
  ac_ext=c
 
8247
ac_cpp='$CPP $CPPFLAGS'
 
8248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8251
 
 
8252
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8253
/* end confdefs.h.  */
 
8254
 
 
8255
int
 
8256
main ()
 
8257
{
 
8258
 
 
8259
  ;
 
8260
  return 0;
 
8261
}
 
8262
_ACEOF
 
8263
if ac_fn_c_try_link "$LINENO"; then :
 
8264
  lt_cv_cc_needs_belf=yes
 
8265
else
 
8266
  lt_cv_cc_needs_belf=no
 
8267
fi
 
8268
rm -f core conftest.err conftest.$ac_objext \
 
8269
    conftest$ac_exeext conftest.$ac_ext
 
8270
     ac_ext=c
 
8271
ac_cpp='$CPP $CPPFLAGS'
 
8272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8275
 
 
8276
fi
 
8277
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
8278
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
8279
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
8280
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
8281
    CFLAGS="$SAVE_CFLAGS"
 
8282
  fi
 
8283
  ;;
 
8284
sparc*-*solaris*)
 
8285
  # Find out which ABI we are using.
 
8286
  echo 'int i;' > conftest.$ac_ext
 
8287
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8288
  (eval $ac_compile) 2>&5
 
8289
  ac_status=$?
 
8290
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8291
  test $ac_status = 0; }; then
 
8292
    case `/usr/bin/file conftest.o` in
 
8293
    *64-bit*)
 
8294
      case $lt_cv_prog_gnu_ld in
 
8295
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
8296
      *)
 
8297
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
8298
          LD="${LD-ld} -64"
 
8299
        fi
 
8300
        ;;
 
8301
      esac
 
8302
      ;;
 
8303
    esac
 
8304
  fi
 
8305
  rm -rf conftest*
 
8306
  ;;
 
8307
esac
 
8308
 
 
8309
need_locks="$enable_libtool_lock"
 
8310
 
 
8311
 
 
8312
  case $host_os in
 
8313
    rhapsody* | darwin*)
 
8314
    if test -n "$ac_tool_prefix"; then
 
8315
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
8316
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
8317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8318
$as_echo_n "checking for $ac_word... " >&6; }
 
8319
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
 
8320
  $as_echo_n "(cached) " >&6
 
8321
else
 
8322
  if test -n "$DSYMUTIL"; then
 
8323
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
8324
else
 
8325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8326
for as_dir in $PATH
 
8327
do
 
8328
  IFS=$as_save_IFS
 
8329
  test -z "$as_dir" && as_dir=.
 
8330
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8332
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
8333
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8334
    break 2
 
8335
  fi
 
8336
done
 
8337
  done
 
8338
IFS=$as_save_IFS
 
8339
 
 
8340
fi
 
8341
fi
 
8342
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
8343
if test -n "$DSYMUTIL"; then
 
8344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
8345
$as_echo "$DSYMUTIL" >&6; }
 
8346
else
 
8347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8348
$as_echo "no" >&6; }
 
8349
fi
 
8350
 
 
8351
 
 
8352
fi
 
8353
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
8354
  ac_ct_DSYMUTIL=$DSYMUTIL
 
8355
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
8356
set dummy dsymutil; ac_word=$2
 
8357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8358
$as_echo_n "checking for $ac_word... " >&6; }
 
8359
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
 
8360
  $as_echo_n "(cached) " >&6
 
8361
else
 
8362
  if test -n "$ac_ct_DSYMUTIL"; then
 
8363
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
8364
else
 
8365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8366
for as_dir in $PATH
 
8367
do
 
8368
  IFS=$as_save_IFS
 
8369
  test -z "$as_dir" && as_dir=.
 
8370
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8371
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8372
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
8373
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8374
    break 2
 
8375
  fi
 
8376
done
 
8377
  done
 
8378
IFS=$as_save_IFS
 
8379
 
 
8380
fi
 
8381
fi
 
8382
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
8383
if test -n "$ac_ct_DSYMUTIL"; then
 
8384
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
8385
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
8386
else
 
8387
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8388
$as_echo "no" >&6; }
 
8389
fi
 
8390
 
 
8391
  if test "x$ac_ct_DSYMUTIL" = x; then
 
8392
    DSYMUTIL=":"
 
8393
  else
 
8394
    case $cross_compiling:$ac_tool_warned in
 
8395
yes:)
 
8396
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8397
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8398
ac_tool_warned=yes ;;
 
8399
esac
 
8400
    DSYMUTIL=$ac_ct_DSYMUTIL
 
8401
  fi
 
8402
else
 
8403
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
8404
fi
 
8405
 
 
8406
    if test -n "$ac_tool_prefix"; then
 
8407
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
8408
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
8409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8410
$as_echo_n "checking for $ac_word... " >&6; }
 
8411
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
 
8412
  $as_echo_n "(cached) " >&6
 
8413
else
 
8414
  if test -n "$NMEDIT"; then
 
8415
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
8416
else
 
8417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8418
for as_dir in $PATH
 
8419
do
 
8420
  IFS=$as_save_IFS
 
8421
  test -z "$as_dir" && as_dir=.
 
8422
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8423
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8424
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
8425
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8426
    break 2
 
8427
  fi
 
8428
done
 
8429
  done
 
8430
IFS=$as_save_IFS
 
8431
 
 
8432
fi
 
8433
fi
 
8434
NMEDIT=$ac_cv_prog_NMEDIT
 
8435
if test -n "$NMEDIT"; then
 
8436
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
8437
$as_echo "$NMEDIT" >&6; }
 
8438
else
 
8439
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8440
$as_echo "no" >&6; }
 
8441
fi
 
8442
 
 
8443
 
 
8444
fi
 
8445
if test -z "$ac_cv_prog_NMEDIT"; then
 
8446
  ac_ct_NMEDIT=$NMEDIT
 
8447
  # Extract the first word of "nmedit", so it can be a program name with args.
 
8448
set dummy nmedit; ac_word=$2
 
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8450
$as_echo_n "checking for $ac_word... " >&6; }
 
8451
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
 
8452
  $as_echo_n "(cached) " >&6
 
8453
else
 
8454
  if test -n "$ac_ct_NMEDIT"; then
 
8455
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
8456
else
 
8457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8458
for as_dir in $PATH
 
8459
do
 
8460
  IFS=$as_save_IFS
 
8461
  test -z "$as_dir" && as_dir=.
 
8462
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8463
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8464
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
8465
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8466
    break 2
 
8467
  fi
 
8468
done
 
8469
  done
 
8470
IFS=$as_save_IFS
 
8471
 
 
8472
fi
 
8473
fi
 
8474
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
8475
if test -n "$ac_ct_NMEDIT"; then
 
8476
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
8477
$as_echo "$ac_ct_NMEDIT" >&6; }
 
8478
else
 
8479
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8480
$as_echo "no" >&6; }
 
8481
fi
 
8482
 
 
8483
  if test "x$ac_ct_NMEDIT" = x; then
 
8484
    NMEDIT=":"
 
8485
  else
 
8486
    case $cross_compiling:$ac_tool_warned in
 
8487
yes:)
 
8488
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8489
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8490
ac_tool_warned=yes ;;
 
8491
esac
 
8492
    NMEDIT=$ac_ct_NMEDIT
 
8493
  fi
 
8494
else
 
8495
  NMEDIT="$ac_cv_prog_NMEDIT"
 
8496
fi
 
8497
 
 
8498
    if test -n "$ac_tool_prefix"; then
 
8499
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
8500
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
8501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8502
$as_echo_n "checking for $ac_word... " >&6; }
 
8503
if test "${ac_cv_prog_LIPO+set}" = set; then :
 
8504
  $as_echo_n "(cached) " >&6
 
8505
else
 
8506
  if test -n "$LIPO"; then
 
8507
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
8508
else
 
8509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8510
for as_dir in $PATH
 
8511
do
 
8512
  IFS=$as_save_IFS
 
8513
  test -z "$as_dir" && as_dir=.
 
8514
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8516
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
8517
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8518
    break 2
 
8519
  fi
 
8520
done
 
8521
  done
 
8522
IFS=$as_save_IFS
 
8523
 
 
8524
fi
 
8525
fi
 
8526
LIPO=$ac_cv_prog_LIPO
 
8527
if test -n "$LIPO"; then
 
8528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
8529
$as_echo "$LIPO" >&6; }
 
8530
else
 
8531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8532
$as_echo "no" >&6; }
 
8533
fi
 
8534
 
 
8535
 
 
8536
fi
 
8537
if test -z "$ac_cv_prog_LIPO"; then
 
8538
  ac_ct_LIPO=$LIPO
 
8539
  # Extract the first word of "lipo", so it can be a program name with args.
 
8540
set dummy lipo; ac_word=$2
 
8541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8542
$as_echo_n "checking for $ac_word... " >&6; }
 
8543
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
 
8544
  $as_echo_n "(cached) " >&6
 
8545
else
 
8546
  if test -n "$ac_ct_LIPO"; then
 
8547
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
8548
else
 
8549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8550
for as_dir in $PATH
 
8551
do
 
8552
  IFS=$as_save_IFS
 
8553
  test -z "$as_dir" && as_dir=.
 
8554
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8555
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8556
    ac_cv_prog_ac_ct_LIPO="lipo"
 
8557
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8558
    break 2
 
8559
  fi
 
8560
done
 
8561
  done
 
8562
IFS=$as_save_IFS
 
8563
 
 
8564
fi
 
8565
fi
 
8566
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
8567
if test -n "$ac_ct_LIPO"; then
 
8568
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
8569
$as_echo "$ac_ct_LIPO" >&6; }
 
8570
else
 
8571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8572
$as_echo "no" >&6; }
 
8573
fi
 
8574
 
 
8575
  if test "x$ac_ct_LIPO" = x; then
 
8576
    LIPO=":"
 
8577
  else
 
8578
    case $cross_compiling:$ac_tool_warned in
 
8579
yes:)
 
8580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8582
ac_tool_warned=yes ;;
 
8583
esac
 
8584
    LIPO=$ac_ct_LIPO
 
8585
  fi
 
8586
else
 
8587
  LIPO="$ac_cv_prog_LIPO"
 
8588
fi
 
8589
 
 
8590
    if test -n "$ac_tool_prefix"; then
 
8591
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
8592
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
8593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8594
$as_echo_n "checking for $ac_word... " >&6; }
 
8595
if test "${ac_cv_prog_OTOOL+set}" = set; then :
 
8596
  $as_echo_n "(cached) " >&6
 
8597
else
 
8598
  if test -n "$OTOOL"; then
 
8599
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
8600
else
 
8601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8602
for as_dir in $PATH
 
8603
do
 
8604
  IFS=$as_save_IFS
 
8605
  test -z "$as_dir" && as_dir=.
 
8606
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8608
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
8609
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8610
    break 2
 
8611
  fi
 
8612
done
 
8613
  done
 
8614
IFS=$as_save_IFS
 
8615
 
 
8616
fi
 
8617
fi
 
8618
OTOOL=$ac_cv_prog_OTOOL
 
8619
if test -n "$OTOOL"; then
 
8620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
8621
$as_echo "$OTOOL" >&6; }
 
8622
else
 
8623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8624
$as_echo "no" >&6; }
 
8625
fi
 
8626
 
 
8627
 
 
8628
fi
 
8629
if test -z "$ac_cv_prog_OTOOL"; then
 
8630
  ac_ct_OTOOL=$OTOOL
 
8631
  # Extract the first word of "otool", so it can be a program name with args.
 
8632
set dummy otool; ac_word=$2
 
8633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8634
$as_echo_n "checking for $ac_word... " >&6; }
 
8635
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
 
8636
  $as_echo_n "(cached) " >&6
 
8637
else
 
8638
  if test -n "$ac_ct_OTOOL"; then
 
8639
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
8640
else
 
8641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8642
for as_dir in $PATH
 
8643
do
 
8644
  IFS=$as_save_IFS
 
8645
  test -z "$as_dir" && as_dir=.
 
8646
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8648
    ac_cv_prog_ac_ct_OTOOL="otool"
 
8649
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8650
    break 2
 
8651
  fi
 
8652
done
 
8653
  done
 
8654
IFS=$as_save_IFS
 
8655
 
 
8656
fi
 
8657
fi
 
8658
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
8659
if test -n "$ac_ct_OTOOL"; then
 
8660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
8661
$as_echo "$ac_ct_OTOOL" >&6; }
 
8662
else
 
8663
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8664
$as_echo "no" >&6; }
 
8665
fi
 
8666
 
 
8667
  if test "x$ac_ct_OTOOL" = x; then
 
8668
    OTOOL=":"
 
8669
  else
 
8670
    case $cross_compiling:$ac_tool_warned in
 
8671
yes:)
 
8672
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8674
ac_tool_warned=yes ;;
 
8675
esac
 
8676
    OTOOL=$ac_ct_OTOOL
 
8677
  fi
 
8678
else
 
8679
  OTOOL="$ac_cv_prog_OTOOL"
 
8680
fi
 
8681
 
 
8682
    if test -n "$ac_tool_prefix"; then
 
8683
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
8684
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
8685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8686
$as_echo_n "checking for $ac_word... " >&6; }
 
8687
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
 
8688
  $as_echo_n "(cached) " >&6
 
8689
else
 
8690
  if test -n "$OTOOL64"; then
 
8691
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
8692
else
 
8693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8694
for as_dir in $PATH
 
8695
do
 
8696
  IFS=$as_save_IFS
 
8697
  test -z "$as_dir" && as_dir=.
 
8698
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8699
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8700
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
8701
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8702
    break 2
 
8703
  fi
 
8704
done
 
8705
  done
 
8706
IFS=$as_save_IFS
 
8707
 
 
8708
fi
 
8709
fi
 
8710
OTOOL64=$ac_cv_prog_OTOOL64
 
8711
if test -n "$OTOOL64"; then
 
8712
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
8713
$as_echo "$OTOOL64" >&6; }
 
8714
else
 
8715
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8716
$as_echo "no" >&6; }
 
8717
fi
 
8718
 
 
8719
 
 
8720
fi
 
8721
if test -z "$ac_cv_prog_OTOOL64"; then
 
8722
  ac_ct_OTOOL64=$OTOOL64
 
8723
  # Extract the first word of "otool64", so it can be a program name with args.
 
8724
set dummy otool64; ac_word=$2
 
8725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
8726
$as_echo_n "checking for $ac_word... " >&6; }
 
8727
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
 
8728
  $as_echo_n "(cached) " >&6
 
8729
else
 
8730
  if test -n "$ac_ct_OTOOL64"; then
 
8731
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
8732
else
 
8733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8734
for as_dir in $PATH
 
8735
do
 
8736
  IFS=$as_save_IFS
 
8737
  test -z "$as_dir" && as_dir=.
 
8738
    for ac_exec_ext in '' $ac_executable_extensions; do
 
8739
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8740
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8741
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8742
    break 2
 
8743
  fi
 
8744
done
 
8745
  done
 
8746
IFS=$as_save_IFS
 
8747
 
 
8748
fi
 
8749
fi
 
8750
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8751
if test -n "$ac_ct_OTOOL64"; then
 
8752
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
8753
$as_echo "$ac_ct_OTOOL64" >&6; }
 
8754
else
 
8755
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8756
$as_echo "no" >&6; }
 
8757
fi
 
8758
 
 
8759
  if test "x$ac_ct_OTOOL64" = x; then
 
8760
    OTOOL64=":"
 
8761
  else
 
8762
    case $cross_compiling:$ac_tool_warned in
 
8763
yes:)
 
8764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
8765
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
8766
ac_tool_warned=yes ;;
 
8767
esac
 
8768
    OTOOL64=$ac_ct_OTOOL64
 
8769
  fi
 
8770
else
 
8771
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8772
fi
 
8773
 
 
8774
 
 
8775
 
 
8776
 
 
8777
 
 
8778
 
 
8779
 
 
8780
 
 
8781
 
 
8782
 
 
8783
 
 
8784
 
 
8785
 
 
8786
 
 
8787
 
 
8788
 
 
8789
 
 
8790
 
 
8791
 
 
8792
 
 
8793
 
 
8794
 
 
8795
 
 
8796
 
 
8797
 
 
8798
 
 
8799
 
 
8800
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
8801
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
8802
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
 
8803
  $as_echo_n "(cached) " >&6
 
8804
else
 
8805
  lt_cv_apple_cc_single_mod=no
 
8806
      if test -z "${LT_MULTI_MODULE}"; then
 
8807
        # By default we will add the -single_module flag. You can override
 
8808
        # by either setting the environment variable LT_MULTI_MODULE
 
8809
        # non-empty at configure time, or by adding -multi_module to the
 
8810
        # link flags.
 
8811
        rm -rf libconftest.dylib*
 
8812
        echo "int foo(void){return 1;}" > conftest.c
 
8813
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8814
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8815
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8816
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8817
        _lt_result=$?
 
8818
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
8819
          lt_cv_apple_cc_single_mod=yes
 
8820
        else
 
8821
          cat conftest.err >&5
 
8822
        fi
 
8823
        rm -rf libconftest.dylib*
 
8824
        rm -f conftest.*
 
8825
      fi
 
8826
fi
 
8827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
8828
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
8829
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
8830
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
8831
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
 
8832
  $as_echo_n "(cached) " >&6
 
8833
else
 
8834
  lt_cv_ld_exported_symbols_list=no
 
8835
      save_LDFLAGS=$LDFLAGS
 
8836
      echo "_main" > conftest.sym
 
8837
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8838
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8839
/* end confdefs.h.  */
 
8840
 
 
8841
int
 
8842
main ()
 
8843
{
 
8844
 
 
8845
  ;
 
8846
  return 0;
 
8847
}
 
8848
_ACEOF
 
8849
if ac_fn_c_try_link "$LINENO"; then :
 
8850
  lt_cv_ld_exported_symbols_list=yes
 
8851
else
 
8852
  lt_cv_ld_exported_symbols_list=no
 
8853
fi
 
8854
rm -f core conftest.err conftest.$ac_objext \
 
8855
    conftest$ac_exeext conftest.$ac_ext
 
8856
        LDFLAGS="$save_LDFLAGS"
 
8857
 
 
8858
fi
 
8859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
8860
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
8861
    case $host_os in
 
8862
    rhapsody* | darwin1.[012])
 
8863
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8864
    darwin1.*)
 
8865
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8866
    darwin*) # darwin 5.x on
 
8867
      # if running on 10.5 or later, the deployment target defaults
 
8868
      # to the OS version, if on x86, and 10.4, the deployment
 
8869
      # target defaults to 10.4. Don't you love it?
 
8870
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8871
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8872
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8873
        10.[012]*)
 
8874
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8875
        10.*)
 
8876
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8877
      esac
 
8878
    ;;
 
8879
  esac
 
8880
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8881
      _lt_dar_single_mod='$single_module'
 
8882
    fi
 
8883
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8884
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8885
    else
 
8886
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8887
    fi
 
8888
    if test "$DSYMUTIL" != ":"; then
 
8889
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8890
    else
 
8891
      _lt_dsymutil=
 
8892
    fi
 
8893
    ;;
 
8894
  esac
 
8895
 
 
8896
for ac_header in dlfcn.h
 
8897
do :
 
8898
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
8899
"
 
8900
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
 
8901
  cat >>confdefs.h <<_ACEOF
 
8902
#define HAVE_DLFCN_H 1
 
8903
_ACEOF
 
8904
 
 
8905
fi
 
8906
 
 
8907
done
 
8908
 
 
8909
 
 
8910
 
 
8911
# Set options
 
8912
 
 
8913
 
 
8914
 
 
8915
        enable_dlopen=no
 
8916
 
 
8917
 
 
8918
 
 
8919
            # Check whether --enable-shared was given.
 
8920
if test "${enable_shared+set}" = set; then :
 
8921
  enableval=$enable_shared; p=${PACKAGE-default}
 
8922
    case $enableval in
 
8923
    yes) enable_shared=yes ;;
 
8924
    no) enable_shared=no ;;
 
8925
    *)
 
8926
      enable_shared=no
 
8927
      # Look at the argument we got.  We use all the common list separators.
 
8928
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8929
      for pkg in $enableval; do
 
8930
        IFS="$lt_save_ifs"
 
8931
        if test "X$pkg" = "X$p"; then
 
8932
          enable_shared=yes
 
8933
        fi
 
8934
      done
 
8935
      IFS="$lt_save_ifs"
 
8936
      ;;
 
8937
    esac
 
8938
else
 
8939
  enable_shared=yes
 
8940
fi
 
8941
 
 
8942
 
 
8943
 
 
8944
 
 
8945
 
 
8946
 
 
8947
 
 
8948
 
 
8949
 
 
8950
  # Check whether --enable-static was given.
 
8951
if test "${enable_static+set}" = set; then :
 
8952
  enableval=$enable_static; p=${PACKAGE-default}
 
8953
    case $enableval in
 
8954
    yes) enable_static=yes ;;
 
8955
    no) enable_static=no ;;
 
8956
    *)
 
8957
     enable_static=no
 
8958
      # Look at the argument we got.  We use all the common list separators.
 
8959
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8960
      for pkg in $enableval; do
 
8961
        IFS="$lt_save_ifs"
 
8962
        if test "X$pkg" = "X$p"; then
 
8963
          enable_static=yes
 
8964
        fi
 
8965
      done
 
8966
      IFS="$lt_save_ifs"
 
8967
      ;;
 
8968
    esac
 
8969
else
 
8970
  enable_static=yes
 
8971
fi
 
8972
 
 
8973
 
 
8974
 
 
8975
 
 
8976
 
 
8977
 
 
8978
 
 
8979
 
 
8980
 
 
8981
 
 
8982
# Check whether --with-pic was given.
 
8983
if test "${with_pic+set}" = set; then :
 
8984
  withval=$with_pic; pic_mode="$withval"
 
8985
else
 
8986
  pic_mode=default
 
8987
fi
 
8988
 
 
8989
 
 
8990
test -z "$pic_mode" && pic_mode=default
 
8991
 
 
8992
 
 
8993
 
 
8994
 
 
8995
 
 
8996
 
 
8997
 
 
8998
  # Check whether --enable-fast-install was given.
 
8999
if test "${enable_fast_install+set}" = set; then :
 
9000
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
9001
    case $enableval in
 
9002
    yes) enable_fast_install=yes ;;
 
9003
    no) enable_fast_install=no ;;
 
9004
    *)
 
9005
      enable_fast_install=no
 
9006
      # Look at the argument we got.  We use all the common list separators.
 
9007
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9008
      for pkg in $enableval; do
 
9009
        IFS="$lt_save_ifs"
 
9010
        if test "X$pkg" = "X$p"; then
 
9011
          enable_fast_install=yes
 
9012
        fi
 
9013
      done
 
9014
      IFS="$lt_save_ifs"
 
9015
      ;;
 
9016
    esac
 
9017
else
 
9018
  enable_fast_install=yes
 
9019
fi
 
9020
 
 
9021
 
 
9022
 
 
9023
 
 
9024
 
 
9025
 
 
9026
 
 
9027
 
 
9028
 
 
9029
 
 
9030
 
 
9031
# This can be used to rebuild libtool when needed
 
9032
LIBTOOL_DEPS="$ltmain"
 
9033
 
 
9034
# Always use our own libtool.
 
9035
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
9036
 
 
9037
 
 
9038
 
 
9039
 
 
9040
 
 
9041
 
 
9042
 
 
9043
 
 
9044
 
 
9045
 
 
9046
 
 
9047
 
 
9048
 
 
9049
 
 
9050
 
 
9051
 
 
9052
 
 
9053
 
 
9054
 
 
9055
 
 
9056
 
 
9057
 
 
9058
 
 
9059
 
 
9060
 
 
9061
test -z "$LN_S" && LN_S="ln -s"
 
9062
 
 
9063
 
 
9064
 
 
9065
 
 
9066
 
 
9067
 
 
9068
 
 
9069
 
 
9070
 
 
9071
 
 
9072
 
 
9073
 
 
9074
 
 
9075
 
 
9076
if test -n "${ZSH_VERSION+set}" ; then
 
9077
   setopt NO_GLOB_SUBST
 
9078
fi
 
9079
 
 
9080
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
9081
$as_echo_n "checking for objdir... " >&6; }
 
9082
if test "${lt_cv_objdir+set}" = set; then :
 
9083
  $as_echo_n "(cached) " >&6
 
9084
else
 
9085
  rm -f .libs 2>/dev/null
 
9086
mkdir .libs 2>/dev/null
 
9087
if test -d .libs; then
 
9088
  lt_cv_objdir=.libs
 
9089
else
 
9090
  # MS-DOS does not allow filenames that begin with a dot.
 
9091
  lt_cv_objdir=_libs
 
9092
fi
 
9093
rmdir .libs 2>/dev/null
 
9094
fi
 
9095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
9096
$as_echo "$lt_cv_objdir" >&6; }
 
9097
objdir=$lt_cv_objdir
 
9098
 
 
9099
 
 
9100
 
 
9101
 
 
9102
 
 
9103
cat >>confdefs.h <<_ACEOF
 
9104
#define LT_OBJDIR "$lt_cv_objdir/"
 
9105
_ACEOF
 
9106
 
 
9107
 
 
9108
 
 
9109
 
 
9110
 
 
9111
 
 
9112
 
 
9113
 
 
9114
 
 
9115
 
 
9116
 
 
9117
 
 
9118
 
 
9119
 
 
9120
 
 
9121
 
 
9122
 
 
9123
case $host_os in
 
9124
aix3*)
 
9125
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
9126
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
9127
  # vanish in a puff of smoke.
 
9128
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
9129
    COLLECT_NAMES=
 
9130
    export COLLECT_NAMES
 
9131
  fi
 
9132
  ;;
 
9133
esac
 
9134
 
 
9135
# Sed substitution that helps us do robust quoting.  It backslashifies
 
9136
# metacharacters that are still active within double-quoted strings.
 
9137
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
9138
 
 
9139
# Same as above, but do not quote variable references.
 
9140
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
9141
 
 
9142
# Sed substitution to delay expansion of an escaped shell variable in a
 
9143
# double_quote_subst'ed string.
 
9144
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
9145
 
 
9146
# Sed substitution to delay expansion of an escaped single quote.
 
9147
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
9148
 
 
9149
# Sed substitution to avoid accidental globbing in evaled expressions
 
9150
no_glob_subst='s/\*/\\\*/g'
 
9151
 
 
9152
# Global variables:
 
9153
ofile=libtool
 
9154
can_build_shared=yes
 
9155
 
 
9156
# All known linkers require a `.a' archive for static linking (except MSVC,
 
9157
# which needs '.lib').
 
9158
libext=a
 
9159
 
 
9160
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
9161
 
 
9162
old_CC="$CC"
 
9163
old_CFLAGS="$CFLAGS"
 
9164
 
 
9165
# Set sane defaults for various variables
 
9166
test -z "$CC" && CC=cc
 
9167
test -z "$LTCC" && LTCC=$CC
 
9168
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
9169
test -z "$LD" && LD=ld
 
9170
test -z "$ac_objext" && ac_objext=o
 
9171
 
 
9172
for cc_temp in $compiler""; do
 
9173
  case $cc_temp in
 
9174
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9175
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9176
    \-*) ;;
 
9177
    *) break;;
 
9178
  esac
 
9179
done
 
9180
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9181
 
 
9182
 
 
9183
# Only perform the check for file, if the check method requires it
 
9184
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
9185
case $deplibs_check_method in
 
9186
file_magic*)
 
9187
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
9188
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
9189
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
9190
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
9191
  $as_echo_n "(cached) " >&6
 
9192
else
 
9193
  case $MAGIC_CMD in
 
9194
[\\/*] |  ?:[\\/]*)
 
9195
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9196
  ;;
 
9197
*)
 
9198
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9199
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9200
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9201
  for ac_dir in $ac_dummy; do
 
9202
    IFS="$lt_save_ifs"
 
9203
    test -z "$ac_dir" && ac_dir=.
 
9204
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
9205
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
9206
      if test -n "$file_magic_test_file"; then
 
9207
        case $deplibs_check_method in
 
9208
        "file_magic "*)
 
9209
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9210
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9211
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9212
            $EGREP "$file_magic_regex" > /dev/null; then
 
9213
            :
 
9214
          else
 
9215
            cat <<_LT_EOF 1>&2
 
9216
 
 
9217
*** Warning: the command libtool uses to detect shared libraries,
 
9218
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9219
*** The result is that libtool may fail to recognize shared libraries
 
9220
*** as such.  This will affect the creation of libtool libraries that
 
9221
*** depend on shared libraries, but programs linked with such libtool
 
9222
*** libraries will work regardless of this problem.  Nevertheless, you
 
9223
*** may want to report the problem to your system manager and/or to
 
9224
*** bug-libtool@gnu.org
 
9225
 
 
9226
_LT_EOF
 
9227
          fi ;;
 
9228
        esac
 
9229
      fi
 
9230
      break
 
9231
    fi
 
9232
  done
 
9233
  IFS="$lt_save_ifs"
 
9234
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9235
  ;;
 
9236
esac
 
9237
fi
 
9238
 
 
9239
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9240
if test -n "$MAGIC_CMD"; then
 
9241
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9242
$as_echo "$MAGIC_CMD" >&6; }
 
9243
else
 
9244
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9245
$as_echo "no" >&6; }
 
9246
fi
 
9247
 
 
9248
 
 
9249
 
 
9250
 
 
9251
 
 
9252
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
9253
  if test -n "$ac_tool_prefix"; then
 
9254
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
9255
$as_echo_n "checking for file... " >&6; }
 
9256
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
 
9257
  $as_echo_n "(cached) " >&6
 
9258
else
 
9259
  case $MAGIC_CMD in
 
9260
[\\/*] |  ?:[\\/]*)
 
9261
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9262
  ;;
 
9263
*)
 
9264
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9265
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9266
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9267
  for ac_dir in $ac_dummy; do
 
9268
    IFS="$lt_save_ifs"
 
9269
    test -z "$ac_dir" && ac_dir=.
 
9270
    if test -f $ac_dir/file; then
 
9271
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
9272
      if test -n "$file_magic_test_file"; then
 
9273
        case $deplibs_check_method in
 
9274
        "file_magic "*)
 
9275
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9276
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9277
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9278
            $EGREP "$file_magic_regex" > /dev/null; then
 
9279
            :
 
9280
          else
 
9281
            cat <<_LT_EOF 1>&2
 
9282
 
 
9283
*** Warning: the command libtool uses to detect shared libraries,
 
9284
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9285
*** The result is that libtool may fail to recognize shared libraries
 
9286
*** as such.  This will affect the creation of libtool libraries that
 
9287
*** depend on shared libraries, but programs linked with such libtool
 
9288
*** libraries will work regardless of this problem.  Nevertheless, you
 
9289
*** may want to report the problem to your system manager and/or to
 
9290
*** bug-libtool@gnu.org
 
9291
 
 
9292
_LT_EOF
 
9293
          fi ;;
 
9294
        esac
 
9295
      fi
 
9296
      break
 
9297
    fi
 
9298
  done
 
9299
  IFS="$lt_save_ifs"
 
9300
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9301
  ;;
 
9302
esac
 
9303
fi
 
9304
 
 
9305
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9306
if test -n "$MAGIC_CMD"; then
 
9307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
9308
$as_echo "$MAGIC_CMD" >&6; }
 
9309
else
 
9310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
9311
$as_echo "no" >&6; }
 
9312
fi
 
9313
 
 
9314
 
 
9315
  else
 
9316
    MAGIC_CMD=:
 
9317
  fi
 
9318
fi
 
9319
 
 
9320
  fi
 
9321
  ;;
 
9322
esac
 
9323
 
 
9324
# Use C for the default configuration in the libtool script
 
9325
 
 
9326
lt_save_CC="$CC"
 
9327
ac_ext=c
 
9328
ac_cpp='$CPP $CPPFLAGS'
 
9329
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9330
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9331
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9332
 
 
9333
 
 
9334
# Source file extension for C test sources.
 
9335
ac_ext=c
 
9336
 
 
9337
# Object file extension for compiled C test sources.
 
9338
objext=o
 
9339
objext=$objext
 
9340
 
 
9341
# Code to be used in simple compile tests
 
9342
lt_simple_compile_test_code="int some_variable = 0;"
 
9343
 
 
9344
# Code to be used in simple link tests
 
9345
lt_simple_link_test_code='int main(){return(0);}'
 
9346
 
 
9347
 
 
9348
 
 
9349
 
 
9350
 
 
9351
 
 
9352
 
 
9353
# If no C compiler was specified, use CC.
 
9354
LTCC=${LTCC-"$CC"}
 
9355
 
 
9356
# If no C compiler flags were specified, use CFLAGS.
 
9357
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9358
 
 
9359
# Allow CC to be a program name with arguments.
 
9360
compiler=$CC
 
9361
 
 
9362
# Save the default compiler, since it gets overwritten when the other
 
9363
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9364
compiler_DEFAULT=$CC
 
9365
 
 
9366
# save warnings/boilerplate of simple test code
 
9367
ac_outfile=conftest.$ac_objext
 
9368
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9369
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9370
_lt_compiler_boilerplate=`cat conftest.err`
 
9371
$RM conftest*
 
9372
 
 
9373
ac_outfile=conftest.$ac_objext
 
9374
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9375
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9376
_lt_linker_boilerplate=`cat conftest.err`
 
9377
$RM -r conftest*
 
9378
 
 
9379
 
 
9380
if test -n "$compiler"; then
 
9381
 
 
9382
lt_prog_compiler_no_builtin_flag=
 
9383
 
 
9384
if test "$GCC" = yes; then
 
9385
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9386
 
 
9387
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9388
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
9389
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
 
9390
  $as_echo_n "(cached) " >&6
 
9391
else
 
9392
  lt_cv_prog_compiler_rtti_exceptions=no
 
9393
   ac_outfile=conftest.$ac_objext
 
9394
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9395
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9396
   # Insert the option either (1) after the last *FLAGS variable, or
 
9397
   # (2) before a word containing "conftest.", or (3) at the end.
 
9398
   # Note that $ac_compile itself does not contain backslashes and begins
 
9399
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9400
   # The option is referenced via a variable to avoid confusing sed.
 
9401
   lt_compile=`echo "$ac_compile" | $SED \
 
9402
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9403
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9404
   -e 's:$: $lt_compiler_flag:'`
 
9405
   (eval echo "\"\$as_me:9405: $lt_compile\"" >&5)
 
9406
   (eval "$lt_compile" 2>conftest.err)
 
9407
   ac_status=$?
 
9408
   cat conftest.err >&5
 
9409
   echo "$as_me:9409: \$? = $ac_status" >&5
 
9410
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9411
     # The compiler can only warn and ignore the option if not recognized
 
9412
     # So say no if there are warnings other than the usual output.
 
9413
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9414
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9415
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9416
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9417
     fi
 
9418
   fi
 
9419
   $RM conftest*
 
9420
 
 
9421
fi
 
9422
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9423
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9424
 
 
9425
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9426
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9427
else
 
9428
    :
 
9429
fi
 
9430
 
 
9431
fi
 
9432
 
 
9433
 
 
9434
 
 
9435
 
 
9436
 
 
9437
 
 
9438
  lt_prog_compiler_wl=
 
9439
lt_prog_compiler_pic=
 
9440
lt_prog_compiler_static=
 
9441
 
 
9442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
9443
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
9444
 
 
9445
  if test "$GCC" = yes; then
 
9446
    lt_prog_compiler_wl='-Wl,'
 
9447
    lt_prog_compiler_static='-static'
 
9448
 
 
9449
    case $host_os in
 
9450
      aix*)
 
9451
      # All AIX code is PIC.
 
9452
      if test "$host_cpu" = ia64; then
 
9453
        # AIX 5 now supports IA64 processor
 
9454
        lt_prog_compiler_static='-Bstatic'
 
9455
      fi
 
9456
      ;;
 
9457
 
 
9458
    amigaos*)
 
9459
      case $host_cpu in
 
9460
      powerpc)
 
9461
            # see comment about AmigaOS4 .so support
 
9462
            lt_prog_compiler_pic='-fPIC'
 
9463
        ;;
 
9464
      m68k)
 
9465
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9466
            # adding the `-m68020' flag to GCC prevents building anything better,
 
9467
            # like `-m68040'.
 
9468
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9469
        ;;
 
9470
      esac
 
9471
      ;;
 
9472
 
 
9473
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9474
      # PIC is the default for these OSes.
 
9475
      ;;
 
9476
 
 
9477
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9478
      # This hack is so that the source file can tell whether it is being
 
9479
      # built for inclusion in a dll (and should export symbols for example).
 
9480
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9481
      # (--disable-auto-import) libraries
 
9482
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9483
      ;;
 
9484
 
 
9485
    darwin* | rhapsody*)
 
9486
      # PIC is the default on this platform
 
9487
      # Common symbols not allowed in MH_DYLIB files
 
9488
      lt_prog_compiler_pic='-fno-common'
 
9489
      ;;
 
9490
 
 
9491
    hpux*)
 
9492
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
9493
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
9494
      # sets the default TLS model and affects inlining.
 
9495
      case $host_cpu in
 
9496
      hppa*64*)
 
9497
        # +Z the default
 
9498
        ;;
 
9499
      *)
 
9500
        lt_prog_compiler_pic='-fPIC'
 
9501
        ;;
 
9502
      esac
 
9503
      ;;
 
9504
 
 
9505
    interix[3-9]*)
 
9506
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9507
      # Instead, we relocate shared libraries at runtime.
 
9508
      ;;
 
9509
 
 
9510
    msdosdjgpp*)
 
9511
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9512
      # on systems that don't support them.
 
9513
      lt_prog_compiler_can_build_shared=no
 
9514
      enable_shared=no
 
9515
      ;;
 
9516
 
 
9517
    *nto* | *qnx*)
 
9518
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9519
      # it will coredump.
 
9520
      lt_prog_compiler_pic='-fPIC -shared'
 
9521
      ;;
 
9522
 
 
9523
    sysv4*MP*)
 
9524
      if test -d /usr/nec; then
 
9525
        lt_prog_compiler_pic=-Kconform_pic
 
9526
      fi
 
9527
      ;;
 
9528
 
 
9529
    *)
 
9530
      lt_prog_compiler_pic='-fPIC'
 
9531
      ;;
 
9532
    esac
 
9533
  else
 
9534
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9535
    case $host_os in
 
9536
    aix*)
 
9537
      lt_prog_compiler_wl='-Wl,'
 
9538
      if test "$host_cpu" = ia64; then
 
9539
        # AIX 5 now supports IA64 processor
 
9540
        lt_prog_compiler_static='-Bstatic'
 
9541
      else
 
9542
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9543
      fi
 
9544
      ;;
 
9545
 
 
9546
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
9547
      # This hack is so that the source file can tell whether it is being
 
9548
      # built for inclusion in a dll (and should export symbols for example).
 
9549
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9550
      ;;
 
9551
 
 
9552
    hpux9* | hpux10* | hpux11*)
 
9553
      lt_prog_compiler_wl='-Wl,'
 
9554
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9555
      # not for PA HP-UX.
 
9556
      case $host_cpu in
 
9557
      hppa*64*|ia64*)
 
9558
        # +Z the default
 
9559
        ;;
 
9560
      *)
 
9561
        lt_prog_compiler_pic='+Z'
 
9562
        ;;
 
9563
      esac
 
9564
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9565
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9566
      ;;
 
9567
 
 
9568
    irix5* | irix6* | nonstopux*)
 
9569
      lt_prog_compiler_wl='-Wl,'
 
9570
      # PIC (with -KPIC) is the default.
 
9571
      lt_prog_compiler_static='-non_shared'
 
9572
      ;;
 
9573
 
 
9574
    linux* | k*bsd*-gnu)
 
9575
      case $cc_basename in
 
9576
      # old Intel for x86_64 which still supported -KPIC.
 
9577
      ecc*)
 
9578
        lt_prog_compiler_wl='-Wl,'
 
9579
        lt_prog_compiler_pic='-KPIC'
 
9580
        lt_prog_compiler_static='-static'
 
9581
        ;;
 
9582
      # icc used to be incompatible with GCC.
 
9583
      # ICC 10 doesn't accept -KPIC any more.
 
9584
      icc* | ifort*)
 
9585
        lt_prog_compiler_wl='-Wl,'
 
9586
        lt_prog_compiler_pic='-fPIC'
 
9587
        lt_prog_compiler_static='-static'
 
9588
        ;;
 
9589
      # Lahey Fortran 8.1.
 
9590
      lf95*)
 
9591
        lt_prog_compiler_wl='-Wl,'
 
9592
        lt_prog_compiler_pic='--shared'
 
9593
        lt_prog_compiler_static='--static'
 
9594
        ;;
 
9595
      pgcc* | pgf77* | pgf90* | pgf95*)
 
9596
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9597
        # which looks to be a dead project)
 
9598
        lt_prog_compiler_wl='-Wl,'
 
9599
        lt_prog_compiler_pic='-fpic'
 
9600
        lt_prog_compiler_static='-Bstatic'
 
9601
        ;;
 
9602
      ccc*)
 
9603
        lt_prog_compiler_wl='-Wl,'
 
9604
        # All Alpha code is PIC.
 
9605
        lt_prog_compiler_static='-non_shared'
 
9606
        ;;
 
9607
      xl*)
 
9608
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
9609
        lt_prog_compiler_wl='-Wl,'
 
9610
        lt_prog_compiler_pic='-qpic'
 
9611
        lt_prog_compiler_static='-qstaticlink'
 
9612
        ;;
 
9613
      *)
 
9614
        case `$CC -V 2>&1 | sed 5q` in
 
9615
        *Sun\ C*)
 
9616
          # Sun C 5.9
 
9617
          lt_prog_compiler_pic='-KPIC'
 
9618
          lt_prog_compiler_static='-Bstatic'
 
9619
          lt_prog_compiler_wl='-Wl,'
 
9620
          ;;
 
9621
        *Sun\ F*)
 
9622
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9623
          lt_prog_compiler_pic='-KPIC'
 
9624
          lt_prog_compiler_static='-Bstatic'
 
9625
          lt_prog_compiler_wl=''
 
9626
          ;;
 
9627
        esac
 
9628
        ;;
 
9629
      esac
 
9630
      ;;
 
9631
 
 
9632
    newsos6)
 
9633
      lt_prog_compiler_pic='-KPIC'
 
9634
      lt_prog_compiler_static='-Bstatic'
 
9635
      ;;
 
9636
 
 
9637
    *nto* | *qnx*)
 
9638
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9639
      # it will coredump.
 
9640
      lt_prog_compiler_pic='-fPIC -shared'
 
9641
      ;;
 
9642
 
 
9643
    osf3* | osf4* | osf5*)
 
9644
      lt_prog_compiler_wl='-Wl,'
 
9645
      # All OSF/1 code is PIC.
 
9646
      lt_prog_compiler_static='-non_shared'
 
9647
      ;;
 
9648
 
 
9649
    rdos*)
 
9650
      lt_prog_compiler_static='-non_shared'
 
9651
      ;;
 
9652
 
 
9653
    solaris*)
 
9654
      lt_prog_compiler_pic='-KPIC'
 
9655
      lt_prog_compiler_static='-Bstatic'
 
9656
      case $cc_basename in
 
9657
      f77* | f90* | f95*)
 
9658
        lt_prog_compiler_wl='-Qoption ld ';;
 
9659
      *)
 
9660
        lt_prog_compiler_wl='-Wl,';;
 
9661
      esac
 
9662
      ;;
 
9663
 
 
9664
    sunos4*)
 
9665
      lt_prog_compiler_wl='-Qoption ld '
 
9666
      lt_prog_compiler_pic='-PIC'
 
9667
      lt_prog_compiler_static='-Bstatic'
 
9668
      ;;
 
9669
 
 
9670
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9671
      lt_prog_compiler_wl='-Wl,'
 
9672
      lt_prog_compiler_pic='-KPIC'
 
9673
      lt_prog_compiler_static='-Bstatic'
 
9674
      ;;
 
9675
 
 
9676
    sysv4*MP*)
 
9677
      if test -d /usr/nec ;then
 
9678
        lt_prog_compiler_pic='-Kconform_pic'
 
9679
        lt_prog_compiler_static='-Bstatic'
 
9680
      fi
 
9681
      ;;
 
9682
 
 
9683
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9684
      lt_prog_compiler_wl='-Wl,'
 
9685
      lt_prog_compiler_pic='-KPIC'
 
9686
      lt_prog_compiler_static='-Bstatic'
 
9687
      ;;
 
9688
 
 
9689
    unicos*)
 
9690
      lt_prog_compiler_wl='-Wl,'
 
9691
      lt_prog_compiler_can_build_shared=no
 
9692
      ;;
 
9693
 
 
9694
    uts4*)
 
9695
      lt_prog_compiler_pic='-pic'
 
9696
      lt_prog_compiler_static='-Bstatic'
 
9697
      ;;
 
9698
 
 
9699
    *)
 
9700
      lt_prog_compiler_can_build_shared=no
 
9701
      ;;
 
9702
    esac
 
9703
  fi
 
9704
 
 
9705
case $host_os in
 
9706
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9707
  *djgpp*)
 
9708
    lt_prog_compiler_pic=
 
9709
    ;;
 
9710
  *)
 
9711
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9712
    ;;
 
9713
esac
 
9714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
 
9715
$as_echo "$lt_prog_compiler_pic" >&6; }
 
9716
 
 
9717
 
 
9718
 
 
9719
 
 
9720
 
 
9721
 
 
9722
#
 
9723
# Check to make sure the PIC flag actually works.
 
9724
#
 
9725
if test -n "$lt_prog_compiler_pic"; then
 
9726
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9727
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
9728
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
 
9729
  $as_echo_n "(cached) " >&6
 
9730
else
 
9731
  lt_cv_prog_compiler_pic_works=no
 
9732
   ac_outfile=conftest.$ac_objext
 
9733
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9734
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9735
   # Insert the option either (1) after the last *FLAGS variable, or
 
9736
   # (2) before a word containing "conftest.", or (3) at the end.
 
9737
   # Note that $ac_compile itself does not contain backslashes and begins
 
9738
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9739
   # The option is referenced via a variable to avoid confusing sed.
 
9740
   lt_compile=`echo "$ac_compile" | $SED \
 
9741
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9742
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9743
   -e 's:$: $lt_compiler_flag:'`
 
9744
   (eval echo "\"\$as_me:9744: $lt_compile\"" >&5)
 
9745
   (eval "$lt_compile" 2>conftest.err)
 
9746
   ac_status=$?
 
9747
   cat conftest.err >&5
 
9748
   echo "$as_me:9748: \$? = $ac_status" >&5
 
9749
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9750
     # The compiler can only warn and ignore the option if not recognized
 
9751
     # So say no if there are warnings other than the usual output.
 
9752
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9753
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9754
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9755
       lt_cv_prog_compiler_pic_works=yes
 
9756
     fi
 
9757
   fi
 
9758
   $RM conftest*
 
9759
 
 
9760
fi
 
9761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
9762
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
9763
 
 
9764
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9765
    case $lt_prog_compiler_pic in
 
9766
     "" | " "*) ;;
 
9767
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9768
     esac
 
9769
else
 
9770
    lt_prog_compiler_pic=
 
9771
     lt_prog_compiler_can_build_shared=no
 
9772
fi
 
9773
 
 
9774
fi
 
9775
 
 
9776
 
 
9777
 
 
9778
 
 
9779
 
 
9780
 
 
9781
#
 
9782
# Check to make sure the static flag actually works.
 
9783
#
 
9784
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9786
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
9787
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
 
9788
  $as_echo_n "(cached) " >&6
 
9789
else
 
9790
  lt_cv_prog_compiler_static_works=no
 
9791
   save_LDFLAGS="$LDFLAGS"
 
9792
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9793
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9794
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9795
     # The linker can only warn and ignore the option if not recognized
 
9796
     # So say no if there are warnings
 
9797
     if test -s conftest.err; then
 
9798
       # Append any errors to the config.log.
 
9799
       cat conftest.err 1>&5
 
9800
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9801
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9802
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9803
         lt_cv_prog_compiler_static_works=yes
 
9804
       fi
 
9805
     else
 
9806
       lt_cv_prog_compiler_static_works=yes
 
9807
     fi
 
9808
   fi
 
9809
   $RM -r conftest*
 
9810
   LDFLAGS="$save_LDFLAGS"
 
9811
 
 
9812
fi
 
9813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
9814
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
9815
 
 
9816
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9817
    :
 
9818
else
 
9819
    lt_prog_compiler_static=
 
9820
fi
 
9821
 
 
9822
 
 
9823
 
 
9824
 
 
9825
 
 
9826
 
 
9827
 
 
9828
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9829
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9830
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9831
  $as_echo_n "(cached) " >&6
 
9832
else
 
9833
  lt_cv_prog_compiler_c_o=no
 
9834
   $RM -r conftest 2>/dev/null
 
9835
   mkdir conftest
 
9836
   cd conftest
 
9837
   mkdir out
 
9838
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9839
 
 
9840
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9841
   # Insert the option either (1) after the last *FLAGS variable, or
 
9842
   # (2) before a word containing "conftest.", or (3) at the end.
 
9843
   # Note that $ac_compile itself does not contain backslashes and begins
 
9844
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9845
   lt_compile=`echo "$ac_compile" | $SED \
 
9846
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9847
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9848
   -e 's:$: $lt_compiler_flag:'`
 
9849
   (eval echo "\"\$as_me:9849: $lt_compile\"" >&5)
 
9850
   (eval "$lt_compile" 2>out/conftest.err)
 
9851
   ac_status=$?
 
9852
   cat out/conftest.err >&5
 
9853
   echo "$as_me:9853: \$? = $ac_status" >&5
 
9854
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9855
   then
 
9856
     # The compiler can only warn and ignore the option if not recognized
 
9857
     # So say no if there are warnings
 
9858
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9859
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9860
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9861
       lt_cv_prog_compiler_c_o=yes
 
9862
     fi
 
9863
   fi
 
9864
   chmod u+w . 2>&5
 
9865
   $RM conftest*
 
9866
   # SGI C++ compiler will create directory out/ii_files/ for
 
9867
   # template instantiation
 
9868
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9869
   $RM out/* && rmdir out
 
9870
   cd ..
 
9871
   $RM -r conftest
 
9872
   $RM conftest*
 
9873
 
 
9874
fi
 
9875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9876
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9877
 
 
9878
 
 
9879
 
 
9880
 
 
9881
 
 
9882
 
 
9883
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9884
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
9885
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
 
9886
  $as_echo_n "(cached) " >&6
 
9887
else
 
9888
  lt_cv_prog_compiler_c_o=no
 
9889
   $RM -r conftest 2>/dev/null
 
9890
   mkdir conftest
 
9891
   cd conftest
 
9892
   mkdir out
 
9893
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9894
 
 
9895
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9896
   # Insert the option either (1) after the last *FLAGS variable, or
 
9897
   # (2) before a word containing "conftest.", or (3) at the end.
 
9898
   # Note that $ac_compile itself does not contain backslashes and begins
 
9899
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9900
   lt_compile=`echo "$ac_compile" | $SED \
 
9901
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9902
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9903
   -e 's:$: $lt_compiler_flag:'`
 
9904
   (eval echo "\"\$as_me:9904: $lt_compile\"" >&5)
 
9905
   (eval "$lt_compile" 2>out/conftest.err)
 
9906
   ac_status=$?
 
9907
   cat out/conftest.err >&5
 
9908
   echo "$as_me:9908: \$? = $ac_status" >&5
 
9909
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9910
   then
 
9911
     # The compiler can only warn and ignore the option if not recognized
 
9912
     # So say no if there are warnings
 
9913
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9914
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9915
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9916
       lt_cv_prog_compiler_c_o=yes
 
9917
     fi
 
9918
   fi
 
9919
   chmod u+w . 2>&5
 
9920
   $RM conftest*
 
9921
   # SGI C++ compiler will create directory out/ii_files/ for
 
9922
   # template instantiation
 
9923
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9924
   $RM out/* && rmdir out
 
9925
   cd ..
 
9926
   $RM -r conftest
 
9927
   $RM conftest*
 
9928
 
 
9929
fi
 
9930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
9931
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
9932
 
 
9933
 
 
9934
 
 
9935
 
 
9936
hard_links="nottested"
 
9937
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9938
  # do not overwrite the value of need_locks provided by the user
 
9939
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
9940
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
9941
  hard_links=yes
 
9942
  $RM conftest*
 
9943
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9944
  touch conftest.a
 
9945
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9946
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9947
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
9948
$as_echo "$hard_links" >&6; }
 
9949
  if test "$hard_links" = no; then
 
9950
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9951
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9952
    need_locks=warn
 
9953
  fi
 
9954
else
 
9955
  need_locks=no
 
9956
fi
 
9957
 
 
9958
 
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9964
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
9965
 
 
9966
  runpath_var=
 
9967
  allow_undefined_flag=
 
9968
  always_export_symbols=no
 
9969
  archive_cmds=
 
9970
  archive_expsym_cmds=
 
9971
  compiler_needs_object=no
 
9972
  enable_shared_with_static_runtimes=no
 
9973
  export_dynamic_flag_spec=
 
9974
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
9975
  hardcode_automatic=no
 
9976
  hardcode_direct=no
 
9977
  hardcode_direct_absolute=no
 
9978
  hardcode_libdir_flag_spec=
 
9979
  hardcode_libdir_flag_spec_ld=
 
9980
  hardcode_libdir_separator=
 
9981
  hardcode_minus_L=no
 
9982
  hardcode_shlibpath_var=unsupported
 
9983
  inherit_rpath=no
 
9984
  link_all_deplibs=unknown
 
9985
  module_cmds=
 
9986
  module_expsym_cmds=
 
9987
  old_archive_from_new_cmds=
 
9988
  old_archive_from_expsyms_cmds=
 
9989
  thread_safe_flag_spec=
 
9990
  whole_archive_flag_spec=
 
9991
  # include_expsyms should be a list of space-separated symbols to be *always*
 
9992
  # included in the symbol list
 
9993
  include_expsyms=
 
9994
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
9995
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
9996
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
9997
  # as well as any symbol that contains `d'.
 
9998
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
9999
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
10000
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
10001
  # the symbol is explicitly referenced.  Since portable code cannot
 
10002
  # rely on this symbol name, it's probably fine to never include it in
 
10003
  # preloaded symbol tables.
 
10004
  # Exclude shared library initialization/finalization symbols.
 
10005
  extract_expsyms_cmds=
 
10006
 
 
10007
  case $host_os in
 
10008
  cygwin* | mingw* | pw32* | cegcc*)
 
10009
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
10010
    # When not using gcc, we currently assume that we are using
 
10011
    # Microsoft Visual C++.
 
10012
    if test "$GCC" != yes; then
 
10013
      with_gnu_ld=no
 
10014
    fi
 
10015
    ;;
 
10016
  interix*)
 
10017
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
10018
    with_gnu_ld=yes
 
10019
    ;;
 
10020
  openbsd*)
 
10021
    with_gnu_ld=no
 
10022
    ;;
 
10023
  esac
 
10024
 
 
10025
  ld_shlibs=yes
 
10026
  if test "$with_gnu_ld" = yes; then
 
10027
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10028
    wlarc='${wl}'
 
10029
 
 
10030
    # Set some defaults for GNU ld with shared library support. These
 
10031
    # are reset later if shared libraries are not supported. Putting them
 
10032
    # here allows them to be overridden if necessary.
 
10033
    runpath_var=LD_RUN_PATH
 
10034
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10035
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
10036
    # ancient GNU ld didn't support --whole-archive et. al.
 
10037
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
10038
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10039
    else
 
10040
      whole_archive_flag_spec=
 
10041
    fi
 
10042
    supports_anon_versioning=no
 
10043
    case `$LD -v 2>&1` in
 
10044
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
10045
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
10046
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
10047
      *\ 2.11.*) ;; # other 2.11 versions
 
10048
      *) supports_anon_versioning=yes ;;
 
10049
    esac
 
10050
 
 
10051
    # See if GNU ld supports shared libraries.
 
10052
    case $host_os in
 
10053
    aix[3-9]*)
 
10054
      # On AIX/PPC, the GNU linker is very broken
 
10055
      if test "$host_cpu" != ia64; then
 
10056
        ld_shlibs=no
 
10057
        cat <<_LT_EOF 1>&2
 
10058
 
 
10059
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
10060
*** to be unable to reliably create shared libraries on AIX.
 
10061
*** Therefore, libtool is disabling shared libraries support.  If you
 
10062
*** really care for shared libraries, you may want to modify your PATH
 
10063
*** so that a non-GNU linker is found, and then restart.
 
10064
 
 
10065
_LT_EOF
 
10066
      fi
 
10067
      ;;
 
10068
 
 
10069
    amigaos*)
 
10070
      case $host_cpu in
 
10071
      powerpc)
 
10072
            # see comment about AmigaOS4 .so support
 
10073
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10074
            archive_expsym_cmds=''
 
10075
        ;;
 
10076
      m68k)
 
10077
            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)'
 
10078
            hardcode_libdir_flag_spec='-L$libdir'
 
10079
            hardcode_minus_L=yes
 
10080
        ;;
 
10081
      esac
 
10082
      ;;
 
10083
 
 
10084
    beos*)
 
10085
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10086
        allow_undefined_flag=unsupported
 
10087
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10088
        # support --undefined.  This deserves some investigation.  FIXME
 
10089
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10090
      else
 
10091
        ld_shlibs=no
 
10092
      fi
 
10093
      ;;
 
10094
 
 
10095
    cygwin* | mingw* | pw32* | cegcc*)
 
10096
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10097
      # as there is no search path for DLLs.
 
10098
      hardcode_libdir_flag_spec='-L$libdir'
 
10099
      allow_undefined_flag=unsupported
 
10100
      always_export_symbols=no
 
10101
      enable_shared_with_static_runtimes=yes
 
10102
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10103
 
 
10104
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
10105
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10106
        # If the export-symbols file already is a .def file (1st line
 
10107
        # is EXPORTS), use it as is; otherwise, prepend...
 
10108
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10109
          cp $export_symbols $output_objdir/$soname.def;
 
10110
        else
 
10111
          echo EXPORTS > $output_objdir/$soname.def;
 
10112
          cat $export_symbols >> $output_objdir/$soname.def;
 
10113
        fi~
 
10114
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10115
      else
 
10116
        ld_shlibs=no
 
10117
      fi
 
10118
      ;;
 
10119
 
 
10120
    interix[3-9]*)
 
10121
      hardcode_direct=no
 
10122
      hardcode_shlibpath_var=no
 
10123
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10124
      export_dynamic_flag_spec='${wl}-E'
 
10125
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10126
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10127
      # default) and relocated if they conflict, which is a slow very memory
 
10128
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
10129
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10130
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10131
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10132
      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'
 
10133
      ;;
 
10134
 
 
10135
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
10136
      tmp_diet=no
 
10137
      if test "$host_os" = linux-dietlibc; then
 
10138
        case $cc_basename in
 
10139
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
10140
        esac
 
10141
      fi
 
10142
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
10143
         && test "$tmp_diet" = no
 
10144
      then
 
10145
        tmp_addflag=
 
10146
        tmp_sharedflag='-shared'
 
10147
        case $cc_basename,$host_cpu in
 
10148
        pgcc*)                          # Portland Group C compiler
 
10149
          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'
 
10150
          tmp_addflag=' $pic_flag'
 
10151
          ;;
 
10152
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
10153
          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'
 
10154
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
10155
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
10156
          tmp_addflag=' -i_dynamic' ;;
 
10157
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
10158
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
10159
        ifc* | ifort*)                  # Intel Fortran compiler
 
10160
          tmp_addflag=' -nofor_main' ;;
 
10161
        lf95*)                          # Lahey Fortran 8.1
 
10162
          whole_archive_flag_spec=
 
10163
          tmp_sharedflag='--shared' ;;
 
10164
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
10165
          tmp_sharedflag='-qmkshrobj'
 
10166
          tmp_addflag= ;;
 
10167
        esac
 
10168
        case `$CC -V 2>&1 | sed 5q` in
 
10169
        *Sun\ C*)                       # Sun C 5.9
 
10170
          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'
 
10171
          compiler_needs_object=yes
 
10172
          tmp_sharedflag='-G' ;;
 
10173
        *Sun\ F*)                       # Sun Fortran 8.3
 
10174
          tmp_sharedflag='-G' ;;
 
10175
        esac
 
10176
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10177
 
 
10178
        if test "x$supports_anon_versioning" = xyes; then
 
10179
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10180
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10181
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
10182
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
10183
        fi
 
10184
 
 
10185
        case $cc_basename in
 
10186
        xlf*)
 
10187
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
10188
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
10189
          hardcode_libdir_flag_spec=
 
10190
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10191
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
10192
          if test "x$supports_anon_versioning" = xyes; then
 
10193
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10194
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10195
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10196
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10197
          fi
 
10198
          ;;
 
10199
        esac
 
10200
      else
 
10201
        ld_shlibs=no
 
10202
      fi
 
10203
      ;;
 
10204
 
 
10205
    netbsd*)
 
10206
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10207
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10208
        wlarc=
 
10209
      else
 
10210
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10211
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10212
      fi
 
10213
      ;;
 
10214
 
 
10215
    solaris*)
 
10216
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
10217
        ld_shlibs=no
 
10218
        cat <<_LT_EOF 1>&2
 
10219
 
 
10220
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10221
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10222
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10223
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10224
*** your PATH or compiler configuration so that the native linker is
 
10225
*** used, and then restart.
 
10226
 
 
10227
_LT_EOF
 
10228
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10229
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10230
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10231
      else
 
10232
        ld_shlibs=no
 
10233
      fi
 
10234
      ;;
 
10235
 
 
10236
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10237
      case `$LD -v 2>&1` in
 
10238
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10239
        ld_shlibs=no
 
10240
        cat <<_LT_EOF 1>&2
 
10241
 
 
10242
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10243
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10244
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10245
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10246
*** your PATH or compiler configuration so that the native linker is
 
10247
*** used, and then restart.
 
10248
 
 
10249
_LT_EOF
 
10250
        ;;
 
10251
        *)
 
10252
          # For security reasons, it is highly recommended that you always
 
10253
          # use absolute paths for naming shared libraries, and exclude the
 
10254
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10255
          # requires that you compile everything twice, which is a pain.
 
10256
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10257
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10258
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10259
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10260
          else
 
10261
            ld_shlibs=no
 
10262
          fi
 
10263
        ;;
 
10264
      esac
 
10265
      ;;
 
10266
 
 
10267
    sunos4*)
 
10268
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10269
      wlarc=
 
10270
      hardcode_direct=yes
 
10271
      hardcode_shlibpath_var=no
 
10272
      ;;
 
10273
 
 
10274
    *)
 
10275
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10276
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10277
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10278
      else
 
10279
        ld_shlibs=no
 
10280
      fi
 
10281
      ;;
 
10282
    esac
 
10283
 
 
10284
    if test "$ld_shlibs" = no; then
 
10285
      runpath_var=
 
10286
      hardcode_libdir_flag_spec=
 
10287
      export_dynamic_flag_spec=
 
10288
      whole_archive_flag_spec=
 
10289
    fi
 
10290
  else
 
10291
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10292
    case $host_os in
 
10293
    aix3*)
 
10294
      allow_undefined_flag=unsupported
 
10295
      always_export_symbols=yes
 
10296
      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'
 
10297
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10298
      # are no directories specified by -L.
 
10299
      hardcode_minus_L=yes
 
10300
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
10301
        # Neither direct hardcoding nor static linking is supported with a
 
10302
        # broken collect2.
 
10303
        hardcode_direct=unsupported
 
10304
      fi
 
10305
      ;;
 
10306
 
 
10307
    aix[4-9]*)
 
10308
      if test "$host_cpu" = ia64; then
 
10309
        # On IA64, the linker does run time linking by default, so we don't
 
10310
        # have to do anything special.
 
10311
        aix_use_runtimelinking=no
 
10312
        exp_sym_flag='-Bexport'
 
10313
        no_entry_flag=""
 
10314
      else
 
10315
        # If we're using GNU nm, then we don't want the "-C" option.
 
10316
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10317
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10318
          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'
 
10319
        else
 
10320
          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'
 
10321
        fi
 
10322
        aix_use_runtimelinking=no
 
10323
 
 
10324
        # Test if we are trying to use run time linking or normal
 
10325
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10326
        # need to do runtime linking.
 
10327
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10328
          for ld_flag in $LDFLAGS; do
 
10329
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
10330
            aix_use_runtimelinking=yes
 
10331
            break
 
10332
          fi
 
10333
          done
 
10334
          ;;
 
10335
        esac
 
10336
 
 
10337
        exp_sym_flag='-bexport'
 
10338
        no_entry_flag='-bnoentry'
 
10339
      fi
 
10340
 
 
10341
      # When large executables or shared objects are built, AIX ld can
 
10342
      # have problems creating the table of contents.  If linking a library
 
10343
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10344
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10345
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10346
 
 
10347
      archive_cmds=''
 
10348
      hardcode_direct=yes
 
10349
      hardcode_direct_absolute=yes
 
10350
      hardcode_libdir_separator=':'
 
10351
      link_all_deplibs=yes
 
10352
      file_list_spec='${wl}-f,'
 
10353
 
 
10354
      if test "$GCC" = yes; then
 
10355
        case $host_os in aix4.[012]|aix4.[012].*)
 
10356
        # We only want to do this on AIX 4.2 and lower, the check
 
10357
        # below for broken collect2 doesn't work under 4.3+
 
10358
          collect2name=`${CC} -print-prog-name=collect2`
 
10359
          if test -f "$collect2name" &&
 
10360
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10361
          then
 
10362
          # We have reworked collect2
 
10363
          :
 
10364
          else
 
10365
          # We have old collect2
 
10366
          hardcode_direct=unsupported
 
10367
          # It fails to find uninstalled libraries when the uninstalled
 
10368
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10369
          # to unsupported forces relinking
 
10370
          hardcode_minus_L=yes
 
10371
          hardcode_libdir_flag_spec='-L$libdir'
 
10372
          hardcode_libdir_separator=
 
10373
          fi
 
10374
          ;;
 
10375
        esac
 
10376
        shared_flag='-shared'
 
10377
        if test "$aix_use_runtimelinking" = yes; then
 
10378
          shared_flag="$shared_flag "'${wl}-G'
 
10379
        fi
 
10380
      else
 
10381
        # not using gcc
 
10382
        if test "$host_cpu" = ia64; then
 
10383
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10384
        # chokes on -Wl,-G. The following line is correct:
 
10385
          shared_flag='-G'
 
10386
        else
 
10387
          if test "$aix_use_runtimelinking" = yes; then
 
10388
            shared_flag='${wl}-G'
 
10389
          else
 
10390
            shared_flag='${wl}-bM:SRE'
 
10391
          fi
 
10392
        fi
 
10393
      fi
 
10394
 
 
10395
      export_dynamic_flag_spec='${wl}-bexpall'
 
10396
      # It seems that -bexpall does not export symbols beginning with
 
10397
      # underscore (_), so it is better to generate a list of symbols to export.
 
10398
      always_export_symbols=yes
 
10399
      if test "$aix_use_runtimelinking" = yes; then
 
10400
        # Warning - without using the other runtime loading flags (-brtl),
 
10401
        # -berok will link without error, but may produce a broken library.
 
10402
        allow_undefined_flag='-berok'
 
10403
        # Determine the default libpath from the value encoded in an
 
10404
        # empty executable.
 
10405
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10406
/* end confdefs.h.  */
 
10407
 
 
10408
int
 
10409
main ()
 
10410
{
 
10411
 
 
10412
  ;
 
10413
  return 0;
 
10414
}
 
10415
_ACEOF
 
10416
if ac_fn_c_try_link "$LINENO"; then :
 
10417
 
 
10418
lt_aix_libpath_sed='
 
10419
    /Import File Strings/,/^$/ {
 
10420
        /^0/ {
 
10421
            s/^0  *\(.*\)$/\1/
 
10422
            p
 
10423
        }
 
10424
    }'
 
10425
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10426
# Check for a 64-bit object if we didn't find anything.
 
10427
if test -z "$aix_libpath"; then
 
10428
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10429
fi
 
10430
fi
 
10431
rm -f core conftest.err conftest.$ac_objext \
 
10432
    conftest$ac_exeext conftest.$ac_ext
 
10433
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10434
 
 
10435
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10436
        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"
 
10437
      else
 
10438
        if test "$host_cpu" = ia64; then
 
10439
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10440
          allow_undefined_flag="-z nodefs"
 
10441
          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"
 
10442
        else
 
10443
         # Determine the default libpath from the value encoded in an
 
10444
         # empty executable.
 
10445
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10446
/* end confdefs.h.  */
 
10447
 
 
10448
int
 
10449
main ()
 
10450
{
 
10451
 
 
10452
  ;
 
10453
  return 0;
 
10454
}
 
10455
_ACEOF
 
10456
if ac_fn_c_try_link "$LINENO"; then :
 
10457
 
 
10458
lt_aix_libpath_sed='
 
10459
    /Import File Strings/,/^$/ {
 
10460
        /^0/ {
 
10461
            s/^0  *\(.*\)$/\1/
 
10462
            p
 
10463
        }
 
10464
    }'
 
10465
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10466
# Check for a 64-bit object if we didn't find anything.
 
10467
if test -z "$aix_libpath"; then
 
10468
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10469
fi
 
10470
fi
 
10471
rm -f core conftest.err conftest.$ac_objext \
 
10472
    conftest$ac_exeext conftest.$ac_ext
 
10473
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10474
 
 
10475
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10476
          # Warning - without using the other run time loading flags,
 
10477
          # -berok will link without error, but may produce a broken library.
 
10478
          no_undefined_flag=' ${wl}-bernotok'
 
10479
          allow_undefined_flag=' ${wl}-berok'
 
10480
          # Exported symbols can be pulled into shared objects from archives
 
10481
          whole_archive_flag_spec='$convenience'
 
10482
          archive_cmds_need_lc=yes
 
10483
          # This is similar to how AIX traditionally builds its shared libraries.
 
10484
          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'
 
10485
        fi
 
10486
      fi
 
10487
      ;;
 
10488
 
 
10489
    amigaos*)
 
10490
      case $host_cpu in
 
10491
      powerpc)
 
10492
            # see comment about AmigaOS4 .so support
 
10493
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10494
            archive_expsym_cmds=''
 
10495
        ;;
 
10496
      m68k)
 
10497
            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)'
 
10498
            hardcode_libdir_flag_spec='-L$libdir'
 
10499
            hardcode_minus_L=yes
 
10500
        ;;
 
10501
      esac
 
10502
      ;;
 
10503
 
 
10504
    bsdi[45]*)
 
10505
      export_dynamic_flag_spec=-rdynamic
 
10506
      ;;
 
10507
 
 
10508
    cygwin* | mingw* | pw32* | cegcc*)
 
10509
      # When not using gcc, we currently assume that we are using
 
10510
      # Microsoft Visual C++.
 
10511
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10512
      # no search path for DLLs.
 
10513
      hardcode_libdir_flag_spec=' '
 
10514
      allow_undefined_flag=unsupported
 
10515
      # Tell ltmain to make .lib files, not .a files.
 
10516
      libext=lib
 
10517
      # Tell ltmain to make .dll files, not .so files.
 
10518
      shrext_cmds=".dll"
 
10519
      # FIXME: Setting linknames here is a bad hack.
 
10520
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
10521
      # The linker will automatically build a .lib file if we build a DLL.
 
10522
      old_archive_from_new_cmds='true'
 
10523
      # FIXME: Should let the user specify the lib program.
 
10524
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10525
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
10526
      enable_shared_with_static_runtimes=yes
 
10527
      ;;
 
10528
 
 
10529
    darwin* | rhapsody*)
 
10530
 
 
10531
 
 
10532
  archive_cmds_need_lc=no
 
10533
  hardcode_direct=no
 
10534
  hardcode_automatic=yes
 
10535
  hardcode_shlibpath_var=unsupported
 
10536
  whole_archive_flag_spec=''
 
10537
  link_all_deplibs=yes
 
10538
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10539
  case $cc_basename in
 
10540
     ifort*) _lt_dar_can_shared=yes ;;
 
10541
     *) _lt_dar_can_shared=$GCC ;;
 
10542
  esac
 
10543
  if test "$_lt_dar_can_shared" = "yes"; then
 
10544
    output_verbose_link_cmd=echo
 
10545
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10546
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10547
    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}"
 
10548
    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}"
 
10549
 
 
10550
  else
 
10551
  ld_shlibs=no
 
10552
  fi
 
10553
 
 
10554
      ;;
 
10555
 
 
10556
    dgux*)
 
10557
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10558
      hardcode_libdir_flag_spec='-L$libdir'
 
10559
      hardcode_shlibpath_var=no
 
10560
      ;;
 
10561
 
 
10562
    freebsd1*)
 
10563
      ld_shlibs=no
 
10564
      ;;
 
10565
 
 
10566
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10567
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10568
    # does not break anything, and helps significantly (at the cost of a little
 
10569
    # extra space).
 
10570
    freebsd2.2*)
 
10571
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10572
      hardcode_libdir_flag_spec='-R$libdir'
 
10573
      hardcode_direct=yes
 
10574
      hardcode_shlibpath_var=no
 
10575
      ;;
 
10576
 
 
10577
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10578
    freebsd2*)
 
10579
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10580
      hardcode_direct=yes
 
10581
      hardcode_minus_L=yes
 
10582
      hardcode_shlibpath_var=no
 
10583
      ;;
 
10584
 
 
10585
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10586
    freebsd* | dragonfly*)
 
10587
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
10588
      hardcode_libdir_flag_spec='-R$libdir'
 
10589
      hardcode_direct=yes
 
10590
      hardcode_shlibpath_var=no
 
10591
      ;;
 
10592
 
 
10593
    hpux9*)
 
10594
      if test "$GCC" = yes; then
 
10595
        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'
 
10596
      else
 
10597
        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'
 
10598
      fi
 
10599
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10600
      hardcode_libdir_separator=:
 
10601
      hardcode_direct=yes
 
10602
 
 
10603
      # hardcode_minus_L: Not really in the search PATH,
 
10604
      # but as the default location of the library.
 
10605
      hardcode_minus_L=yes
 
10606
      export_dynamic_flag_spec='${wl}-E'
 
10607
      ;;
 
10608
 
 
10609
    hpux10*)
 
10610
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10611
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10612
      else
 
10613
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10614
      fi
 
10615
      if test "$with_gnu_ld" = no; then
 
10616
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10617
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
10618
        hardcode_libdir_separator=:
 
10619
        hardcode_direct=yes
 
10620
        hardcode_direct_absolute=yes
 
10621
        export_dynamic_flag_spec='${wl}-E'
 
10622
        # hardcode_minus_L: Not really in the search PATH,
 
10623
        # but as the default location of the library.
 
10624
        hardcode_minus_L=yes
 
10625
      fi
 
10626
      ;;
 
10627
 
 
10628
    hpux11*)
 
10629
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10630
        case $host_cpu in
 
10631
        hppa*64*)
 
10632
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10633
          ;;
 
10634
        ia64*)
 
10635
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10636
          ;;
 
10637
        *)
 
10638
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10639
          ;;
 
10640
        esac
 
10641
      else
 
10642
        case $host_cpu in
 
10643
        hppa*64*)
 
10644
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10645
          ;;
 
10646
        ia64*)
 
10647
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10648
          ;;
 
10649
        *)
 
10650
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10651
          ;;
 
10652
        esac
 
10653
      fi
 
10654
      if test "$with_gnu_ld" = no; then
 
10655
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10656
        hardcode_libdir_separator=:
 
10657
 
 
10658
        case $host_cpu in
 
10659
        hppa*64*|ia64*)
 
10660
          hardcode_direct=no
 
10661
          hardcode_shlibpath_var=no
 
10662
          ;;
 
10663
        *)
 
10664
          hardcode_direct=yes
 
10665
          hardcode_direct_absolute=yes
 
10666
          export_dynamic_flag_spec='${wl}-E'
 
10667
 
 
10668
          # hardcode_minus_L: Not really in the search PATH,
 
10669
          # but as the default location of the library.
 
10670
          hardcode_minus_L=yes
 
10671
          ;;
 
10672
        esac
 
10673
      fi
 
10674
      ;;
 
10675
 
 
10676
    irix5* | irix6* | nonstopux*)
 
10677
      if test "$GCC" = yes; then
 
10678
        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'
 
10679
        # Try to use the -exported_symbol ld option, if it does not
 
10680
        # work, assume that -exports_file does not work either and
 
10681
        # implicitly export all symbols.
 
10682
        save_LDFLAGS="$LDFLAGS"
 
10683
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10684
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10685
/* end confdefs.h.  */
 
10686
int foo(void) {}
 
10687
_ACEOF
 
10688
if ac_fn_c_try_link "$LINENO"; then :
 
10689
  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'
 
10690
 
 
10691
fi
 
10692
rm -f core conftest.err conftest.$ac_objext \
 
10693
    conftest$ac_exeext conftest.$ac_ext
 
10694
        LDFLAGS="$save_LDFLAGS"
 
10695
      else
 
10696
        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'
 
10697
        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'
 
10698
      fi
 
10699
      archive_cmds_need_lc='no'
 
10700
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10701
      hardcode_libdir_separator=:
 
10702
      inherit_rpath=yes
 
10703
      link_all_deplibs=yes
 
10704
      ;;
 
10705
 
 
10706
    netbsd*)
 
10707
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10708
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10709
      else
 
10710
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10711
      fi
 
10712
      hardcode_libdir_flag_spec='-R$libdir'
 
10713
      hardcode_direct=yes
 
10714
      hardcode_shlibpath_var=no
 
10715
      ;;
 
10716
 
 
10717
    newsos6)
 
10718
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10719
      hardcode_direct=yes
 
10720
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10721
      hardcode_libdir_separator=:
 
10722
      hardcode_shlibpath_var=no
 
10723
      ;;
 
10724
 
 
10725
    *nto* | *qnx*)
 
10726
      ;;
 
10727
 
 
10728
    openbsd*)
 
10729
      if test -f /usr/libexec/ld.so; then
 
10730
        hardcode_direct=yes
 
10731
        hardcode_shlibpath_var=no
 
10732
        hardcode_direct_absolute=yes
 
10733
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10734
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10735
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10736
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10737
          export_dynamic_flag_spec='${wl}-E'
 
10738
        else
 
10739
          case $host_os in
 
10740
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10741
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10742
             hardcode_libdir_flag_spec='-R$libdir'
 
10743
             ;;
 
10744
           *)
 
10745
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10746
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10747
             ;;
 
10748
          esac
 
10749
        fi
 
10750
      else
 
10751
        ld_shlibs=no
 
10752
      fi
 
10753
      ;;
 
10754
 
 
10755
    os2*)
 
10756
      hardcode_libdir_flag_spec='-L$libdir'
 
10757
      hardcode_minus_L=yes
 
10758
      allow_undefined_flag=unsupported
 
10759
      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'
 
10760
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10761
      ;;
 
10762
 
 
10763
    osf3*)
 
10764
      if test "$GCC" = yes; then
 
10765
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10766
        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'
 
10767
      else
 
10768
        allow_undefined_flag=' -expect_unresolved \*'
 
10769
        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'
 
10770
      fi
 
10771
      archive_cmds_need_lc='no'
 
10772
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10773
      hardcode_libdir_separator=:
 
10774
      ;;
 
10775
 
 
10776
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10777
      if test "$GCC" = yes; then
 
10778
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10779
        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'
 
10780
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10781
      else
 
10782
        allow_undefined_flag=' -expect_unresolved \*'
 
10783
        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'
 
10784
        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~
 
10785
        $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'
 
10786
 
 
10787
        # Both c and cxx compiler support -rpath directly
 
10788
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10789
      fi
 
10790
      archive_cmds_need_lc='no'
 
10791
      hardcode_libdir_separator=:
 
10792
      ;;
 
10793
 
 
10794
    solaris*)
 
10795
      no_undefined_flag=' -z defs'
 
10796
      if test "$GCC" = yes; then
 
10797
        wlarc='${wl}'
 
10798
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10799
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10800
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10801
      else
 
10802
        case `$CC -V 2>&1` in
 
10803
        *"Compilers 5.0"*)
 
10804
          wlarc=''
 
10805
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10806
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10807
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10808
          ;;
 
10809
        *)
 
10810
          wlarc='${wl}'
 
10811
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10812
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10813
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10814
          ;;
 
10815
        esac
 
10816
      fi
 
10817
      hardcode_libdir_flag_spec='-R$libdir'
 
10818
      hardcode_shlibpath_var=no
 
10819
      case $host_os in
 
10820
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10821
      *)
 
10822
        # The compiler driver will combine and reorder linker options,
 
10823
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10824
        # but is careful enough not to reorder.
 
10825
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10826
        if test "$GCC" = yes; then
 
10827
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10828
        else
 
10829
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10830
        fi
 
10831
        ;;
 
10832
      esac
 
10833
      link_all_deplibs=yes
 
10834
      ;;
 
10835
 
 
10836
    sunos4*)
 
10837
      if test "x$host_vendor" = xsequent; then
 
10838
        # Use $CC to link under sequent, because it throws in some extra .o
 
10839
        # files that make .init and .fini sections work.
 
10840
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10841
      else
 
10842
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10843
      fi
 
10844
      hardcode_libdir_flag_spec='-L$libdir'
 
10845
      hardcode_direct=yes
 
10846
      hardcode_minus_L=yes
 
10847
      hardcode_shlibpath_var=no
 
10848
      ;;
 
10849
 
 
10850
    sysv4)
 
10851
      case $host_vendor in
 
10852
        sni)
 
10853
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10854
          hardcode_direct=yes # is this really true???
 
10855
        ;;
 
10856
        siemens)
 
10857
          ## LD is ld it makes a PLAMLIB
 
10858
          ## CC just makes a GrossModule.
 
10859
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10860
          reload_cmds='$CC -r -o $output$reload_objs'
 
10861
          hardcode_direct=no
 
10862
        ;;
 
10863
        motorola)
 
10864
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10865
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10866
        ;;
 
10867
      esac
 
10868
      runpath_var='LD_RUN_PATH'
 
10869
      hardcode_shlibpath_var=no
 
10870
      ;;
 
10871
 
 
10872
    sysv4.3*)
 
10873
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10874
      hardcode_shlibpath_var=no
 
10875
      export_dynamic_flag_spec='-Bexport'
 
10876
      ;;
 
10877
 
 
10878
    sysv4*MP*)
 
10879
      if test -d /usr/nec; then
 
10880
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10881
        hardcode_shlibpath_var=no
 
10882
        runpath_var=LD_RUN_PATH
 
10883
        hardcode_runpath_var=yes
 
10884
        ld_shlibs=yes
 
10885
      fi
 
10886
      ;;
 
10887
 
 
10888
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10889
      no_undefined_flag='${wl}-z,text'
 
10890
      archive_cmds_need_lc=no
 
10891
      hardcode_shlibpath_var=no
 
10892
      runpath_var='LD_RUN_PATH'
 
10893
 
 
10894
      if test "$GCC" = yes; then
 
10895
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10896
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10897
      else
 
10898
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10899
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10900
      fi
 
10901
      ;;
 
10902
 
 
10903
    sysv5* | sco3.2v5* | sco5v6*)
 
10904
      # Note: We can NOT use -z defs as we might desire, because we do not
 
10905
      # link with -lc, and that would cause any symbols used from libc to
 
10906
      # always be unresolved, which means just about no library would
 
10907
      # ever link correctly.  If we're not using GNU ld we use -z text
 
10908
      # though, which does catch some bad symbols but isn't as heavy-handed
 
10909
      # as -z defs.
 
10910
      no_undefined_flag='${wl}-z,text'
 
10911
      allow_undefined_flag='${wl}-z,nodefs'
 
10912
      archive_cmds_need_lc=no
 
10913
      hardcode_shlibpath_var=no
 
10914
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
10915
      hardcode_libdir_separator=':'
 
10916
      link_all_deplibs=yes
 
10917
      export_dynamic_flag_spec='${wl}-Bexport'
 
10918
      runpath_var='LD_RUN_PATH'
 
10919
 
 
10920
      if test "$GCC" = yes; then
 
10921
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10922
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10923
      else
 
10924
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10925
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10926
      fi
 
10927
      ;;
 
10928
 
 
10929
    uts4*)
 
10930
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10931
      hardcode_libdir_flag_spec='-L$libdir'
 
10932
      hardcode_shlibpath_var=no
 
10933
      ;;
 
10934
 
 
10935
    *)
 
10936
      ld_shlibs=no
 
10937
      ;;
 
10938
    esac
 
10939
 
 
10940
    if test x$host_vendor = xsni; then
 
10941
      case $host in
 
10942
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10943
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10944
        ;;
 
10945
      esac
 
10946
    fi
 
10947
  fi
 
10948
 
 
10949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
10950
$as_echo "$ld_shlibs" >&6; }
 
10951
test "$ld_shlibs" = no && can_build_shared=no
 
10952
 
 
10953
with_gnu_ld=$with_gnu_ld
 
10954
 
 
10955
 
 
10956
 
 
10957
 
 
10958
 
 
10959
 
 
10960
 
 
10961
 
 
10962
 
 
10963
 
 
10964
 
 
10965
 
 
10966
 
 
10967
 
 
10968
 
 
10969
#
 
10970
# Do we need to explicitly link libc?
 
10971
#
 
10972
case "x$archive_cmds_need_lc" in
 
10973
x|xyes)
 
10974
  # Assume -lc should be added
 
10975
  archive_cmds_need_lc=yes
 
10976
 
 
10977
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10978
    case $archive_cmds in
 
10979
    *'~'*)
 
10980
      # FIXME: we may have to deal with multi-command sequences.
 
10981
      ;;
 
10982
    '$CC '*)
 
10983
      # Test whether the compiler implicitly links with -lc since on some
 
10984
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10985
      # to ld, don't add -lc before -lgcc.
 
10986
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
10987
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
10988
      $RM conftest*
 
10989
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10990
 
 
10991
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
10992
  (eval $ac_compile) 2>&5
 
10993
  ac_status=$?
 
10994
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
10995
  test $ac_status = 0; } 2>conftest.err; then
 
10996
        soname=conftest
 
10997
        lib=conftest
 
10998
        libobjs=conftest.$ac_objext
 
10999
        deplibs=
 
11000
        wl=$lt_prog_compiler_wl
 
11001
        pic_flag=$lt_prog_compiler_pic
 
11002
        compiler_flags=-v
 
11003
        linker_flags=-v
 
11004
        verstring=
 
11005
        output_objdir=.
 
11006
        libname=conftest
 
11007
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
11008
        allow_undefined_flag=
 
11009
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
11010
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11011
  ac_status=$?
 
11012
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11013
  test $ac_status = 0; }
 
11014
        then
 
11015
          archive_cmds_need_lc=no
 
11016
        else
 
11017
          archive_cmds_need_lc=yes
 
11018
        fi
 
11019
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
11020
      else
 
11021
        cat conftest.err 1>&5
 
11022
      fi
 
11023
      $RM conftest*
 
11024
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
 
11025
$as_echo "$archive_cmds_need_lc" >&6; }
 
11026
      ;;
 
11027
    esac
 
11028
  fi
 
11029
  ;;
 
11030
esac
 
11031
 
 
11032
 
 
11033
 
 
11034
 
 
11035
 
 
11036
 
 
11037
 
 
11038
 
 
11039
 
 
11040
 
 
11041
 
 
11042
 
 
11043
 
 
11044
 
 
11045
 
 
11046
 
 
11047
 
 
11048
 
 
11049
 
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
 
 
11065
 
 
11066
 
 
11067
 
 
11068
 
 
11069
 
 
11070
 
 
11071
 
 
11072
 
 
11073
 
 
11074
 
 
11075
 
 
11076
 
 
11077
 
 
11078
 
 
11079
 
 
11080
 
 
11081
 
 
11082
 
 
11083
 
 
11084
 
 
11085
 
 
11086
 
 
11087
 
 
11088
 
 
11089
 
 
11090
 
 
11091
 
 
11092
 
 
11093
 
 
11094
 
 
11095
 
 
11096
 
 
11097
 
 
11098
 
 
11099
 
 
11100
 
 
11101
 
 
11102
 
 
11103
 
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
 
11109
 
 
11110
 
 
11111
 
 
11112
 
 
11113
 
 
11114
 
 
11115
 
 
11116
 
 
11117
 
 
11118
 
 
11119
 
 
11120
 
 
11121
 
 
11122
 
 
11123
 
 
11124
 
 
11125
 
 
11126
 
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
11189
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
11190
 
 
11191
if test "$GCC" = yes; then
 
11192
  case $host_os in
 
11193
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
11194
    *) lt_awk_arg="/^libraries:/" ;;
 
11195
  esac
 
11196
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11197
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
11198
    # if the path contains ";" then we assume it to be the separator
 
11199
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11200
    # assumed that no part of a normal pathname contains ";" but that should
 
11201
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11202
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
11203
  else
 
11204
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11205
  fi
 
11206
  # Ok, now we have the path, separated by spaces, we can step through it
 
11207
  # and add multilib dir if necessary.
 
11208
  lt_tmp_lt_search_path_spec=
 
11209
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11210
  for lt_sys_path in $lt_search_path_spec; do
 
11211
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
11212
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
11213
    else
 
11214
      test -d "$lt_sys_path" && \
 
11215
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11216
    fi
 
11217
  done
 
11218
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
11219
BEGIN {RS=" "; FS="/|\n";} {
 
11220
  lt_foo="";
 
11221
  lt_count=0;
 
11222
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11223
    if ($lt_i != "" && $lt_i != ".") {
 
11224
      if ($lt_i == "..") {
 
11225
        lt_count++;
 
11226
      } else {
 
11227
        if (lt_count == 0) {
 
11228
          lt_foo="/" $lt_i lt_foo;
 
11229
        } else {
 
11230
          lt_count--;
 
11231
        }
 
11232
      }
 
11233
    }
 
11234
  }
 
11235
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11236
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11237
}'`
 
11238
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
11239
else
 
11240
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11241
fi
 
11242
library_names_spec=
 
11243
libname_spec='lib$name'
 
11244
soname_spec=
 
11245
shrext_cmds=".so"
 
11246
postinstall_cmds=
 
11247
postuninstall_cmds=
 
11248
finish_cmds=
 
11249
finish_eval=
 
11250
shlibpath_var=
 
11251
shlibpath_overrides_runpath=unknown
 
11252
version_type=none
 
11253
dynamic_linker="$host_os ld.so"
 
11254
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11255
need_lib_prefix=unknown
 
11256
hardcode_into_libs=no
 
11257
 
 
11258
# when you set need_version to no, make sure it does not cause -set_version
 
11259
# flags to be left without arguments
 
11260
need_version=unknown
 
11261
 
 
11262
case $host_os in
 
11263
aix3*)
 
11264
  version_type=linux
 
11265
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11266
  shlibpath_var=LIBPATH
 
11267
 
 
11268
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11269
  soname_spec='${libname}${release}${shared_ext}$major'
 
11270
  ;;
 
11271
 
 
11272
aix[4-9]*)
 
11273
  version_type=linux
 
11274
  need_lib_prefix=no
 
11275
  need_version=no
 
11276
  hardcode_into_libs=yes
 
11277
  if test "$host_cpu" = ia64; then
 
11278
    # AIX 5 supports IA64
 
11279
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11280
    shlibpath_var=LD_LIBRARY_PATH
 
11281
  else
 
11282
    # With GCC up to 2.95.x, collect2 would create an import file
 
11283
    # for dependence libraries.  The import file would start with
 
11284
    # the line `#! .'.  This would cause the generated library to
 
11285
    # depend on `.', always an invalid library.  This was fixed in
 
11286
    # development snapshots of GCC prior to 3.0.
 
11287
    case $host_os in
 
11288
      aix4 | aix4.[01] | aix4.[01].*)
 
11289
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11290
           echo ' yes '
 
11291
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11292
        :
 
11293
      else
 
11294
        can_build_shared=no
 
11295
      fi
 
11296
      ;;
 
11297
    esac
 
11298
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11299
    # soname into executable. Probably we can add versioning support to
 
11300
    # collect2, so additional links can be useful in future.
 
11301
    if test "$aix_use_runtimelinking" = yes; then
 
11302
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11303
      # instead of lib<name>.a to let people know that these are not
 
11304
      # typical AIX shared libraries.
 
11305
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11306
    else
 
11307
      # We preserve .a as extension for shared libraries through AIX4.2
 
11308
      # and later when we are not doing run time linking.
 
11309
      library_names_spec='${libname}${release}.a $libname.a'
 
11310
      soname_spec='${libname}${release}${shared_ext}$major'
 
11311
    fi
 
11312
    shlibpath_var=LIBPATH
 
11313
  fi
 
11314
  ;;
 
11315
 
 
11316
amigaos*)
 
11317
  case $host_cpu in
 
11318
  powerpc)
 
11319
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11320
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11321
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11322
    ;;
 
11323
  m68k)
 
11324
    library_names_spec='$libname.ixlibrary $libname.a'
 
11325
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11326
    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'
 
11327
    ;;
 
11328
  esac
 
11329
  ;;
 
11330
 
 
11331
beos*)
 
11332
  library_names_spec='${libname}${shared_ext}'
 
11333
  dynamic_linker="$host_os ld.so"
 
11334
  shlibpath_var=LIBRARY_PATH
 
11335
  ;;
 
11336
 
 
11337
bsdi[45]*)
 
11338
  version_type=linux
 
11339
  need_version=no
 
11340
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11341
  soname_spec='${libname}${release}${shared_ext}$major'
 
11342
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11343
  shlibpath_var=LD_LIBRARY_PATH
 
11344
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11345
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11346
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11347
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11348
  # libtool to hard-code these into programs
 
11349
  ;;
 
11350
 
 
11351
cygwin* | mingw* | pw32* | cegcc*)
 
11352
  version_type=windows
 
11353
  shrext_cmds=".dll"
 
11354
  need_version=no
 
11355
  need_lib_prefix=no
 
11356
 
 
11357
  case $GCC,$host_os in
 
11358
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
 
11359
    library_names_spec='$libname.dll.a'
 
11360
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11361
    postinstall_cmds='base_file=`basename \${file}`~
 
11362
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11363
      dldir=$destdir/`dirname \$dlpath`~
 
11364
      test -d \$dldir || mkdir -p \$dldir~
 
11365
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11366
      chmod a+x \$dldir/$dlname~
 
11367
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11368
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11369
      fi'
 
11370
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11371
      dlpath=$dir/\$dldll~
 
11372
       $RM \$dlpath'
 
11373
    shlibpath_overrides_runpath=yes
 
11374
 
 
11375
    case $host_os in
 
11376
    cygwin*)
 
11377
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11378
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11379
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11380
      ;;
 
11381
    mingw* | cegcc*)
 
11382
      # MinGW DLLs use traditional 'lib' prefix
 
11383
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11384
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11385
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11386
        # It is most probably a Windows format PATH printed by
 
11387
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11388
        # path with ; separators, and with drive letters. We can handle the
 
11389
        # drive letters (cygwin fileutils understands them), so leave them,
 
11390
        # especially as we might pass files found there to a mingw objdump,
 
11391
        # which wouldn't understand a cygwinified path. Ahh.
 
11392
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11393
      else
 
11394
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11395
      fi
 
11396
      ;;
 
11397
    pw32*)
 
11398
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11399
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11400
      ;;
 
11401
    esac
 
11402
    ;;
 
11403
 
 
11404
  *)
 
11405
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11406
    ;;
 
11407
  esac
 
11408
  dynamic_linker='Win32 ld.exe'
 
11409
  # FIXME: first we should search . and the directory the executable is in
 
11410
  shlibpath_var=PATH
 
11411
  ;;
 
11412
 
 
11413
darwin* | rhapsody*)
 
11414
  dynamic_linker="$host_os dyld"
 
11415
  version_type=darwin
 
11416
  need_lib_prefix=no
 
11417
  need_version=no
 
11418
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11419
  soname_spec='${libname}${release}${major}$shared_ext'
 
11420
  shlibpath_overrides_runpath=yes
 
11421
  shlibpath_var=DYLD_LIBRARY_PATH
 
11422
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11423
 
 
11424
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11425
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11426
  ;;
 
11427
 
 
11428
dgux*)
 
11429
  version_type=linux
 
11430
  need_lib_prefix=no
 
11431
  need_version=no
 
11432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11433
  soname_spec='${libname}${release}${shared_ext}$major'
 
11434
  shlibpath_var=LD_LIBRARY_PATH
 
11435
  ;;
 
11436
 
 
11437
freebsd1*)
 
11438
  dynamic_linker=no
 
11439
  ;;
 
11440
 
 
11441
freebsd* | dragonfly*)
 
11442
  # DragonFly does not have aout.  When/if they implement a new
 
11443
  # versioning mechanism, adjust this.
 
11444
  if test -x /usr/bin/objformat; then
 
11445
    objformat=`/usr/bin/objformat`
 
11446
  else
 
11447
    case $host_os in
 
11448
    freebsd[123]*) objformat=aout ;;
 
11449
    *) objformat=elf ;;
 
11450
    esac
 
11451
  fi
 
11452
  version_type=freebsd-$objformat
 
11453
  case $version_type in
 
11454
    freebsd-elf*)
 
11455
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11456
      need_version=no
 
11457
      need_lib_prefix=no
 
11458
      ;;
 
11459
    freebsd-*)
 
11460
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11461
      need_version=yes
 
11462
      ;;
 
11463
  esac
 
11464
  shlibpath_var=LD_LIBRARY_PATH
 
11465
  case $host_os in
 
11466
  freebsd2*)
 
11467
    shlibpath_overrides_runpath=yes
 
11468
    ;;
 
11469
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11470
    shlibpath_overrides_runpath=yes
 
11471
    hardcode_into_libs=yes
 
11472
    ;;
 
11473
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11474
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11475
    shlibpath_overrides_runpath=no
 
11476
    hardcode_into_libs=yes
 
11477
    ;;
 
11478
  *) # from 4.6 on, and DragonFly
 
11479
    shlibpath_overrides_runpath=yes
 
11480
    hardcode_into_libs=yes
 
11481
    ;;
 
11482
  esac
 
11483
  ;;
 
11484
 
 
11485
gnu*)
 
11486
  version_type=linux
 
11487
  need_lib_prefix=no
 
11488
  need_version=no
 
11489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11490
  soname_spec='${libname}${release}${shared_ext}$major'
 
11491
  shlibpath_var=LD_LIBRARY_PATH
 
11492
  hardcode_into_libs=yes
 
11493
  ;;
 
11494
 
 
11495
hpux9* | hpux10* | hpux11*)
 
11496
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11497
  # link against other versions.
 
11498
  version_type=sunos
 
11499
  need_lib_prefix=no
 
11500
  need_version=no
 
11501
  case $host_cpu in
 
11502
  ia64*)
 
11503
    shrext_cmds='.so'
 
11504
    hardcode_into_libs=yes
 
11505
    dynamic_linker="$host_os dld.so"
 
11506
    shlibpath_var=LD_LIBRARY_PATH
 
11507
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11508
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11509
    soname_spec='${libname}${release}${shared_ext}$major'
 
11510
    if test "X$HPUX_IA64_MODE" = X32; then
 
11511
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11512
    else
 
11513
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11514
    fi
 
11515
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11516
    ;;
 
11517
  hppa*64*)
 
11518
    shrext_cmds='.sl'
 
11519
    hardcode_into_libs=yes
 
11520
    dynamic_linker="$host_os dld.sl"
 
11521
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11522
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11523
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11524
    soname_spec='${libname}${release}${shared_ext}$major'
 
11525
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11526
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11527
    ;;
 
11528
  *)
 
11529
    shrext_cmds='.sl'
 
11530
    dynamic_linker="$host_os dld.sl"
 
11531
    shlibpath_var=SHLIB_PATH
 
11532
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11533
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11534
    soname_spec='${libname}${release}${shared_ext}$major'
 
11535
    ;;
 
11536
  esac
 
11537
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11538
  postinstall_cmds='chmod 555 $lib'
 
11539
  ;;
 
11540
 
 
11541
interix[3-9]*)
 
11542
  version_type=linux
 
11543
  need_lib_prefix=no
 
11544
  need_version=no
 
11545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11546
  soname_spec='${libname}${release}${shared_ext}$major'
 
11547
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11548
  shlibpath_var=LD_LIBRARY_PATH
 
11549
  shlibpath_overrides_runpath=no
 
11550
  hardcode_into_libs=yes
 
11551
  ;;
 
11552
 
 
11553
irix5* | irix6* | nonstopux*)
 
11554
  case $host_os in
 
11555
    nonstopux*) version_type=nonstopux ;;
 
11556
    *)
 
11557
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11558
                version_type=linux
 
11559
        else
 
11560
                version_type=irix
 
11561
        fi ;;
 
11562
  esac
 
11563
  need_lib_prefix=no
 
11564
  need_version=no
 
11565
  soname_spec='${libname}${release}${shared_ext}$major'
 
11566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11567
  case $host_os in
 
11568
  irix5* | nonstopux*)
 
11569
    libsuff= shlibsuff=
 
11570
    ;;
 
11571
  *)
 
11572
    case $LD in # libtool.m4 will add one of these switches to LD
 
11573
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11574
      libsuff= shlibsuff= libmagic=32-bit;;
 
11575
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11576
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11577
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11578
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11579
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11580
    esac
 
11581
    ;;
 
11582
  esac
 
11583
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11584
  shlibpath_overrides_runpath=no
 
11585
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11586
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11587
  hardcode_into_libs=yes
 
11588
  ;;
 
11589
 
 
11590
# No shared lib support for Linux oldld, aout, or coff.
 
11591
linux*oldld* | linux*aout* | linux*coff*)
 
11592
  dynamic_linker=no
 
11593
  ;;
 
11594
 
 
11595
# This must be Linux ELF.
 
11596
linux* | k*bsd*-gnu)
 
11597
  version_type=linux
 
11598
  need_lib_prefix=no
 
11599
  need_version=no
 
11600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11601
  soname_spec='${libname}${release}${shared_ext}$major'
 
11602
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11603
  shlibpath_var=LD_LIBRARY_PATH
 
11604
  shlibpath_overrides_runpath=no
 
11605
  # Some binutils ld are patched to set DT_RUNPATH
 
11606
  save_LDFLAGS=$LDFLAGS
 
11607
  save_libdir=$libdir
 
11608
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11609
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11610
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11611
/* end confdefs.h.  */
 
11612
 
 
11613
int
 
11614
main ()
 
11615
{
 
11616
 
 
11617
  ;
 
11618
  return 0;
 
11619
}
 
11620
_ACEOF
 
11621
if ac_fn_c_try_link "$LINENO"; then :
 
11622
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
11623
  shlibpath_overrides_runpath=yes
 
11624
fi
 
11625
fi
 
11626
rm -f core conftest.err conftest.$ac_objext \
 
11627
    conftest$ac_exeext conftest.$ac_ext
 
11628
  LDFLAGS=$save_LDFLAGS
 
11629
  libdir=$save_libdir
 
11630
 
 
11631
  # This implies no fast_install, which is unacceptable.
 
11632
  # Some rework will be needed to allow for fast_install
 
11633
  # before this can be enabled.
 
11634
  hardcode_into_libs=yes
 
11635
 
 
11636
  # Append ld.so.conf contents to the search path
 
11637
  if test -f /etc/ld.so.conf; then
 
11638
    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' ' '`
 
11639
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11640
  fi
 
11641
 
 
11642
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11643
  # powerpc, because MkLinux only supported shared libraries with the
 
11644
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11645
  # most powerpc-linux boxes support dynamic linking these days and
 
11646
  # people can always --disable-shared, the test was removed, and we
 
11647
  # assume the GNU/Linux dynamic linker is in use.
 
11648
  dynamic_linker='GNU/Linux ld.so'
 
11649
  ;;
 
11650
 
 
11651
netbsd*)
 
11652
  version_type=sunos
 
11653
  need_lib_prefix=no
 
11654
  need_version=no
 
11655
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11656
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11657
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11658
    dynamic_linker='NetBSD (a.out) ld.so'
 
11659
  else
 
11660
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11661
    soname_spec='${libname}${release}${shared_ext}$major'
 
11662
    dynamic_linker='NetBSD ld.elf_so'
 
11663
  fi
 
11664
  shlibpath_var=LD_LIBRARY_PATH
 
11665
  shlibpath_overrides_runpath=yes
 
11666
  hardcode_into_libs=yes
 
11667
  ;;
 
11668
 
 
11669
newsos6)
 
11670
  version_type=linux
 
11671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11672
  shlibpath_var=LD_LIBRARY_PATH
 
11673
  shlibpath_overrides_runpath=yes
 
11674
  ;;
 
11675
 
 
11676
*nto* | *qnx*)
 
11677
  version_type=qnx
 
11678
  need_lib_prefix=no
 
11679
  need_version=no
 
11680
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11681
  soname_spec='${libname}${release}${shared_ext}$major'
 
11682
  shlibpath_var=LD_LIBRARY_PATH
 
11683
  shlibpath_overrides_runpath=no
 
11684
  hardcode_into_libs=yes
 
11685
  dynamic_linker='ldqnx.so'
 
11686
  ;;
 
11687
 
 
11688
openbsd*)
 
11689
  version_type=sunos
 
11690
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11691
  need_lib_prefix=no
 
11692
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11693
  case $host_os in
 
11694
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11695
    *)                          need_version=no  ;;
 
11696
  esac
 
11697
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11698
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11699
  shlibpath_var=LD_LIBRARY_PATH
 
11700
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11701
    case $host_os in
 
11702
      openbsd2.[89] | openbsd2.[89].*)
 
11703
        shlibpath_overrides_runpath=no
 
11704
        ;;
 
11705
      *)
 
11706
        shlibpath_overrides_runpath=yes
 
11707
        ;;
 
11708
      esac
 
11709
  else
 
11710
    shlibpath_overrides_runpath=yes
 
11711
  fi
 
11712
  ;;
 
11713
 
 
11714
os2*)
 
11715
  libname_spec='$name'
 
11716
  shrext_cmds=".dll"
 
11717
  need_lib_prefix=no
 
11718
  library_names_spec='$libname${shared_ext} $libname.a'
 
11719
  dynamic_linker='OS/2 ld.exe'
 
11720
  shlibpath_var=LIBPATH
 
11721
  ;;
 
11722
 
 
11723
osf3* | osf4* | osf5*)
 
11724
  version_type=osf
 
11725
  need_lib_prefix=no
 
11726
  need_version=no
 
11727
  soname_spec='${libname}${release}${shared_ext}$major'
 
11728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11729
  shlibpath_var=LD_LIBRARY_PATH
 
11730
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11731
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11732
  ;;
 
11733
 
 
11734
rdos*)
 
11735
  dynamic_linker=no
 
11736
  ;;
 
11737
 
 
11738
solaris*)
 
11739
  version_type=linux
 
11740
  need_lib_prefix=no
 
11741
  need_version=no
 
11742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11743
  soname_spec='${libname}${release}${shared_ext}$major'
 
11744
  shlibpath_var=LD_LIBRARY_PATH
 
11745
  shlibpath_overrides_runpath=yes
 
11746
  hardcode_into_libs=yes
 
11747
  # ldd complains unless libraries are executable
 
11748
  postinstall_cmds='chmod +x $lib'
 
11749
  ;;
 
11750
 
 
11751
sunos4*)
 
11752
  version_type=sunos
 
11753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11754
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11755
  shlibpath_var=LD_LIBRARY_PATH
 
11756
  shlibpath_overrides_runpath=yes
 
11757
  if test "$with_gnu_ld" = yes; then
 
11758
    need_lib_prefix=no
 
11759
  fi
 
11760
  need_version=yes
 
11761
  ;;
 
11762
 
 
11763
sysv4 | sysv4.3*)
 
11764
  version_type=linux
 
11765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11766
  soname_spec='${libname}${release}${shared_ext}$major'
 
11767
  shlibpath_var=LD_LIBRARY_PATH
 
11768
  case $host_vendor in
 
11769
    sni)
 
11770
      shlibpath_overrides_runpath=no
 
11771
      need_lib_prefix=no
 
11772
      runpath_var=LD_RUN_PATH
 
11773
      ;;
 
11774
    siemens)
 
11775
      need_lib_prefix=no
 
11776
      ;;
 
11777
    motorola)
 
11778
      need_lib_prefix=no
 
11779
      need_version=no
 
11780
      shlibpath_overrides_runpath=no
 
11781
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11782
      ;;
 
11783
  esac
 
11784
  ;;
 
11785
 
 
11786
sysv4*MP*)
 
11787
  if test -d /usr/nec ;then
 
11788
    version_type=linux
 
11789
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11790
    soname_spec='$libname${shared_ext}.$major'
 
11791
    shlibpath_var=LD_LIBRARY_PATH
 
11792
  fi
 
11793
  ;;
 
11794
 
 
11795
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11796
  version_type=freebsd-elf
 
11797
  need_lib_prefix=no
 
11798
  need_version=no
 
11799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11800
  soname_spec='${libname}${release}${shared_ext}$major'
 
11801
  shlibpath_var=LD_LIBRARY_PATH
 
11802
  shlibpath_overrides_runpath=yes
 
11803
  hardcode_into_libs=yes
 
11804
  if test "$with_gnu_ld" = yes; then
 
11805
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11806
  else
 
11807
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11808
    case $host_os in
 
11809
      sco3.2v5*)
 
11810
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11811
        ;;
 
11812
    esac
 
11813
  fi
 
11814
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11815
  ;;
 
11816
 
 
11817
tpf*)
 
11818
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11819
  version_type=linux
 
11820
  need_lib_prefix=no
 
11821
  need_version=no
 
11822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11823
  shlibpath_var=LD_LIBRARY_PATH
 
11824
  shlibpath_overrides_runpath=no
 
11825
  hardcode_into_libs=yes
 
11826
  ;;
 
11827
 
 
11828
uts4*)
 
11829
  version_type=linux
 
11830
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11831
  soname_spec='${libname}${release}${shared_ext}$major'
 
11832
  shlibpath_var=LD_LIBRARY_PATH
 
11833
  ;;
 
11834
 
 
11835
*)
 
11836
  dynamic_linker=no
 
11837
  ;;
 
11838
esac
 
11839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
11840
$as_echo "$dynamic_linker" >&6; }
 
11841
test "$dynamic_linker" = no && can_build_shared=no
 
11842
 
 
11843
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11844
if test "$GCC" = yes; then
 
11845
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11846
fi
 
11847
 
 
11848
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11849
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11850
fi
 
11851
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11852
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11853
fi
 
11854
 
 
11855
 
 
11856
 
 
11857
 
 
11858
 
 
11859
 
 
11860
 
 
11861
 
 
11862
 
 
11863
 
 
11864
 
 
11865
 
 
11866
 
 
11867
 
 
11868
 
 
11869
 
 
11870
 
 
11871
 
 
11872
 
 
11873
 
 
11874
 
 
11875
 
 
11876
 
 
11877
 
 
11878
 
 
11879
 
 
11880
 
 
11881
 
 
11882
 
 
11883
 
 
11884
 
 
11885
 
 
11886
 
 
11887
 
 
11888
 
 
11889
 
 
11890
 
 
11891
 
 
11892
 
 
11893
 
 
11894
 
 
11895
 
 
11896
 
 
11897
 
 
11898
 
 
11899
 
 
11900
 
 
11901
 
 
11902
 
 
11903
 
 
11904
 
 
11905
 
 
11906
 
 
11907
 
 
11908
 
 
11909
 
 
11910
 
 
11911
 
 
11912
 
 
11913
 
 
11914
 
 
11915
 
 
11916
 
 
11917
 
 
11918
 
 
11919
 
 
11920
 
 
11921
 
 
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
 
11928
 
 
11929
 
 
11930
 
 
11931
 
 
11932
 
 
11933
 
 
11934
 
 
11935
 
 
11936
 
 
11937
 
 
11938
 
 
11939
 
 
11940
 
 
11941
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
11942
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
11943
hardcode_action=
 
11944
if test -n "$hardcode_libdir_flag_spec" ||
 
11945
   test -n "$runpath_var" ||
 
11946
   test "X$hardcode_automatic" = "Xyes" ; then
 
11947
 
 
11948
  # We can hardcode non-existent directories.
 
11949
  if test "$hardcode_direct" != no &&
 
11950
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11951
     # have to relink, otherwise we might link with an installed library
 
11952
     # when we should be linking with a yet-to-be-installed one
 
11953
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
11954
     test "$hardcode_minus_L" != no; then
 
11955
    # Linking always hardcodes the temporary library directory.
 
11956
    hardcode_action=relink
 
11957
  else
 
11958
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11959
    hardcode_action=immediate
 
11960
  fi
 
11961
else
 
11962
  # We cannot hardcode anything, or else we can only hardcode existing
 
11963
  # directories.
 
11964
  hardcode_action=unsupported
 
11965
fi
 
11966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
11967
$as_echo "$hardcode_action" >&6; }
 
11968
 
 
11969
if test "$hardcode_action" = relink ||
 
11970
   test "$inherit_rpath" = yes; then
 
11971
  # Fast installation is not supported
 
11972
  enable_fast_install=no
 
11973
elif test "$shlibpath_overrides_runpath" = yes ||
 
11974
     test "$enable_shared" = no; then
 
11975
  # Fast installation is not necessary
 
11976
  enable_fast_install=needless
 
11977
fi
 
11978
 
 
11979
 
 
11980
 
 
11981
 
 
11982
 
 
11983
 
 
11984
  if test "x$enable_dlopen" != xyes; then
 
11985
  enable_dlopen=unknown
 
11986
  enable_dlopen_self=unknown
 
11987
  enable_dlopen_self_static=unknown
 
11988
else
 
11989
  lt_cv_dlopen=no
 
11990
  lt_cv_dlopen_libs=
 
11991
 
 
11992
  case $host_os in
 
11993
  beos*)
 
11994
    lt_cv_dlopen="load_add_on"
 
11995
    lt_cv_dlopen_libs=
 
11996
    lt_cv_dlopen_self=yes
 
11997
    ;;
 
11998
 
 
11999
  mingw* | pw32* | cegcc*)
 
12000
    lt_cv_dlopen="LoadLibrary"
 
12001
    lt_cv_dlopen_libs=
 
12002
    ;;
 
12003
 
 
12004
  cygwin*)
 
12005
    lt_cv_dlopen="dlopen"
 
12006
    lt_cv_dlopen_libs=
 
12007
    ;;
 
12008
 
 
12009
  darwin*)
 
12010
  # if libdl is installed we need to link against it
 
12011
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12012
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12013
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12014
  $as_echo_n "(cached) " >&6
 
12015
else
 
12016
  ac_check_lib_save_LIBS=$LIBS
 
12017
LIBS="-ldl  $LIBS"
 
12018
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12019
/* end confdefs.h.  */
 
12020
 
 
12021
/* Override any GCC internal prototype to avoid an error.
 
12022
   Use char because int might match the return type of a GCC
 
12023
   builtin and then its argument prototype would still apply.  */
 
12024
#ifdef __cplusplus
 
12025
extern "C"
 
12026
#endif
 
12027
char dlopen ();
 
12028
int
 
12029
main ()
 
12030
{
 
12031
return dlopen ();
 
12032
  ;
 
12033
  return 0;
 
12034
}
 
12035
_ACEOF
 
12036
if ac_fn_c_try_link "$LINENO"; then :
 
12037
  ac_cv_lib_dl_dlopen=yes
 
12038
else
 
12039
  ac_cv_lib_dl_dlopen=no
 
12040
fi
 
12041
rm -f core conftest.err conftest.$ac_objext \
 
12042
    conftest$ac_exeext conftest.$ac_ext
 
12043
LIBS=$ac_check_lib_save_LIBS
 
12044
fi
 
12045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12046
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12047
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12048
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12049
else
 
12050
 
 
12051
    lt_cv_dlopen="dyld"
 
12052
    lt_cv_dlopen_libs=
 
12053
    lt_cv_dlopen_self=yes
 
12054
 
 
12055
fi
 
12056
 
 
12057
    ;;
 
12058
 
 
12059
  *)
 
12060
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
12061
if test "x$ac_cv_func_shl_load" = x""yes; then :
 
12062
  lt_cv_dlopen="shl_load"
 
12063
else
 
12064
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
12065
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
12066
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
 
12067
  $as_echo_n "(cached) " >&6
 
12068
else
 
12069
  ac_check_lib_save_LIBS=$LIBS
 
12070
LIBS="-ldld  $LIBS"
 
12071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12072
/* end confdefs.h.  */
 
12073
 
 
12074
/* Override any GCC internal prototype to avoid an error.
 
12075
   Use char because int might match the return type of a GCC
 
12076
   builtin and then its argument prototype would still apply.  */
 
12077
#ifdef __cplusplus
 
12078
extern "C"
 
12079
#endif
 
12080
char shl_load ();
 
12081
int
 
12082
main ()
 
12083
{
 
12084
return shl_load ();
 
12085
  ;
 
12086
  return 0;
 
12087
}
 
12088
_ACEOF
 
12089
if ac_fn_c_try_link "$LINENO"; then :
 
12090
  ac_cv_lib_dld_shl_load=yes
 
12091
else
 
12092
  ac_cv_lib_dld_shl_load=no
 
12093
fi
 
12094
rm -f core conftest.err conftest.$ac_objext \
 
12095
    conftest$ac_exeext conftest.$ac_ext
 
12096
LIBS=$ac_check_lib_save_LIBS
 
12097
fi
 
12098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
12099
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
12100
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
 
12101
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12102
else
 
12103
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
12104
if test "x$ac_cv_func_dlopen" = x""yes; then :
 
12105
  lt_cv_dlopen="dlopen"
 
12106
else
 
12107
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
12108
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
12109
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
 
12110
  $as_echo_n "(cached) " >&6
 
12111
else
 
12112
  ac_check_lib_save_LIBS=$LIBS
 
12113
LIBS="-ldl  $LIBS"
 
12114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12115
/* end confdefs.h.  */
 
12116
 
 
12117
/* Override any GCC internal prototype to avoid an error.
 
12118
   Use char because int might match the return type of a GCC
 
12119
   builtin and then its argument prototype would still apply.  */
 
12120
#ifdef __cplusplus
 
12121
extern "C"
 
12122
#endif
 
12123
char dlopen ();
 
12124
int
 
12125
main ()
 
12126
{
 
12127
return dlopen ();
 
12128
  ;
 
12129
  return 0;
 
12130
}
 
12131
_ACEOF
 
12132
if ac_fn_c_try_link "$LINENO"; then :
 
12133
  ac_cv_lib_dl_dlopen=yes
 
12134
else
 
12135
  ac_cv_lib_dl_dlopen=no
 
12136
fi
 
12137
rm -f core conftest.err conftest.$ac_objext \
 
12138
    conftest$ac_exeext conftest.$ac_ext
 
12139
LIBS=$ac_check_lib_save_LIBS
 
12140
fi
 
12141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
12142
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
12143
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
 
12144
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12145
else
 
12146
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
12147
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
12148
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
 
12149
  $as_echo_n "(cached) " >&6
 
12150
else
 
12151
  ac_check_lib_save_LIBS=$LIBS
 
12152
LIBS="-lsvld  $LIBS"
 
12153
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12154
/* end confdefs.h.  */
 
12155
 
 
12156
/* Override any GCC internal prototype to avoid an error.
 
12157
   Use char because int might match the return type of a GCC
 
12158
   builtin and then its argument prototype would still apply.  */
 
12159
#ifdef __cplusplus
 
12160
extern "C"
 
12161
#endif
 
12162
char dlopen ();
 
12163
int
 
12164
main ()
 
12165
{
 
12166
return dlopen ();
 
12167
  ;
 
12168
  return 0;
 
12169
}
 
12170
_ACEOF
 
12171
if ac_fn_c_try_link "$LINENO"; then :
 
12172
  ac_cv_lib_svld_dlopen=yes
 
12173
else
 
12174
  ac_cv_lib_svld_dlopen=no
 
12175
fi
 
12176
rm -f core conftest.err conftest.$ac_objext \
 
12177
    conftest$ac_exeext conftest.$ac_ext
 
12178
LIBS=$ac_check_lib_save_LIBS
 
12179
fi
 
12180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
12181
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
12182
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
 
12183
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12184
else
 
12185
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
12186
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
12187
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
 
12188
  $as_echo_n "(cached) " >&6
 
12189
else
 
12190
  ac_check_lib_save_LIBS=$LIBS
 
12191
LIBS="-ldld  $LIBS"
 
12192
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12193
/* end confdefs.h.  */
 
12194
 
 
12195
/* Override any GCC internal prototype to avoid an error.
 
12196
   Use char because int might match the return type of a GCC
 
12197
   builtin and then its argument prototype would still apply.  */
 
12198
#ifdef __cplusplus
 
12199
extern "C"
 
12200
#endif
 
12201
char dld_link ();
 
12202
int
 
12203
main ()
 
12204
{
 
12205
return dld_link ();
 
12206
  ;
 
12207
  return 0;
 
12208
}
 
12209
_ACEOF
 
12210
if ac_fn_c_try_link "$LINENO"; then :
 
12211
  ac_cv_lib_dld_dld_link=yes
 
12212
else
 
12213
  ac_cv_lib_dld_dld_link=no
 
12214
fi
 
12215
rm -f core conftest.err conftest.$ac_objext \
 
12216
    conftest$ac_exeext conftest.$ac_ext
 
12217
LIBS=$ac_check_lib_save_LIBS
 
12218
fi
 
12219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
12220
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
12221
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
 
12222
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12223
fi
 
12224
 
 
12225
 
 
12226
fi
 
12227
 
 
12228
 
 
12229
fi
 
12230
 
 
12231
 
 
12232
fi
 
12233
 
 
12234
 
 
12235
fi
 
12236
 
 
12237
 
 
12238
fi
 
12239
 
 
12240
    ;;
 
12241
  esac
 
12242
 
 
12243
  if test "x$lt_cv_dlopen" != xno; then
 
12244
    enable_dlopen=yes
 
12245
  else
 
12246
    enable_dlopen=no
 
12247
  fi
 
12248
 
 
12249
  case $lt_cv_dlopen in
 
12250
  dlopen)
 
12251
    save_CPPFLAGS="$CPPFLAGS"
 
12252
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12253
 
 
12254
    save_LDFLAGS="$LDFLAGS"
 
12255
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12256
 
 
12257
    save_LIBS="$LIBS"
 
12258
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12259
 
 
12260
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
12261
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
12262
if test "${lt_cv_dlopen_self+set}" = set; then :
 
12263
  $as_echo_n "(cached) " >&6
 
12264
else
 
12265
          if test "$cross_compiling" = yes; then :
 
12266
  lt_cv_dlopen_self=cross
 
12267
else
 
12268
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12269
  lt_status=$lt_dlunknown
 
12270
  cat > conftest.$ac_ext <<_LT_EOF
 
12271
#line 12271 "configure"
 
12272
#include "confdefs.h"
 
12273
 
 
12274
#if HAVE_DLFCN_H
 
12275
#include <dlfcn.h>
 
12276
#endif
 
12277
 
 
12278
#include <stdio.h>
 
12279
 
 
12280
#ifdef RTLD_GLOBAL
 
12281
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12282
#else
 
12283
#  ifdef DL_GLOBAL
 
12284
#    define LT_DLGLOBAL         DL_GLOBAL
 
12285
#  else
 
12286
#    define LT_DLGLOBAL         0
 
12287
#  endif
 
12288
#endif
 
12289
 
 
12290
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12291
   find out it does not work in some platform. */
 
12292
#ifndef LT_DLLAZY_OR_NOW
 
12293
#  ifdef RTLD_LAZY
 
12294
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12295
#  else
 
12296
#    ifdef DL_LAZY
 
12297
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12298
#    else
 
12299
#      ifdef RTLD_NOW
 
12300
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12301
#      else
 
12302
#        ifdef DL_NOW
 
12303
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12304
#        else
 
12305
#          define LT_DLLAZY_OR_NOW      0
 
12306
#        endif
 
12307
#      endif
 
12308
#    endif
 
12309
#  endif
 
12310
#endif
 
12311
 
 
12312
void fnord() { int i=42;}
 
12313
int main ()
 
12314
{
 
12315
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12316
  int status = $lt_dlunknown;
 
12317
 
 
12318
  if (self)
 
12319
    {
 
12320
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12321
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12322
      /* dlclose (self); */
 
12323
    }
 
12324
  else
 
12325
    puts (dlerror ());
 
12326
 
 
12327
  return status;
 
12328
}
 
12329
_LT_EOF
 
12330
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12331
  (eval $ac_link) 2>&5
 
12332
  ac_status=$?
 
12333
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12334
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12335
    (./conftest; exit; ) >&5 2>/dev/null
 
12336
    lt_status=$?
 
12337
    case x$lt_status in
 
12338
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12339
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12340
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12341
    esac
 
12342
  else :
 
12343
    # compilation failed
 
12344
    lt_cv_dlopen_self=no
 
12345
  fi
 
12346
fi
 
12347
rm -fr conftest*
 
12348
 
 
12349
 
 
12350
fi
 
12351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
12352
$as_echo "$lt_cv_dlopen_self" >&6; }
 
12353
 
 
12354
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12355
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12356
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
12357
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
12358
if test "${lt_cv_dlopen_self_static+set}" = set; then :
 
12359
  $as_echo_n "(cached) " >&6
 
12360
else
 
12361
          if test "$cross_compiling" = yes; then :
 
12362
  lt_cv_dlopen_self_static=cross
 
12363
else
 
12364
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12365
  lt_status=$lt_dlunknown
 
12366
  cat > conftest.$ac_ext <<_LT_EOF
 
12367
#line 12367 "configure"
 
12368
#include "confdefs.h"
 
12369
 
 
12370
#if HAVE_DLFCN_H
 
12371
#include <dlfcn.h>
 
12372
#endif
 
12373
 
 
12374
#include <stdio.h>
 
12375
 
 
12376
#ifdef RTLD_GLOBAL
 
12377
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12378
#else
 
12379
#  ifdef DL_GLOBAL
 
12380
#    define LT_DLGLOBAL         DL_GLOBAL
 
12381
#  else
 
12382
#    define LT_DLGLOBAL         0
 
12383
#  endif
 
12384
#endif
 
12385
 
 
12386
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12387
   find out it does not work in some platform. */
 
12388
#ifndef LT_DLLAZY_OR_NOW
 
12389
#  ifdef RTLD_LAZY
 
12390
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12391
#  else
 
12392
#    ifdef DL_LAZY
 
12393
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12394
#    else
 
12395
#      ifdef RTLD_NOW
 
12396
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12397
#      else
 
12398
#        ifdef DL_NOW
 
12399
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12400
#        else
 
12401
#          define LT_DLLAZY_OR_NOW      0
 
12402
#        endif
 
12403
#      endif
 
12404
#    endif
 
12405
#  endif
 
12406
#endif
 
12407
 
 
12408
void fnord() { int i=42;}
 
12409
int main ()
 
12410
{
 
12411
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12412
  int status = $lt_dlunknown;
 
12413
 
 
12414
  if (self)
 
12415
    {
 
12416
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12417
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12418
      /* dlclose (self); */
 
12419
    }
 
12420
  else
 
12421
    puts (dlerror ());
 
12422
 
 
12423
  return status;
 
12424
}
 
12425
_LT_EOF
 
12426
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
12427
  (eval $ac_link) 2>&5
 
12428
  ac_status=$?
 
12429
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
12430
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12431
    (./conftest; exit; ) >&5 2>/dev/null
 
12432
    lt_status=$?
 
12433
    case x$lt_status in
 
12434
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12435
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12436
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12437
    esac
 
12438
  else :
 
12439
    # compilation failed
 
12440
    lt_cv_dlopen_self_static=no
 
12441
  fi
 
12442
fi
 
12443
rm -fr conftest*
 
12444
 
 
12445
 
 
12446
fi
 
12447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
12448
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
12449
    fi
 
12450
 
 
12451
    CPPFLAGS="$save_CPPFLAGS"
 
12452
    LDFLAGS="$save_LDFLAGS"
 
12453
    LIBS="$save_LIBS"
 
12454
    ;;
 
12455
  esac
 
12456
 
 
12457
  case $lt_cv_dlopen_self in
 
12458
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12459
  *) enable_dlopen_self=unknown ;;
 
12460
  esac
 
12461
 
 
12462
  case $lt_cv_dlopen_self_static in
 
12463
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12464
  *) enable_dlopen_self_static=unknown ;;
 
12465
  esac
 
12466
fi
 
12467
 
 
12468
 
 
12469
 
 
12470
 
 
12471
 
 
12472
 
 
12473
 
 
12474
 
 
12475
 
 
12476
 
 
12477
 
 
12478
 
 
12479
 
 
12480
 
 
12481
 
 
12482
 
 
12483
 
 
12484
striplib=
 
12485
old_striplib=
 
12486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
12487
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
12488
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12489
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12490
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12491
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12492
$as_echo "yes" >&6; }
 
12493
else
 
12494
# FIXME - insert some real tests, host_os isn't really good enough
 
12495
  case $host_os in
 
12496
  darwin*)
 
12497
    if test -n "$STRIP" ; then
 
12498
      striplib="$STRIP -x"
 
12499
      old_striplib="$STRIP -S"
 
12500
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12501
$as_echo "yes" >&6; }
 
12502
    else
 
12503
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12504
$as_echo "no" >&6; }
 
12505
    fi
 
12506
    ;;
 
12507
  *)
 
12508
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12509
$as_echo "no" >&6; }
 
12510
    ;;
 
12511
  esac
 
12512
fi
 
12513
 
 
12514
 
 
12515
 
 
12516
 
 
12517
 
 
12518
 
 
12519
 
 
12520
 
 
12521
 
 
12522
 
 
12523
 
 
12524
 
 
12525
  # Report which library types will actually be built
 
12526
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
12527
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
12528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
12529
$as_echo "$can_build_shared" >&6; }
 
12530
 
 
12531
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
12532
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
12533
  test "$can_build_shared" = "no" && enable_shared=no
 
12534
 
 
12535
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12536
  # are all built from PIC.
 
12537
  case $host_os in
 
12538
  aix3*)
 
12539
    test "$enable_shared" = yes && enable_static=no
 
12540
    if test -n "$RANLIB"; then
 
12541
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12542
      postinstall_cmds='$RANLIB $lib'
 
12543
    fi
 
12544
    ;;
 
12545
 
 
12546
  aix[4-9]*)
 
12547
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12548
      test "$enable_shared" = yes && enable_static=no
 
12549
    fi
 
12550
    ;;
 
12551
  esac
 
12552
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
12553
$as_echo "$enable_shared" >&6; }
 
12554
 
 
12555
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
12556
$as_echo_n "checking whether to build static libraries... " >&6; }
 
12557
  # Make sure either enable_shared or enable_static is yes.
 
12558
  test "$enable_shared" = yes || enable_static=yes
 
12559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
12560
$as_echo "$enable_static" >&6; }
 
12561
 
 
12562
 
 
12563
 
 
12564
 
 
12565
fi
 
12566
ac_ext=c
 
12567
ac_cpp='$CPP $CPPFLAGS'
 
12568
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12569
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12570
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12571
 
 
12572
CC="$lt_save_CC"
 
12573
 
 
12574
 
 
12575
 
 
12576
 
 
12577
 
 
12578
 
 
12579
 
 
12580
 
 
12581
 
 
12582
 
 
12583
 
 
12584
 
 
12585
 
 
12586
        ac_config_commands="$ac_config_commands libtool"
 
12587
 
 
12588
 
 
12589
 
 
12590
 
 
12591
# Only expand once:
 
12592
 
 
12593
 
1564
12594
 
1565
12595
# Select memory manager depending on user input.
1566
12596
# If no "-enable-maxmem", use jmemnobs
1567
 
MEMORYMGR='jmemnobs.$(O)'
 
12597
MEMORYMGR='jmemnobs'
1568
12598
MAXMEM="no"
1569
 
# Check whether --enable-maxmem or --disable-maxmem was given.
1570
 
if test "${enable_maxmem+set}" = set; then
1571
 
  enableval="$enable_maxmem"
1572
 
  MAXMEM="$enableval"
1573
 
fi
1574
 
 
1575
 
# support --with-maxmem for backwards compatibility with IJG V5.
1576
 
# Check whether --with-maxmem or --without-maxmem was given.
1577
 
if test "${with_maxmem+set}" = set; then
1578
 
  withval="$with_maxmem"
1579
 
  MAXMEM="$withval"
 
12599
# Check whether --enable-maxmem was given.
 
12600
if test "${enable_maxmem+set}" = set; then :
 
12601
  enableval=$enable_maxmem; MAXMEM="$enableval"
1580
12602
fi
1581
12603
 
1582
12604
if test "x$MAXMEM" = xyes; then
1584
12606
fi
1585
12607
if test "x$MAXMEM" != xno; then
1586
12608
  if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
1587
 
    { echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; }
 
12609
    as_fn_error "non-numeric argument to --enable-maxmem" "$LINENO" 5
1588
12610
  fi
1589
12611
  DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
1590
 
cat >> confdefs.h <<EOF
 
12612
 
 
12613
cat >>confdefs.h <<_ACEOF
1591
12614
#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
1592
 
EOF
 
12615
_ACEOF
1593
12616
 
1594
 
echo $ac_n "checking for 'tmpfile()'""... $ac_c" 1>&6
1595
 
echo "configure:1596: checking for 'tmpfile()'" >&5
1596
 
cat > conftest.$ac_ext <<EOF
1597
 
#line 1598 "configure"
1598
 
#include "confdefs.h"
 
12617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5
 
12618
$as_echo_n "checking for 'tmpfile()'... " >&6; }
 
12619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12620
/* end confdefs.h.  */
1599
12621
#include <stdio.h>
1600
 
int main() {
1601
 
 FILE * tfile = tmpfile(); 
1602
 
; return 0; }
1603
 
EOF
1604
 
if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1605
 
  rm -rf conftest*
1606
 
  echo "$ac_t""yes" 1>&6
1607
 
MEMORYMGR='jmemansi.$(O)'
1608
 
else
1609
 
  echo "configure: failed program was:" >&5
1610
 
  cat conftest.$ac_ext >&5
1611
 
  rm -rf conftest*
1612
 
  echo "$ac_t""no" 1>&6
1613
 
MEMORYMGR='jmemname.$(O)'
1614
 
cat >> confdefs.h <<\EOF
1615
 
#define NEED_SIGNAL_CATCHER 
1616
 
EOF
1617
 
 
1618
 
echo $ac_n "checking for 'mktemp()'""... $ac_c" 1>&6
1619
 
echo "configure:1620: checking for 'mktemp()'" >&5
1620
 
cat > conftest.$ac_ext <<EOF
1621
 
#line 1622 "configure"
1622
 
#include "confdefs.h"
1623
 
 
1624
 
int main() {
1625
 
 char fname[80]; mktemp(fname); 
1626
 
; return 0; }
1627
 
EOF
1628
 
if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1629
 
  rm -rf conftest*
1630
 
  echo "$ac_t""yes" 1>&6
1631
 
else
1632
 
  echo "configure: failed program was:" >&5
1633
 
  cat conftest.$ac_ext >&5
1634
 
  rm -rf conftest*
1635
 
  echo "$ac_t""no" 1>&6
1636
 
cat >> confdefs.h <<\EOF
1637
 
#define NO_MKTEMP 
1638
 
EOF
1639
 
 
1640
 
fi
1641
 
rm -f conftest*
1642
 
fi
1643
 
rm -f conftest*
 
12622
int
 
12623
main ()
 
12624
{
 
12625
 FILE * tfile = tmpfile();
 
12626
  ;
 
12627
  return 0;
 
12628
}
 
12629
_ACEOF
 
12630
if ac_fn_c_try_link "$LINENO"; then :
 
12631
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12632
$as_echo "yes" >&6; }
 
12633
MEMORYMGR='jmemansi'
 
12634
else
 
12635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12636
$as_echo "no" >&6; }
 
12637
MEMORYMGR='jmemname'
 
12638
 
 
12639
# Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
 
12640
 
 
12641
$as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h
 
12642
 
 
12643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5
 
12644
$as_echo_n "checking for 'mktemp()'... " >&6; }
 
12645
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12646
/* end confdefs.h.  */
 
12647
 
 
12648
int
 
12649
main ()
 
12650
{
 
12651
 char fname[80]; mktemp(fname);
 
12652
  ;
 
12653
  return 0;
 
12654
}
 
12655
_ACEOF
 
12656
if ac_fn_c_try_link "$LINENO"; then :
 
12657
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12658
$as_echo "yes" >&6; }
 
12659
else
 
12660
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12661
$as_echo "no" >&6; }
 
12662
 
 
12663
$as_echo "#define NO_MKTEMP 1" >>confdefs.h
 
12664
 
 
12665
fi
 
12666
rm -f core conftest.err conftest.$ac_objext \
 
12667
    conftest$ac_exeext conftest.$ac_ext
 
12668
fi
 
12669
rm -f core conftest.err conftest.$ac_objext \
 
12670
    conftest$ac_exeext conftest.$ac_ext
1644
12671
fi
1645
12672
 
1646
12673
 
1647
12674
# Extract the library version ID from jpeglib.h.
1648
 
echo $ac_n "checking libjpeg version number""... $ac_c" 1>&6
1649
 
echo "configure:1650: checking libjpeg version number" >&5
 
12675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5
 
12676
$as_echo_n "checking libjpeg version number... " >&6; }
1650
12677
JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
1651
 
echo "$ac_t""$JPEG_LIB_VERSION" 1>&6
1652
 
 
1653
 
 
1654
 
# Prepare to massage makefile.cfg correctly.
1655
 
if test $ijg_cv_have_prototypes = yes; then
1656
 
  A2K_DEPS=""
1657
 
  COM_A2K="# "
1658
 
else
1659
 
  A2K_DEPS="ansi2knr"
1660
 
  COM_A2K=""
1661
 
fi
1662
 
 
1663
 
 
1664
 
# ansi2knr needs -DBSD if string.h is missing
1665
 
if test $ac_cv_header_string_h = no; then
1666
 
  ANSI2KNRFLAGS="-DBSD"
1667
 
else
1668
 
  ANSI2KNRFLAGS=""
1669
 
fi
1670
 
 
1671
 
# Substitutions to enable or disable libtool-related stuff
1672
 
if test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; then
1673
 
  COM_LT=""
1674
 
else
1675
 
  COM_LT="# "
1676
 
fi
1677
 
 
1678
 
if test "x$LTSHARED" != xno; then
1679
 
  FORCE_INSTALL_LIB="install-lib"
1680
 
else
1681
 
  FORCE_INSTALL_LIB=""
1682
 
fi
1683
 
 
1684
 
# Set up -I directives
1685
 
if test "x$srcdir" = x.; then
1686
 
  INCLUDEFLAGS='-I$(srcdir)'
1687
 
else
1688
 
  INCLUDEFLAGS='-I. -I$(srcdir)'
1689
 
fi
1690
 
 
1691
 
trap '' 1 2 15
1692
 
 
1693
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
12678
#[JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION / 10`:`expr $JPEG_LIB_VERSION % 10`"]
 
12679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5
 
12680
$as_echo "$JPEG_LIB_VERSION" >&6; }
 
12681
 
 
12682
 
 
12683
ac_config_files="$ac_config_files Makefile"
 
12684
 
 
12685
cat >confcache <<\_ACEOF
 
12686
# This file is a shell script that caches the results of configure
 
12687
# tests run on this system so they can be shared between configure
 
12688
# scripts and configure runs, see configure's option --config-cache.
 
12689
# It is not useful on other systems.  If it contains results you don't
 
12690
# want to keep, you may remove or edit it.
 
12691
#
 
12692
# config.status only pays attention to the cache file if you give it
 
12693
# the --recheck option to rerun configure.
 
12694
#
 
12695
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
12696
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12697
# following values.
 
12698
 
 
12699
_ACEOF
 
12700
 
 
12701
# The following way of writing the cache mishandles newlines in values,
 
12702
# but we know of no workaround that is simple, portable, and efficient.
 
12703
# So, we kill variables containing newlines.
 
12704
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12705
# and sets the high bit in the cache file unless we assign to the vars.
 
12706
(
 
12707
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
12708
    eval ac_val=\$$ac_var
 
12709
    case $ac_val in #(
 
12710
    *${as_nl}*)
 
12711
      case $ac_var in #(
 
12712
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
12713
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
12714
      esac
 
12715
      case $ac_var in #(
 
12716
      _ | IFS | as_nl) ;; #(
 
12717
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
12718
      *) { eval $ac_var=; unset $ac_var;} ;;
 
12719
      esac ;;
 
12720
    esac
 
12721
  done
 
12722
 
 
12723
  (set) 2>&1 |
 
12724
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
12725
    *${as_nl}ac_space=\ *)
 
12726
      # `set' does not quote correctly, so add quotes: double-quote
 
12727
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
12728
      sed -n \
 
12729
        "s/'/'\\\\''/g;
 
12730
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
12731
      ;; #(
 
12732
    *)
 
12733
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
12734
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
12735
      ;;
 
12736
    esac |
 
12737
    sort
 
12738
) |
 
12739
  sed '
 
12740
     /^ac_cv_env_/b end
 
12741
     t clear
 
12742
     :clear
 
12743
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
12744
     t end
 
12745
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
12746
     :end' >>confcache
 
12747
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
12748
  if test -w "$cache_file"; then
 
12749
    test "x$cache_file" != "x/dev/null" &&
 
12750
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
12751
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
12752
    cat confcache >$cache_file
 
12753
  else
 
12754
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
12755
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
12756
  fi
 
12757
fi
 
12758
rm -f confcache
1694
12759
 
1695
12760
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1696
12761
# Let make expand exec_prefix.
1697
12762
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1698
12763
 
1699
 
# Any assignment to VPATH causes Sun make to only execute
1700
 
# the first set of double-colon rules, so remove it if not needed.
1701
 
# If there is a colon in the path, we need to keep it.
1702
 
if test "x$srcdir" = x.; then
1703
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1704
 
fi
1705
 
 
1706
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1707
 
 
1708
12764
DEFS=-DHAVE_CONFIG_H
1709
12765
 
1710
 
# Without the "./", some shells look in PATH for config.status.
 
12766
ac_libobjs=
 
12767
ac_ltlibobjs=
 
12768
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
12769
  # 1. Remove the extension, and $U if already installed.
 
12770
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
12771
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
12772
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
12773
  #    will be set to the directory where LIBOBJS objects are built.
 
12774
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
12775
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
12776
done
 
12777
LIBOBJS=$ac_libobjs
 
12778
 
 
12779
LTLIBOBJS=$ac_ltlibobjs
 
12780
 
 
12781
 
 
12782
 if test -n "$EXEEXT"; then
 
12783
  am__EXEEXT_TRUE=
 
12784
  am__EXEEXT_FALSE='#'
 
12785
else
 
12786
  am__EXEEXT_TRUE='#'
 
12787
  am__EXEEXT_FALSE=
 
12788
fi
 
12789
 
 
12790
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
12791
  as_fn_error "conditional \"AMDEP\" was never defined.
 
12792
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12793
fi
 
12794
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
12795
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
12796
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12797
fi
 
12798
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
12799
  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
 
12800
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12801
fi
 
12802
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
12803
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
 
12804
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12805
fi
 
12806
if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
 
12807
  as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
 
12808
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
12809
fi
 
12810
 
1711
12811
: ${CONFIG_STATUS=./config.status}
1712
 
 
1713
 
echo creating $CONFIG_STATUS
1714
 
rm -f $CONFIG_STATUS
1715
 
cat > $CONFIG_STATUS <<EOF
1716
 
#! /bin/sh
1717
 
# Generated automatically by configure.
 
12812
ac_write_fail=0
 
12813
ac_clean_files_save=$ac_clean_files
 
12814
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
12815
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
12816
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
12817
as_write_fail=0
 
12818
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
12819
#! $SHELL
 
12820
# Generated by $as_me.
1718
12821
# Run this file to recreate the current configuration.
1719
 
# This directory was configured as follows,
1720
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1721
 
#
1722
 
# $0 $ac_configure_args
1723
 
#
1724
12822
# Compiler output produced by configure, useful for debugging
1725
 
# configure, is in ./config.log if it exists.
1726
 
 
1727
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1728
 
for ac_option
1729
 
do
1730
 
  case "\$ac_option" in
 
12823
# configure, is in config.log if it exists.
 
12824
 
 
12825
debug=false
 
12826
ac_cs_recheck=false
 
12827
ac_cs_silent=false
 
12828
 
 
12829
SHELL=\${CONFIG_SHELL-$SHELL}
 
12830
export SHELL
 
12831
_ASEOF
 
12832
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
12833
## -------------------- ##
 
12834
## M4sh Initialization. ##
 
12835
## -------------------- ##
 
12836
 
 
12837
# Be more Bourne compatible
 
12838
DUALCASE=1; export DUALCASE # for MKS sh
 
12839
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
12840
  emulate sh
 
12841
  NULLCMD=:
 
12842
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
12843
  # is contrary to our usage.  Disable this feature.
 
12844
  alias -g '${1+"$@"}'='"$@"'
 
12845
  setopt NO_GLOB_SUBST
 
12846
else
 
12847
  case `(set -o) 2>/dev/null` in #(
 
12848
  *posix*) :
 
12849
    set -o posix ;; #(
 
12850
  *) :
 
12851
     ;;
 
12852
esac
 
12853
fi
 
12854
 
 
12855
 
 
12856
as_nl='
 
12857
'
 
12858
export as_nl
 
12859
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
12860
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
12861
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
12862
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
12863
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
12864
# but without wasting forks for bash or zsh.
 
12865
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
12866
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
12867
  as_echo='print -r --'
 
12868
  as_echo_n='print -rn --'
 
12869
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
12870
  as_echo='printf %s\n'
 
12871
  as_echo_n='printf %s'
 
12872
else
 
12873
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
12874
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
12875
    as_echo_n='/usr/ucb/echo -n'
 
12876
  else
 
12877
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
12878
    as_echo_n_body='eval
 
12879
      arg=$1;
 
12880
      case $arg in #(
 
12881
      *"$as_nl"*)
 
12882
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
12883
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
12884
      esac;
 
12885
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
12886
    '
 
12887
    export as_echo_n_body
 
12888
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
12889
  fi
 
12890
  export as_echo_body
 
12891
  as_echo='sh -c $as_echo_body as_echo'
 
12892
fi
 
12893
 
 
12894
# The user is always right.
 
12895
if test "${PATH_SEPARATOR+set}" != set; then
 
12896
  PATH_SEPARATOR=:
 
12897
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
12898
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
12899
      PATH_SEPARATOR=';'
 
12900
  }
 
12901
fi
 
12902
 
 
12903
 
 
12904
# IFS
 
12905
# We need space, tab and new line, in precisely that order.  Quoting is
 
12906
# there to prevent editors from complaining about space-tab.
 
12907
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
12908
# splitting by setting IFS to empty value.)
 
12909
IFS=" ""        $as_nl"
 
12910
 
 
12911
# Find who we are.  Look in the path if we contain no directory separator.
 
12912
case $0 in #((
 
12913
  *[\\/]* ) as_myself=$0 ;;
 
12914
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12915
for as_dir in $PATH
 
12916
do
 
12917
  IFS=$as_save_IFS
 
12918
  test -z "$as_dir" && as_dir=.
 
12919
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
12920
  done
 
12921
IFS=$as_save_IFS
 
12922
 
 
12923
     ;;
 
12924
esac
 
12925
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
12926
# in which case we are not to be found in the path.
 
12927
if test "x$as_myself" = x; then
 
12928
  as_myself=$0
 
12929
fi
 
12930
if test ! -f "$as_myself"; then
 
12931
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
12932
  exit 1
 
12933
fi
 
12934
 
 
12935
# Unset variables that we do not need and which cause bugs (e.g. in
 
12936
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
12937
# suppresses any "Segmentation fault" message there.  '((' could
 
12938
# trigger a bug in pdksh 5.2.14.
 
12939
for as_var in BASH_ENV ENV MAIL MAILPATH
 
12940
do eval test x\${$as_var+set} = xset \
 
12941
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
12942
done
 
12943
PS1='$ '
 
12944
PS2='> '
 
12945
PS4='+ '
 
12946
 
 
12947
# NLS nuisances.
 
12948
LC_ALL=C
 
12949
export LC_ALL
 
12950
LANGUAGE=C
 
12951
export LANGUAGE
 
12952
 
 
12953
# CDPATH.
 
12954
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
12955
 
 
12956
 
 
12957
# as_fn_error ERROR [LINENO LOG_FD]
 
12958
# ---------------------------------
 
12959
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
12960
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
12961
# script with status $?, using 1 if that was 0.
 
12962
as_fn_error ()
 
12963
{
 
12964
  as_status=$?; test $as_status -eq 0 && as_status=1
 
12965
  if test "$3"; then
 
12966
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
12967
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
12968
  fi
 
12969
  $as_echo "$as_me: error: $1" >&2
 
12970
  as_fn_exit $as_status
 
12971
} # as_fn_error
 
12972
 
 
12973
 
 
12974
# as_fn_set_status STATUS
 
12975
# -----------------------
 
12976
# Set $? to STATUS, without forking.
 
12977
as_fn_set_status ()
 
12978
{
 
12979
  return $1
 
12980
} # as_fn_set_status
 
12981
 
 
12982
# as_fn_exit STATUS
 
12983
# -----------------
 
12984
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
12985
as_fn_exit ()
 
12986
{
 
12987
  set +e
 
12988
  as_fn_set_status $1
 
12989
  exit $1
 
12990
} # as_fn_exit
 
12991
 
 
12992
# as_fn_unset VAR
 
12993
# ---------------
 
12994
# Portably unset VAR.
 
12995
as_fn_unset ()
 
12996
{
 
12997
  { eval $1=; unset $1;}
 
12998
}
 
12999
as_unset=as_fn_unset
 
13000
# as_fn_append VAR VALUE
 
13001
# ----------------------
 
13002
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
13003
# advantage of any shell optimizations that allow amortized linear growth over
 
13004
# repeated appends, instead of the typical quadratic growth present in naive
 
13005
# implementations.
 
13006
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13007
  eval 'as_fn_append ()
 
13008
  {
 
13009
    eval $1+=\$2
 
13010
  }'
 
13011
else
 
13012
  as_fn_append ()
 
13013
  {
 
13014
    eval $1=\$$1\$2
 
13015
  }
 
13016
fi # as_fn_append
 
13017
 
 
13018
# as_fn_arith ARG...
 
13019
# ------------------
 
13020
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
13021
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
13022
# must be portable across $(()) and expr.
 
13023
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13024
  eval 'as_fn_arith ()
 
13025
  {
 
13026
    as_val=$(( $* ))
 
13027
  }'
 
13028
else
 
13029
  as_fn_arith ()
 
13030
  {
 
13031
    as_val=`expr "$@" || test $? -eq 1`
 
13032
  }
 
13033
fi # as_fn_arith
 
13034
 
 
13035
 
 
13036
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13037
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13038
  as_expr=expr
 
13039
else
 
13040
  as_expr=false
 
13041
fi
 
13042
 
 
13043
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13044
  as_basename=basename
 
13045
else
 
13046
  as_basename=false
 
13047
fi
 
13048
 
 
13049
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13050
  as_dirname=dirname
 
13051
else
 
13052
  as_dirname=false
 
13053
fi
 
13054
 
 
13055
as_me=`$as_basename -- "$0" ||
 
13056
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13057
         X"$0" : 'X\(//\)$' \| \
 
13058
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13059
$as_echo X/"$0" |
 
13060
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13061
            s//\1/
 
13062
            q
 
13063
          }
 
13064
          /^X\/\(\/\/\)$/{
 
13065
            s//\1/
 
13066
            q
 
13067
          }
 
13068
          /^X\/\(\/\).*/{
 
13069
            s//\1/
 
13070
            q
 
13071
          }
 
13072
          s/.*/./; q'`
 
13073
 
 
13074
# Avoid depending upon Character Ranges.
 
13075
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13076
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13077
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13078
as_cr_digits='0123456789'
 
13079
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13080
 
 
13081
ECHO_C= ECHO_N= ECHO_T=
 
13082
case `echo -n x` in #(((((
 
13083
-n*)
 
13084
  case `echo 'xy\c'` in
 
13085
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13086
  xy)  ECHO_C='\c';;
 
13087
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13088
       ECHO_T=' ';;
 
13089
  esac;;
 
13090
*)
 
13091
  ECHO_N='-n';;
 
13092
esac
 
13093
 
 
13094
rm -f conf$$ conf$$.exe conf$$.file
 
13095
if test -d conf$$.dir; then
 
13096
  rm -f conf$$.dir/conf$$.file
 
13097
else
 
13098
  rm -f conf$$.dir
 
13099
  mkdir conf$$.dir 2>/dev/null
 
13100
fi
 
13101
if (echo >conf$$.file) 2>/dev/null; then
 
13102
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13103
    as_ln_s='ln -s'
 
13104
    # ... but there are two gotchas:
 
13105
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13106
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13107
    # In both cases, we have to default to `cp -p'.
 
13108
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13109
      as_ln_s='cp -p'
 
13110
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13111
    as_ln_s=ln
 
13112
  else
 
13113
    as_ln_s='cp -p'
 
13114
  fi
 
13115
else
 
13116
  as_ln_s='cp -p'
 
13117
fi
 
13118
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13119
rmdir conf$$.dir 2>/dev/null
 
13120
 
 
13121
 
 
13122
# as_fn_mkdir_p
 
13123
# -------------
 
13124
# Create "$as_dir" as a directory, including parents if necessary.
 
13125
as_fn_mkdir_p ()
 
13126
{
 
13127
 
 
13128
  case $as_dir in #(
 
13129
  -*) as_dir=./$as_dir;;
 
13130
  esac
 
13131
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13132
    as_dirs=
 
13133
    while :; do
 
13134
      case $as_dir in #(
 
13135
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13136
      *) as_qdir=$as_dir;;
 
13137
      esac
 
13138
      as_dirs="'$as_qdir' $as_dirs"
 
13139
      as_dir=`$as_dirname -- "$as_dir" ||
 
13140
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13141
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13142
         X"$as_dir" : 'X\(//\)$' \| \
 
13143
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13144
$as_echo X"$as_dir" |
 
13145
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13146
            s//\1/
 
13147
            q
 
13148
          }
 
13149
          /^X\(\/\/\)[^/].*/{
 
13150
            s//\1/
 
13151
            q
 
13152
          }
 
13153
          /^X\(\/\/\)$/{
 
13154
            s//\1/
 
13155
            q
 
13156
          }
 
13157
          /^X\(\/\).*/{
 
13158
            s//\1/
 
13159
            q
 
13160
          }
 
13161
          s/.*/./; q'`
 
13162
      test -d "$as_dir" && break
 
13163
    done
 
13164
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13165
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
13166
 
 
13167
 
 
13168
} # as_fn_mkdir_p
 
13169
if mkdir -p . 2>/dev/null; then
 
13170
  as_mkdir_p='mkdir -p "$as_dir"'
 
13171
else
 
13172
  test -d ./-p && rmdir ./-p
 
13173
  as_mkdir_p=false
 
13174
fi
 
13175
 
 
13176
if test -x / >/dev/null 2>&1; then
 
13177
  as_test_x='test -x'
 
13178
else
 
13179
  if ls -dL / >/dev/null 2>&1; then
 
13180
    as_ls_L_option=L
 
13181
  else
 
13182
    as_ls_L_option=
 
13183
  fi
 
13184
  as_test_x='
 
13185
    eval sh -c '\''
 
13186
      if test -d "$1"; then
 
13187
        test -d "$1/.";
 
13188
      else
 
13189
        case $1 in #(
 
13190
        -*)set "./$1";;
 
13191
        esac;
 
13192
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
13193
        ???[sx]*):;;*)false;;esac;fi
 
13194
    '\'' sh
 
13195
  '
 
13196
fi
 
13197
as_executable_p=$as_test_x
 
13198
 
 
13199
# Sed expression to map a string onto a valid CPP name.
 
13200
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13201
 
 
13202
# Sed expression to map a string onto a valid variable name.
 
13203
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13204
 
 
13205
 
 
13206
exec 6>&1
 
13207
## ----------------------------------- ##
 
13208
## Main body of $CONFIG_STATUS script. ##
 
13209
## ----------------------------------- ##
 
13210
_ASEOF
 
13211
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
13212
 
 
13213
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13214
# Save the log message, to keep $0 and so on meaningful, and to
 
13215
# report actual input values of CONFIG_FILES etc. instead of their
 
13216
# values after options handling.
 
13217
ac_log="
 
13218
This file was extended by libjpeg $as_me 6.2.1, which was
 
13219
generated by GNU Autoconf 2.65.  Invocation command line was
 
13220
 
 
13221
  CONFIG_FILES    = $CONFIG_FILES
 
13222
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13223
  CONFIG_LINKS    = $CONFIG_LINKS
 
13224
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13225
  $ $0 $@
 
13226
 
 
13227
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13228
"
 
13229
 
 
13230
_ACEOF
 
13231
 
 
13232
case $ac_config_files in *"
 
13233
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13234
esac
 
13235
 
 
13236
case $ac_config_headers in *"
 
13237
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13238
esac
 
13239
 
 
13240
 
 
13241
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13242
# Files that config.status was made for.
 
13243
config_files="$ac_config_files"
 
13244
config_headers="$ac_config_headers"
 
13245
config_commands="$ac_config_commands"
 
13246
 
 
13247
_ACEOF
 
13248
 
 
13249
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13250
ac_cs_usage="\
 
13251
\`$as_me' instantiates files and other configuration actions
 
13252
from templates according to the current configuration.  Unless the files
 
13253
and actions are specified as TAGs, all are instantiated by default.
 
13254
 
 
13255
Usage: $0 [OPTION]... [TAG]...
 
13256
 
 
13257
  -h, --help       print this help, then exit
 
13258
  -V, --version    print version number and configuration settings, then exit
 
13259
      --config     print configuration, then exit
 
13260
  -q, --quiet, --silent
 
13261
                   do not print progress messages
 
13262
  -d, --debug      don't remove temporary files
 
13263
      --recheck    update $as_me by reconfiguring in the same conditions
 
13264
      --file=FILE[:TEMPLATE]
 
13265
                   instantiate the configuration file FILE
 
13266
      --header=FILE[:TEMPLATE]
 
13267
                   instantiate the configuration header FILE
 
13268
 
 
13269
Configuration files:
 
13270
$config_files
 
13271
 
 
13272
Configuration headers:
 
13273
$config_headers
 
13274
 
 
13275
Configuration commands:
 
13276
$config_commands
 
13277
 
 
13278
Report bugs to the package provider."
 
13279
 
 
13280
_ACEOF
 
13281
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13282
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
13283
ac_cs_version="\\
 
13284
libjpeg config.status 6.2.1
 
13285
configured by $0, generated by GNU Autoconf 2.65,
 
13286
  with options \\"\$ac_cs_config\\"
 
13287
 
 
13288
Copyright (C) 2009 Free Software Foundation, Inc.
 
13289
This config.status script is free software; the Free Software Foundation
 
13290
gives unlimited permission to copy, distribute and modify it."
 
13291
 
 
13292
ac_pwd='$ac_pwd'
 
13293
srcdir='$srcdir'
 
13294
INSTALL='$INSTALL'
 
13295
MKDIR_P='$MKDIR_P'
 
13296
AWK='$AWK'
 
13297
test -n "\$AWK" || AWK=awk
 
13298
_ACEOF
 
13299
 
 
13300
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13301
# The default lists apply if the user does not specify any file.
 
13302
ac_need_defaults=:
 
13303
while test $# != 0
 
13304
do
 
13305
  case $1 in
 
13306
  --*=*)
 
13307
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13308
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13309
    ac_shift=:
 
13310
    ;;
 
13311
  *)
 
13312
    ac_option=$1
 
13313
    ac_optarg=$2
 
13314
    ac_shift=shift
 
13315
    ;;
 
13316
  esac
 
13317
 
 
13318
  case $ac_option in
 
13319
  # Handling of the options.
1731
13320
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1732
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1733
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1734
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1735
 
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
1736
 
    exit 0 ;;
1737
 
  -help | --help | --hel | --he | --h)
1738
 
    echo "\$ac_cs_usage"; exit 0 ;;
1739
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
1740
 
  esac
1741
 
done
1742
 
 
1743
 
ac_given_srcdir=$srcdir
1744
 
ac_given_INSTALL="$INSTALL"
1745
 
 
1746
 
trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1747
 
EOF
1748
 
cat >> $CONFIG_STATUS <<EOF
1749
 
 
1750
 
# Protect against being on the right side of a sed subst in config.status.
1751
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1752
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1753
 
$ac_vpsub
 
13321
    ac_cs_recheck=: ;;
 
13322
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13323
    $as_echo "$ac_cs_version"; exit ;;
 
13324
  --config | --confi | --conf | --con | --co | --c )
 
13325
    $as_echo "$ac_cs_config"; exit ;;
 
13326
  --debug | --debu | --deb | --de | --d | -d )
 
13327
    debug=: ;;
 
13328
  --file | --fil | --fi | --f )
 
13329
    $ac_shift
 
13330
    case $ac_optarg in
 
13331
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13332
    esac
 
13333
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
13334
    ac_need_defaults=false;;
 
13335
  --header | --heade | --head | --hea )
 
13336
    $ac_shift
 
13337
    case $ac_optarg in
 
13338
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13339
    esac
 
13340
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
13341
    ac_need_defaults=false;;
 
13342
  --he | --h)
 
13343
    # Conflict between --help and --header
 
13344
    as_fn_error "ambiguous option: \`$1'
 
13345
Try \`$0 --help' for more information.";;
 
13346
  --help | --hel | -h )
 
13347
    $as_echo "$ac_cs_usage"; exit ;;
 
13348
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13349
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13350
    ac_cs_silent=: ;;
 
13351
 
 
13352
  # This is an error.
 
13353
  -*) as_fn_error "unrecognized option: \`$1'
 
13354
Try \`$0 --help' for more information." ;;
 
13355
 
 
13356
  *) as_fn_append ac_config_targets " $1"
 
13357
     ac_need_defaults=false ;;
 
13358
 
 
13359
  esac
 
13360
  shift
 
13361
done
 
13362
 
 
13363
ac_configure_extra_args=
 
13364
 
 
13365
if $ac_cs_silent; then
 
13366
  exec 6>/dev/null
 
13367
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13368
fi
 
13369
 
 
13370
_ACEOF
 
13371
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13372
if \$ac_cs_recheck; then
 
13373
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13374
  shift
 
13375
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13376
  CONFIG_SHELL='$SHELL'
 
13377
  export CONFIG_SHELL
 
13378
  exec "\$@"
 
13379
fi
 
13380
 
 
13381
_ACEOF
 
13382
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13383
exec 5>>config.log
 
13384
{
 
13385
  echo
 
13386
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
13387
## Running $as_me. ##
 
13388
_ASBOX
 
13389
  $as_echo "$ac_log"
 
13390
} >&5
 
13391
 
 
13392
_ACEOF
 
13393
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13394
#
 
13395
# INIT-COMMANDS
 
13396
#
 
13397
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13398
 
 
13399
 
 
13400
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13401
# if CDPATH is set.
 
13402
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13403
 
 
13404
sed_quote_subst='$sed_quote_subst'
 
13405
double_quote_subst='$double_quote_subst'
 
13406
delay_variable_subst='$delay_variable_subst'
 
13407
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
13408
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
13409
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
13410
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
13411
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
13412
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
13413
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
13414
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
13415
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
13416
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
13417
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
13418
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
13419
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
13420
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
13421
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
13422
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
13423
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
13424
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
13425
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
13426
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
13427
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
13428
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
13429
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
13430
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
13431
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
13432
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
13433
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
13434
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
13435
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
13436
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13437
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13438
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
13439
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
13440
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
13441
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
13442
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
13443
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
13444
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13445
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13446
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13447
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
13448
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
13449
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
13450
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
13451
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
13452
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
13453
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"`'
 
13454
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"`'
 
13455
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
13456
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
13457
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
13458
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
13459
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13460
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
13461
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
13462
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
13463
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
13464
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
13465
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
13466
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
13467
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
13468
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
13469
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
13470
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
13471
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13472
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13473
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
13474
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
13475
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13476
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13477
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
13478
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13479
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13480
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13481
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13482
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13483
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13484
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
13485
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13486
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
13487
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13488
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
13489
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
13490
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
13491
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
13492
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
13493
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
13494
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
13495
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
13496
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
13497
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
13498
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
13499
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13500
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
13501
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
13502
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13503
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13504
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
13505
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
13506
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
13507
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
13508
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
13509
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
13510
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
13511
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13512
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13513
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13514
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13515
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13516
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
13517
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
13518
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
13519
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13520
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
13521
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
13522
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
13523
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
13524
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
13525
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
13526
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
13527
 
 
13528
LTCC='$LTCC'
 
13529
LTCFLAGS='$LTCFLAGS'
 
13530
compiler='$compiler_DEFAULT'
 
13531
 
 
13532
# Quote evaled strings.
 
13533
for var in SED \
 
13534
GREP \
 
13535
EGREP \
 
13536
FGREP \
 
13537
LD \
 
13538
NM \
 
13539
LN_S \
 
13540
lt_SP2NL \
 
13541
lt_NL2SP \
 
13542
reload_flag \
 
13543
deplibs_check_method \
 
13544
file_magic_cmd \
 
13545
AR \
 
13546
AR_FLAGS \
 
13547
STRIP \
 
13548
RANLIB \
 
13549
CC \
 
13550
CFLAGS \
 
13551
compiler \
 
13552
lt_cv_sys_global_symbol_pipe \
 
13553
lt_cv_sys_global_symbol_to_cdecl \
 
13554
lt_cv_sys_global_symbol_to_c_name_address \
 
13555
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
13556
SHELL \
 
13557
ECHO \
 
13558
lt_prog_compiler_no_builtin_flag \
 
13559
lt_prog_compiler_wl \
 
13560
lt_prog_compiler_pic \
 
13561
lt_prog_compiler_static \
 
13562
lt_cv_prog_compiler_c_o \
 
13563
need_locks \
 
13564
DSYMUTIL \
 
13565
NMEDIT \
 
13566
LIPO \
 
13567
OTOOL \
 
13568
OTOOL64 \
 
13569
shrext_cmds \
 
13570
export_dynamic_flag_spec \
 
13571
whole_archive_flag_spec \
 
13572
compiler_needs_object \
 
13573
with_gnu_ld \
 
13574
allow_undefined_flag \
 
13575
no_undefined_flag \
 
13576
hardcode_libdir_flag_spec \
 
13577
hardcode_libdir_flag_spec_ld \
 
13578
hardcode_libdir_separator \
 
13579
fix_srcfile_path \
 
13580
exclude_expsyms \
 
13581
include_expsyms \
 
13582
file_list_spec \
 
13583
variables_saved_for_relink \
 
13584
libname_spec \
 
13585
library_names_spec \
 
13586
soname_spec \
 
13587
finish_eval \
 
13588
old_striplib \
 
13589
striplib; do
 
13590
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
13591
    *[\\\\\\\`\\"\\\$]*)
 
13592
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
13593
      ;;
 
13594
    *)
 
13595
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13596
      ;;
 
13597
    esac
 
13598
done
 
13599
 
 
13600
# Double-quote double-evaled strings.
 
13601
for var in reload_cmds \
 
13602
old_postinstall_cmds \
 
13603
old_postuninstall_cmds \
 
13604
old_archive_cmds \
 
13605
extract_expsyms_cmds \
 
13606
old_archive_from_new_cmds \
 
13607
old_archive_from_expsyms_cmds \
 
13608
archive_cmds \
 
13609
archive_expsym_cmds \
 
13610
module_cmds \
 
13611
module_expsym_cmds \
 
13612
export_symbols_cmds \
 
13613
prelink_cmds \
 
13614
postinstall_cmds \
 
13615
postuninstall_cmds \
 
13616
finish_cmds \
 
13617
sys_lib_search_path_spec \
 
13618
sys_lib_dlsearch_path_spec; do
 
13619
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
13620
    *[\\\\\\\`\\"\\\$]*)
 
13621
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
13622
      ;;
 
13623
    *)
 
13624
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13625
      ;;
 
13626
    esac
 
13627
done
 
13628
 
 
13629
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
13630
case \$lt_ECHO in
 
13631
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
13632
  ;;
 
13633
esac
 
13634
 
 
13635
ac_aux_dir='$ac_aux_dir'
 
13636
xsi_shell='$xsi_shell'
 
13637
lt_shell_append='$lt_shell_append'
 
13638
 
 
13639
# See if we are running on zsh, and set the options which allow our
 
13640
# commands through without removal of \ escapes INIT.
 
13641
if test -n "\${ZSH_VERSION+set}" ; then
 
13642
   setopt NO_GLOB_SUBST
 
13643
fi
 
13644
 
 
13645
 
 
13646
    PACKAGE='$PACKAGE'
 
13647
    VERSION='$VERSION'
 
13648
    TIMESTAMP='$TIMESTAMP'
 
13649
    RM='$RM'
 
13650
    ofile='$ofile'
 
13651
 
 
13652
 
 
13653
 
 
13654
 
 
13655
_ACEOF
 
13656
 
 
13657
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13658
 
 
13659
# Handling of arguments.
 
13660
for ac_config_target in $ac_config_targets
 
13661
do
 
13662
  case $ac_config_target in
 
13663
    "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;;
 
13664
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
13665
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
13666
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
13667
 
 
13668
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
13669
  esac
 
13670
done
 
13671
 
 
13672
 
 
13673
# If the user did not use the arguments to specify the items to instantiate,
 
13674
# then the envvar interface is used.  Set only those that are not.
 
13675
# We use the long form for the default assignment because of an extremely
 
13676
# bizarre bug on SunOS 4.1.3.
 
13677
if $ac_need_defaults; then
 
13678
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13679
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
13680
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
13681
fi
 
13682
 
 
13683
# Have a temporary directory for convenience.  Make it in the build tree
 
13684
# simply because there is no reason against having it here, and in addition,
 
13685
# creating and moving files from /tmp can sometimes cause problems.
 
13686
# Hook for its removal unless debugging.
 
13687
# Note that there is a small window in which the directory will not be cleaned:
 
13688
# after its creation but before its name has been assigned to `$tmp'.
 
13689
$debug ||
 
13690
{
 
13691
  tmp=
 
13692
  trap 'exit_status=$?
 
13693
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
13694
' 0
 
13695
  trap 'as_fn_exit 1' 1 2 13 15
 
13696
}
 
13697
# Create a (secure) tmp directory for tmp files.
 
13698
 
 
13699
{
 
13700
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
13701
  test -n "$tmp" && test -d "$tmp"
 
13702
}  ||
 
13703
{
 
13704
  tmp=./conf$$-$RANDOM
 
13705
  (umask 077 && mkdir "$tmp")
 
13706
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
13707
 
 
13708
# Set up the scripts for CONFIG_FILES section.
 
13709
# No need to generate them if there are no CONFIG_FILES.
 
13710
# This happens for instance with `./config.status config.h'.
 
13711
if test -n "$CONFIG_FILES"; then
 
13712
 
 
13713
 
 
13714
ac_cr=`echo X | tr X '\015'`
 
13715
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
13716
# But we know of no other shell where ac_cr would be empty at this
 
13717
# point, so we can use a bashism as a fallback.
 
13718
if test "x$ac_cr" = x; then
 
13719
  eval ac_cr=\$\'\\r\'
 
13720
fi
 
13721
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
13722
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
13723
  ac_cs_awk_cr='\r'
 
13724
else
 
13725
  ac_cs_awk_cr=$ac_cr
 
13726
fi
 
13727
 
 
13728
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
13729
_ACEOF
 
13730
 
 
13731
 
 
13732
{
 
13733
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
13734
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
13735
  echo "_ACEOF"
 
13736
} >conf$$subs.sh ||
 
13737
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
13738
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
13739
ac_delim='%!_!# '
 
13740
for ac_last_try in false false false false false :; do
 
13741
  . ./conf$$subs.sh ||
 
13742
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
13743
 
 
13744
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
13745
  if test $ac_delim_n = $ac_delim_num; then
 
13746
    break
 
13747
  elif $ac_last_try; then
 
13748
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
13749
  else
 
13750
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
13751
  fi
 
13752
done
 
13753
rm -f conf$$subs.sh
 
13754
 
 
13755
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13756
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
13757
_ACEOF
 
13758
sed -n '
 
13759
h
 
13760
s/^/S["/; s/!.*/"]=/
 
13761
p
 
13762
g
 
13763
s/^[^!]*!//
 
13764
:repl
 
13765
t repl
 
13766
s/'"$ac_delim"'$//
 
13767
t delim
 
13768
:nl
 
13769
h
 
13770
s/\(.\{148\}\)..*/\1/
 
13771
t more1
 
13772
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
13773
p
 
13774
n
 
13775
b repl
 
13776
:more1
 
13777
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
13778
p
 
13779
g
 
13780
s/.\{148\}//
 
13781
t nl
 
13782
:delim
 
13783
h
 
13784
s/\(.\{148\}\)..*/\1/
 
13785
t more2
 
13786
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
13787
p
 
13788
b
 
13789
:more2
 
13790
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
13791
p
 
13792
g
 
13793
s/.\{148\}//
 
13794
t delim
 
13795
' <conf$$subs.awk | sed '
 
13796
/^[^""]/{
 
13797
  N
 
13798
  s/\n//
 
13799
}
 
13800
' >>$CONFIG_STATUS || ac_write_fail=1
 
13801
rm -f conf$$subs.awk
 
13802
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13803
_ACAWK
 
13804
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
13805
  for (key in S) S_is_set[key] = 1
 
13806
  FS = ""
 
13807
 
 
13808
}
 
13809
{
 
13810
  line = $ 0
 
13811
  nfields = split(line, field, "@")
 
13812
  substed = 0
 
13813
  len = length(field[1])
 
13814
  for (i = 2; i < nfields; i++) {
 
13815
    key = field[i]
 
13816
    keylen = length(key)
 
13817
    if (S_is_set[key]) {
 
13818
      value = S[key]
 
13819
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
13820
      len += length(value) + length(field[++i])
 
13821
      substed = 1
 
13822
    } else
 
13823
      len += 1 + keylen
 
13824
  }
 
13825
 
 
13826
  print line
 
13827
}
 
13828
 
 
13829
_ACAWK
 
13830
_ACEOF
 
13831
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13832
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
13833
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
13834
else
 
13835
  cat
 
13836
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
13837
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
13838
_ACEOF
 
13839
 
 
13840
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
13841
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
13842
# trailing colons and then remove the whole line if VPATH becomes empty
 
13843
# (actually we leave an empty line to preserve line numbers).
 
13844
if test "x$srcdir" = x.; then
 
13845
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
13846
s/:*\$(srcdir):*/:/
 
13847
s/:*\${srcdir}:*/:/
 
13848
s/:*@srcdir@:*/:/
 
13849
s/^\([^=]*=[     ]*\):*/\1/
 
13850
s/:*$//
 
13851
s/^[^=]*=[       ]*$//
 
13852
}'
 
13853
fi
 
13854
 
 
13855
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13856
fi # test -n "$CONFIG_FILES"
 
13857
 
 
13858
# Set up the scripts for CONFIG_HEADERS section.
 
13859
# No need to generate them if there are no CONFIG_HEADERS.
 
13860
# This happens for instance with `./config.status Makefile'.
 
13861
if test -n "$CONFIG_HEADERS"; then
 
13862
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
13863
BEGIN {
 
13864
_ACEOF
 
13865
 
 
13866
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
13867
# here-document in config.status, that substitutes the proper values into
 
13868
# config.h.in to produce config.h.
 
13869
 
 
13870
# Create a delimiter string that does not exist in confdefs.h, to ease
 
13871
# handling of long lines.
 
13872
ac_delim='%!_!# '
 
13873
for ac_last_try in false false :; do
 
13874
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
13875
  if test -z "$ac_t"; then
 
13876
    break
 
13877
  elif $ac_last_try; then
 
13878
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
13879
  else
 
13880
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
13881
  fi
 
13882
done
 
13883
 
 
13884
# For the awk script, D is an array of macro values keyed by name,
 
13885
# likewise P contains macro parameters if any.  Preserve backslash
 
13886
# newline sequences.
 
13887
 
 
13888
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
13889
sed -n '
 
13890
s/.\{148\}/&'"$ac_delim"'/g
 
13891
t rset
 
13892
:rset
 
13893
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
13894
t def
 
13895
d
 
13896
:def
 
13897
s/\\$//
 
13898
t bsnl
 
13899
s/["\\]/\\&/g
 
13900
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
13901
D["\1"]=" \3"/p
 
13902
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
13903
d
 
13904
:bsnl
 
13905
s/["\\]/\\&/g
 
13906
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
13907
D["\1"]=" \3\\\\\\n"\\/p
 
13908
t cont
 
13909
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
13910
t cont
 
13911
d
 
13912
:cont
 
13913
n
 
13914
s/.\{148\}/&'"$ac_delim"'/g
 
13915
t clear
 
13916
:clear
 
13917
s/\\$//
 
13918
t bsnlc
 
13919
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
13920
d
 
13921
:bsnlc
 
13922
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
13923
b cont
 
13924
' <confdefs.h | sed '
 
13925
s/'"$ac_delim"'/"\\\
 
13926
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
13927
 
 
13928
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13929
  for (key in D) D_is_set[key] = 1
 
13930
  FS = ""
 
13931
}
 
13932
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
13933
  line = \$ 0
 
13934
  split(line, arg, " ")
 
13935
  if (arg[1] == "#") {
 
13936
    defundef = arg[2]
 
13937
    mac1 = arg[3]
 
13938
  } else {
 
13939
    defundef = substr(arg[1], 2)
 
13940
    mac1 = arg[2]
 
13941
  }
 
13942
  split(mac1, mac2, "(") #)
 
13943
  macro = mac2[1]
 
13944
  prefix = substr(line, 1, index(line, defundef) - 1)
 
13945
  if (D_is_set[macro]) {
 
13946
    # Preserve the white space surrounding the "#".
 
13947
    print prefix "define", macro P[macro] D[macro]
 
13948
    next
 
13949
  } else {
 
13950
    # Replace #undef with comments.  This is necessary, for example,
 
13951
    # in the case of _POSIX_SOURCE, which is predefined and required
 
13952
    # on some systems where configure will not decide to define it.
 
13953
    if (defundef == "undef") {
 
13954
      print "/*", prefix defundef, macro, "*/"
 
13955
      next
 
13956
    }
 
13957
  }
 
13958
}
 
13959
{ print }
 
13960
_ACAWK
 
13961
_ACEOF
 
13962
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13963
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
13964
fi # test -n "$CONFIG_HEADERS"
 
13965
 
 
13966
 
 
13967
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
13968
shift
 
13969
for ac_tag
 
13970
do
 
13971
  case $ac_tag in
 
13972
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
13973
  esac
 
13974
  case $ac_mode$ac_tag in
 
13975
  :[FHL]*:*);;
 
13976
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
13977
  :[FH]-) ac_tag=-:-;;
 
13978
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
13979
  esac
 
13980
  ac_save_IFS=$IFS
 
13981
  IFS=:
 
13982
  set x $ac_tag
 
13983
  IFS=$ac_save_IFS
 
13984
  shift
 
13985
  ac_file=$1
 
13986
  shift
 
13987
 
 
13988
  case $ac_mode in
 
13989
  :L) ac_source=$1;;
 
13990
  :[FH])
 
13991
    ac_file_inputs=
 
13992
    for ac_f
 
13993
    do
 
13994
      case $ac_f in
 
13995
      -) ac_f="$tmp/stdin";;
 
13996
      *) # Look for the file first in the build tree, then in the source tree
 
13997
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
13998
         # because $ac_f cannot contain `:'.
 
13999
         test -f "$ac_f" ||
 
14000
           case $ac_f in
 
14001
           [\\/$]*) false;;
 
14002
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14003
           esac ||
 
14004
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14005
      esac
 
14006
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14007
      as_fn_append ac_file_inputs " '$ac_f'"
 
14008
    done
 
14009
 
 
14010
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14011
    # use $as_me), people would be surprised to read:
 
14012
    #    /* config.h.  Generated by config.status.  */
 
14013
    configure_input='Generated from '`
 
14014
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14015
        `' by configure.'
 
14016
    if test x"$ac_file" != x-; then
 
14017
      configure_input="$ac_file.  $configure_input"
 
14018
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14019
$as_echo "$as_me: creating $ac_file" >&6;}
 
14020
    fi
 
14021
    # Neutralize special characters interpreted by sed in replacement strings.
 
14022
    case $configure_input in #(
 
14023
    *\&* | *\|* | *\\* )
 
14024
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14025
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14026
    *) ac_sed_conf_input=$configure_input;;
 
14027
    esac
 
14028
 
 
14029
    case $ac_tag in
 
14030
    *:-:* | *:-) cat >"$tmp/stdin" \
 
14031
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
14032
    esac
 
14033
    ;;
 
14034
  esac
 
14035
 
 
14036
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14037
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14038
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14039
         X"$ac_file" : 'X\(//\)$' \| \
 
14040
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14041
$as_echo X"$ac_file" |
 
14042
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14043
            s//\1/
 
14044
            q
 
14045
          }
 
14046
          /^X\(\/\/\)[^/].*/{
 
14047
            s//\1/
 
14048
            q
 
14049
          }
 
14050
          /^X\(\/\/\)$/{
 
14051
            s//\1/
 
14052
            q
 
14053
          }
 
14054
          /^X\(\/\).*/{
 
14055
            s//\1/
 
14056
            q
 
14057
          }
 
14058
          s/.*/./; q'`
 
14059
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14060
  ac_builddir=.
 
14061
 
 
14062
case "$ac_dir" in
 
14063
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14064
*)
 
14065
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14066
  # A ".." for each directory in $ac_dir_suffix.
 
14067
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14068
  case $ac_top_builddir_sub in
 
14069
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14070
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14071
  esac ;;
 
14072
esac
 
14073
ac_abs_top_builddir=$ac_pwd
 
14074
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14075
# for backward compatibility:
 
14076
ac_top_builddir=$ac_top_build_prefix
 
14077
 
 
14078
case $srcdir in
 
14079
  .)  # We are building in place.
 
14080
    ac_srcdir=.
 
14081
    ac_top_srcdir=$ac_top_builddir_sub
 
14082
    ac_abs_top_srcdir=$ac_pwd ;;
 
14083
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14084
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14085
    ac_top_srcdir=$srcdir
 
14086
    ac_abs_top_srcdir=$srcdir ;;
 
14087
  *) # Relative name.
 
14088
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14089
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14090
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14091
esac
 
14092
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14093
 
 
14094
 
 
14095
  case $ac_mode in
 
14096
  :F)
 
14097
  #
 
14098
  # CONFIG_FILE
 
14099
  #
 
14100
 
 
14101
  case $INSTALL in
 
14102
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14103
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14104
  esac
 
14105
  ac_MKDIR_P=$MKDIR_P
 
14106
  case $MKDIR_P in
 
14107
  [\\/$]* | ?:[\\/]* ) ;;
 
14108
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14109
  esac
 
14110
_ACEOF
 
14111
 
 
14112
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14113
# If the template does not know about datarootdir, expand it.
 
14114
# FIXME: This hack should be removed a few years after 2.60.
 
14115
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14116
ac_sed_dataroot='
 
14117
/datarootdir/ {
 
14118
  p
 
14119
  q
 
14120
}
 
14121
/@datadir@/p
 
14122
/@docdir@/p
 
14123
/@infodir@/p
 
14124
/@localedir@/p
 
14125
/@mandir@/p'
 
14126
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14127
*datarootdir*) ac_datarootdir_seen=yes;;
 
14128
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14129
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14130
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14131
_ACEOF
 
14132
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14133
  ac_datarootdir_hack='
 
14134
  s&@datadir@&$datadir&g
 
14135
  s&@docdir@&$docdir&g
 
14136
  s&@infodir@&$infodir&g
 
14137
  s&@localedir@&$localedir&g
 
14138
  s&@mandir@&$mandir&g
 
14139
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14140
esac
 
14141
_ACEOF
 
14142
 
 
14143
# Neutralize VPATH when `$srcdir' = `.'.
 
14144
# Shell code in configure.ac might set extrasub.
 
14145
# FIXME: do we really want to maintain this feature?
 
14146
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14147
ac_sed_extra="$ac_vpsub
1754
14148
$extrasub
1755
 
s%@CFLAGS@%$CFLAGS%g
1756
 
s%@CPPFLAGS@%$CPPFLAGS%g
1757
 
s%@CXXFLAGS@%$CXXFLAGS%g
1758
 
s%@DEFS@%$DEFS%g
1759
 
s%@LDFLAGS@%$LDFLAGS%g
1760
 
s%@LIBS@%$LIBS%g
1761
 
s%@exec_prefix@%$exec_prefix%g
1762
 
s%@prefix@%$prefix%g
1763
 
s%@program_transform_name@%$program_transform_name%g
1764
 
s%@bindir@%$bindir%g
1765
 
s%@sbindir@%$sbindir%g
1766
 
s%@libexecdir@%$libexecdir%g
1767
 
s%@datadir@%$datadir%g
1768
 
s%@sysconfdir@%$sysconfdir%g
1769
 
s%@sharedstatedir@%$sharedstatedir%g
1770
 
s%@localstatedir@%$localstatedir%g
1771
 
s%@libdir@%$libdir%g
1772
 
s%@includedir@%$includedir%g
1773
 
s%@oldincludedir@%$oldincludedir%g
1774
 
s%@infodir@%$infodir%g
1775
 
s%@mandir@%$mandir%g
1776
 
s%@CC@%$CC%g
1777
 
s%@CPP@%$CPP%g
1778
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1779
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
1780
 
s%@RANLIB@%$RANLIB%g
1781
 
s%@LIBTOOL@%$LIBTOOL%g
1782
 
s%@O@%$O%g
1783
 
s%@A@%$A%g
1784
 
s%@LN@%$LN%g
1785
 
s%@INSTALL_LIB@%$INSTALL_LIB%g
1786
 
s%@MEMORYMGR@%$MEMORYMGR%g
1787
 
s%@JPEG_LIB_VERSION@%$JPEG_LIB_VERSION%g
1788
 
s%@A2K_DEPS@%$A2K_DEPS%g
1789
 
s%@COM_A2K@%$COM_A2K%g
1790
 
s%@ANSI2KNRFLAGS@%$ANSI2KNRFLAGS%g
1791
 
s%@COM_LT@%$COM_LT%g
1792
 
s%@FORCE_INSTALL_LIB@%$FORCE_INSTALL_LIB%g
1793
 
s%@INCLUDEFLAGS@%$INCLUDEFLAGS%g
1794
 
 
1795
 
CEOF
1796
 
EOF
1797
 
 
1798
 
cat >> $CONFIG_STATUS <<\EOF
1799
 
 
1800
 
# Split the substitutions into bite-sized pieces for seds with
1801
 
# small command number limits, like on Digital OSF/1 and HP-UX.
1802
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1803
 
ac_file=1 # Number of current file.
1804
 
ac_beg=1 # First line for current file.
1805
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
1806
 
ac_more_lines=:
1807
 
ac_sed_cmds=""
1808
 
while $ac_more_lines; do
1809
 
  if test $ac_beg -gt 1; then
1810
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1811
 
  else
1812
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1813
 
  fi
1814
 
  if test ! -s conftest.s$ac_file; then
1815
 
    ac_more_lines=false
1816
 
    rm -f conftest.s$ac_file
1817
 
  else
1818
 
    if test -z "$ac_sed_cmds"; then
1819
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
1820
 
    else
1821
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1822
 
    fi
1823
 
    ac_file=`expr $ac_file + 1`
1824
 
    ac_beg=$ac_end
1825
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1826
 
  fi
1827
 
done
1828
 
if test -z "$ac_sed_cmds"; then
1829
 
  ac_sed_cmds=cat
1830
 
fi
1831
 
EOF
1832
 
 
1833
 
cat >> $CONFIG_STATUS <<EOF
1834
 
 
1835
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile:makefile.cfg"}
1836
 
EOF
1837
 
cat >> $CONFIG_STATUS <<\EOF
1838
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1839
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1840
 
  case "$ac_file" in
1841
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1842
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1843
 
  *) ac_file_in="${ac_file}.in" ;;
1844
 
  esac
1845
 
 
1846
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1847
 
 
1848
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
1849
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1850
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1851
 
    # The file is in a subdirectory.
1852
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
1853
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1854
 
    # A "../" for each directory in $ac_dir_suffix.
1855
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1856
 
  else
1857
 
    ac_dir_suffix= ac_dots=
1858
 
  fi
1859
 
 
1860
 
  case "$ac_given_srcdir" in
1861
 
  .)  srcdir=.
1862
 
      if test -z "$ac_dots"; then top_srcdir=.
1863
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1864
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1865
 
  *) # Relative path.
1866
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1867
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1868
 
  esac
1869
 
 
1870
 
  case "$ac_given_INSTALL" in
1871
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1872
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1873
 
  esac
1874
 
 
1875
 
  echo creating "$ac_file"
1876
 
  rm -f "$ac_file"
1877
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1878
 
  case "$ac_file" in
1879
 
  *Makefile*) ac_comsub="1i\\
1880
 
# $configure_input" ;;
1881
 
  *) ac_comsub= ;;
1882
 
  esac
1883
 
 
1884
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1885
 
  sed -e "$ac_comsub
1886
 
s%@configure_input@%$configure_input%g
1887
 
s%@srcdir@%$srcdir%g
1888
 
s%@top_srcdir@%$top_srcdir%g
1889
 
s%@INSTALL@%$INSTALL%g
1890
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1891
 
fi; done
1892
 
rm -f conftest.s*
1893
 
 
1894
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1895
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
1896
 
#
1897
 
# ac_d sets the value in "#define NAME VALUE" lines.
1898
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1899
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1900
 
ac_dC='\3'
1901
 
ac_dD='%g'
1902
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1903
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1904
 
ac_uB='\([      ]\)%\1#\2define\3'
1905
 
ac_uC=' '
1906
 
ac_uD='\4%g'
1907
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1908
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1909
 
ac_eB='$%\1#\2define\3'
1910
 
ac_eC=' '
1911
 
ac_eD='%g'
1912
 
 
1913
 
if test "${CONFIG_HEADERS+set}" != set; then
1914
 
EOF
1915
 
cat >> $CONFIG_STATUS <<EOF
1916
 
  CONFIG_HEADERS="jconfig.h:jconfig.cfg"
1917
 
EOF
1918
 
cat >> $CONFIG_STATUS <<\EOF
1919
 
fi
1920
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1921
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1922
 
  case "$ac_file" in
1923
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1924
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1925
 
  *) ac_file_in="${ac_file}.in" ;;
1926
 
  esac
1927
 
 
1928
 
  echo creating $ac_file
1929
 
 
1930
 
  rm -f conftest.frag conftest.in conftest.out
1931
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1932
 
  cat $ac_file_inputs > conftest.in
1933
 
 
1934
 
EOF
1935
 
 
1936
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
1937
 
# the proper values into config.h.in to produce config.h.  And first:
1938
 
# Protect against being on the right side of a sed subst in config.status.
1939
 
# Protect against being in an unquoted here document in config.status.
1940
 
rm -f conftest.vals
1941
 
cat > conftest.hdr <<\EOF
1942
 
s/[\\&%]/\\&/g
1943
 
s%[\\$`]%\\&%g
1944
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1945
 
s%ac_d%ac_u%gp
1946
 
s%ac_u%ac_e%gp
1947
 
EOF
1948
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
1949
 
rm -f conftest.hdr
1950
 
 
1951
 
# This sed command replaces #undef with comments.  This is necessary, for
1952
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
1953
 
# on some systems where configure will not decide to define it.
1954
 
cat >> conftest.vals <<\EOF
1955
 
EOF
1956
 
 
1957
 
# Break up conftest.vals because some shells have a limit on
1958
 
# the size of here documents, and old seds have small limits too.
1959
 
 
1960
 
rm -f conftest.tail
1961
 
while :
1962
 
do
1963
 
  ac_lines=`grep -c . conftest.vals`
1964
 
  # grep -c gives empty output for an empty file on some AIX systems.
1965
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1966
 
  # Write a limited-size here document to conftest.frag.
1967
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1968
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1969
 
  echo 'CEOF
1970
 
  sed -f conftest.frag conftest.in > conftest.out
1971
 
  rm -f conftest.in
1972
 
  mv conftest.out conftest.in
1973
 
' >> $CONFIG_STATUS
1974
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1975
 
  rm -f conftest.vals
1976
 
  mv conftest.tail conftest.vals
1977
 
done
1978
 
rm -f conftest.vals
1979
 
 
1980
 
cat >> $CONFIG_STATUS <<\EOF
1981
 
  rm -f conftest.frag conftest.h
1982
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1983
 
  cat conftest.in >> conftest.h
1984
 
  rm -f conftest.in
1985
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
1986
 
    echo "$ac_file is unchanged"
1987
 
    rm -f conftest.h
1988
 
  else
1989
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
1990
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1991
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1992
 
      # The file is in a subdirectory.
1993
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
1994
 
    fi
1995
 
    rm -f $ac_file
1996
 
    mv conftest.h $ac_file
1997
 
  fi
1998
 
fi; done
1999
 
 
2000
 
EOF
2001
 
cat >> $CONFIG_STATUS <<EOF
2002
 
 
2003
 
EOF
2004
 
cat >> $CONFIG_STATUS <<\EOF
2005
 
 
2006
 
exit 0
2007
 
EOF
2008
 
chmod +x $CONFIG_STATUS
2009
 
rm -fr confdefs* $ac_clean_files
2010
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
14149
_ACEOF
 
14150
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14151
:t
 
14152
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14153
s|@configure_input@|$ac_sed_conf_input|;t t
 
14154
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14155
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14156
s&@srcdir@&$ac_srcdir&;t t
 
14157
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14158
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14159
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14160
s&@builddir@&$ac_builddir&;t t
 
14161
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14162
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14163
s&@INSTALL@&$ac_INSTALL&;t t
 
14164
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14165
$ac_datarootdir_hack
 
14166
"
 
14167
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
14168
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
14169
 
 
14170
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14171
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
14172
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
14173
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14174
which seems to be undefined.  Please make sure it is defined." >&5
 
14175
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14176
which seems to be undefined.  Please make sure it is defined." >&2;}
 
14177
 
 
14178
  rm -f "$tmp/stdin"
 
14179
  case $ac_file in
 
14180
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
14181
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
14182
  esac \
 
14183
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
14184
 ;;
 
14185
  :H)
 
14186
  #
 
14187
  # CONFIG_HEADER
 
14188
  #
 
14189
  if test x"$ac_file" != x-; then
 
14190
    {
 
14191
      $as_echo "/* $configure_input  */" \
 
14192
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
14193
    } >"$tmp/config.h" \
 
14194
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
14195
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
14196
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
14197
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
14198
    else
 
14199
      rm -f "$ac_file"
 
14200
      mv "$tmp/config.h" "$ac_file" \
 
14201
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
14202
    fi
 
14203
  else
 
14204
    $as_echo "/* $configure_input  */" \
 
14205
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
14206
      || as_fn_error "could not create -" "$LINENO" 5
 
14207
  fi
 
14208
# Compute "$ac_file"'s index in $config_headers.
 
14209
_am_arg="$ac_file"
 
14210
_am_stamp_count=1
 
14211
for _am_header in $config_headers :; do
 
14212
  case $_am_header in
 
14213
    $_am_arg | $_am_arg:* )
 
14214
      break ;;
 
14215
    * )
 
14216
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14217
  esac
 
14218
done
 
14219
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
14220
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14221
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
14222
         X"$_am_arg" : 'X\(//\)$' \| \
 
14223
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
14224
$as_echo X"$_am_arg" |
 
14225
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14226
            s//\1/
 
14227
            q
 
14228
          }
 
14229
          /^X\(\/\/\)[^/].*/{
 
14230
            s//\1/
 
14231
            q
 
14232
          }
 
14233
          /^X\(\/\/\)$/{
 
14234
            s//\1/
 
14235
            q
 
14236
          }
 
14237
          /^X\(\/\).*/{
 
14238
            s//\1/
 
14239
            q
 
14240
          }
 
14241
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14242
 ;;
 
14243
 
 
14244
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
14245
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14246
 ;;
 
14247
  esac
 
14248
 
 
14249
 
 
14250
  case $ac_file$ac_mode in
 
14251
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14252
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
14253
  # are listed without --file.  Let's play safe and only enable the eval
 
14254
  # if we detect the quoting.
 
14255
  case $CONFIG_FILES in
 
14256
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14257
  *)   set x $CONFIG_FILES ;;
 
14258
  esac
 
14259
  shift
 
14260
  for mf
 
14261
  do
 
14262
    # Strip MF so we end up with the name of the file.
 
14263
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14264
    # Check whether this is an Automake generated Makefile or not.
 
14265
    # We used to match only the files named `Makefile.in', but
 
14266
    # some people rename them; so instead we look at the file content.
 
14267
    # Grep'ing the first line is not enough: some people post-process
 
14268
    # each Makefile.in and add a new line on top of each file to say so.
 
14269
    # Grep'ing the whole file is not good either: AIX grep has a line
 
14270
    # limit of 2048, but all sed's we know have understand at least 4000.
 
14271
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14272
      dirpart=`$as_dirname -- "$mf" ||
 
14273
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14274
         X"$mf" : 'X\(//\)[^/]' \| \
 
14275
         X"$mf" : 'X\(//\)$' \| \
 
14276
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14277
$as_echo X"$mf" |
 
14278
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14279
            s//\1/
 
14280
            q
 
14281
          }
 
14282
          /^X\(\/\/\)[^/].*/{
 
14283
            s//\1/
 
14284
            q
 
14285
          }
 
14286
          /^X\(\/\/\)$/{
 
14287
            s//\1/
 
14288
            q
 
14289
          }
 
14290
          /^X\(\/\).*/{
 
14291
            s//\1/
 
14292
            q
 
14293
          }
 
14294
          s/.*/./; q'`
 
14295
    else
 
14296
      continue
 
14297
    fi
 
14298
    # Extract the definition of DEPDIR, am__include, and am__quote
 
14299
    # from the Makefile without running `make'.
 
14300
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14301
    test -z "$DEPDIR" && continue
 
14302
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14303
    test -z "am__include" && continue
 
14304
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14305
    # When using ansi2knr, U may be empty or an underscore; expand it
 
14306
    U=`sed -n 's/^U = //p' < "$mf"`
 
14307
    # Find all dependency output files, they are included files with
 
14308
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14309
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
14310
    # expansion.
 
14311
    for file in `sed -n "
 
14312
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14313
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
14314
      # Make sure the directory exists.
 
14315
      test -f "$dirpart/$file" && continue
 
14316
      fdir=`$as_dirname -- "$file" ||
 
14317
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14318
         X"$file" : 'X\(//\)[^/]' \| \
 
14319
         X"$file" : 'X\(//\)$' \| \
 
14320
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14321
$as_echo X"$file" |
 
14322
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14323
            s//\1/
 
14324
            q
 
14325
          }
 
14326
          /^X\(\/\/\)[^/].*/{
 
14327
            s//\1/
 
14328
            q
 
14329
          }
 
14330
          /^X\(\/\/\)$/{
 
14331
            s//\1/
 
14332
            q
 
14333
          }
 
14334
          /^X\(\/\).*/{
 
14335
            s//\1/
 
14336
            q
 
14337
          }
 
14338
          s/.*/./; q'`
 
14339
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
14340
      # echo "creating $dirpart/$file"
 
14341
      echo '# dummy' > "$dirpart/$file"
 
14342
    done
 
14343
  done
 
14344
}
 
14345
 ;;
 
14346
    "libtool":C)
 
14347
 
 
14348
    # See if we are running on zsh, and set the options which allow our
 
14349
    # commands through without removal of \ escapes.
 
14350
    if test -n "${ZSH_VERSION+set}" ; then
 
14351
      setopt NO_GLOB_SUBST
 
14352
    fi
 
14353
 
 
14354
    cfgfile="${ofile}T"
 
14355
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14356
    $RM "$cfgfile"
 
14357
 
 
14358
    cat <<_LT_EOF >> "$cfgfile"
 
14359
#! $SHELL
 
14360
 
 
14361
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14362
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14364
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14365
#
 
14366
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14367
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
14368
#   Written by Gordon Matzigkeit, 1996
 
14369
#
 
14370
#   This file is part of GNU Libtool.
 
14371
#
 
14372
# GNU Libtool is free software; you can redistribute it and/or
 
14373
# modify it under the terms of the GNU General Public License as
 
14374
# published by the Free Software Foundation; either version 2 of
 
14375
# the License, or (at your option) any later version.
 
14376
#
 
14377
# As a special exception to the GNU General Public License,
 
14378
# if you distribute this file as part of a program or library that
 
14379
# is built using GNU Libtool, you may include this file under the
 
14380
# same distribution terms that you use for the rest of that program.
 
14381
#
 
14382
# GNU Libtool is distributed in the hope that it will be useful,
 
14383
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14384
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14385
# GNU General Public License for more details.
 
14386
#
 
14387
# You should have received a copy of the GNU General Public License
 
14388
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14389
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14390
# obtained by writing to the Free Software Foundation, Inc.,
 
14391
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14392
 
 
14393
 
 
14394
# The names of the tagged configurations supported by this script.
 
14395
available_tags=""
 
14396
 
 
14397
# ### BEGIN LIBTOOL CONFIG
 
14398
 
 
14399
# Assembler program.
 
14400
AS=$AS
 
14401
 
 
14402
# DLL creation program.
 
14403
DLLTOOL=$DLLTOOL
 
14404
 
 
14405
# Object dumper program.
 
14406
OBJDUMP=$OBJDUMP
 
14407
 
 
14408
# Which release of libtool.m4 was used?
 
14409
macro_version=$macro_version
 
14410
macro_revision=$macro_revision
 
14411
 
 
14412
# Whether or not to build shared libraries.
 
14413
build_libtool_libs=$enable_shared
 
14414
 
 
14415
# Whether or not to build static libraries.
 
14416
build_old_libs=$enable_static
 
14417
 
 
14418
# What type of objects to build.
 
14419
pic_mode=$pic_mode
 
14420
 
 
14421
# Whether or not to optimize for fast installation.
 
14422
fast_install=$enable_fast_install
 
14423
 
 
14424
# The host system.
 
14425
host_alias=$host_alias
 
14426
host=$host
 
14427
host_os=$host_os
 
14428
 
 
14429
# The build system.
 
14430
build_alias=$build_alias
 
14431
build=$build
 
14432
build_os=$build_os
 
14433
 
 
14434
# A sed program that does not truncate output.
 
14435
SED=$lt_SED
 
14436
 
 
14437
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14438
Xsed="\$SED -e 1s/^X//"
 
14439
 
 
14440
# A grep program that handles long lines.
 
14441
GREP=$lt_GREP
 
14442
 
 
14443
# An ERE matcher.
 
14444
EGREP=$lt_EGREP
 
14445
 
 
14446
# A literal string matcher.
 
14447
FGREP=$lt_FGREP
 
14448
 
 
14449
# A BSD- or MS-compatible name lister.
 
14450
NM=$lt_NM
 
14451
 
 
14452
# Whether we need soft or hard links.
 
14453
LN_S=$lt_LN_S
 
14454
 
 
14455
# What is the maximum length of a command?
 
14456
max_cmd_len=$max_cmd_len
 
14457
 
 
14458
# Object file suffix (normally "o").
 
14459
objext=$ac_objext
 
14460
 
 
14461
# Executable file suffix (normally "").
 
14462
exeext=$exeext
 
14463
 
 
14464
# whether the shell understands "unset".
 
14465
lt_unset=$lt_unset
 
14466
 
 
14467
# turn spaces into newlines.
 
14468
SP2NL=$lt_lt_SP2NL
 
14469
 
 
14470
# turn newlines into spaces.
 
14471
NL2SP=$lt_lt_NL2SP
 
14472
 
 
14473
# How to create reloadable object files.
 
14474
reload_flag=$lt_reload_flag
 
14475
reload_cmds=$lt_reload_cmds
 
14476
 
 
14477
# Method to check whether dependent libraries are shared objects.
 
14478
deplibs_check_method=$lt_deplibs_check_method
 
14479
 
 
14480
# Command to use when deplibs_check_method == "file_magic".
 
14481
file_magic_cmd=$lt_file_magic_cmd
 
14482
 
 
14483
# The archiver.
 
14484
AR=$lt_AR
 
14485
AR_FLAGS=$lt_AR_FLAGS
 
14486
 
 
14487
# A symbol stripping program.
 
14488
STRIP=$lt_STRIP
 
14489
 
 
14490
# Commands used to install an old-style archive.
 
14491
RANLIB=$lt_RANLIB
 
14492
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14493
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14494
 
 
14495
# A C compiler.
 
14496
LTCC=$lt_CC
 
14497
 
 
14498
# LTCC compiler flags.
 
14499
LTCFLAGS=$lt_CFLAGS
 
14500
 
 
14501
# Take the output of nm and produce a listing of raw symbols and C names.
 
14502
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14503
 
 
14504
# Transform the output of nm in a proper C declaration.
 
14505
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14506
 
 
14507
# Transform the output of nm in a C name address pair.
 
14508
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14509
 
 
14510
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
14511
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
14512
 
 
14513
# The name of the directory that contains temporary libtool files.
 
14514
objdir=$objdir
 
14515
 
 
14516
# Shell to use when invoking shell scripts.
 
14517
SHELL=$lt_SHELL
 
14518
 
 
14519
# An echo program that does not interpret backslashes.
 
14520
ECHO=$lt_ECHO
 
14521
 
 
14522
# Used to examine libraries when file_magic_cmd begins with "file".
 
14523
MAGIC_CMD=$MAGIC_CMD
 
14524
 
 
14525
# Must we lock files when doing compilation?
 
14526
need_locks=$lt_need_locks
 
14527
 
 
14528
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
14529
DSYMUTIL=$lt_DSYMUTIL
 
14530
 
 
14531
# Tool to change global to local symbols on Mac OS X.
 
14532
NMEDIT=$lt_NMEDIT
 
14533
 
 
14534
# Tool to manipulate fat objects and archives on Mac OS X.
 
14535
LIPO=$lt_LIPO
 
14536
 
 
14537
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
14538
OTOOL=$lt_OTOOL
 
14539
 
 
14540
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
14541
OTOOL64=$lt_OTOOL64
 
14542
 
 
14543
# Old archive suffix (normally "a").
 
14544
libext=$libext
 
14545
 
 
14546
# Shared library suffix (normally ".so").
 
14547
shrext_cmds=$lt_shrext_cmds
 
14548
 
 
14549
# The commands to extract the exported symbol list from a shared archive.
 
14550
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14551
 
 
14552
# Variables whose values should be saved in libtool wrapper scripts and
 
14553
# restored at link time.
 
14554
variables_saved_for_relink=$lt_variables_saved_for_relink
 
14555
 
 
14556
# Do we need the "lib" prefix for modules?
 
14557
need_lib_prefix=$need_lib_prefix
 
14558
 
 
14559
# Do we need a version for libraries?
 
14560
need_version=$need_version
 
14561
 
 
14562
# Library versioning type.
 
14563
version_type=$version_type
 
14564
 
 
14565
# Shared library runtime path variable.
 
14566
runpath_var=$runpath_var
 
14567
 
 
14568
# Shared library path variable.
 
14569
shlibpath_var=$shlibpath_var
 
14570
 
 
14571
# Is shlibpath searched before the hard-coded library search path?
 
14572
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14573
 
 
14574
# Format of library name prefix.
 
14575
libname_spec=$lt_libname_spec
 
14576
 
 
14577
# List of archive names.  First name is the real one, the rest are links.
 
14578
# The last name is the one that the linker finds with -lNAME
 
14579
library_names_spec=$lt_library_names_spec
 
14580
 
 
14581
# The coded name of the library, if different from the real name.
 
14582
soname_spec=$lt_soname_spec
 
14583
 
 
14584
# Command to use after installation of a shared archive.
 
14585
postinstall_cmds=$lt_postinstall_cmds
 
14586
 
 
14587
# Command to use after uninstallation of a shared archive.
 
14588
postuninstall_cmds=$lt_postuninstall_cmds
 
14589
 
 
14590
# Commands used to finish a libtool library installation in a directory.
 
14591
finish_cmds=$lt_finish_cmds
 
14592
 
 
14593
# As "finish_cmds", except a single script fragment to be evaled but
 
14594
# not shown.
 
14595
finish_eval=$lt_finish_eval
 
14596
 
 
14597
# Whether we should hardcode library paths into libraries.
 
14598
hardcode_into_libs=$hardcode_into_libs
 
14599
 
 
14600
# Compile-time system search path for libraries.
 
14601
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14602
 
 
14603
# Run-time system search path for libraries.
 
14604
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14605
 
 
14606
# Whether dlopen is supported.
 
14607
dlopen_support=$enable_dlopen
 
14608
 
 
14609
# Whether dlopen of programs is supported.
 
14610
dlopen_self=$enable_dlopen_self
 
14611
 
 
14612
# Whether dlopen of statically linked programs is supported.
 
14613
dlopen_self_static=$enable_dlopen_self_static
 
14614
 
 
14615
# Commands to strip libraries.
 
14616
old_striplib=$lt_old_striplib
 
14617
striplib=$lt_striplib
 
14618
 
 
14619
 
 
14620
# The linker used to build libraries.
 
14621
LD=$lt_LD
 
14622
 
 
14623
# Commands used to build an old-style archive.
 
14624
old_archive_cmds=$lt_old_archive_cmds
 
14625
 
 
14626
# A language specific compiler.
 
14627
CC=$lt_compiler
 
14628
 
 
14629
# Is the compiler the GNU compiler?
 
14630
with_gcc=$GCC
 
14631
 
 
14632
# Compiler flag to turn off builtin functions.
 
14633
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
14634
 
 
14635
# How to pass a linker flag through the compiler.
 
14636
wl=$lt_lt_prog_compiler_wl
 
14637
 
 
14638
# Additional compiler flags for building library objects.
 
14639
pic_flag=$lt_lt_prog_compiler_pic
 
14640
 
 
14641
# Compiler flag to prevent dynamic linking.
 
14642
link_static_flag=$lt_lt_prog_compiler_static
 
14643
 
 
14644
# Does compiler simultaneously support -c and -o options?
 
14645
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
14646
 
 
14647
# Whether or not to add -lc for building shared libraries.
 
14648
build_libtool_need_lc=$archive_cmds_need_lc
 
14649
 
 
14650
# Whether or not to disallow shared libs when runtime libs are static.
 
14651
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
14652
 
 
14653
# Compiler flag to allow reflexive dlopens.
 
14654
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
14655
 
 
14656
# Compiler flag to generate shared objects directly from archives.
 
14657
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
14658
 
 
14659
# Whether the compiler copes with passing no objects directly.
 
14660
compiler_needs_object=$lt_compiler_needs_object
 
14661
 
 
14662
# Create an old-style archive from a shared archive.
 
14663
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
14664
 
 
14665
# Create a temporary old-style archive to link instead of a shared archive.
 
14666
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
14667
 
 
14668
# Commands used to build a shared archive.
 
14669
archive_cmds=$lt_archive_cmds
 
14670
archive_expsym_cmds=$lt_archive_expsym_cmds
 
14671
 
 
14672
# Commands used to build a loadable module if different from building
 
14673
# a shared archive.
 
14674
module_cmds=$lt_module_cmds
 
14675
module_expsym_cmds=$lt_module_expsym_cmds
 
14676
 
 
14677
# Whether we are building with GNU ld or not.
 
14678
with_gnu_ld=$lt_with_gnu_ld
 
14679
 
 
14680
# Flag that allows shared libraries with undefined symbols to be built.
 
14681
allow_undefined_flag=$lt_allow_undefined_flag
 
14682
 
 
14683
# Flag that enforces no undefined symbols.
 
14684
no_undefined_flag=$lt_no_undefined_flag
 
14685
 
 
14686
# Flag to hardcode \$libdir into a binary during linking.
 
14687
# This must work even if \$libdir does not exist
 
14688
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
14689
 
 
14690
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
14691
# during linking.  This must work even if \$libdir does not exist.
 
14692
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
14693
 
 
14694
# Whether we need a single "-rpath" flag with a separated argument.
 
14695
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
14696
 
 
14697
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
14698
# DIR into the resulting binary.
 
14699
hardcode_direct=$hardcode_direct
 
14700
 
 
14701
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
14702
# DIR into the resulting binary and the resulting library dependency is
 
14703
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
14704
# library is relocated.
 
14705
hardcode_direct_absolute=$hardcode_direct_absolute
 
14706
 
 
14707
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
14708
# into the resulting binary.
 
14709
hardcode_minus_L=$hardcode_minus_L
 
14710
 
 
14711
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
14712
# into the resulting binary.
 
14713
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
14714
 
 
14715
# Set to "yes" if building a shared library automatically hardcodes DIR
 
14716
# into the library and all subsequent libraries and executables linked
 
14717
# against it.
 
14718
hardcode_automatic=$hardcode_automatic
 
14719
 
 
14720
# Set to yes if linker adds runtime paths of dependent libraries
 
14721
# to runtime path list.
 
14722
inherit_rpath=$inherit_rpath
 
14723
 
 
14724
# Whether libtool must link a program against all its dependency libraries.
 
14725
link_all_deplibs=$link_all_deplibs
 
14726
 
 
14727
# Fix the shell variable \$srcfile for the compiler.
 
14728
fix_srcfile_path=$lt_fix_srcfile_path
 
14729
 
 
14730
# Set to "yes" if exported symbols are required.
 
14731
always_export_symbols=$always_export_symbols
 
14732
 
 
14733
# The commands to list exported symbols.
 
14734
export_symbols_cmds=$lt_export_symbols_cmds
 
14735
 
 
14736
# Symbols that should not be listed in the preloaded symbols.
 
14737
exclude_expsyms=$lt_exclude_expsyms
 
14738
 
 
14739
# Symbols that must always be exported.
 
14740
include_expsyms=$lt_include_expsyms
 
14741
 
 
14742
# Commands necessary for linking programs (against libraries) with templates.
 
14743
prelink_cmds=$lt_prelink_cmds
 
14744
 
 
14745
# Specify filename containing input files.
 
14746
file_list_spec=$lt_file_list_spec
 
14747
 
 
14748
# How to hardcode a shared library path into an executable.
 
14749
hardcode_action=$hardcode_action
 
14750
 
 
14751
# ### END LIBTOOL CONFIG
 
14752
 
 
14753
_LT_EOF
 
14754
 
 
14755
  case $host_os in
 
14756
  aix3*)
 
14757
    cat <<\_LT_EOF >> "$cfgfile"
 
14758
# AIX sometimes has problems with the GCC collect2 program.  For some
 
14759
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
14760
# vanish in a puff of smoke.
 
14761
if test "X${COLLECT_NAMES+set}" != Xset; then
 
14762
  COLLECT_NAMES=
 
14763
  export COLLECT_NAMES
 
14764
fi
 
14765
_LT_EOF
 
14766
    ;;
 
14767
  esac
 
14768
 
 
14769
 
 
14770
ltmain="$ac_aux_dir/ltmain.sh"
 
14771
 
 
14772
 
 
14773
  # We use sed instead of cat because bash on DJGPP gets confused if
 
14774
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
14775
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
14776
  # is reportedly fixed, but why not run on old versions too?
 
14777
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
14778
    || (rm -f "$cfgfile"; exit 1)
 
14779
 
 
14780
  case $xsi_shell in
 
14781
  yes)
 
14782
    cat << \_LT_EOF >> "$cfgfile"
 
14783
 
 
14784
# func_dirname file append nondir_replacement
 
14785
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
14786
# otherwise set result to NONDIR_REPLACEMENT.
 
14787
func_dirname ()
 
14788
{
 
14789
  case ${1} in
 
14790
    */*) func_dirname_result="${1%/*}${2}" ;;
 
14791
    *  ) func_dirname_result="${3}" ;;
 
14792
  esac
 
14793
}
 
14794
 
 
14795
# func_basename file
 
14796
func_basename ()
 
14797
{
 
14798
  func_basename_result="${1##*/}"
 
14799
}
 
14800
 
 
14801
# func_dirname_and_basename file append nondir_replacement
 
14802
# perform func_basename and func_dirname in a single function
 
14803
# call:
 
14804
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
14805
#             add APPEND to the result, otherwise set result
 
14806
#             to NONDIR_REPLACEMENT.
 
14807
#             value returned in "$func_dirname_result"
 
14808
#   basename: Compute filename of FILE.
 
14809
#             value retuned in "$func_basename_result"
 
14810
# Implementation must be kept synchronized with func_dirname
 
14811
# and func_basename. For efficiency, we do not delegate to
 
14812
# those functions but instead duplicate the functionality here.
 
14813
func_dirname_and_basename ()
 
14814
{
 
14815
  case ${1} in
 
14816
    */*) func_dirname_result="${1%/*}${2}" ;;
 
14817
    *  ) func_dirname_result="${3}" ;;
 
14818
  esac
 
14819
  func_basename_result="${1##*/}"
 
14820
}
 
14821
 
 
14822
# func_stripname prefix suffix name
 
14823
# strip PREFIX and SUFFIX off of NAME.
 
14824
# PREFIX and SUFFIX must not contain globbing or regex special
 
14825
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
14826
# dot (in which case that matches only a dot).
 
14827
func_stripname ()
 
14828
{
 
14829
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
14830
  # positional parameters, so assign one to ordinary parameter first.
 
14831
  func_stripname_result=${3}
 
14832
  func_stripname_result=${func_stripname_result#"${1}"}
 
14833
  func_stripname_result=${func_stripname_result%"${2}"}
 
14834
}
 
14835
 
 
14836
# func_opt_split
 
14837
func_opt_split ()
 
14838
{
 
14839
  func_opt_split_opt=${1%%=*}
 
14840
  func_opt_split_arg=${1#*=}
 
14841
}
 
14842
 
 
14843
# func_lo2o object
 
14844
func_lo2o ()
 
14845
{
 
14846
  case ${1} in
 
14847
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
14848
    *)    func_lo2o_result=${1} ;;
 
14849
  esac
 
14850
}
 
14851
 
 
14852
# func_xform libobj-or-source
 
14853
func_xform ()
 
14854
{
 
14855
  func_xform_result=${1%.*}.lo
 
14856
}
 
14857
 
 
14858
# func_arith arithmetic-term...
 
14859
func_arith ()
 
14860
{
 
14861
  func_arith_result=$(( $* ))
 
14862
}
 
14863
 
 
14864
# func_len string
 
14865
# STRING may not start with a hyphen.
 
14866
func_len ()
 
14867
{
 
14868
  func_len_result=${#1}
 
14869
}
 
14870
 
 
14871
_LT_EOF
 
14872
    ;;
 
14873
  *) # Bourne compatible functions.
 
14874
    cat << \_LT_EOF >> "$cfgfile"
 
14875
 
 
14876
# func_dirname file append nondir_replacement
 
14877
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
14878
# otherwise set result to NONDIR_REPLACEMENT.
 
14879
func_dirname ()
 
14880
{
 
14881
  # Extract subdirectory from the argument.
 
14882
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
14883
  if test "X$func_dirname_result" = "X${1}"; then
 
14884
    func_dirname_result="${3}"
 
14885
  else
 
14886
    func_dirname_result="$func_dirname_result${2}"
 
14887
  fi
 
14888
}
 
14889
 
 
14890
# func_basename file
 
14891
func_basename ()
 
14892
{
 
14893
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
14894
}
 
14895
 
 
14896
 
 
14897
# func_stripname prefix suffix name
 
14898
# strip PREFIX and SUFFIX off of NAME.
 
14899
# PREFIX and SUFFIX must not contain globbing or regex special
 
14900
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
14901
# dot (in which case that matches only a dot).
 
14902
# func_strip_suffix prefix name
 
14903
func_stripname ()
 
14904
{
 
14905
  case ${2} in
 
14906
    .*) func_stripname_result=`$ECHO "X${3}" \
 
14907
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
14908
    *)  func_stripname_result=`$ECHO "X${3}" \
 
14909
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
14910
  esac
 
14911
}
 
14912
 
 
14913
# sed scripts:
 
14914
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
14915
my_sed_long_arg='1s/^-[^=]*=//'
 
14916
 
 
14917
# func_opt_split
 
14918
func_opt_split ()
 
14919
{
 
14920
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
14921
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
14922
}
 
14923
 
 
14924
# func_lo2o object
 
14925
func_lo2o ()
 
14926
{
 
14927
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
14928
}
 
14929
 
 
14930
# func_xform libobj-or-source
 
14931
func_xform ()
 
14932
{
 
14933
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
14934
}
 
14935
 
 
14936
# func_arith arithmetic-term...
 
14937
func_arith ()
 
14938
{
 
14939
  func_arith_result=`expr "$@"`
 
14940
}
 
14941
 
 
14942
# func_len string
 
14943
# STRING may not start with a hyphen.
 
14944
func_len ()
 
14945
{
 
14946
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
14947
}
 
14948
 
 
14949
_LT_EOF
 
14950
esac
 
14951
 
 
14952
case $lt_shell_append in
 
14953
  yes)
 
14954
    cat << \_LT_EOF >> "$cfgfile"
 
14955
 
 
14956
# func_append var value
 
14957
# Append VALUE to the end of shell variable VAR.
 
14958
func_append ()
 
14959
{
 
14960
  eval "$1+=\$2"
 
14961
}
 
14962
_LT_EOF
 
14963
    ;;
 
14964
  *)
 
14965
    cat << \_LT_EOF >> "$cfgfile"
 
14966
 
 
14967
# func_append var value
 
14968
# Append VALUE to the end of shell variable VAR.
 
14969
func_append ()
 
14970
{
 
14971
  eval "$1=\$$1\$2"
 
14972
}
 
14973
 
 
14974
_LT_EOF
 
14975
    ;;
 
14976
  esac
 
14977
 
 
14978
 
 
14979
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
14980
    || (rm -f "$cfgfile"; exit 1)
 
14981
 
 
14982
  mv -f "$cfgfile" "$ofile" ||
 
14983
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
14984
  chmod +x "$ofile"
 
14985
 
 
14986
 ;;
 
14987
 
 
14988
  esac
 
14989
done # for ac_tag
 
14990
 
 
14991
 
 
14992
as_fn_exit 0
 
14993
_ACEOF
 
14994
ac_clean_files=$ac_clean_files_save
 
14995
 
 
14996
test $ac_write_fail = 0 ||
 
14997
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
14998
 
 
14999
 
 
15000
# configure is writing to config.log, and then calls config.status.
 
15001
# config.status does its own redirection, appending to config.log.
 
15002
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15003
# by configure, so config.status won't be able to write to it; its
 
15004
# output is simply discarded.  So we exec the FD to /dev/null,
 
15005
# effectively closing config.log, so it can be properly (re)opened and
 
15006
# appended to by config.status.  When coming back to configure, we
 
15007
# need to make the FD available again.
 
15008
if test "$no_create" != yes; then
 
15009
  ac_cs_success=:
 
15010
  ac_config_status_args=
 
15011
  test "$silent" = yes &&
 
15012
    ac_config_status_args="$ac_config_status_args --quiet"
 
15013
  exec 5>/dev/null
 
15014
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15015
  exec 5>>config.log
 
15016
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15017
  # would make configure fail if this is the last instruction.
 
15018
  $ac_cs_success || as_fn_exit $?
 
15019
fi
 
15020
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15021
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15022
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15023
fi
2011
15024