~ubuntu-branches/debian/wheezy/w3m/wheezy

« back to all changes in this revision

Viewing changes to .pc/060_format-security.patch/configure

  • Committer: Package Import Robot
  • Author(s): Tatsuya Kinoshita
  • Date: 2011-10-30 15:23:40 UTC
  • Revision ID: package-import@ubuntu.com-20111030152340-drj5v1w5tpoxrqno
Tags: 0.5.3-4
* debian/patches/060_format-security.patch: Patch from 0.5.3-3ubuntu1 to
  appease gcc -Werror=format-security, provided by Colin Watson.
  (closes: #646321)
* debian/control: Use linux-any to depend on a Linux-specific package.
  (closes: #634340)
* debian/copyright: Appease missing-license-paragraph-in-dep5-copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.67 for w3m 0.5.3.
 
4
#
 
5
# Report bugs to <satodai@w3m.jp>.
 
6
#
 
7
#
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
 
11
#
 
12
#
 
13
# This configure script is free software; the Free Software Foundation
 
14
# gives unlimited permission to copy, distribute and modify it.
 
15
## -------------------- ##
 
16
## M4sh Initialization. ##
 
17
## -------------------- ##
 
18
 
 
19
# Be more Bourne compatible
 
20
DUALCASE=1; export DUALCASE # for MKS sh
 
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
22
  emulate sh
 
23
  NULLCMD=:
 
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
25
  # is contrary to our usage.  Disable this feature.
 
26
  alias -g '${1+"$@"}'='"$@"'
 
27
  setopt NO_GLOB_SUBST
 
28
else
 
29
  case `(set -o) 2>/dev/null` in #(
 
30
  *posix*) :
 
31
    set -o posix ;; #(
 
32
  *) :
 
33
     ;;
 
34
esac
 
35
fi
 
36
 
 
37
 
 
38
as_nl='
 
39
'
 
40
export as_nl
 
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
46
# but without wasting forks for bash or zsh.
 
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
49
  as_echo='print -r --'
 
50
  as_echo_n='print -rn --'
 
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in #(
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
 
 
86
# IFS
 
87
# We need space, tab and new line, in precisely that order.  Quoting is
 
88
# there to prevent editors from complaining about space-tab.
 
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
90
# splitting by setting IFS to empty value.)
 
91
IFS=" ""        $as_nl"
 
92
 
 
93
# Find who we are.  Look in the path if we contain no directory separator.
 
94
case $0 in #((
 
95
  *[\\/]* ) as_myself=$0 ;;
 
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
97
for as_dir in $PATH
 
98
do
 
99
  IFS=$as_save_IFS
 
100
  test -z "$as_dir" && as_dir=.
 
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
102
  done
 
103
IFS=$as_save_IFS
 
104
 
 
105
     ;;
 
106
esac
 
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
108
# in which case we are not to be found in the path.
 
109
if test "x$as_myself" = x; then
 
110
  as_myself=$0
 
111
fi
 
112
if test ! -f "$as_myself"; then
 
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
114
  exit 1
 
115
fi
 
116
 
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
 
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
119
# suppresses any "Segmentation fault" message there.  '((' could
 
120
# trigger a bug in pdksh 5.2.14.
 
121
for as_var in BASH_ENV ENV MAIL MAILPATH
 
122
do eval test x\${$as_var+set} = xset \
 
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
124
done
 
125
PS1='$ '
 
126
PS2='> '
 
127
PS4='+ '
 
128
 
 
129
# NLS nuisances.
 
130
LC_ALL=C
 
131
export LC_ALL
 
132
LANGUAGE=C
 
133
export LANGUAGE
 
134
 
 
135
# CDPATH.
 
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
137
 
 
138
if test "x$CONFIG_SHELL" = x; then
 
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
140
  emulate sh
 
141
  NULLCMD=:
 
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
143
  # is contrary to our usage.  Disable this feature.
 
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
145
  setopt NO_GLOB_SUBST
 
146
else
 
147
  case \`(set -o) 2>/dev/null\` in #(
 
148
  *posix*) :
 
149
    set -o posix ;; #(
 
150
  *) :
 
151
     ;;
 
152
esac
 
153
fi
 
154
"
 
155
  as_required="as_fn_return () { (exit \$1); }
 
156
as_fn_success () { as_fn_return 0; }
 
157
as_fn_failure () { as_fn_return 1; }
 
158
as_fn_ret_success () { return 0; }
 
159
as_fn_ret_failure () { return 1; }
 
160
 
 
161
exitcode=0
 
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
167
 
 
168
else
 
169
  exitcode=1; echo positional parameters were not saved.
 
170
fi
 
171
test x\$exitcode = x0 || exit 1"
 
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
176
test \$(( 1 + 1 )) = 2 || exit 1"
 
177
  if (eval "$as_required") 2>/dev/null; then :
 
178
  as_have_required=yes
 
179
else
 
180
  as_have_required=no
 
181
fi
 
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
183
 
 
184
else
 
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
186
as_found=false
 
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
188
do
 
189
  IFS=$as_save_IFS
 
190
  test -z "$as_dir" && as_dir=.
 
191
  as_found=:
 
192
  case $as_dir in #(
 
193
         /*)
 
194
           for as_base in sh bash ksh sh5; do
 
195
             # Try only shells that exist, to save several forks.
 
196
             as_shell=$as_dir/$as_base
 
197
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
198
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  CONFIG_SHELL=$as_shell as_have_required=yes
 
200
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
201
  break 2
 
202
fi
 
203
fi
 
204
           done;;
 
205
       esac
 
206
  as_found=false
 
207
done
 
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
209
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
210
  CONFIG_SHELL=$SHELL as_have_required=yes
 
211
fi; }
 
212
IFS=$as_save_IFS
 
213
 
 
214
 
 
215
      if test "x$CONFIG_SHELL" != x; then :
 
216
  # We cannot yet assume a decent shell, so we have to provide a
 
217
        # neutralization value for shells without unset; and this also
 
218
        # works around shells that cannot unset nonexistent variables.
 
219
        BASH_ENV=/dev/null
 
220
        ENV=/dev/null
 
221
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
222
        export CONFIG_SHELL
 
223
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
224
fi
 
225
 
 
226
    if test x$as_have_required = xno; then :
 
227
  $as_echo "$0: This script requires a shell more modern than all"
 
228
  $as_echo "$0: the shells that I found on your system."
 
229
  if test x${ZSH_VERSION+set} = xset ; then
 
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
232
  else
 
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and satodai@w3m.jp
 
234
$0: about your system, including any error possibly output
 
235
$0: before this message. Then install a modern shell, or
 
236
$0: manually run the script under such a shell if you do
 
237
$0: have one."
 
238
  fi
 
239
  exit 1
 
240
fi
 
241
fi
 
242
fi
 
243
SHELL=${CONFIG_SHELL-/bin/sh}
 
244
export SHELL
 
245
# Unset more variables known to interfere with behavior of common tools.
 
246
CLICOLOR_FORCE= GREP_OPTIONS=
 
247
unset CLICOLOR_FORCE GREP_OPTIONS
 
248
 
 
249
## --------------------- ##
 
250
## M4sh Shell Functions. ##
 
251
## --------------------- ##
 
252
# as_fn_unset VAR
 
253
# ---------------
 
254
# Portably unset VAR.
 
255
as_fn_unset ()
 
256
{
 
257
  { eval $1=; unset $1;}
 
258
}
 
259
as_unset=as_fn_unset
 
260
 
 
261
# as_fn_set_status STATUS
 
262
# -----------------------
 
263
# Set $? to STATUS, without forking.
 
264
as_fn_set_status ()
 
265
{
 
266
  return $1
 
267
} # as_fn_set_status
 
268
 
 
269
# as_fn_exit STATUS
 
270
# -----------------
 
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
272
as_fn_exit ()
 
273
{
 
274
  set +e
 
275
  as_fn_set_status $1
 
276
  exit $1
 
277
} # as_fn_exit
 
278
 
 
279
# as_fn_mkdir_p
 
280
# -------------
 
281
# Create "$as_dir" as a directory, including parents if necessary.
 
282
as_fn_mkdir_p ()
 
283
{
 
284
 
 
285
  case $as_dir in #(
 
286
  -*) as_dir=./$as_dir;;
 
287
  esac
 
288
  test -d "$as_dir" || eval $as_mkdir_p || {
 
289
    as_dirs=
 
290
    while :; do
 
291
      case $as_dir in #(
 
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
293
      *) as_qdir=$as_dir;;
 
294
      esac
 
295
      as_dirs="'$as_qdir' $as_dirs"
 
296
      as_dir=`$as_dirname -- "$as_dir" ||
 
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
298
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
299
         X"$as_dir" : 'X\(//\)$' \| \
 
300
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
301
$as_echo X"$as_dir" |
 
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
303
            s//\1/
 
304
            q
 
305
          }
 
306
          /^X\(\/\/\)[^/].*/{
 
307
            s//\1/
 
308
            q
 
309
          }
 
310
          /^X\(\/\/\)$/{
 
311
            s//\1/
 
312
            q
 
313
          }
 
314
          /^X\(\/\).*/{
 
315
            s//\1/
 
316
            q
 
317
          }
 
318
          s/.*/./; q'`
 
319
      test -d "$as_dir" && break
 
320
    done
 
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
322
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
323
 
 
324
 
 
325
} # as_fn_mkdir_p
 
326
# as_fn_append VAR VALUE
 
327
# ----------------------
 
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
329
# advantage of any shell optimizations that allow amortized linear growth over
 
330
# repeated appends, instead of the typical quadratic growth present in naive
 
331
# implementations.
 
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
333
  eval 'as_fn_append ()
 
334
  {
 
335
    eval $1+=\$2
 
336
  }'
 
337
else
 
338
  as_fn_append ()
 
339
  {
 
340
    eval $1=\$$1\$2
 
341
  }
 
342
fi # as_fn_append
 
343
 
 
344
# as_fn_arith ARG...
 
345
# ------------------
 
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
348
# must be portable across $(()) and expr.
 
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
350
  eval 'as_fn_arith ()
 
351
  {
 
352
    as_val=$(( $* ))
 
353
  }'
 
354
else
 
355
  as_fn_arith ()
 
356
  {
 
357
    as_val=`expr "$@" || test $? -eq 1`
 
358
  }
 
359
fi # as_fn_arith
 
360
 
 
361
 
 
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
363
# ----------------------------------------
 
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
366
# script with STATUS, using 1 if that was 0.
 
367
as_fn_error ()
 
368
{
 
369
  as_status=$1; test $as_status -eq 0 && as_status=1
 
370
  if test "$4"; then
 
371
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
373
  fi
 
374
  $as_echo "$as_me: error: $2" >&2
 
375
  as_fn_exit $as_status
 
376
} # as_fn_error
 
377
 
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
380
  as_expr=expr
 
381
else
 
382
  as_expr=false
 
383
fi
 
384
 
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
386
  as_basename=basename
 
387
else
 
388
  as_basename=false
 
389
fi
 
390
 
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
392
  as_dirname=dirname
 
393
else
 
394
  as_dirname=false
 
395
fi
 
396
 
 
397
as_me=`$as_basename -- "$0" ||
 
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
399
         X"$0" : 'X\(//\)$' \| \
 
400
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
401
$as_echo X/"$0" |
 
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
403
            s//\1/
 
404
            q
 
405
          }
 
406
          /^X\/\(\/\/\)$/{
 
407
            s//\1/
 
408
            q
 
409
          }
 
410
          /^X\/\(\/\).*/{
 
411
            s//\1/
 
412
            q
 
413
          }
 
414
          s/.*/./; q'`
 
415
 
 
416
# Avoid depending upon Character Ranges.
 
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
420
as_cr_digits='0123456789'
 
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
422
 
 
423
 
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
429
  sed -n '
 
430
    p
 
431
    /[$]LINENO/=
 
432
  ' <$as_myself |
 
433
    sed '
 
434
      s/[$]LINENO.*/&-/
 
435
      t lineno
 
436
      b
 
437
      :lineno
 
438
      N
 
439
      :loop
 
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
441
      t loop
 
442
      s/-\n.*//
 
443
    ' >$as_me.lineno &&
 
444
  chmod +x "$as_me.lineno" ||
 
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
446
 
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
 
448
  # (the dirname of $[0] is not the place where we might find the
 
449
  # original and so on.  Autoconf is especially sensitive to this).
 
450
  . "./$as_me.lineno"
 
451
  # Exit status is that of the last command.
 
452
  exit
 
453
}
 
454
 
 
455
ECHO_C= ECHO_N= ECHO_T=
 
456
case `echo -n x` in #(((((
 
457
-n*)
 
458
  case `echo 'xy\c'` in
 
459
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
460
  xy)  ECHO_C='\c';;
 
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
462
       ECHO_T=' ';;
 
463
  esac;;
 
464
*)
 
465
  ECHO_N='-n';;
 
466
esac
 
467
 
 
468
rm -f conf$$ conf$$.exe conf$$.file
 
469
if test -d conf$$.dir; then
 
470
  rm -f conf$$.dir/conf$$.file
 
471
else
 
472
  rm -f conf$$.dir
 
473
  mkdir conf$$.dir 2>/dev/null
 
474
fi
 
475
if (echo >conf$$.file) 2>/dev/null; then
 
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
477
    as_ln_s='ln -s'
 
478
    # ... but there are two gotchas:
 
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
481
    # In both cases, we have to default to `cp -p'.
 
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
483
      as_ln_s='cp -p'
 
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
485
    as_ln_s=ln
 
486
  else
 
487
    as_ln_s='cp -p'
 
488
  fi
 
489
else
 
490
  as_ln_s='cp -p'
 
491
fi
 
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
493
rmdir conf$$.dir 2>/dev/null
 
494
 
 
495
if mkdir -p . 2>/dev/null; then
 
496
  as_mkdir_p='mkdir -p "$as_dir"'
 
497
else
 
498
  test -d ./-p && rmdir ./-p
 
499
  as_mkdir_p=false
 
500
fi
 
501
 
 
502
if test -x / >/dev/null 2>&1; then
 
503
  as_test_x='test -x'
 
504
else
 
505
  if ls -dL / >/dev/null 2>&1; then
 
506
    as_ls_L_option=L
 
507
  else
 
508
    as_ls_L_option=
 
509
  fi
 
510
  as_test_x='
 
511
    eval sh -c '\''
 
512
      if test -d "$1"; then
 
513
        test -d "$1/.";
 
514
      else
 
515
        case $1 in #(
 
516
        -*)set "./$1";;
 
517
        esac;
 
518
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
519
        ???[sx]*):;;*)false;;esac;fi
 
520
    '\'' sh
 
521
  '
 
522
fi
 
523
as_executable_p=$as_test_x
 
524
 
 
525
# Sed expression to map a string onto a valid CPP name.
 
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
527
 
 
528
# Sed expression to map a string onto a valid variable name.
 
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
530
 
 
531
 
 
532
test -n "$DJDIR" || exec 7<&0 </dev/null
 
533
exec 6>&1
 
534
 
 
535
# Name of the host.
 
536
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
537
# so uname gets run too.
 
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
539
 
 
540
#
 
541
# Initializations.
 
542
#
 
543
ac_default_prefix=/usr/local
 
544
ac_clean_files=
 
545
ac_config_libobj_dir=.
 
546
LIBOBJS=
 
547
cross_compiling=no
 
548
subdirs=
 
549
MFLAGS=
 
550
MAKEFLAGS=
 
551
 
 
552
# Identity of this package.
 
553
PACKAGE_NAME='w3m'
 
554
PACKAGE_TARNAME='w3m'
 
555
PACKAGE_VERSION='0.5.3'
 
556
PACKAGE_STRING='w3m 0.5.3'
 
557
PACKAGE_BUGREPORT='satodai@w3m.jp'
 
558
PACKAGE_URL=''
 
559
 
 
560
gt_needs=
 
561
# Factoring default headers for most tests.
 
562
ac_includes_default="\
 
563
#include <stdio.h>
 
564
#ifdef HAVE_SYS_TYPES_H
 
565
# include <sys/types.h>
 
566
#endif
 
567
#ifdef HAVE_SYS_STAT_H
 
568
# include <sys/stat.h>
 
569
#endif
 
570
#ifdef STDC_HEADERS
 
571
# include <stdlib.h>
 
572
# include <stddef.h>
 
573
#else
 
574
# ifdef HAVE_STDLIB_H
 
575
#  include <stdlib.h>
 
576
# endif
 
577
#endif
 
578
#ifdef HAVE_STRING_H
 
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
580
#  include <memory.h>
 
581
# endif
 
582
# include <string.h>
 
583
#endif
 
584
#ifdef HAVE_STRINGS_H
 
585
# include <strings.h>
 
586
#endif
 
587
#ifdef HAVE_INTTYPES_H
 
588
# include <inttypes.h>
 
589
#endif
 
590
#ifdef HAVE_STDINT_H
 
591
# include <stdint.h>
 
592
#endif
 
593
#ifdef HAVE_UNISTD_H
 
594
# include <unistd.h>
 
595
#endif"
 
596
 
 
597
ac_subst_vars='LTLIBOBJS
 
598
LIBOBJS
 
599
CURRENT_VERSION
 
600
DOCDIRS
 
601
RC_DIR
 
602
HELP_DIR
 
603
SIGNAL_RETURN
 
604
RETSIGTYPE
 
605
HAVE_SIGSETJMP
 
606
HAVE_SYS_ERRLIST
 
607
USE_BINMODE_STREAM
 
608
LIBGC
 
609
AUXBIN_TARGETS
 
610
USE_SYSMOUSE
 
611
USE_W3M
 
612
USE_DIGEST_AUTH
 
613
SSL_LIBS
 
614
SSL_CFLAGS
 
615
PKG_CONFIG_LIBDIR
 
616
PKG_CONFIG_PATH
 
617
PKG_CONFIG
 
618
USE_SSL_VERIFY
 
619
USE_SSL
 
620
HAVE_OLD_SS_FAMILY
 
621
INET6
 
622
DEF_EXT_BROWSER
 
623
DEF_MAILER
 
624
DEF_EDITOR
 
625
DEF_MIGEMO_COMMAND
 
626
USE_MIGEMO
 
627
USE_W3MMAILER
 
628
USE_EXTERNAL_URI_LOADER
 
629
USE_HELP_CGI
 
630
USE_DICT
 
631
USE_GOPHER
 
632
USE_NNTP
 
633
USE_COOKIE
 
634
USE_ALARM
 
635
USE_HISTORY
 
636
USE_MOUSE
 
637
USE_MENU
 
638
KEYBIND
 
639
HELP_FILE
 
640
KEYMAP_FILE
 
641
uncompface
 
642
USE_XFACE
 
643
IMGWINLDFLAGS
 
644
IMGWINCFLAGS
 
645
IMGFBLDFLAGS
 
646
IMGFBCFLAGS
 
647
IMGX11LDFLAGS
 
648
IMGX11CFLAGS
 
649
IMGOBJS
 
650
IMGTARGETS
 
651
USE_IMLIB2
 
652
USE_IMLIB
 
653
USE_GTK2
 
654
USE_GDKPIXBUF
 
655
INSTALL_W3MIMGDISPLAY
 
656
W3MIMGDISPLAY_SETUID
 
657
IMGLINK
 
658
USE_W3MIMG_WIN
 
659
USE_W3MIMG_FB
 
660
USE_W3MIMG_X11
 
661
USE_IMAGE
 
662
USE_BG_COLOR
 
663
USE_ANSI_COLOR
 
664
USE_COLOR
 
665
NLSTARGET
 
666
INTLTARGET
 
667
POSUB
 
668
LTLIBINTL
 
669
LIBINTL
 
670
INTLLIBS
 
671
LTLIBICONV
 
672
LIBICONV
 
673
INTL_MACOSX_LIBS
 
674
EGREP
 
675
GREP
 
676
XGETTEXT_EXTRA_OPTIONS
 
677
MSGMERGE
 
678
XGETTEXT_015
 
679
XGETTEXT
 
680
GMSGFMT_015
 
681
MSGFMT_015
 
682
GMSGFMT
 
683
MSGFMT
 
684
GETTEXT_MACRO_VERSION
 
685
USE_NLS
 
686
mkdir_p
 
687
MKDIR_P
 
688
POLANG
 
689
POSUBST
 
690
DOCUMENT_CHARSET
 
691
SYSTEM_CHARSET
 
692
DISPLAY_CHARSET
 
693
WCCFLAGS
 
694
WCTARGET
 
695
USE_UNICODE
 
696
USE_M17N
 
697
W3M_LIBS
 
698
W3M_TARGET
 
699
host_os
 
700
host_vendor
 
701
host_cpu
 
702
host
 
703
build_os
 
704
build_vendor
 
705
build_cpu
 
706
build
 
707
MAN
 
708
NKF
 
709
PERL
 
710
RANLIB
 
711
SET_MAKE
 
712
LN_S
 
713
INSTALL_DATA
 
714
INSTALL_SCRIPT
 
715
INSTALL_PROGRAM
 
716
CPP
 
717
ac_ct_CC
 
718
CFLAGS
 
719
CC
 
720
AWK
 
721
OBJEXT
 
722
EXEEXT
 
723
ac_ct_CXX
 
724
CPPFLAGS
 
725
LDFLAGS
 
726
CXXFLAGS
 
727
CXX
 
728
W3M_LANG
 
729
W3M
 
730
VERSION
 
731
PACKAGE
 
732
target_alias
 
733
host_alias
 
734
build_alias
 
735
LIBS
 
736
ECHO_T
 
737
ECHO_N
 
738
ECHO_C
 
739
DEFS
 
740
mandir
 
741
localedir
 
742
libdir
 
743
psdir
 
744
pdfdir
 
745
dvidir
 
746
htmldir
 
747
infodir
 
748
docdir
 
749
oldincludedir
 
750
includedir
 
751
localstatedir
 
752
sharedstatedir
 
753
sysconfdir
 
754
datadir
 
755
datarootdir
 
756
libexecdir
 
757
sbindir
 
758
bindir
 
759
program_transform_name
 
760
prefix
 
761
exec_prefix
 
762
PACKAGE_URL
 
763
PACKAGE_BUGREPORT
 
764
PACKAGE_STRING
 
765
PACKAGE_VERSION
 
766
PACKAGE_TARNAME
 
767
PACKAGE_NAME
 
768
PATH_SEPARATOR
 
769
SHELL'
 
770
ac_subst_files=''
 
771
ac_user_opts='
 
772
enable_option_checking
 
773
enable_m17n
 
774
enable_unicode
 
775
enable_messagel10n
 
776
enable_japanese
 
777
with_charset
 
778
enable_nls
 
779
with_gnu_ld
 
780
enable_rpath
 
781
with_libiconv_prefix
 
782
with_libintl_prefix
 
783
enable_color
 
784
enable_ansi_color
 
785
enable_bgcolor
 
786
enable_image
 
787
with_imagelib
 
788
enable_xface
 
789
enable_keymap
 
790
enable_menu
 
791
enable_mouse
 
792
enable_history
 
793
enable_alarm
 
794
enable_cookie
 
795
enable_nntp
 
796
enable_gopher
 
797
enable_dict
 
798
enable_help_cgi
 
799
enable_external_uri_loader
 
800
enable_w3mmailer
 
801
with_migemo
 
802
with_editor
 
803
with_mailer
 
804
with_browser
 
805
enable_ipv6
 
806
with_ssl
 
807
enable_sslverify
 
808
enable_digest_auth
 
809
with_termlib
 
810
with_gc
 
811
'
 
812
      ac_precious_vars='build_alias
 
813
host_alias
 
814
target_alias
 
815
CXX
 
816
CXXFLAGS
 
817
LDFLAGS
 
818
LIBS
 
819
CPPFLAGS
 
820
CCC
 
821
CC
 
822
CFLAGS
 
823
CPP
 
824
PKG_CONFIG
 
825
PKG_CONFIG_PATH
 
826
PKG_CONFIG_LIBDIR
 
827
SSL_CFLAGS
 
828
SSL_LIBS'
 
829
 
 
830
 
 
831
# Initialize some variables set by options.
 
832
ac_init_help=
 
833
ac_init_version=false
 
834
ac_unrecognized_opts=
 
835
ac_unrecognized_sep=
 
836
# The variables have the same names as the options, with
 
837
# dashes changed to underlines.
 
838
cache_file=/dev/null
 
839
exec_prefix=NONE
 
840
no_create=
 
841
no_recursion=
 
842
prefix=NONE
 
843
program_prefix=NONE
 
844
program_suffix=NONE
 
845
program_transform_name=s,x,x,
 
846
silent=
 
847
site=
 
848
srcdir=
 
849
verbose=
 
850
x_includes=NONE
 
851
x_libraries=NONE
 
852
 
 
853
# Installation directory options.
 
854
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
855
# and all the variables that are supposed to be based on exec_prefix
 
856
# by default will actually change.
 
857
# Use braces instead of parens because sh, perl, etc. also accept them.
 
858
# (The list follows the same order as the GNU Coding Standards.)
 
859
bindir='${exec_prefix}/bin'
 
860
sbindir='${exec_prefix}/sbin'
 
861
libexecdir='${exec_prefix}/libexec'
 
862
datarootdir='${prefix}/share'
 
863
datadir='${datarootdir}'
 
864
sysconfdir='${prefix}/etc'
 
865
sharedstatedir='${prefix}/com'
 
866
localstatedir='${prefix}/var'
 
867
includedir='${prefix}/include'
 
868
oldincludedir='/usr/include'
 
869
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
870
infodir='${datarootdir}/info'
 
871
htmldir='${docdir}'
 
872
dvidir='${docdir}'
 
873
pdfdir='${docdir}'
 
874
psdir='${docdir}'
 
875
libdir='${exec_prefix}/lib'
 
876
localedir='${datarootdir}/locale'
 
877
mandir='${datarootdir}/man'
 
878
 
 
879
ac_prev=
 
880
ac_dashdash=
 
881
for ac_option
 
882
do
 
883
  # If the previous option needs an argument, assign it.
 
884
  if test -n "$ac_prev"; then
 
885
    eval $ac_prev=\$ac_option
 
886
    ac_prev=
 
887
    continue
 
888
  fi
 
889
 
 
890
  case $ac_option in
 
891
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
892
  *=)   ac_optarg= ;;
 
893
  *)    ac_optarg=yes ;;
 
894
  esac
 
895
 
 
896
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
897
 
 
898
  case $ac_dashdash$ac_option in
 
899
  --)
 
900
    ac_dashdash=yes ;;
 
901
 
 
902
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
903
    ac_prev=bindir ;;
 
904
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
905
    bindir=$ac_optarg ;;
 
906
 
 
907
  -build | --build | --buil | --bui | --bu)
 
908
    ac_prev=build_alias ;;
 
909
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
910
    build_alias=$ac_optarg ;;
 
911
 
 
912
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
913
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
914
    ac_prev=cache_file ;;
 
915
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
916
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
917
    cache_file=$ac_optarg ;;
 
918
 
 
919
  --config-cache | -C)
 
920
    cache_file=config.cache ;;
 
921
 
 
922
  -datadir | --datadir | --datadi | --datad)
 
923
    ac_prev=datadir ;;
 
924
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
925
    datadir=$ac_optarg ;;
 
926
 
 
927
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
928
  | --dataroo | --dataro | --datar)
 
929
    ac_prev=datarootdir ;;
 
930
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
931
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
932
    datarootdir=$ac_optarg ;;
 
933
 
 
934
  -disable-* | --disable-*)
 
935
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
936
    # Reject names that are not valid shell variable names.
 
937
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
938
      as_fn_error $? "invalid feature name: $ac_useropt"
 
939
    ac_useropt_orig=$ac_useropt
 
940
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
941
    case $ac_user_opts in
 
942
      *"
 
943
"enable_$ac_useropt"
 
944
"*) ;;
 
945
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
946
         ac_unrecognized_sep=', ';;
 
947
    esac
 
948
    eval enable_$ac_useropt=no ;;
 
949
 
 
950
  -docdir | --docdir | --docdi | --doc | --do)
 
951
    ac_prev=docdir ;;
 
952
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
953
    docdir=$ac_optarg ;;
 
954
 
 
955
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
956
    ac_prev=dvidir ;;
 
957
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
958
    dvidir=$ac_optarg ;;
 
959
 
 
960
  -enable-* | --enable-*)
 
961
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
962
    # Reject names that are not valid shell variable names.
 
963
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
964
      as_fn_error $? "invalid feature name: $ac_useropt"
 
965
    ac_useropt_orig=$ac_useropt
 
966
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
967
    case $ac_user_opts in
 
968
      *"
 
969
"enable_$ac_useropt"
 
970
"*) ;;
 
971
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
972
         ac_unrecognized_sep=', ';;
 
973
    esac
 
974
    eval enable_$ac_useropt=\$ac_optarg ;;
 
975
 
 
976
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
977
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
978
  | --exec | --exe | --ex)
 
979
    ac_prev=exec_prefix ;;
 
980
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
981
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
982
  | --exec=* | --exe=* | --ex=*)
 
983
    exec_prefix=$ac_optarg ;;
 
984
 
 
985
  -gas | --gas | --ga | --g)
 
986
    # Obsolete; use --with-gas.
 
987
    with_gas=yes ;;
 
988
 
 
989
  -help | --help | --hel | --he | -h)
 
990
    ac_init_help=long ;;
 
991
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
992
    ac_init_help=recursive ;;
 
993
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
994
    ac_init_help=short ;;
 
995
 
 
996
  -host | --host | --hos | --ho)
 
997
    ac_prev=host_alias ;;
 
998
  -host=* | --host=* | --hos=* | --ho=*)
 
999
    host_alias=$ac_optarg ;;
 
1000
 
 
1001
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1002
    ac_prev=htmldir ;;
 
1003
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1004
  | --ht=*)
 
1005
    htmldir=$ac_optarg ;;
 
1006
 
 
1007
  -includedir | --includedir | --includedi | --included | --include \
 
1008
  | --includ | --inclu | --incl | --inc)
 
1009
    ac_prev=includedir ;;
 
1010
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1011
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1012
    includedir=$ac_optarg ;;
 
1013
 
 
1014
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1015
    ac_prev=infodir ;;
 
1016
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1017
    infodir=$ac_optarg ;;
 
1018
 
 
1019
  -libdir | --libdir | --libdi | --libd)
 
1020
    ac_prev=libdir ;;
 
1021
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1022
    libdir=$ac_optarg ;;
 
1023
 
 
1024
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1025
  | --libexe | --libex | --libe)
 
1026
    ac_prev=libexecdir ;;
 
1027
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1028
  | --libexe=* | --libex=* | --libe=*)
 
1029
    libexecdir=$ac_optarg ;;
 
1030
 
 
1031
  -localedir | --localedir | --localedi | --localed | --locale)
 
1032
    ac_prev=localedir ;;
 
1033
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1034
    localedir=$ac_optarg ;;
 
1035
 
 
1036
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1037
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1038
    ac_prev=localstatedir ;;
 
1039
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1040
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1041
    localstatedir=$ac_optarg ;;
 
1042
 
 
1043
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1044
    ac_prev=mandir ;;
 
1045
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1046
    mandir=$ac_optarg ;;
 
1047
 
 
1048
  -nfp | --nfp | --nf)
 
1049
    # Obsolete; use --without-fp.
 
1050
    with_fp=no ;;
 
1051
 
 
1052
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1053
  | --no-cr | --no-c | -n)
 
1054
    no_create=yes ;;
 
1055
 
 
1056
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1057
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1058
    no_recursion=yes ;;
 
1059
 
 
1060
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1061
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1062
  | --oldin | --oldi | --old | --ol | --o)
 
1063
    ac_prev=oldincludedir ;;
 
1064
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1065
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1066
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1067
    oldincludedir=$ac_optarg ;;
 
1068
 
 
1069
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1070
    ac_prev=prefix ;;
 
1071
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1072
    prefix=$ac_optarg ;;
 
1073
 
 
1074
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1075
  | --program-pre | --program-pr | --program-p)
 
1076
    ac_prev=program_prefix ;;
 
1077
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1078
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1079
    program_prefix=$ac_optarg ;;
 
1080
 
 
1081
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1082
  | --program-suf | --program-su | --program-s)
 
1083
    ac_prev=program_suffix ;;
 
1084
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1085
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1086
    program_suffix=$ac_optarg ;;
 
1087
 
 
1088
  -program-transform-name | --program-transform-name \
 
1089
  | --program-transform-nam | --program-transform-na \
 
1090
  | --program-transform-n | --program-transform- \
 
1091
  | --program-transform | --program-transfor \
 
1092
  | --program-transfo | --program-transf \
 
1093
  | --program-trans | --program-tran \
 
1094
  | --progr-tra | --program-tr | --program-t)
 
1095
    ac_prev=program_transform_name ;;
 
1096
  -program-transform-name=* | --program-transform-name=* \
 
1097
  | --program-transform-nam=* | --program-transform-na=* \
 
1098
  | --program-transform-n=* | --program-transform-=* \
 
1099
  | --program-transform=* | --program-transfor=* \
 
1100
  | --program-transfo=* | --program-transf=* \
 
1101
  | --program-trans=* | --program-tran=* \
 
1102
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1103
    program_transform_name=$ac_optarg ;;
 
1104
 
 
1105
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1106
    ac_prev=pdfdir ;;
 
1107
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1108
    pdfdir=$ac_optarg ;;
 
1109
 
 
1110
  -psdir | --psdir | --psdi | --psd | --ps)
 
1111
    ac_prev=psdir ;;
 
1112
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1113
    psdir=$ac_optarg ;;
 
1114
 
 
1115
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1116
  | -silent | --silent | --silen | --sile | --sil)
 
1117
    silent=yes ;;
 
1118
 
 
1119
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1120
    ac_prev=sbindir ;;
 
1121
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1122
  | --sbi=* | --sb=*)
 
1123
    sbindir=$ac_optarg ;;
 
1124
 
 
1125
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1126
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1127
  | --sharedst | --shareds | --shared | --share | --shar \
 
1128
  | --sha | --sh)
 
1129
    ac_prev=sharedstatedir ;;
 
1130
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1131
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1132
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1133
  | --sha=* | --sh=*)
 
1134
    sharedstatedir=$ac_optarg ;;
 
1135
 
 
1136
  -site | --site | --sit)
 
1137
    ac_prev=site ;;
 
1138
  -site=* | --site=* | --sit=*)
 
1139
    site=$ac_optarg ;;
 
1140
 
 
1141
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1142
    ac_prev=srcdir ;;
 
1143
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1144
    srcdir=$ac_optarg ;;
 
1145
 
 
1146
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1147
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1148
    ac_prev=sysconfdir ;;
 
1149
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1150
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1151
    sysconfdir=$ac_optarg ;;
 
1152
 
 
1153
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1154
    ac_prev=target_alias ;;
 
1155
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1156
    target_alias=$ac_optarg ;;
 
1157
 
 
1158
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1159
    verbose=yes ;;
 
1160
 
 
1161
  -version | --version | --versio | --versi | --vers | -V)
 
1162
    ac_init_version=: ;;
 
1163
 
 
1164
  -with-* | --with-*)
 
1165
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1166
    # Reject names that are not valid shell variable names.
 
1167
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1168
      as_fn_error $? "invalid package name: $ac_useropt"
 
1169
    ac_useropt_orig=$ac_useropt
 
1170
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1171
    case $ac_user_opts in
 
1172
      *"
 
1173
"with_$ac_useropt"
 
1174
"*) ;;
 
1175
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1176
         ac_unrecognized_sep=', ';;
 
1177
    esac
 
1178
    eval with_$ac_useropt=\$ac_optarg ;;
 
1179
 
 
1180
  -without-* | --without-*)
 
1181
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1182
    # Reject names that are not valid shell variable names.
 
1183
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1184
      as_fn_error $? "invalid package name: $ac_useropt"
 
1185
    ac_useropt_orig=$ac_useropt
 
1186
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1187
    case $ac_user_opts in
 
1188
      *"
 
1189
"with_$ac_useropt"
 
1190
"*) ;;
 
1191
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1192
         ac_unrecognized_sep=', ';;
 
1193
    esac
 
1194
    eval with_$ac_useropt=no ;;
 
1195
 
 
1196
  --x)
 
1197
    # Obsolete; use --with-x.
 
1198
    with_x=yes ;;
 
1199
 
 
1200
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1201
  | --x-incl | --x-inc | --x-in | --x-i)
 
1202
    ac_prev=x_includes ;;
 
1203
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1204
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1205
    x_includes=$ac_optarg ;;
 
1206
 
 
1207
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1208
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1209
    ac_prev=x_libraries ;;
 
1210
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1211
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1212
    x_libraries=$ac_optarg ;;
 
1213
 
 
1214
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1215
Try \`$0 --help' for more information"
 
1216
    ;;
 
1217
 
 
1218
  *=*)
 
1219
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1220
    # Reject names that are not valid shell variable names.
 
1221
    case $ac_envvar in #(
 
1222
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1223
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1224
    esac
 
1225
    eval $ac_envvar=\$ac_optarg
 
1226
    export $ac_envvar ;;
 
1227
 
 
1228
  *)
 
1229
    # FIXME: should be removed in autoconf 3.0.
 
1230
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1231
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1232
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1233
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1234
    ;;
 
1235
 
 
1236
  esac
 
1237
done
 
1238
 
 
1239
if test -n "$ac_prev"; then
 
1240
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1241
  as_fn_error $? "missing argument to $ac_option"
 
1242
fi
 
1243
 
 
1244
if test -n "$ac_unrecognized_opts"; then
 
1245
  case $enable_option_checking in
 
1246
    no) ;;
 
1247
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1248
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1249
  esac
 
1250
fi
 
1251
 
 
1252
# Check all directory arguments for consistency.
 
1253
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1254
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1255
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1256
                libdir localedir mandir
 
1257
do
 
1258
  eval ac_val=\$$ac_var
 
1259
  # Remove trailing slashes.
 
1260
  case $ac_val in
 
1261
    */ )
 
1262
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1263
      eval $ac_var=\$ac_val;;
 
1264
  esac
 
1265
  # Be sure to have absolute directory names.
 
1266
  case $ac_val in
 
1267
    [\\/$]* | ?:[\\/]* )  continue;;
 
1268
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1269
  esac
 
1270
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1271
done
 
1272
 
 
1273
# There might be people who depend on the old broken behavior: `$host'
 
1274
# used to hold the argument of --host etc.
 
1275
# FIXME: To remove some day.
 
1276
build=$build_alias
 
1277
host=$host_alias
 
1278
target=$target_alias
 
1279
 
 
1280
# FIXME: To remove some day.
 
1281
if test "x$host_alias" != x; then
 
1282
  if test "x$build_alias" = x; then
 
1283
    cross_compiling=maybe
 
1284
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1285
    If a cross compiler is detected then cross compile mode will be used" >&2
 
1286
  elif test "x$build_alias" != "x$host_alias"; then
 
1287
    cross_compiling=yes
 
1288
  fi
 
1289
fi
 
1290
 
 
1291
ac_tool_prefix=
 
1292
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1293
 
 
1294
test "$silent" = yes && exec 6>/dev/null
 
1295
 
 
1296
 
 
1297
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1298
ac_ls_di=`ls -di .` &&
 
1299
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1300
  as_fn_error $? "working directory cannot be determined"
 
1301
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1302
  as_fn_error $? "pwd does not report name of working directory"
 
1303
 
 
1304
 
 
1305
# Find the source files, if location was not specified.
 
1306
if test -z "$srcdir"; then
 
1307
  ac_srcdir_defaulted=yes
 
1308
  # Try the directory containing this script, then the parent directory.
 
1309
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1310
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1311
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1312
         X"$as_myself" : 'X\(//\)$' \| \
 
1313
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1314
$as_echo X"$as_myself" |
 
1315
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1316
            s//\1/
 
1317
            q
 
1318
          }
 
1319
          /^X\(\/\/\)[^/].*/{
 
1320
            s//\1/
 
1321
            q
 
1322
          }
 
1323
          /^X\(\/\/\)$/{
 
1324
            s//\1/
 
1325
            q
 
1326
          }
 
1327
          /^X\(\/\).*/{
 
1328
            s//\1/
 
1329
            q
 
1330
          }
 
1331
          s/.*/./; q'`
 
1332
  srcdir=$ac_confdir
 
1333
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1334
    srcdir=..
 
1335
  fi
 
1336
else
 
1337
  ac_srcdir_defaulted=no
 
1338
fi
 
1339
if test ! -r "$srcdir/$ac_unique_file"; then
 
1340
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1341
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1342
fi
 
1343
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1344
ac_abs_confdir=`(
 
1345
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1346
        pwd)`
 
1347
# When building in place, set srcdir=.
 
1348
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1349
  srcdir=.
 
1350
fi
 
1351
# Remove unnecessary trailing slashes from srcdir.
 
1352
# Double slashes in file names in object file debugging info
 
1353
# mess up M-x gdb in Emacs.
 
1354
case $srcdir in
 
1355
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1356
esac
 
1357
for ac_var in $ac_precious_vars; do
 
1358
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1359
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1360
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1361
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1362
done
 
1363
 
 
1364
#
 
1365
# Report the --help message.
 
1366
#
 
1367
if test "$ac_init_help" = "long"; then
 
1368
  # Omit some internal or obsolete options to make the list less imposing.
 
1369
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1370
  cat <<_ACEOF
 
1371
\`configure' configures w3m 0.5.3 to adapt to many kinds of systems.
 
1372
 
 
1373
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1374
 
 
1375
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1376
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1377
 
 
1378
Defaults for the options are specified in brackets.
 
1379
 
 
1380
Configuration:
 
1381
  -h, --help              display this help and exit
 
1382
      --help=short        display options specific to this package
 
1383
      --help=recursive    display the short help of all the included packages
 
1384
  -V, --version           display version information and exit
 
1385
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1386
      --cache-file=FILE   cache test results in FILE [disabled]
 
1387
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1388
  -n, --no-create         do not create output files
 
1389
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1390
 
 
1391
Installation directories:
 
1392
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1393
                          [$ac_default_prefix]
 
1394
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1395
                          [PREFIX]
 
1396
 
 
1397
By default, \`make install' will install all the files in
 
1398
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1399
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1400
for instance \`--prefix=\$HOME'.
 
1401
 
 
1402
For better control, use the options below.
 
1403
 
 
1404
Fine tuning of the installation directories:
 
1405
  --bindir=DIR            user executables [EPREFIX/bin]
 
1406
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1407
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1408
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1409
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1410
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1411
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1412
  --includedir=DIR        C header files [PREFIX/include]
 
1413
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1414
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1415
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1416
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1417
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1418
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1419
  --docdir=DIR            documentation root [DATAROOTDIR/doc/w3m]
 
1420
  --htmldir=DIR           html documentation [DOCDIR]
 
1421
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1422
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1423
  --psdir=DIR             ps documentation [DOCDIR]
 
1424
_ACEOF
 
1425
 
 
1426
  cat <<\_ACEOF
 
1427
 
 
1428
System types:
 
1429
  --build=BUILD     configure for building on BUILD [guessed]
 
1430
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1431
_ACEOF
 
1432
fi
 
1433
 
 
1434
if test -n "$ac_init_help"; then
 
1435
  case $ac_init_help in
 
1436
     short | recursive ) echo "Configuration of w3m 0.5.3:";;
 
1437
   esac
 
1438
  cat <<\_ACEOF
 
1439
 
 
1440
Optional Features:
 
1441
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1442
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1443
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1444
  --disable-m17n                do not use m17n
 
1445
   --disable-unicode            do not use unicode
 
1446
   --enable-messagel10n=LL      message l10n instead of NLS
 
1447
   --enable-japanese=CODE       support Japanese CODE=(S|E|J|U)
 
1448
  --disable-nls           do not use Native Language Support
 
1449
  --disable-rpath         do not hardcode runtime library paths
 
1450
  --disable-color               disable color for vt100 terminal
 
1451
   --disable-ansi-color         disable ansi color escape sequence
 
1452
   --disable-bgcolor            disable to set background color
 
1453
  --enable-image=DEVS           enable inline image handler for DEVS
 
1454
                                 DEVS may be comma separeted: x11,fb,fb+s,win
 
1455
                                 default: autodetected.
 
1456
                                 'no' means disable inline image
 
1457
   --disable-xface              disable xface support
 
1458
  --enable-keymap=w3m|lynx      default keybind style(w3m or lynx)
 
1459
  --disable-menu                disable popup menu
 
1460
  --disable-mouse               disable mouse operation
 
1461
  --disable-history             disable URL history
 
1462
  --disable-alarm               disable alarm
 
1463
  --disable-cookie              disable cookie
 
1464
  --disable-nntp                disable NNTP
 
1465
  --enable-gopher               enable GOPHER
 
1466
  --disable-dict                disable dictionary lookup (see README.dict)
 
1467
  --disable-help-cgi            disable help cgi
 
1468
  --disable-external-uri-loader disable external URI loader
 
1469
   --disable-w3mmailer          disable w3mmailer
 
1470
  --disable-ipv6                disable IPv6
 
1471
   --disable-sslverify          verify SSL certificate
 
1472
  --disable-digest-auth         disable digest auth
 
1473
 
 
1474
Optional Packages:
 
1475
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1476
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1477
  --with-charset=CHARSET
 
1478
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1479
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1480
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1481
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1482
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1483
  --with-imagelib=IMAGELIBS             image library
 
1484
                                 IMAGELIBS may be space separeted list of:
 
1485
                                    gtk2 gdk-pixbuf imlib imlib2
 
1486
  --with-migemo=MIGEMO_COMMAND  migemo command
 
1487
  --with-editor=EDITOR          default editor (/usr/bin/vi)
 
1488
  --with-mailer=MAILER          default mailer (/usr/bin/mail)
 
1489
  --with-browser=BROWSER        default browser (/usr/bin/mozilla)
 
1490
  --with-ssl=PREFIX             support https protocol
 
1491
  --with-termlib=LIBS           terminal library
 
1492
                                LIBS is space separated list of:
 
1493
                                  terminfo mytinfo termcap ncurses curses
 
1494
  --with-gc=PREFIX              libgc PREFIX
 
1495
 
 
1496
Some influential environment variables:
 
1497
  CXX         C++ compiler command
 
1498
  CXXFLAGS    C++ compiler flags
 
1499
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1500
              nonstandard directory <lib dir>
 
1501
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1502
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1503
              you have headers in a nonstandard directory <include dir>
 
1504
  CC          C compiler command
 
1505
  CFLAGS      C compiler flags
 
1506
  CPP         C preprocessor
 
1507
  PKG_CONFIG  path to pkg-config utility
 
1508
  PKG_CONFIG_PATH
 
1509
              directories to add to pkg-config's search path
 
1510
  PKG_CONFIG_LIBDIR
 
1511
              path overriding pkg-config's built-in search path
 
1512
  SSL_CFLAGS  C compiler flags for SSL, overriding pkg-config
 
1513
  SSL_LIBS    linker flags for SSL, overriding pkg-config
 
1514
 
 
1515
Use these variables to override the choices made by `configure' or to help
 
1516
it to find libraries and programs with nonstandard names/locations.
 
1517
 
 
1518
Report bugs to <satodai@w3m.jp>.
 
1519
_ACEOF
 
1520
ac_status=$?
 
1521
fi
 
1522
 
 
1523
if test "$ac_init_help" = "recursive"; then
 
1524
  # If there are subdirs, report their specific --help.
 
1525
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1526
    test -d "$ac_dir" ||
 
1527
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1528
      continue
 
1529
    ac_builddir=.
 
1530
 
 
1531
case "$ac_dir" in
 
1532
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1533
*)
 
1534
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1535
  # A ".." for each directory in $ac_dir_suffix.
 
1536
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1537
  case $ac_top_builddir_sub in
 
1538
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1539
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1540
  esac ;;
 
1541
esac
 
1542
ac_abs_top_builddir=$ac_pwd
 
1543
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1544
# for backward compatibility:
 
1545
ac_top_builddir=$ac_top_build_prefix
 
1546
 
 
1547
case $srcdir in
 
1548
  .)  # We are building in place.
 
1549
    ac_srcdir=.
 
1550
    ac_top_srcdir=$ac_top_builddir_sub
 
1551
    ac_abs_top_srcdir=$ac_pwd ;;
 
1552
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1553
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1554
    ac_top_srcdir=$srcdir
 
1555
    ac_abs_top_srcdir=$srcdir ;;
 
1556
  *) # Relative name.
 
1557
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1558
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1559
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1560
esac
 
1561
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1562
 
 
1563
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1564
    # Check for guested configure.
 
1565
    if test -f "$ac_srcdir/configure.gnu"; then
 
1566
      echo &&
 
1567
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1568
    elif test -f "$ac_srcdir/configure"; then
 
1569
      echo &&
 
1570
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1571
    else
 
1572
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1573
    fi || ac_status=$?
 
1574
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1575
  done
 
1576
fi
 
1577
 
 
1578
test -n "$ac_init_help" && exit $ac_status
 
1579
if $ac_init_version; then
 
1580
  cat <<\_ACEOF
 
1581
w3m configure 0.5.3
 
1582
generated by GNU Autoconf 2.67
 
1583
 
 
1584
Copyright (C) 2010 Free Software Foundation, Inc.
 
1585
This configure script is free software; the Free Software Foundation
 
1586
gives unlimited permission to copy, distribute and modify it.
 
1587
_ACEOF
 
1588
  exit
 
1589
fi
 
1590
 
 
1591
## ------------------------ ##
 
1592
## Autoconf initialization. ##
 
1593
## ------------------------ ##
 
1594
 
 
1595
# ac_fn_cxx_try_compile LINENO
 
1596
# ----------------------------
 
1597
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1598
ac_fn_cxx_try_compile ()
 
1599
{
 
1600
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1601
  rm -f conftest.$ac_objext
 
1602
  if { { ac_try="$ac_compile"
 
1603
case "(($ac_try" in
 
1604
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1605
  *) ac_try_echo=$ac_try;;
 
1606
esac
 
1607
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1608
$as_echo "$ac_try_echo"; } >&5
 
1609
  (eval "$ac_compile") 2>conftest.err
 
1610
  ac_status=$?
 
1611
  if test -s conftest.err; then
 
1612
    grep -v '^ *+' conftest.err >conftest.er1
 
1613
    cat conftest.er1 >&5
 
1614
    mv -f conftest.er1 conftest.err
 
1615
  fi
 
1616
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1617
  test $ac_status = 0; } && {
 
1618
         test -z "$ac_cxx_werror_flag" ||
 
1619
         test ! -s conftest.err
 
1620
       } && test -s conftest.$ac_objext; then :
 
1621
  ac_retval=0
 
1622
else
 
1623
  $as_echo "$as_me: failed program was:" >&5
 
1624
sed 's/^/| /' conftest.$ac_ext >&5
 
1625
 
 
1626
        ac_retval=1
 
1627
fi
 
1628
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1629
  as_fn_set_status $ac_retval
 
1630
 
 
1631
} # ac_fn_cxx_try_compile
 
1632
 
 
1633
# ac_fn_c_try_compile LINENO
 
1634
# --------------------------
 
1635
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1636
ac_fn_c_try_compile ()
 
1637
{
 
1638
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1639
  rm -f conftest.$ac_objext
 
1640
  if { { ac_try="$ac_compile"
 
1641
case "(($ac_try" in
 
1642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1643
  *) ac_try_echo=$ac_try;;
 
1644
esac
 
1645
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1646
$as_echo "$ac_try_echo"; } >&5
 
1647
  (eval "$ac_compile") 2>conftest.err
 
1648
  ac_status=$?
 
1649
  if test -s conftest.err; then
 
1650
    grep -v '^ *+' conftest.err >conftest.er1
 
1651
    cat conftest.er1 >&5
 
1652
    mv -f conftest.er1 conftest.err
 
1653
  fi
 
1654
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1655
  test $ac_status = 0; } && {
 
1656
         test -z "$ac_c_werror_flag" ||
 
1657
         test ! -s conftest.err
 
1658
       } && test -s conftest.$ac_objext; then :
 
1659
  ac_retval=0
 
1660
else
 
1661
  $as_echo "$as_me: failed program was:" >&5
 
1662
sed 's/^/| /' conftest.$ac_ext >&5
 
1663
 
 
1664
        ac_retval=1
 
1665
fi
 
1666
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1667
  as_fn_set_status $ac_retval
 
1668
 
 
1669
} # ac_fn_c_try_compile
 
1670
 
 
1671
# ac_fn_c_try_cpp LINENO
 
1672
# ----------------------
 
1673
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1674
ac_fn_c_try_cpp ()
 
1675
{
 
1676
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1677
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1678
case "(($ac_try" in
 
1679
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1680
  *) ac_try_echo=$ac_try;;
 
1681
esac
 
1682
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1683
$as_echo "$ac_try_echo"; } >&5
 
1684
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1685
  ac_status=$?
 
1686
  if test -s conftest.err; then
 
1687
    grep -v '^ *+' conftest.err >conftest.er1
 
1688
    cat conftest.er1 >&5
 
1689
    mv -f conftest.er1 conftest.err
 
1690
  fi
 
1691
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1692
  test $ac_status = 0; } > conftest.i && {
 
1693
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1694
         test ! -s conftest.err
 
1695
       }; then :
 
1696
  ac_retval=0
 
1697
else
 
1698
  $as_echo "$as_me: failed program was:" >&5
 
1699
sed 's/^/| /' conftest.$ac_ext >&5
 
1700
 
 
1701
    ac_retval=1
 
1702
fi
 
1703
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1704
  as_fn_set_status $ac_retval
 
1705
 
 
1706
} # ac_fn_c_try_cpp
 
1707
 
 
1708
# ac_fn_c_try_link LINENO
 
1709
# -----------------------
 
1710
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1711
ac_fn_c_try_link ()
 
1712
{
 
1713
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1714
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1715
  if { { ac_try="$ac_link"
 
1716
case "(($ac_try" in
 
1717
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1718
  *) ac_try_echo=$ac_try;;
 
1719
esac
 
1720
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1721
$as_echo "$ac_try_echo"; } >&5
 
1722
  (eval "$ac_link") 2>conftest.err
 
1723
  ac_status=$?
 
1724
  if test -s conftest.err; then
 
1725
    grep -v '^ *+' conftest.err >conftest.er1
 
1726
    cat conftest.er1 >&5
 
1727
    mv -f conftest.er1 conftest.err
 
1728
  fi
 
1729
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1730
  test $ac_status = 0; } && {
 
1731
         test -z "$ac_c_werror_flag" ||
 
1732
         test ! -s conftest.err
 
1733
       } && test -s conftest$ac_exeext && {
 
1734
         test "$cross_compiling" = yes ||
 
1735
         $as_test_x conftest$ac_exeext
 
1736
       }; then :
 
1737
  ac_retval=0
 
1738
else
 
1739
  $as_echo "$as_me: failed program was:" >&5
 
1740
sed 's/^/| /' conftest.$ac_ext >&5
 
1741
 
 
1742
        ac_retval=1
 
1743
fi
 
1744
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1745
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1746
  # interfere with the next link command; also delete a directory that is
 
1747
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1748
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1749
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1750
  as_fn_set_status $ac_retval
 
1751
 
 
1752
} # ac_fn_c_try_link
 
1753
 
 
1754
# ac_fn_c_try_run LINENO
 
1755
# ----------------------
 
1756
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1757
# that executables *can* be run.
 
1758
ac_fn_c_try_run ()
 
1759
{
 
1760
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1761
  if { { ac_try="$ac_link"
 
1762
case "(($ac_try" in
 
1763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1764
  *) ac_try_echo=$ac_try;;
 
1765
esac
 
1766
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1767
$as_echo "$ac_try_echo"; } >&5
 
1768
  (eval "$ac_link") 2>&5
 
1769
  ac_status=$?
 
1770
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1771
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1772
  { { case "(($ac_try" in
 
1773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1774
  *) ac_try_echo=$ac_try;;
 
1775
esac
 
1776
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1777
$as_echo "$ac_try_echo"; } >&5
 
1778
  (eval "$ac_try") 2>&5
 
1779
  ac_status=$?
 
1780
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1781
  test $ac_status = 0; }; }; then :
 
1782
  ac_retval=0
 
1783
else
 
1784
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1785
       $as_echo "$as_me: failed program was:" >&5
 
1786
sed 's/^/| /' conftest.$ac_ext >&5
 
1787
 
 
1788
       ac_retval=$ac_status
 
1789
fi
 
1790
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1791
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1792
  as_fn_set_status $ac_retval
 
1793
 
 
1794
} # ac_fn_c_try_run
 
1795
 
 
1796
# ac_fn_c_check_func LINENO FUNC VAR
 
1797
# ----------------------------------
 
1798
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1799
ac_fn_c_check_func ()
 
1800
{
 
1801
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1802
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1803
$as_echo_n "checking for $2... " >&6; }
 
1804
if eval "test \"\${$3+set}\"" = set; then :
 
1805
  $as_echo_n "(cached) " >&6
 
1806
else
 
1807
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1808
/* end confdefs.h.  */
 
1809
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1810
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1811
#define $2 innocuous_$2
 
1812
 
 
1813
/* System header to define __stub macros and hopefully few prototypes,
 
1814
    which can conflict with char $2 (); below.
 
1815
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1816
    <limits.h> exists even on freestanding compilers.  */
 
1817
 
 
1818
#ifdef __STDC__
 
1819
# include <limits.h>
 
1820
#else
 
1821
# include <assert.h>
 
1822
#endif
 
1823
 
 
1824
#undef $2
 
1825
 
 
1826
/* Override any GCC internal prototype to avoid an error.
 
1827
   Use char because int might match the return type of a GCC
 
1828
   builtin and then its argument prototype would still apply.  */
 
1829
#ifdef __cplusplus
 
1830
extern "C"
 
1831
#endif
 
1832
char $2 ();
 
1833
/* The GNU C library defines this for functions which it implements
 
1834
    to always fail with ENOSYS.  Some functions are actually named
 
1835
    something starting with __ and the normal name is an alias.  */
 
1836
#if defined __stub_$2 || defined __stub___$2
 
1837
choke me
 
1838
#endif
 
1839
 
 
1840
int
 
1841
main ()
 
1842
{
 
1843
return $2 ();
 
1844
  ;
 
1845
  return 0;
 
1846
}
 
1847
_ACEOF
 
1848
if ac_fn_c_try_link "$LINENO"; then :
 
1849
  eval "$3=yes"
 
1850
else
 
1851
  eval "$3=no"
 
1852
fi
 
1853
rm -f core conftest.err conftest.$ac_objext \
 
1854
    conftest$ac_exeext conftest.$ac_ext
 
1855
fi
 
1856
eval ac_res=\$$3
 
1857
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1858
$as_echo "$ac_res" >&6; }
 
1859
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1860
 
 
1861
} # ac_fn_c_check_func
 
1862
 
 
1863
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1864
# -------------------------------------------------------
 
1865
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1866
# the include files in INCLUDES and setting the cache variable VAR
 
1867
# accordingly.
 
1868
ac_fn_c_check_header_mongrel ()
 
1869
{
 
1870
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1871
  if eval "test \"\${$3+set}\"" = set; then :
 
1872
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1873
$as_echo_n "checking for $2... " >&6; }
 
1874
if eval "test \"\${$3+set}\"" = set; then :
 
1875
  $as_echo_n "(cached) " >&6
 
1876
fi
 
1877
eval ac_res=\$$3
 
1878
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1879
$as_echo "$ac_res" >&6; }
 
1880
else
 
1881
  # Is the header compilable?
 
1882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1883
$as_echo_n "checking $2 usability... " >&6; }
 
1884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1885
/* end confdefs.h.  */
 
1886
$4
 
1887
#include <$2>
 
1888
_ACEOF
 
1889
if ac_fn_c_try_compile "$LINENO"; then :
 
1890
  ac_header_compiler=yes
 
1891
else
 
1892
  ac_header_compiler=no
 
1893
fi
 
1894
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1896
$as_echo "$ac_header_compiler" >&6; }
 
1897
 
 
1898
# Is the header present?
 
1899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1900
$as_echo_n "checking $2 presence... " >&6; }
 
1901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1902
/* end confdefs.h.  */
 
1903
#include <$2>
 
1904
_ACEOF
 
1905
if ac_fn_c_try_cpp "$LINENO"; then :
 
1906
  ac_header_preproc=yes
 
1907
else
 
1908
  ac_header_preproc=no
 
1909
fi
 
1910
rm -f conftest.err conftest.i conftest.$ac_ext
 
1911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1912
$as_echo "$ac_header_preproc" >&6; }
 
1913
 
 
1914
# So?  What about this header?
 
1915
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1916
  yes:no: )
 
1917
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1918
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1919
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1920
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1921
    ;;
 
1922
  no:yes:* )
 
1923
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1924
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1925
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1926
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1927
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1928
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1929
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1930
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1931
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1932
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1933
( $as_echo "## ----------------------------- ##
 
1934
## Report this to satodai@w3m.jp ##
 
1935
## ----------------------------- ##"
 
1936
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1937
    ;;
 
1938
esac
 
1939
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1940
$as_echo_n "checking for $2... " >&6; }
 
1941
if eval "test \"\${$3+set}\"" = set; then :
 
1942
  $as_echo_n "(cached) " >&6
 
1943
else
 
1944
  eval "$3=\$ac_header_compiler"
 
1945
fi
 
1946
eval ac_res=\$$3
 
1947
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1948
$as_echo "$ac_res" >&6; }
 
1949
fi
 
1950
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1951
 
 
1952
} # ac_fn_c_check_header_mongrel
 
1953
 
 
1954
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1955
# -------------------------------------------------------
 
1956
# Tests whether HEADER exists and can be compiled using the include files in
 
1957
# INCLUDES, setting the cache variable VAR accordingly.
 
1958
ac_fn_c_check_header_compile ()
 
1959
{
 
1960
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1961
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1962
$as_echo_n "checking for $2... " >&6; }
 
1963
if eval "test \"\${$3+set}\"" = set; then :
 
1964
  $as_echo_n "(cached) " >&6
 
1965
else
 
1966
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1967
/* end confdefs.h.  */
 
1968
$4
 
1969
#include <$2>
 
1970
_ACEOF
 
1971
if ac_fn_c_try_compile "$LINENO"; then :
 
1972
  eval "$3=yes"
 
1973
else
 
1974
  eval "$3=no"
 
1975
fi
 
1976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1977
fi
 
1978
eval ac_res=\$$3
 
1979
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1980
$as_echo "$ac_res" >&6; }
 
1981
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1982
 
 
1983
} # ac_fn_c_check_header_compile
 
1984
 
 
1985
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
 
1986
# -------------------------------------------
 
1987
# Tests whether TYPE exists after having included INCLUDES, setting cache
 
1988
# variable VAR accordingly.
 
1989
ac_fn_c_check_type ()
 
1990
{
 
1991
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1992
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1993
$as_echo_n "checking for $2... " >&6; }
 
1994
if eval "test \"\${$3+set}\"" = set; then :
 
1995
  $as_echo_n "(cached) " >&6
 
1996
else
 
1997
  eval "$3=no"
 
1998
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1999
/* end confdefs.h.  */
 
2000
$4
 
2001
int
 
2002
main ()
 
2003
{
 
2004
if (sizeof ($2))
 
2005
         return 0;
 
2006
  ;
 
2007
  return 0;
 
2008
}
 
2009
_ACEOF
 
2010
if ac_fn_c_try_compile "$LINENO"; then :
 
2011
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2012
/* end confdefs.h.  */
 
2013
$4
 
2014
int
 
2015
main ()
 
2016
{
 
2017
if (sizeof (($2)))
 
2018
            return 0;
 
2019
  ;
 
2020
  return 0;
 
2021
}
 
2022
_ACEOF
 
2023
if ac_fn_c_try_compile "$LINENO"; then :
 
2024
 
 
2025
else
 
2026
  eval "$3=yes"
 
2027
fi
 
2028
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2029
fi
 
2030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2031
fi
 
2032
eval ac_res=\$$3
 
2033
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
2034
$as_echo "$ac_res" >&6; }
 
2035
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2036
 
 
2037
} # ac_fn_c_check_type
 
2038
 
 
2039
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
 
2040
# --------------------------------------------
 
2041
# Tries to find the compile-time value of EXPR in a program that includes
 
2042
# INCLUDES, setting VAR accordingly. Returns whether the value could be
 
2043
# computed
 
2044
ac_fn_c_compute_int ()
 
2045
{
 
2046
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
2047
  if test "$cross_compiling" = yes; then
 
2048
    # Depending upon the size, compute the lo and hi bounds.
 
2049
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2050
/* end confdefs.h.  */
 
2051
$4
 
2052
int
 
2053
main ()
 
2054
{
 
2055
static int test_array [1 - 2 * !(($2) >= 0)];
 
2056
test_array [0] = 0
 
2057
 
 
2058
  ;
 
2059
  return 0;
 
2060
}
 
2061
_ACEOF
 
2062
if ac_fn_c_try_compile "$LINENO"; then :
 
2063
  ac_lo=0 ac_mid=0
 
2064
  while :; do
 
2065
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2066
/* end confdefs.h.  */
 
2067
$4
 
2068
int
 
2069
main ()
 
2070
{
 
2071
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2072
test_array [0] = 0
 
2073
 
 
2074
  ;
 
2075
  return 0;
 
2076
}
 
2077
_ACEOF
 
2078
if ac_fn_c_try_compile "$LINENO"; then :
 
2079
  ac_hi=$ac_mid; break
 
2080
else
 
2081
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
 
2082
                        if test $ac_lo -le $ac_mid; then
 
2083
                          ac_lo= ac_hi=
 
2084
                          break
 
2085
                        fi
 
2086
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
 
2087
fi
 
2088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2089
  done
 
2090
else
 
2091
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2092
/* end confdefs.h.  */
 
2093
$4
 
2094
int
 
2095
main ()
 
2096
{
 
2097
static int test_array [1 - 2 * !(($2) < 0)];
 
2098
test_array [0] = 0
 
2099
 
 
2100
  ;
 
2101
  return 0;
 
2102
}
 
2103
_ACEOF
 
2104
if ac_fn_c_try_compile "$LINENO"; then :
 
2105
  ac_hi=-1 ac_mid=-1
 
2106
  while :; do
 
2107
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2108
/* end confdefs.h.  */
 
2109
$4
 
2110
int
 
2111
main ()
 
2112
{
 
2113
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
 
2114
test_array [0] = 0
 
2115
 
 
2116
  ;
 
2117
  return 0;
 
2118
}
 
2119
_ACEOF
 
2120
if ac_fn_c_try_compile "$LINENO"; then :
 
2121
  ac_lo=$ac_mid; break
 
2122
else
 
2123
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
 
2124
                        if test $ac_mid -le $ac_hi; then
 
2125
                          ac_lo= ac_hi=
 
2126
                          break
 
2127
                        fi
 
2128
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
 
2129
fi
 
2130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2131
  done
 
2132
else
 
2133
  ac_lo= ac_hi=
 
2134
fi
 
2135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2136
fi
 
2137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2138
# Binary search between lo and hi bounds.
 
2139
while test "x$ac_lo" != "x$ac_hi"; do
 
2140
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
 
2141
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2142
/* end confdefs.h.  */
 
2143
$4
 
2144
int
 
2145
main ()
 
2146
{
 
2147
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
 
2148
test_array [0] = 0
 
2149
 
 
2150
  ;
 
2151
  return 0;
 
2152
}
 
2153
_ACEOF
 
2154
if ac_fn_c_try_compile "$LINENO"; then :
 
2155
  ac_hi=$ac_mid
 
2156
else
 
2157
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
 
2158
fi
 
2159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2160
done
 
2161
case $ac_lo in #((
 
2162
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
 
2163
'') ac_retval=1 ;;
 
2164
esac
 
2165
  else
 
2166
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2167
/* end confdefs.h.  */
 
2168
$4
 
2169
static long int longval () { return $2; }
 
2170
static unsigned long int ulongval () { return $2; }
 
2171
#include <stdio.h>
 
2172
#include <stdlib.h>
 
2173
int
 
2174
main ()
 
2175
{
 
2176
 
 
2177
  FILE *f = fopen ("conftest.val", "w");
 
2178
  if (! f)
 
2179
    return 1;
 
2180
  if (($2) < 0)
 
2181
    {
 
2182
      long int i = longval ();
 
2183
      if (i != ($2))
 
2184
        return 1;
 
2185
      fprintf (f, "%ld", i);
 
2186
    }
 
2187
  else
 
2188
    {
 
2189
      unsigned long int i = ulongval ();
 
2190
      if (i != ($2))
 
2191
        return 1;
 
2192
      fprintf (f, "%lu", i);
 
2193
    }
 
2194
  /* Do not output a trailing newline, as this causes \r\n confusion
 
2195
     on some platforms.  */
 
2196
  return ferror (f) || fclose (f) != 0;
 
2197
 
 
2198
  ;
 
2199
  return 0;
 
2200
}
 
2201
_ACEOF
 
2202
if ac_fn_c_try_run "$LINENO"; then :
 
2203
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
 
2204
else
 
2205
  ac_retval=1
 
2206
fi
 
2207
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
2208
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
2209
rm -f conftest.val
 
2210
 
 
2211
  fi
 
2212
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
2213
  as_fn_set_status $ac_retval
 
2214
 
 
2215
} # ac_fn_c_compute_int
 
2216
cat >config.log <<_ACEOF
 
2217
This file contains any messages produced by compilers while
 
2218
running configure, to aid debugging if configure makes a mistake.
 
2219
 
 
2220
It was created by w3m $as_me 0.5.3, which was
 
2221
generated by GNU Autoconf 2.67.  Invocation command line was
 
2222
 
 
2223
  $ $0 $@
 
2224
 
 
2225
_ACEOF
 
2226
exec 5>>config.log
 
2227
{
 
2228
cat <<_ASUNAME
 
2229
## --------- ##
 
2230
## Platform. ##
 
2231
## --------- ##
 
2232
 
 
2233
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
2234
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
2235
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
2236
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
2237
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
2238
 
 
2239
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
2240
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
2241
 
 
2242
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
2243
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
2244
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
2245
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
2246
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
2247
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
2248
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
2249
 
 
2250
_ASUNAME
 
2251
 
 
2252
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2253
for as_dir in $PATH
 
2254
do
 
2255
  IFS=$as_save_IFS
 
2256
  test -z "$as_dir" && as_dir=.
 
2257
    $as_echo "PATH: $as_dir"
 
2258
  done
 
2259
IFS=$as_save_IFS
 
2260
 
 
2261
} >&5
 
2262
 
 
2263
cat >&5 <<_ACEOF
 
2264
 
 
2265
 
 
2266
## ----------- ##
 
2267
## Core tests. ##
 
2268
## ----------- ##
 
2269
 
 
2270
_ACEOF
 
2271
 
 
2272
 
 
2273
# Keep a trace of the command line.
 
2274
# Strip out --no-create and --no-recursion so they do not pile up.
 
2275
# Strip out --silent because we don't want to record it for future runs.
 
2276
# Also quote any args containing shell meta-characters.
 
2277
# Make two passes to allow for proper duplicate-argument suppression.
 
2278
ac_configure_args=
 
2279
ac_configure_args0=
 
2280
ac_configure_args1=
 
2281
ac_must_keep_next=false
 
2282
for ac_pass in 1 2
 
2283
do
 
2284
  for ac_arg
 
2285
  do
 
2286
    case $ac_arg in
 
2287
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
2288
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
2289
    | -silent | --silent | --silen | --sile | --sil)
 
2290
      continue ;;
 
2291
    *\'*)
 
2292
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2293
    esac
 
2294
    case $ac_pass in
 
2295
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
2296
    2)
 
2297
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
2298
      if test $ac_must_keep_next = true; then
 
2299
        ac_must_keep_next=false # Got value, back to normal.
 
2300
      else
 
2301
        case $ac_arg in
 
2302
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
2303
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
2304
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
2305
          | -with-* | --with-* | -without-* | --without-* | --x)
 
2306
            case "$ac_configure_args0 " in
 
2307
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
2308
            esac
 
2309
            ;;
 
2310
          -* ) ac_must_keep_next=true ;;
 
2311
        esac
 
2312
      fi
 
2313
      as_fn_append ac_configure_args " '$ac_arg'"
 
2314
      ;;
 
2315
    esac
 
2316
  done
 
2317
done
 
2318
{ ac_configure_args0=; unset ac_configure_args0;}
 
2319
{ ac_configure_args1=; unset ac_configure_args1;}
 
2320
 
 
2321
# When interrupted or exit'd, cleanup temporary files, and complete
 
2322
# config.log.  We remove comments because anyway the quotes in there
 
2323
# would cause problems or look ugly.
 
2324
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
2325
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
2326
trap 'exit_status=$?
 
2327
  # Save into config.log some information that might help in debugging.
 
2328
  {
 
2329
    echo
 
2330
 
 
2331
    $as_echo "## ---------------- ##
 
2332
## Cache variables. ##
 
2333
## ---------------- ##"
 
2334
    echo
 
2335
    # The following way of writing the cache mishandles newlines in values,
 
2336
(
 
2337
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
2338
    eval ac_val=\$$ac_var
 
2339
    case $ac_val in #(
 
2340
    *${as_nl}*)
 
2341
      case $ac_var in #(
 
2342
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
2343
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2344
      esac
 
2345
      case $ac_var in #(
 
2346
      _ | IFS | as_nl) ;; #(
 
2347
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2348
      *) { eval $ac_var=; unset $ac_var;} ;;
 
2349
      esac ;;
 
2350
    esac
 
2351
  done
 
2352
  (set) 2>&1 |
 
2353
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2354
    *${as_nl}ac_space=\ *)
 
2355
      sed -n \
 
2356
        "s/'\''/'\''\\\\'\'''\''/g;
 
2357
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2358
      ;; #(
 
2359
    *)
 
2360
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2361
      ;;
 
2362
    esac |
 
2363
    sort
 
2364
)
 
2365
    echo
 
2366
 
 
2367
    $as_echo "## ----------------- ##
 
2368
## Output variables. ##
 
2369
## ----------------- ##"
 
2370
    echo
 
2371
    for ac_var in $ac_subst_vars
 
2372
    do
 
2373
      eval ac_val=\$$ac_var
 
2374
      case $ac_val in
 
2375
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2376
      esac
 
2377
      $as_echo "$ac_var='\''$ac_val'\''"
 
2378
    done | sort
 
2379
    echo
 
2380
 
 
2381
    if test -n "$ac_subst_files"; then
 
2382
      $as_echo "## ------------------- ##
 
2383
## File substitutions. ##
 
2384
## ------------------- ##"
 
2385
      echo
 
2386
      for ac_var in $ac_subst_files
 
2387
      do
 
2388
        eval ac_val=\$$ac_var
 
2389
        case $ac_val in
 
2390
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2391
        esac
 
2392
        $as_echo "$ac_var='\''$ac_val'\''"
 
2393
      done | sort
 
2394
      echo
 
2395
    fi
 
2396
 
 
2397
    if test -s confdefs.h; then
 
2398
      $as_echo "## ----------- ##
 
2399
## confdefs.h. ##
 
2400
## ----------- ##"
 
2401
      echo
 
2402
      cat confdefs.h
 
2403
      echo
 
2404
    fi
 
2405
    test "$ac_signal" != 0 &&
 
2406
      $as_echo "$as_me: caught signal $ac_signal"
 
2407
    $as_echo "$as_me: exit $exit_status"
 
2408
  } >&5
 
2409
  rm -f core *.core core.conftest.* &&
 
2410
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2411
    exit $exit_status
 
2412
' 0
 
2413
for ac_signal in 1 2 13 15; do
 
2414
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
2415
done
 
2416
ac_signal=0
 
2417
 
 
2418
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2419
rm -f -r conftest* confdefs.h
 
2420
 
 
2421
$as_echo "/* confdefs.h */" > confdefs.h
 
2422
 
 
2423
# Predefined preprocessor variables.
 
2424
 
 
2425
cat >>confdefs.h <<_ACEOF
 
2426
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2427
_ACEOF
 
2428
 
 
2429
cat >>confdefs.h <<_ACEOF
 
2430
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2431
_ACEOF
 
2432
 
 
2433
cat >>confdefs.h <<_ACEOF
 
2434
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2435
_ACEOF
 
2436
 
 
2437
cat >>confdefs.h <<_ACEOF
 
2438
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2439
_ACEOF
 
2440
 
 
2441
cat >>confdefs.h <<_ACEOF
 
2442
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2443
_ACEOF
 
2444
 
 
2445
cat >>confdefs.h <<_ACEOF
 
2446
#define PACKAGE_URL "$PACKAGE_URL"
 
2447
_ACEOF
 
2448
 
 
2449
 
 
2450
# Let the site file select an alternate cache file if it wants to.
 
2451
# Prefer an explicitly selected file to automatically selected ones.
 
2452
ac_site_file1=NONE
 
2453
ac_site_file2=NONE
 
2454
if test -n "$CONFIG_SITE"; then
 
2455
  # We do not want a PATH search for config.site.
 
2456
  case $CONFIG_SITE in #((
 
2457
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2458
    */*) ac_site_file1=$CONFIG_SITE;;
 
2459
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2460
  esac
 
2461
elif test "x$prefix" != xNONE; then
 
2462
  ac_site_file1=$prefix/share/config.site
 
2463
  ac_site_file2=$prefix/etc/config.site
 
2464
else
 
2465
  ac_site_file1=$ac_default_prefix/share/config.site
 
2466
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2467
fi
 
2468
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2469
do
 
2470
  test "x$ac_site_file" = xNONE && continue
 
2471
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2472
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2473
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2474
    sed 's/^/| /' "$ac_site_file" >&5
 
2475
    . "$ac_site_file" \
 
2476
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2477
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2478
as_fn_error $? "failed to load site script $ac_site_file
 
2479
See \`config.log' for more details" "$LINENO" 5 ; }
 
2480
  fi
 
2481
done
 
2482
 
 
2483
if test -r "$cache_file"; then
 
2484
  # Some versions of bash will fail to source /dev/null (special files
 
2485
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2486
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2487
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2488
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2489
    case $cache_file in
 
2490
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2491
      *)                      . "./$cache_file";;
 
2492
    esac
 
2493
  fi
 
2494
else
 
2495
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2496
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2497
  >$cache_file
 
2498
fi
 
2499
 
 
2500
gt_needs="$gt_needs "
 
2501
# Check that the precious variables saved in the cache have kept the same
 
2502
# value.
 
2503
ac_cache_corrupted=false
 
2504
for ac_var in $ac_precious_vars; do
 
2505
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2506
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2507
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2508
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2509
  case $ac_old_set,$ac_new_set in
 
2510
    set,)
 
2511
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2512
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2513
      ac_cache_corrupted=: ;;
 
2514
    ,set)
 
2515
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2516
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2517
      ac_cache_corrupted=: ;;
 
2518
    ,);;
 
2519
    *)
 
2520
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2521
        # differences in whitespace do not lead to failure.
 
2522
        ac_old_val_w=`echo x $ac_old_val`
 
2523
        ac_new_val_w=`echo x $ac_new_val`
 
2524
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2525
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2526
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2527
          ac_cache_corrupted=:
 
2528
        else
 
2529
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2530
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2531
          eval $ac_var=\$ac_old_val
 
2532
        fi
 
2533
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2534
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2535
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2536
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2537
      fi;;
 
2538
  esac
 
2539
  # Pass precious variables to config.status.
 
2540
  if test "$ac_new_set" = set; then
 
2541
    case $ac_new_val in
 
2542
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2543
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2544
    esac
 
2545
    case " $ac_configure_args " in
 
2546
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2547
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2548
    esac
 
2549
  fi
 
2550
done
 
2551
if $ac_cache_corrupted; then
 
2552
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2553
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2554
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2555
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2556
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2557
fi
 
2558
## -------------------- ##
 
2559
## Main body of script. ##
 
2560
## -------------------- ##
 
2561
 
 
2562
ac_ext=c
 
2563
ac_cpp='$CPP $CPPFLAGS'
 
2564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2567
 
 
2568
 
 
2569
PACKAGE=w3m
 
2570
VERSION=0.5.3
 
2571
cat >>confdefs.h <<_ACEOF
 
2572
#define PACKAGE "$PACKAGE"
 
2573
_ACEOF
 
2574
 
 
2575
cat >>confdefs.h <<_ACEOF
 
2576
#define VERSION "$VERSION"
 
2577
_ACEOF
 
2578
 
 
2579
 
 
2580
 
 
2581
 
 
2582
 
 
2583
W3M=w3m
 
2584
$as_echo "#define W3M w3m" >>confdefs.h
 
2585
 
 
2586
 
 
2587
 
 
2588
W3M_LANG=${LC_ALL:-$LANG}
 
2589
ac_config_headers="$ac_config_headers config.h"
 
2590
 
 
2591
ac_ext=cpp
 
2592
ac_cpp='$CXXCPP $CPPFLAGS'
 
2593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2596
if test -z "$CXX"; then
 
2597
  if test -n "$CCC"; then
 
2598
    CXX=$CCC
 
2599
  else
 
2600
    if test -n "$ac_tool_prefix"; then
 
2601
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2602
  do
 
2603
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2604
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2605
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2606
$as_echo_n "checking for $ac_word... " >&6; }
 
2607
if test "${ac_cv_prog_CXX+set}" = set; then :
 
2608
  $as_echo_n "(cached) " >&6
 
2609
else
 
2610
  if test -n "$CXX"; then
 
2611
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2612
else
 
2613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2614
for as_dir in $PATH
 
2615
do
 
2616
  IFS=$as_save_IFS
 
2617
  test -z "$as_dir" && as_dir=.
 
2618
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2620
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2621
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2622
    break 2
 
2623
  fi
 
2624
done
 
2625
  done
 
2626
IFS=$as_save_IFS
 
2627
 
 
2628
fi
 
2629
fi
 
2630
CXX=$ac_cv_prog_CXX
 
2631
if test -n "$CXX"; then
 
2632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 
2633
$as_echo "$CXX" >&6; }
 
2634
else
 
2635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2636
$as_echo "no" >&6; }
 
2637
fi
 
2638
 
 
2639
 
 
2640
    test -n "$CXX" && break
 
2641
  done
 
2642
fi
 
2643
if test -z "$CXX"; then
 
2644
  ac_ct_CXX=$CXX
 
2645
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2646
do
 
2647
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2648
set dummy $ac_prog; ac_word=$2
 
2649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2650
$as_echo_n "checking for $ac_word... " >&6; }
 
2651
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
 
2652
  $as_echo_n "(cached) " >&6
 
2653
else
 
2654
  if test -n "$ac_ct_CXX"; then
 
2655
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2656
else
 
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2658
for as_dir in $PATH
 
2659
do
 
2660
  IFS=$as_save_IFS
 
2661
  test -z "$as_dir" && as_dir=.
 
2662
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2664
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2665
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2666
    break 2
 
2667
  fi
 
2668
done
 
2669
  done
 
2670
IFS=$as_save_IFS
 
2671
 
 
2672
fi
 
2673
fi
 
2674
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2675
if test -n "$ac_ct_CXX"; then
 
2676
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 
2677
$as_echo "$ac_ct_CXX" >&6; }
 
2678
else
 
2679
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2680
$as_echo "no" >&6; }
 
2681
fi
 
2682
 
 
2683
 
 
2684
  test -n "$ac_ct_CXX" && break
 
2685
done
 
2686
 
 
2687
  if test "x$ac_ct_CXX" = x; then
 
2688
    CXX="g++"
 
2689
  else
 
2690
    case $cross_compiling:$ac_tool_warned in
 
2691
yes:)
 
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2693
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2694
ac_tool_warned=yes ;;
 
2695
esac
 
2696
    CXX=$ac_ct_CXX
 
2697
  fi
 
2698
fi
 
2699
 
 
2700
  fi
 
2701
fi
 
2702
# Provide some information about the compiler.
 
2703
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 
2704
set X $ac_compile
 
2705
ac_compiler=$2
 
2706
for ac_option in --version -v -V -qversion; do
 
2707
  { { ac_try="$ac_compiler $ac_option >&5"
 
2708
case "(($ac_try" in
 
2709
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2710
  *) ac_try_echo=$ac_try;;
 
2711
esac
 
2712
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2713
$as_echo "$ac_try_echo"; } >&5
 
2714
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2715
  ac_status=$?
 
2716
  if test -s conftest.err; then
 
2717
    sed '10a\
 
2718
... rest of stderr output deleted ...
 
2719
         10q' conftest.err >conftest.er1
 
2720
    cat conftest.er1 >&5
 
2721
  fi
 
2722
  rm -f conftest.er1 conftest.err
 
2723
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2724
  test $ac_status = 0; }
 
2725
done
 
2726
 
 
2727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2728
/* end confdefs.h.  */
 
2729
 
 
2730
int
 
2731
main ()
 
2732
{
 
2733
 
 
2734
  ;
 
2735
  return 0;
 
2736
}
 
2737
_ACEOF
 
2738
ac_clean_files_save=$ac_clean_files
 
2739
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2740
# Try to create an executable without -o first, disregard a.out.
 
2741
# It will help us diagnose broken compilers, and finding out an intuition
 
2742
# of exeext.
 
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
 
2744
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
2745
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2746
 
 
2747
# The possible output files:
 
2748
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2749
 
 
2750
ac_rmfiles=
 
2751
for ac_file in $ac_files
 
2752
do
 
2753
  case $ac_file in
 
2754
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2755
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2756
  esac
 
2757
done
 
2758
rm -f $ac_rmfiles
 
2759
 
 
2760
if { { ac_try="$ac_link_default"
 
2761
case "(($ac_try" in
 
2762
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2763
  *) ac_try_echo=$ac_try;;
 
2764
esac
 
2765
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2766
$as_echo "$ac_try_echo"; } >&5
 
2767
  (eval "$ac_link_default") 2>&5
 
2768
  ac_status=$?
 
2769
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2770
  test $ac_status = 0; }; then :
 
2771
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2772
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2773
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2774
# so that the user can short-circuit this test for compilers unknown to
 
2775
# Autoconf.
 
2776
for ac_file in $ac_files ''
 
2777
do
 
2778
  test -f "$ac_file" || continue
 
2779
  case $ac_file in
 
2780
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2781
        ;;
 
2782
    [ab].out )
 
2783
        # We found the default executable, but exeext='' is most
 
2784
        # certainly right.
 
2785
        break;;
 
2786
    *.* )
 
2787
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2788
        then :; else
 
2789
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2790
        fi
 
2791
        # We set ac_cv_exeext here because the later test for it is not
 
2792
        # safe: cross compilers may not add the suffix if given an `-o'
 
2793
        # argument, so we may need to know it at that point already.
 
2794
        # Even if this section looks crufty: it has the advantage of
 
2795
        # actually working.
 
2796
        break;;
 
2797
    * )
 
2798
        break;;
 
2799
  esac
 
2800
done
 
2801
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2802
 
 
2803
else
 
2804
  ac_file=''
 
2805
fi
 
2806
if test -z "$ac_file"; then :
 
2807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2808
$as_echo "no" >&6; }
 
2809
$as_echo "$as_me: failed program was:" >&5
 
2810
sed 's/^/| /' conftest.$ac_ext >&5
 
2811
 
 
2812
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2813
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2814
as_fn_error 77 "C++ compiler cannot create executables
 
2815
See \`config.log' for more details" "$LINENO" 5 ; }
 
2816
else
 
2817
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2818
$as_echo "yes" >&6; }
 
2819
fi
 
2820
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
 
2821
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2823
$as_echo "$ac_file" >&6; }
 
2824
ac_exeext=$ac_cv_exeext
 
2825
 
 
2826
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2827
ac_clean_files=$ac_clean_files_save
 
2828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2829
$as_echo_n "checking for suffix of executables... " >&6; }
 
2830
if { { ac_try="$ac_link"
 
2831
case "(($ac_try" in
 
2832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2833
  *) ac_try_echo=$ac_try;;
 
2834
esac
 
2835
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2836
$as_echo "$ac_try_echo"; } >&5
 
2837
  (eval "$ac_link") 2>&5
 
2838
  ac_status=$?
 
2839
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2840
  test $ac_status = 0; }; then :
 
2841
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2842
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2843
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2844
# `rm'.
 
2845
for ac_file in conftest.exe conftest conftest.*; do
 
2846
  test -f "$ac_file" || continue
 
2847
  case $ac_file in
 
2848
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2849
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2850
          break;;
 
2851
    * ) break;;
 
2852
  esac
 
2853
done
 
2854
else
 
2855
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2856
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2857
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
2858
See \`config.log' for more details" "$LINENO" 5 ; }
 
2859
fi
 
2860
rm -f conftest conftest$ac_cv_exeext
 
2861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
2862
$as_echo "$ac_cv_exeext" >&6; }
 
2863
 
 
2864
rm -f conftest.$ac_ext
 
2865
EXEEXT=$ac_cv_exeext
 
2866
ac_exeext=$EXEEXT
 
2867
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2868
/* end confdefs.h.  */
 
2869
#include <stdio.h>
 
2870
int
 
2871
main ()
 
2872
{
 
2873
FILE *f = fopen ("conftest.out", "w");
 
2874
 return ferror (f) || fclose (f) != 0;
 
2875
 
 
2876
  ;
 
2877
  return 0;
 
2878
}
 
2879
_ACEOF
 
2880
ac_clean_files="$ac_clean_files conftest.out"
 
2881
# Check that the compiler produces executables we can run.  If not, either
 
2882
# the compiler is broken, or we cross compile.
 
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
2884
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2885
if test "$cross_compiling" != yes; then
 
2886
  { { ac_try="$ac_link"
 
2887
case "(($ac_try" in
 
2888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2889
  *) ac_try_echo=$ac_try;;
 
2890
esac
 
2891
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2892
$as_echo "$ac_try_echo"; } >&5
 
2893
  (eval "$ac_link") 2>&5
 
2894
  ac_status=$?
 
2895
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2896
  test $ac_status = 0; }
 
2897
  if { ac_try='./conftest$ac_cv_exeext'
 
2898
  { { case "(($ac_try" in
 
2899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2900
  *) ac_try_echo=$ac_try;;
 
2901
esac
 
2902
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2903
$as_echo "$ac_try_echo"; } >&5
 
2904
  (eval "$ac_try") 2>&5
 
2905
  ac_status=$?
 
2906
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2907
  test $ac_status = 0; }; }; then
 
2908
    cross_compiling=no
 
2909
  else
 
2910
    if test "$cross_compiling" = maybe; then
 
2911
        cross_compiling=yes
 
2912
    else
 
2913
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2914
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2915
as_fn_error $? "cannot run C++ compiled programs.
 
2916
If you meant to cross compile, use \`--host'.
 
2917
See \`config.log' for more details" "$LINENO" 5 ; }
 
2918
    fi
 
2919
  fi
 
2920
fi
 
2921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
2922
$as_echo "$cross_compiling" >&6; }
 
2923
 
 
2924
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
2925
ac_clean_files=$ac_clean_files_save
 
2926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
2927
$as_echo_n "checking for suffix of object files... " >&6; }
 
2928
if test "${ac_cv_objext+set}" = set; then :
 
2929
  $as_echo_n "(cached) " >&6
 
2930
else
 
2931
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2932
/* end confdefs.h.  */
 
2933
 
 
2934
int
 
2935
main ()
 
2936
{
 
2937
 
 
2938
  ;
 
2939
  return 0;
 
2940
}
 
2941
_ACEOF
 
2942
rm -f conftest.o conftest.obj
 
2943
if { { ac_try="$ac_compile"
 
2944
case "(($ac_try" in
 
2945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2946
  *) ac_try_echo=$ac_try;;
 
2947
esac
 
2948
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2949
$as_echo "$ac_try_echo"; } >&5
 
2950
  (eval "$ac_compile") 2>&5
 
2951
  ac_status=$?
 
2952
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2953
  test $ac_status = 0; }; then :
 
2954
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2955
  test -f "$ac_file" || continue;
 
2956
  case $ac_file in
 
2957
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2958
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2959
       break;;
 
2960
  esac
 
2961
done
 
2962
else
 
2963
  $as_echo "$as_me: failed program was:" >&5
 
2964
sed 's/^/| /' conftest.$ac_ext >&5
 
2965
 
 
2966
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2967
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2968
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
2969
See \`config.log' for more details" "$LINENO" 5 ; }
 
2970
fi
 
2971
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2972
fi
 
2973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
2974
$as_echo "$ac_cv_objext" >&6; }
 
2975
OBJEXT=$ac_cv_objext
 
2976
ac_objext=$OBJEXT
 
2977
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
 
2978
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
2979
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
 
2980
  $as_echo_n "(cached) " >&6
 
2981
else
 
2982
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2983
/* end confdefs.h.  */
 
2984
 
 
2985
int
 
2986
main ()
 
2987
{
 
2988
#ifndef __GNUC__
 
2989
       choke me
 
2990
#endif
 
2991
 
 
2992
  ;
 
2993
  return 0;
 
2994
}
 
2995
_ACEOF
 
2996
if ac_fn_cxx_try_compile "$LINENO"; then :
 
2997
  ac_compiler_gnu=yes
 
2998
else
 
2999
  ac_compiler_gnu=no
 
3000
fi
 
3001
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3002
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3003
 
 
3004
fi
 
3005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 
3006
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3007
if test $ac_compiler_gnu = yes; then
 
3008
  GXX=yes
 
3009
else
 
3010
  GXX=
 
3011
fi
 
3012
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3013
ac_save_CXXFLAGS=$CXXFLAGS
 
3014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 
3015
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3016
if test "${ac_cv_prog_cxx_g+set}" = set; then :
 
3017
  $as_echo_n "(cached) " >&6
 
3018
else
 
3019
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3020
   ac_cxx_werror_flag=yes
 
3021
   ac_cv_prog_cxx_g=no
 
3022
   CXXFLAGS="-g"
 
3023
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3024
/* end confdefs.h.  */
 
3025
 
 
3026
int
 
3027
main ()
 
3028
{
 
3029
 
 
3030
  ;
 
3031
  return 0;
 
3032
}
 
3033
_ACEOF
 
3034
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3035
  ac_cv_prog_cxx_g=yes
 
3036
else
 
3037
  CXXFLAGS=""
 
3038
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3039
/* end confdefs.h.  */
 
3040
 
 
3041
int
 
3042
main ()
 
3043
{
 
3044
 
 
3045
  ;
 
3046
  return 0;
 
3047
}
 
3048
_ACEOF
 
3049
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3050
 
 
3051
else
 
3052
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3053
         CXXFLAGS="-g"
 
3054
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3055
/* end confdefs.h.  */
 
3056
 
 
3057
int
 
3058
main ()
 
3059
{
 
3060
 
 
3061
  ;
 
3062
  return 0;
 
3063
}
 
3064
_ACEOF
 
3065
if ac_fn_cxx_try_compile "$LINENO"; then :
 
3066
  ac_cv_prog_cxx_g=yes
 
3067
fi
 
3068
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3069
fi
 
3070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3071
fi
 
3072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3073
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3074
fi
 
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 
3076
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3077
if test "$ac_test_CXXFLAGS" = set; then
 
3078
  CXXFLAGS=$ac_save_CXXFLAGS
 
3079
elif test $ac_cv_prog_cxx_g = yes; then
 
3080
  if test "$GXX" = yes; then
 
3081
    CXXFLAGS="-g -O2"
 
3082
  else
 
3083
    CXXFLAGS="-g"
 
3084
  fi
 
3085
else
 
3086
  if test "$GXX" = yes; then
 
3087
    CXXFLAGS="-O2"
 
3088
  else
 
3089
    CXXFLAGS=
 
3090
  fi
 
3091
fi
 
3092
ac_ext=c
 
3093
ac_cpp='$CPP $CPPFLAGS'
 
3094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3097
 
 
3098
for ac_prog in gawk mawk nawk awk
 
3099
do
 
3100
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3101
set dummy $ac_prog; ac_word=$2
 
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3103
$as_echo_n "checking for $ac_word... " >&6; }
 
3104
if test "${ac_cv_prog_AWK+set}" = set; then :
 
3105
  $as_echo_n "(cached) " >&6
 
3106
else
 
3107
  if test -n "$AWK"; then
 
3108
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3109
else
 
3110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3111
for as_dir in $PATH
 
3112
do
 
3113
  IFS=$as_save_IFS
 
3114
  test -z "$as_dir" && as_dir=.
 
3115
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3116
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3117
    ac_cv_prog_AWK="$ac_prog"
 
3118
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3119
    break 2
 
3120
  fi
 
3121
done
 
3122
  done
 
3123
IFS=$as_save_IFS
 
3124
 
 
3125
fi
 
3126
fi
 
3127
AWK=$ac_cv_prog_AWK
 
3128
if test -n "$AWK"; then
 
3129
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
3130
$as_echo "$AWK" >&6; }
 
3131
else
 
3132
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3133
$as_echo "no" >&6; }
 
3134
fi
 
3135
 
 
3136
 
 
3137
  test -n "$AWK" && break
 
3138
done
 
3139
 
 
3140
ac_ext=c
 
3141
ac_cpp='$CPP $CPPFLAGS'
 
3142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3145
if test -n "$ac_tool_prefix"; then
 
3146
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3147
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3149
$as_echo_n "checking for $ac_word... " >&6; }
 
3150
if test "${ac_cv_prog_CC+set}" = set; then :
 
3151
  $as_echo_n "(cached) " >&6
 
3152
else
 
3153
  if test -n "$CC"; then
 
3154
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3155
else
 
3156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3157
for as_dir in $PATH
 
3158
do
 
3159
  IFS=$as_save_IFS
 
3160
  test -z "$as_dir" && as_dir=.
 
3161
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3162
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3163
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3164
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3165
    break 2
 
3166
  fi
 
3167
done
 
3168
  done
 
3169
IFS=$as_save_IFS
 
3170
 
 
3171
fi
 
3172
fi
 
3173
CC=$ac_cv_prog_CC
 
3174
if test -n "$CC"; then
 
3175
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3176
$as_echo "$CC" >&6; }
 
3177
else
 
3178
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3179
$as_echo "no" >&6; }
 
3180
fi
 
3181
 
 
3182
 
 
3183
fi
 
3184
if test -z "$ac_cv_prog_CC"; then
 
3185
  ac_ct_CC=$CC
 
3186
  # Extract the first word of "gcc", so it can be a program name with args.
 
3187
set dummy gcc; ac_word=$2
 
3188
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3189
$as_echo_n "checking for $ac_word... " >&6; }
 
3190
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3191
  $as_echo_n "(cached) " >&6
 
3192
else
 
3193
  if test -n "$ac_ct_CC"; then
 
3194
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3195
else
 
3196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3197
for as_dir in $PATH
 
3198
do
 
3199
  IFS=$as_save_IFS
 
3200
  test -z "$as_dir" && as_dir=.
 
3201
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3202
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3203
    ac_cv_prog_ac_ct_CC="gcc"
 
3204
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3205
    break 2
 
3206
  fi
 
3207
done
 
3208
  done
 
3209
IFS=$as_save_IFS
 
3210
 
 
3211
fi
 
3212
fi
 
3213
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3214
if test -n "$ac_ct_CC"; then
 
3215
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3216
$as_echo "$ac_ct_CC" >&6; }
 
3217
else
 
3218
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3219
$as_echo "no" >&6; }
 
3220
fi
 
3221
 
 
3222
  if test "x$ac_ct_CC" = x; then
 
3223
    CC=""
 
3224
  else
 
3225
    case $cross_compiling:$ac_tool_warned in
 
3226
yes:)
 
3227
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3228
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3229
ac_tool_warned=yes ;;
 
3230
esac
 
3231
    CC=$ac_ct_CC
 
3232
  fi
 
3233
else
 
3234
  CC="$ac_cv_prog_CC"
 
3235
fi
 
3236
 
 
3237
if test -z "$CC"; then
 
3238
          if test -n "$ac_tool_prefix"; then
 
3239
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3240
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3242
$as_echo_n "checking for $ac_word... " >&6; }
 
3243
if test "${ac_cv_prog_CC+set}" = set; then :
 
3244
  $as_echo_n "(cached) " >&6
 
3245
else
 
3246
  if test -n "$CC"; then
 
3247
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3248
else
 
3249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3250
for as_dir in $PATH
 
3251
do
 
3252
  IFS=$as_save_IFS
 
3253
  test -z "$as_dir" && as_dir=.
 
3254
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3255
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3256
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3257
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3258
    break 2
 
3259
  fi
 
3260
done
 
3261
  done
 
3262
IFS=$as_save_IFS
 
3263
 
 
3264
fi
 
3265
fi
 
3266
CC=$ac_cv_prog_CC
 
3267
if test -n "$CC"; then
 
3268
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3269
$as_echo "$CC" >&6; }
 
3270
else
 
3271
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3272
$as_echo "no" >&6; }
 
3273
fi
 
3274
 
 
3275
 
 
3276
  fi
 
3277
fi
 
3278
if test -z "$CC"; then
 
3279
  # Extract the first word of "cc", so it can be a program name with args.
 
3280
set dummy cc; ac_word=$2
 
3281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3282
$as_echo_n "checking for $ac_word... " >&6; }
 
3283
if test "${ac_cv_prog_CC+set}" = set; then :
 
3284
  $as_echo_n "(cached) " >&6
 
3285
else
 
3286
  if test -n "$CC"; then
 
3287
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3288
else
 
3289
  ac_prog_rejected=no
 
3290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3291
for as_dir in $PATH
 
3292
do
 
3293
  IFS=$as_save_IFS
 
3294
  test -z "$as_dir" && as_dir=.
 
3295
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3296
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3297
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3298
       ac_prog_rejected=yes
 
3299
       continue
 
3300
     fi
 
3301
    ac_cv_prog_CC="cc"
 
3302
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3303
    break 2
 
3304
  fi
 
3305
done
 
3306
  done
 
3307
IFS=$as_save_IFS
 
3308
 
 
3309
if test $ac_prog_rejected = yes; then
 
3310
  # We found a bogon in the path, so make sure we never use it.
 
3311
  set dummy $ac_cv_prog_CC
 
3312
  shift
 
3313
  if test $# != 0; then
 
3314
    # We chose a different compiler from the bogus one.
 
3315
    # However, it has the same basename, so the bogon will be chosen
 
3316
    # first if we set CC to just the basename; use the full file name.
 
3317
    shift
 
3318
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3319
  fi
 
3320
fi
 
3321
fi
 
3322
fi
 
3323
CC=$ac_cv_prog_CC
 
3324
if test -n "$CC"; then
 
3325
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3326
$as_echo "$CC" >&6; }
 
3327
else
 
3328
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3329
$as_echo "no" >&6; }
 
3330
fi
 
3331
 
 
3332
 
 
3333
fi
 
3334
if test -z "$CC"; then
 
3335
  if test -n "$ac_tool_prefix"; then
 
3336
  for ac_prog in cl.exe
 
3337
  do
 
3338
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3341
$as_echo_n "checking for $ac_word... " >&6; }
 
3342
if test "${ac_cv_prog_CC+set}" = set; then :
 
3343
  $as_echo_n "(cached) " >&6
 
3344
else
 
3345
  if test -n "$CC"; then
 
3346
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3347
else
 
3348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3349
for as_dir in $PATH
 
3350
do
 
3351
  IFS=$as_save_IFS
 
3352
  test -z "$as_dir" && as_dir=.
 
3353
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3354
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3355
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3356
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3357
    break 2
 
3358
  fi
 
3359
done
 
3360
  done
 
3361
IFS=$as_save_IFS
 
3362
 
 
3363
fi
 
3364
fi
 
3365
CC=$ac_cv_prog_CC
 
3366
if test -n "$CC"; then
 
3367
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3368
$as_echo "$CC" >&6; }
 
3369
else
 
3370
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3371
$as_echo "no" >&6; }
 
3372
fi
 
3373
 
 
3374
 
 
3375
    test -n "$CC" && break
 
3376
  done
 
3377
fi
 
3378
if test -z "$CC"; then
 
3379
  ac_ct_CC=$CC
 
3380
  for ac_prog in cl.exe
 
3381
do
 
3382
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3383
set dummy $ac_prog; ac_word=$2
 
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3385
$as_echo_n "checking for $ac_word... " >&6; }
 
3386
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
3387
  $as_echo_n "(cached) " >&6
 
3388
else
 
3389
  if test -n "$ac_ct_CC"; then
 
3390
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3391
else
 
3392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3393
for as_dir in $PATH
 
3394
do
 
3395
  IFS=$as_save_IFS
 
3396
  test -z "$as_dir" && as_dir=.
 
3397
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3399
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3400
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3401
    break 2
 
3402
  fi
 
3403
done
 
3404
  done
 
3405
IFS=$as_save_IFS
 
3406
 
 
3407
fi
 
3408
fi
 
3409
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3410
if test -n "$ac_ct_CC"; then
 
3411
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3412
$as_echo "$ac_ct_CC" >&6; }
 
3413
else
 
3414
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3415
$as_echo "no" >&6; }
 
3416
fi
 
3417
 
 
3418
 
 
3419
  test -n "$ac_ct_CC" && break
 
3420
done
 
3421
 
 
3422
  if test "x$ac_ct_CC" = x; then
 
3423
    CC=""
 
3424
  else
 
3425
    case $cross_compiling:$ac_tool_warned in
 
3426
yes:)
 
3427
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3429
ac_tool_warned=yes ;;
 
3430
esac
 
3431
    CC=$ac_ct_CC
 
3432
  fi
 
3433
fi
 
3434
 
 
3435
fi
 
3436
 
 
3437
 
 
3438
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3439
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3440
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3441
See \`config.log' for more details" "$LINENO" 5 ; }
 
3442
 
 
3443
# Provide some information about the compiler.
 
3444
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3445
set X $ac_compile
 
3446
ac_compiler=$2
 
3447
for ac_option in --version -v -V -qversion; do
 
3448
  { { ac_try="$ac_compiler $ac_option >&5"
 
3449
case "(($ac_try" in
 
3450
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3451
  *) ac_try_echo=$ac_try;;
 
3452
esac
 
3453
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3454
$as_echo "$ac_try_echo"; } >&5
 
3455
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3456
  ac_status=$?
 
3457
  if test -s conftest.err; then
 
3458
    sed '10a\
 
3459
... rest of stderr output deleted ...
 
3460
         10q' conftest.err >conftest.er1
 
3461
    cat conftest.er1 >&5
 
3462
  fi
 
3463
  rm -f conftest.er1 conftest.err
 
3464
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3465
  test $ac_status = 0; }
 
3466
done
 
3467
 
 
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3469
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3470
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
3471
  $as_echo_n "(cached) " >&6
 
3472
else
 
3473
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3474
/* end confdefs.h.  */
 
3475
 
 
3476
int
 
3477
main ()
 
3478
{
 
3479
#ifndef __GNUC__
 
3480
       choke me
 
3481
#endif
 
3482
 
 
3483
  ;
 
3484
  return 0;
 
3485
}
 
3486
_ACEOF
 
3487
if ac_fn_c_try_compile "$LINENO"; then :
 
3488
  ac_compiler_gnu=yes
 
3489
else
 
3490
  ac_compiler_gnu=no
 
3491
fi
 
3492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3493
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3494
 
 
3495
fi
 
3496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3497
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3498
if test $ac_compiler_gnu = yes; then
 
3499
  GCC=yes
 
3500
else
 
3501
  GCC=
 
3502
fi
 
3503
ac_test_CFLAGS=${CFLAGS+set}
 
3504
ac_save_CFLAGS=$CFLAGS
 
3505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3506
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3507
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
3508
  $as_echo_n "(cached) " >&6
 
3509
else
 
3510
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3511
   ac_c_werror_flag=yes
 
3512
   ac_cv_prog_cc_g=no
 
3513
   CFLAGS="-g"
 
3514
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3515
/* end confdefs.h.  */
 
3516
 
 
3517
int
 
3518
main ()
 
3519
{
 
3520
 
 
3521
  ;
 
3522
  return 0;
 
3523
}
 
3524
_ACEOF
 
3525
if ac_fn_c_try_compile "$LINENO"; then :
 
3526
  ac_cv_prog_cc_g=yes
 
3527
else
 
3528
  CFLAGS=""
 
3529
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3530
/* end confdefs.h.  */
 
3531
 
 
3532
int
 
3533
main ()
 
3534
{
 
3535
 
 
3536
  ;
 
3537
  return 0;
 
3538
}
 
3539
_ACEOF
 
3540
if ac_fn_c_try_compile "$LINENO"; then :
 
3541
 
 
3542
else
 
3543
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3544
         CFLAGS="-g"
 
3545
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3546
/* end confdefs.h.  */
 
3547
 
 
3548
int
 
3549
main ()
 
3550
{
 
3551
 
 
3552
  ;
 
3553
  return 0;
 
3554
}
 
3555
_ACEOF
 
3556
if ac_fn_c_try_compile "$LINENO"; then :
 
3557
  ac_cv_prog_cc_g=yes
 
3558
fi
 
3559
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3560
fi
 
3561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3562
fi
 
3563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3564
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3565
fi
 
3566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3567
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3568
if test "$ac_test_CFLAGS" = set; then
 
3569
  CFLAGS=$ac_save_CFLAGS
 
3570
elif test $ac_cv_prog_cc_g = yes; then
 
3571
  if test "$GCC" = yes; then
 
3572
    CFLAGS="-g -O2"
 
3573
  else
 
3574
    CFLAGS="-g"
 
3575
  fi
 
3576
else
 
3577
  if test "$GCC" = yes; then
 
3578
    CFLAGS="-O2"
 
3579
  else
 
3580
    CFLAGS=
 
3581
  fi
 
3582
fi
 
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3584
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3585
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
3586
  $as_echo_n "(cached) " >&6
 
3587
else
 
3588
  ac_cv_prog_cc_c89=no
 
3589
ac_save_CC=$CC
 
3590
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3591
/* end confdefs.h.  */
 
3592
#include <stdarg.h>
 
3593
#include <stdio.h>
 
3594
#include <sys/types.h>
 
3595
#include <sys/stat.h>
 
3596
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3597
struct buf { int x; };
 
3598
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3599
static char *e (p, i)
 
3600
     char **p;
 
3601
     int i;
 
3602
{
 
3603
  return p[i];
 
3604
}
 
3605
static char *f (char * (*g) (char **, int), char **p, ...)
 
3606
{
 
3607
  char *s;
 
3608
  va_list v;
 
3609
  va_start (v,p);
 
3610
  s = g (p, va_arg (v,int));
 
3611
  va_end (v);
 
3612
  return s;
 
3613
}
 
3614
 
 
3615
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3616
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3617
   These don't provoke an error unfortunately, instead are silently treated
 
3618
   as 'x'.  The following induces an error, until -std is added to get
 
3619
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3620
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3621
   that's true only with -std.  */
 
3622
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3623
 
 
3624
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3625
   inside strings and character constants.  */
 
3626
#define FOO(x) 'x'
 
3627
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3628
 
 
3629
int test (int i, double x);
 
3630
struct s1 {int (*f) (int a);};
 
3631
struct s2 {int (*f) (double a);};
 
3632
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3633
int argc;
 
3634
char **argv;
 
3635
int
 
3636
main ()
 
3637
{
 
3638
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3639
  ;
 
3640
  return 0;
 
3641
}
 
3642
_ACEOF
 
3643
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3644
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3645
do
 
3646
  CC="$ac_save_CC $ac_arg"
 
3647
  if ac_fn_c_try_compile "$LINENO"; then :
 
3648
  ac_cv_prog_cc_c89=$ac_arg
 
3649
fi
 
3650
rm -f core conftest.err conftest.$ac_objext
 
3651
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3652
done
 
3653
rm -f conftest.$ac_ext
 
3654
CC=$ac_save_CC
 
3655
 
 
3656
fi
 
3657
# AC_CACHE_VAL
 
3658
case "x$ac_cv_prog_cc_c89" in
 
3659
  x)
 
3660
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3661
$as_echo "none needed" >&6; } ;;
 
3662
  xno)
 
3663
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3664
$as_echo "unsupported" >&6; } ;;
 
3665
  *)
 
3666
    CC="$CC $ac_cv_prog_cc_c89"
 
3667
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3668
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3669
esac
 
3670
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3671
 
 
3672
fi
 
3673
 
 
3674
ac_ext=c
 
3675
ac_cpp='$CPP $CPPFLAGS'
 
3676
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3677
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3678
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3679
 
 
3680
ac_ext=c
 
3681
ac_cpp='$CPP $CPPFLAGS'
 
3682
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3683
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3684
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3686
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3687
# On Suns, sometimes $CPP names a directory.
 
3688
if test -n "$CPP" && test -d "$CPP"; then
 
3689
  CPP=
 
3690
fi
 
3691
if test -z "$CPP"; then
 
3692
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3693
  $as_echo_n "(cached) " >&6
 
3694
else
 
3695
      # Double quotes because CPP needs to be expanded
 
3696
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3697
    do
 
3698
      ac_preproc_ok=false
 
3699
for ac_c_preproc_warn_flag in '' yes
 
3700
do
 
3701
  # Use a header file that comes with gcc, so configuring glibc
 
3702
  # with a fresh cross-compiler works.
 
3703
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3704
  # <limits.h> exists even on freestanding compilers.
 
3705
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3706
  # not just through cpp. "Syntax error" is here to catch this case.
 
3707
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3708
/* end confdefs.h.  */
 
3709
#ifdef __STDC__
 
3710
# include <limits.h>
 
3711
#else
 
3712
# include <assert.h>
 
3713
#endif
 
3714
                     Syntax error
 
3715
_ACEOF
 
3716
if ac_fn_c_try_cpp "$LINENO"; then :
 
3717
 
 
3718
else
 
3719
  # Broken: fails on valid input.
 
3720
continue
 
3721
fi
 
3722
rm -f conftest.err conftest.i conftest.$ac_ext
 
3723
 
 
3724
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3725
  # can be detected and how.
 
3726
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3727
/* end confdefs.h.  */
 
3728
#include <ac_nonexistent.h>
 
3729
_ACEOF
 
3730
if ac_fn_c_try_cpp "$LINENO"; then :
 
3731
  # Broken: success on invalid input.
 
3732
continue
 
3733
else
 
3734
  # Passes both tests.
 
3735
ac_preproc_ok=:
 
3736
break
 
3737
fi
 
3738
rm -f conftest.err conftest.i conftest.$ac_ext
 
3739
 
 
3740
done
 
3741
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3742
rm -f conftest.i conftest.err conftest.$ac_ext
 
3743
if $ac_preproc_ok; then :
 
3744
  break
 
3745
fi
 
3746
 
 
3747
    done
 
3748
    ac_cv_prog_CPP=$CPP
 
3749
 
 
3750
fi
 
3751
  CPP=$ac_cv_prog_CPP
 
3752
else
 
3753
  ac_cv_prog_CPP=$CPP
 
3754
fi
 
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3756
$as_echo "$CPP" >&6; }
 
3757
ac_preproc_ok=false
 
3758
for ac_c_preproc_warn_flag in '' yes
 
3759
do
 
3760
  # Use a header file that comes with gcc, so configuring glibc
 
3761
  # with a fresh cross-compiler works.
 
3762
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3763
  # <limits.h> exists even on freestanding compilers.
 
3764
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3765
  # not just through cpp. "Syntax error" is here to catch this case.
 
3766
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3767
/* end confdefs.h.  */
 
3768
#ifdef __STDC__
 
3769
# include <limits.h>
 
3770
#else
 
3771
# include <assert.h>
 
3772
#endif
 
3773
                     Syntax error
 
3774
_ACEOF
 
3775
if ac_fn_c_try_cpp "$LINENO"; then :
 
3776
 
 
3777
else
 
3778
  # Broken: fails on valid input.
 
3779
continue
 
3780
fi
 
3781
rm -f conftest.err conftest.i conftest.$ac_ext
 
3782
 
 
3783
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3784
  # can be detected and how.
 
3785
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3786
/* end confdefs.h.  */
 
3787
#include <ac_nonexistent.h>
 
3788
_ACEOF
 
3789
if ac_fn_c_try_cpp "$LINENO"; then :
 
3790
  # Broken: success on invalid input.
 
3791
continue
 
3792
else
 
3793
  # Passes both tests.
 
3794
ac_preproc_ok=:
 
3795
break
 
3796
fi
 
3797
rm -f conftest.err conftest.i conftest.$ac_ext
 
3798
 
 
3799
done
 
3800
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3801
rm -f conftest.i conftest.err conftest.$ac_ext
 
3802
if $ac_preproc_ok; then :
 
3803
 
 
3804
else
 
3805
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3806
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3807
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
3808
See \`config.log' for more details" "$LINENO" 5 ; }
 
3809
fi
 
3810
 
 
3811
ac_ext=c
 
3812
ac_cpp='$CPP $CPPFLAGS'
 
3813
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3814
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3815
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3816
 
 
3817
ac_aux_dir=
 
3818
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
3819
  if test -f "$ac_dir/install-sh"; then
 
3820
    ac_aux_dir=$ac_dir
 
3821
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3822
    break
 
3823
  elif test -f "$ac_dir/install.sh"; then
 
3824
    ac_aux_dir=$ac_dir
 
3825
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3826
    break
 
3827
  elif test -f "$ac_dir/shtool"; then
 
3828
    ac_aux_dir=$ac_dir
 
3829
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3830
    break
 
3831
  fi
 
3832
done
 
3833
if test -z "$ac_aux_dir"; then
 
3834
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
3835
fi
 
3836
 
 
3837
# These three variables are undocumented and unsupported,
 
3838
# and are intended to be withdrawn in a future Autoconf release.
 
3839
# They can cause serious problems if a builder's source tree is in a directory
 
3840
# whose full name contains unusual characters.
 
3841
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3842
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3843
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3844
 
 
3845
 
 
3846
# Find a good install program.  We prefer a C program (faster),
 
3847
# so one script is as good as another.  But avoid the broken or
 
3848
# incompatible versions:
 
3849
# SysV /etc/install, /usr/sbin/install
 
3850
# SunOS /usr/etc/install
 
3851
# IRIX /sbin/install
 
3852
# AIX /bin/install
 
3853
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3854
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3855
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3856
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3857
# OS/2's system install, which has a completely different semantic
 
3858
# ./install, which can be erroneously created by make from ./install.sh.
 
3859
# Reject install programs that cannot install multiple files.
 
3860
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3861
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3862
if test -z "$INSTALL"; then
 
3863
if test "${ac_cv_path_install+set}" = set; then :
 
3864
  $as_echo_n "(cached) " >&6
 
3865
else
 
3866
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3867
for as_dir in $PATH
 
3868
do
 
3869
  IFS=$as_save_IFS
 
3870
  test -z "$as_dir" && as_dir=.
 
3871
    # Account for people who put trailing slashes in PATH elements.
 
3872
case $as_dir/ in #((
 
3873
  ./ | .// | /[cC]/* | \
 
3874
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3875
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3876
  /usr/ucb/* ) ;;
 
3877
  *)
 
3878
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3879
    # Don't use installbsd from OSF since it installs stuff as root
 
3880
    # by default.
 
3881
    for ac_prog in ginstall scoinst install; do
 
3882
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3883
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3884
          if test $ac_prog = install &&
 
3885
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3886
            # AIX install.  It has an incompatible calling convention.
 
3887
            :
 
3888
          elif test $ac_prog = install &&
 
3889
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3890
            # program-specific install script used by HP pwplus--don't use.
 
3891
            :
 
3892
          else
 
3893
            rm -rf conftest.one conftest.two conftest.dir
 
3894
            echo one > conftest.one
 
3895
            echo two > conftest.two
 
3896
            mkdir conftest.dir
 
3897
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3898
              test -s conftest.one && test -s conftest.two &&
 
3899
              test -s conftest.dir/conftest.one &&
 
3900
              test -s conftest.dir/conftest.two
 
3901
            then
 
3902
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3903
              break 3
 
3904
            fi
 
3905
          fi
 
3906
        fi
 
3907
      done
 
3908
    done
 
3909
    ;;
 
3910
esac
 
3911
 
 
3912
  done
 
3913
IFS=$as_save_IFS
 
3914
 
 
3915
rm -rf conftest.one conftest.two conftest.dir
 
3916
 
 
3917
fi
 
3918
  if test "${ac_cv_path_install+set}" = set; then
 
3919
    INSTALL=$ac_cv_path_install
 
3920
  else
 
3921
    # As a last resort, use the slow shell script.  Don't cache a
 
3922
    # value for INSTALL within a source directory, because that will
 
3923
    # break other packages using the cache if that directory is
 
3924
    # removed, or if the value is a relative name.
 
3925
    INSTALL=$ac_install_sh
 
3926
  fi
 
3927
fi
 
3928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3929
$as_echo "$INSTALL" >&6; }
 
3930
 
 
3931
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3932
# It thinks the first close brace ends the variable substitution.
 
3933
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3934
 
 
3935
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3936
 
 
3937
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3938
 
 
3939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
3940
$as_echo_n "checking whether ln -s works... " >&6; }
 
3941
LN_S=$as_ln_s
 
3942
if test "$LN_S" = "ln -s"; then
 
3943
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3944
$as_echo "yes" >&6; }
 
3945
else
 
3946
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
3947
$as_echo "no, using $LN_S" >&6; }
 
3948
fi
 
3949
 
 
3950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3951
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3952
set x ${MAKE-make}
 
3953
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3954
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
 
3955
  $as_echo_n "(cached) " >&6
 
3956
else
 
3957
  cat >conftest.make <<\_ACEOF
 
3958
SHELL = /bin/sh
 
3959
all:
 
3960
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3961
_ACEOF
 
3962
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
3963
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3964
  *@@@%%%=?*=@@@%%%*)
 
3965
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3966
  *)
 
3967
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3968
esac
 
3969
rm -f conftest.make
 
3970
fi
 
3971
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3972
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3973
$as_echo "yes" >&6; }
 
3974
  SET_MAKE=
 
3975
else
 
3976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3977
$as_echo "no" >&6; }
 
3978
  SET_MAKE="MAKE=${MAKE-make}"
 
3979
fi
 
3980
 
 
3981
if test -n "$ac_tool_prefix"; then
 
3982
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3983
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3985
$as_echo_n "checking for $ac_word... " >&6; }
 
3986
if test "${ac_cv_prog_RANLIB+set}" = set; then :
 
3987
  $as_echo_n "(cached) " >&6
 
3988
else
 
3989
  if test -n "$RANLIB"; then
 
3990
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3991
else
 
3992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3993
for as_dir in $PATH
 
3994
do
 
3995
  IFS=$as_save_IFS
 
3996
  test -z "$as_dir" && as_dir=.
 
3997
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3998
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3999
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
4000
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4001
    break 2
 
4002
  fi
 
4003
done
 
4004
  done
 
4005
IFS=$as_save_IFS
 
4006
 
 
4007
fi
 
4008
fi
 
4009
RANLIB=$ac_cv_prog_RANLIB
 
4010
if test -n "$RANLIB"; then
 
4011
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
4012
$as_echo "$RANLIB" >&6; }
 
4013
else
 
4014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4015
$as_echo "no" >&6; }
 
4016
fi
 
4017
 
 
4018
 
 
4019
fi
 
4020
if test -z "$ac_cv_prog_RANLIB"; then
 
4021
  ac_ct_RANLIB=$RANLIB
 
4022
  # Extract the first word of "ranlib", so it can be a program name with args.
 
4023
set dummy ranlib; ac_word=$2
 
4024
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4025
$as_echo_n "checking for $ac_word... " >&6; }
 
4026
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
 
4027
  $as_echo_n "(cached) " >&6
 
4028
else
 
4029
  if test -n "$ac_ct_RANLIB"; then
 
4030
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
4031
else
 
4032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4033
for as_dir in $PATH
 
4034
do
 
4035
  IFS=$as_save_IFS
 
4036
  test -z "$as_dir" && as_dir=.
 
4037
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4038
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4039
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
4040
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4041
    break 2
 
4042
  fi
 
4043
done
 
4044
  done
 
4045
IFS=$as_save_IFS
 
4046
 
 
4047
fi
 
4048
fi
 
4049
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
4050
if test -n "$ac_ct_RANLIB"; then
 
4051
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
4052
$as_echo "$ac_ct_RANLIB" >&6; }
 
4053
else
 
4054
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4055
$as_echo "no" >&6; }
 
4056
fi
 
4057
 
 
4058
  if test "x$ac_ct_RANLIB" = x; then
 
4059
    RANLIB=":"
 
4060
  else
 
4061
    case $cross_compiling:$ac_tool_warned in
 
4062
yes:)
 
4063
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4064
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4065
ac_tool_warned=yes ;;
 
4066
esac
 
4067
    RANLIB=$ac_ct_RANLIB
 
4068
  fi
 
4069
else
 
4070
  RANLIB="$ac_cv_prog_RANLIB"
 
4071
fi
 
4072
 
 
4073
for ac_prog in perl
 
4074
do
 
4075
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4076
set dummy $ac_prog; ac_word=$2
 
4077
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4078
$as_echo_n "checking for $ac_word... " >&6; }
 
4079
if test "${ac_cv_path_PERL+set}" = set; then :
 
4080
  $as_echo_n "(cached) " >&6
 
4081
else
 
4082
  case $PERL in
 
4083
  [\\/]* | ?:[\\/]*)
 
4084
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
4085
  ;;
 
4086
  *)
 
4087
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4088
for as_dir in $PATH
 
4089
do
 
4090
  IFS=$as_save_IFS
 
4091
  test -z "$as_dir" && as_dir=.
 
4092
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4093
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4094
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
4095
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4096
    break 2
 
4097
  fi
 
4098
done
 
4099
  done
 
4100
IFS=$as_save_IFS
 
4101
 
 
4102
  ;;
 
4103
esac
 
4104
fi
 
4105
PERL=$ac_cv_path_PERL
 
4106
if test -n "$PERL"; then
 
4107
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 
4108
$as_echo "$PERL" >&6; }
 
4109
else
 
4110
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4111
$as_echo "no" >&6; }
 
4112
fi
 
4113
 
 
4114
 
 
4115
  test -n "$PERL" && break
 
4116
done
 
4117
test -n "$PERL" || PERL="/usr/local/bin/perl"
 
4118
 
 
4119
for ac_prog in nkf
 
4120
do
 
4121
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4122
set dummy $ac_prog; ac_word=$2
 
4123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4124
$as_echo_n "checking for $ac_word... " >&6; }
 
4125
if test "${ac_cv_path_NKF+set}" = set; then :
 
4126
  $as_echo_n "(cached) " >&6
 
4127
else
 
4128
  case $NKF in
 
4129
  [\\/]* | ?:[\\/]*)
 
4130
  ac_cv_path_NKF="$NKF" # Let the user override the test with a path.
 
4131
  ;;
 
4132
  *)
 
4133
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4134
for as_dir in $PATH
 
4135
do
 
4136
  IFS=$as_save_IFS
 
4137
  test -z "$as_dir" && as_dir=.
 
4138
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4140
    ac_cv_path_NKF="$as_dir/$ac_word$ac_exec_ext"
 
4141
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4142
    break 2
 
4143
  fi
 
4144
done
 
4145
  done
 
4146
IFS=$as_save_IFS
 
4147
 
 
4148
  ;;
 
4149
esac
 
4150
fi
 
4151
NKF=$ac_cv_path_NKF
 
4152
if test -n "$NKF"; then
 
4153
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NKF" >&5
 
4154
$as_echo "$NKF" >&6; }
 
4155
else
 
4156
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4157
$as_echo "no" >&6; }
 
4158
fi
 
4159
 
 
4160
 
 
4161
  test -n "$NKF" && break
 
4162
done
 
4163
test -n "$NKF" || NKF="/usr/local/bin/nkf"
 
4164
 
 
4165
for ac_prog in man
 
4166
do
 
4167
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4168
set dummy $ac_prog; ac_word=$2
 
4169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4170
$as_echo_n "checking for $ac_word... " >&6; }
 
4171
if test "${ac_cv_path_MAN+set}" = set; then :
 
4172
  $as_echo_n "(cached) " >&6
 
4173
else
 
4174
  case $MAN in
 
4175
  [\\/]* | ?:[\\/]*)
 
4176
  ac_cv_path_MAN="$MAN" # Let the user override the test with a path.
 
4177
  ;;
 
4178
  *)
 
4179
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4180
for as_dir in $PATH
 
4181
do
 
4182
  IFS=$as_save_IFS
 
4183
  test -z "$as_dir" && as_dir=.
 
4184
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4185
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4186
    ac_cv_path_MAN="$as_dir/$ac_word$ac_exec_ext"
 
4187
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4188
    break 2
 
4189
  fi
 
4190
done
 
4191
  done
 
4192
IFS=$as_save_IFS
 
4193
 
 
4194
  ;;
 
4195
esac
 
4196
fi
 
4197
MAN=$ac_cv_path_MAN
 
4198
if test -n "$MAN"; then
 
4199
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN" >&5
 
4200
$as_echo "$MAN" >&6; }
 
4201
else
 
4202
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4203
$as_echo "no" >&6; }
 
4204
fi
 
4205
 
 
4206
 
 
4207
  test -n "$MAN" && break
 
4208
done
 
4209
test -n "$MAN" || MAN="/usr/bin/man"
 
4210
 
 
4211
# Make sure we can run config.sub.
 
4212
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4213
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
4214
 
 
4215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
4216
$as_echo_n "checking build system type... " >&6; }
 
4217
if test "${ac_cv_build+set}" = set; then :
 
4218
  $as_echo_n "(cached) " >&6
 
4219
else
 
4220
  ac_build_alias=$build_alias
 
4221
test "x$ac_build_alias" = x &&
 
4222
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4223
test "x$ac_build_alias" = x &&
 
4224
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
4225
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4226
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
4227
 
 
4228
fi
 
4229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
4230
$as_echo "$ac_cv_build" >&6; }
 
4231
case $ac_cv_build in
 
4232
*-*-*) ;;
 
4233
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
 
4234
esac
 
4235
build=$ac_cv_build
 
4236
ac_save_IFS=$IFS; IFS='-'
 
4237
set x $ac_cv_build
 
4238
shift
 
4239
build_cpu=$1
 
4240
build_vendor=$2
 
4241
shift; shift
 
4242
# Remember, the first character of IFS is used to create $*,
 
4243
# except with old shells:
 
4244
build_os=$*
 
4245
IFS=$ac_save_IFS
 
4246
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4247
 
 
4248
 
 
4249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
4250
$as_echo_n "checking host system type... " >&6; }
 
4251
if test "${ac_cv_host+set}" = set; then :
 
4252
  $as_echo_n "(cached) " >&6
 
4253
else
 
4254
  if test "x$host_alias" = x; then
 
4255
  ac_cv_host=$ac_cv_build
 
4256
else
 
4257
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4258
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
4259
fi
 
4260
 
 
4261
fi
 
4262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
4263
$as_echo "$ac_cv_host" >&6; }
 
4264
case $ac_cv_host in
 
4265
*-*-*) ;;
 
4266
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
 
4267
esac
 
4268
host=$ac_cv_host
 
4269
ac_save_IFS=$IFS; IFS='-'
 
4270
set x $ac_cv_host
 
4271
shift
 
4272
host_cpu=$1
 
4273
host_vendor=$2
 
4274
shift; shift
 
4275
# Remember, the first character of IFS is used to create $*,
 
4276
# except with old shells:
 
4277
host_os=$*
 
4278
IFS=$ac_save_IFS
 
4279
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4280
 
 
4281
 
 
4282
 
 
4283
 
 
4284
 
 
4285
 
 
4286
AUXBIN_TARGETS=
 
4287
 
 
4288
 
 
4289
 
 
4290
W3M_TARGET=$target
 
4291
cat >>confdefs.h <<_ACEOF
 
4292
#define W3M_TARGET $W3M_TARGET
 
4293
_ACEOF
 
4294
 
 
4295
 
 
4296
 
 
4297
 
 
4298
 
 
4299
 
 
4300
 
 
4301
 
 
4302
 
 
4303
 
 
4304
 
 
4305
WCTARGET=""; WCCFLAGS=""; wcinclude=""; wclib=""
 
4306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if m17n support is enabled" >&5
 
4307
$as_echo_n "checking if m17n support is enabled... " >&6; }
 
4308
# Check whether --enable-m17n was given.
 
4309
if test "${enable_m17n+set}" = set; then :
 
4310
  enableval=$enable_m17n;
 
4311
else
 
4312
  enable_m17n="yes"
 
4313
fi
 
4314
 
 
4315
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_m17n" >&5
 
4316
$as_echo "$enable_m17n" >&6; }
 
4317
if test x"$enable_m17n" = xno; then
 
4318
  w3m_lang="en"
 
4319
  WCTARGET=""
 
4320
  WCCFLAGS=""
 
4321
  wcinclude=""
 
4322
  wclib=""
 
4323
  display_charset='WC_CES_US_ASCII'
 
4324
  system_charset='WC_CES_US_ASCII'
 
4325
  document_charset='WC_CES_US_ASCII'
 
4326
else
 
4327
 $as_echo "#define USE_M17N 1" >>confdefs.h
 
4328
 
 
4329
 WCTARGET="libwc/libwc.a"
 
4330
 WCCFLAGS='-I$(srcdir) -I$(srcdir)/..'
 
4331
 wcinclude='-I$(srcdir)/libwc'
 
4332
 wclib="-L./libwc -lwc"
 
4333
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unicode support is enabled" >&5
 
4334
$as_echo_n "checking if unicode support is enabled... " >&6; }
 
4335
 # Check whether --enable-unicode was given.
 
4336
if test "${enable_unicode+set}" = set; then :
 
4337
  enableval=$enable_unicode;
 
4338
else
 
4339
  enable_unicode="yes"
 
4340
fi
 
4341
 
 
4342
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unicode" >&5
 
4343
$as_echo "$enable_unicode" >&6; }
 
4344
 if test x"$enable_m17n" = xyes; then
 
4345
  charset=US-ASCII
 
4346
 else
 
4347
  charset=$enable_m17n
 
4348
 fi
 
4349
 if test x"$enable_unicode" = xyes; then
 
4350
    WCCFLAGS="-DUSE_UNICODE $WCCFLAGS"
 
4351
    if test x"$charset" = xUS-ASCII; then
 
4352
     charset=UTF-8
 
4353
    fi
 
4354
    $as_echo "#define USE_UNICODE 1" >>confdefs.h
 
4355
 
 
4356
 fi
 
4357
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if message l10n" >&5
 
4358
$as_echo_n "checking if message l10n... " >&6; }
 
4359
 # Check whether --enable-messagel10n was given.
 
4360
if test "${enable_messagel10n+set}" = set; then :
 
4361
  enableval=$enable_messagel10n;
 
4362
else
 
4363
  enable_messagel10n="no"
 
4364
fi
 
4365
 
 
4366
 if test x$enable_messagel10n = xyes; then
 
4367
  enable_messagel10n="ja";
 
4368
 fi
 
4369
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messagel10n" >&5
 
4370
$as_echo "$enable_messagel10n" >&6; }
 
4371
 if test x$enable_messagel10n = xno; then
 
4372
    :
 
4373
 else
 
4374
    POSUBST="\$(top_srcdir)/posubst"
 
4375
    POLANG="$enable_messagel10n"
 
4376
 fi
 
4377
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if japanese support is enabled" >&5
 
4378
$as_echo_n "checking if japanese support is enabled... " >&6; }
 
4379
 # Check whether --enable-japanese was given.
 
4380
if test "${enable_japanese+set}" = set; then :
 
4381
  enableval=$enable_japanese;
 
4382
else
 
4383
  enable_japanese="no"
 
4384
fi
 
4385
 
 
4386
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_japanese" >&5
 
4387
$as_echo "$enable_japanese" >&6; }
 
4388
 if test x"$enable_japanese" = xno; then
 
4389
   w3m_lang="en"
 
4390
 else
 
4391
   w3m_lang="ja"
 
4392
   case "$enable_japanese" in
 
4393
   E*) charset=EUC-JP;;
 
4394
   S*) charset=Shift_JIS;;
 
4395
   J*) charset=ISO-2022-JP;;
 
4396
   U*) charset=UTF-8;;
 
4397
   esac
 
4398
 fi
 
4399
 display_charset=$charset
 
4400
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which charset is used for display" >&5
 
4401
$as_echo_n "checking which charset is used for display... " >&6; }
 
4402
 
 
4403
# Check whether --with-charset was given.
 
4404
if test "${with_charset+set}" = set; then :
 
4405
  withval=$with_charset; test x"with_charset" = xyes || display_charset="$with_charset"
 
4406
fi
 
4407
 
 
4408
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $display_charset" >&5
 
4409
$as_echo "$display_charset" >&6; }
 
4410
 display_charset=`awk '$1 == "'$display_charset'" {print $2}' $srcdir/charset-list`
 
4411
 case "$display_charset" in
 
4412
   WC_CES_ISO_2022_JP*)
 
4413
     system_charset=WC_CES_EUC_JP
 
4414
     document_charset=WC_CES_EUC_JP
 
4415
     ;;
 
4416
   WC_CES_SHIFT_JIS)
 
4417
     system_charset=$display_charset
 
4418
     # for auto-detect
 
4419
     document_charset=WC_CES_EUC_JP
 
4420
     ;;
 
4421
   WC_CES_ISO_2022_CN|WC_CES_HZ_GB_2312)
 
4422
     system_charset=WC_CES_EUC_CN
 
4423
     document_charset=WC_CES_EUC_CN
 
4424
     ;;
 
4425
   WC_CES_BIG5)
 
4426
     system_charset=$display_charset
 
4427
     # for auto-detect
 
4428
     document_charset=WC_CES_EUC_TW
 
4429
     ;;
 
4430
  WC_CES_ISO_2022_KR)
 
4431
     system_charset=WC_CES_EUC_KR
 
4432
     document_charset=WC_CES_EUC_KR
 
4433
     ;;
 
4434
  *)
 
4435
     system_charset=$display_charset
 
4436
     document_charset=$display_charset
 
4437
     ;;
 
4438
 esac
 
4439
fi
 
4440
W3M_LANGDEF=`echo $w3m_lang | tr 'a-z' 'A-Z'`
 
4441
W3M_LANG=$W3M_LANGDEF
 
4442
cat >>confdefs.h <<_ACEOF
 
4443
#define W3M_LANG $W3M_LANG
 
4444
_ACEOF
 
4445
 
 
4446
cat >>confdefs.h <<_ACEOF
 
4447
#define WCTARGET "$WCTARGET"
 
4448
_ACEOF
 
4449
 
 
4450
cat >>confdefs.h <<_ACEOF
 
4451
#define WCCFLAGS "$WCCFLAGS"
 
4452
_ACEOF
 
4453
 
 
4454
CFLAGS="$CFLAGS $wcinclude"
 
4455
W3M_LIBS="$W3M_LIBS $wclib"
 
4456
cat >>confdefs.h <<_ACEOF
 
4457
#define DISPLAY_CHARSET $display_charset
 
4458
_ACEOF
 
4459
 
 
4460
cat >>confdefs.h <<_ACEOF
 
4461
#define SYSTEM_CHARSET $system_charset
 
4462
_ACEOF
 
4463
 
 
4464
cat >>confdefs.h <<_ACEOF
 
4465
#define DOCUMENT_CHARSET $document_charset
 
4466
_ACEOF
 
4467
 
 
4468
if test x$enable_messagel10n = xno; then
 
4469
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
4470
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
4471
if test -z "$MKDIR_P"; then
 
4472
  if test "${ac_cv_path_mkdir+set}" = set; then :
 
4473
  $as_echo_n "(cached) " >&6
 
4474
else
 
4475
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4476
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
4477
do
 
4478
  IFS=$as_save_IFS
 
4479
  test -z "$as_dir" && as_dir=.
 
4480
    for ac_prog in mkdir gmkdir; do
 
4481
         for ac_exec_ext in '' $ac_executable_extensions; do
 
4482
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
4483
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
4484
             'mkdir (GNU coreutils) '* | \
 
4485
             'mkdir (coreutils) '* | \
 
4486
             'mkdir (fileutils) '4.1*)
 
4487
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
4488
               break 3;;
 
4489
           esac
 
4490
         done
 
4491
       done
 
4492
  done
 
4493
IFS=$as_save_IFS
 
4494
 
 
4495
fi
 
4496
 
 
4497
  test -d ./--version && rmdir ./--version
 
4498
  if test "${ac_cv_path_mkdir+set}" = set; then
 
4499
    MKDIR_P="$ac_cv_path_mkdir -p"
 
4500
  else
 
4501
    # As a last resort, use the slow shell script.  Don't cache a
 
4502
    # value for MKDIR_P within a source directory, because that will
 
4503
    # break other packages using the cache if that directory is
 
4504
    # removed, or if the value is a relative name.
 
4505
    MKDIR_P="$ac_install_sh -d"
 
4506
  fi
 
4507
fi
 
4508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
4509
$as_echo "$MKDIR_P" >&6; }
 
4510
 
 
4511
mkdir_p="$MKDIR_P"
 
4512
case $mkdir_p in
 
4513
  [\\/$]* | ?:[\\/]*) ;;
 
4514
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
4515
esac
 
4516
 
 
4517
 
 
4518
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
 
4519
$as_echo_n "checking whether NLS is requested... " >&6; }
 
4520
    # Check whether --enable-nls was given.
 
4521
if test "${enable_nls+set}" = set; then :
 
4522
  enableval=$enable_nls; USE_NLS=$enableval
 
4523
else
 
4524
  USE_NLS=yes
 
4525
fi
 
4526
 
 
4527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
4528
$as_echo "$USE_NLS" >&6; }
 
4529
 
 
4530
 
 
4531
 
 
4532
 
 
4533
      GETTEXT_MACRO_VERSION=0.18
 
4534
 
 
4535
 
 
4536
 
 
4537
 
 
4538
# Prepare PATH_SEPARATOR.
 
4539
# The user is always right.
 
4540
if test "${PATH_SEPARATOR+set}" != set; then
 
4541
  echo "#! /bin/sh" >conf$$.sh
 
4542
  echo  "exit 0"   >>conf$$.sh
 
4543
  chmod +x conf$$.sh
 
4544
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
4545
    PATH_SEPARATOR=';'
 
4546
  else
 
4547
    PATH_SEPARATOR=:
 
4548
  fi
 
4549
  rm -f conf$$.sh
 
4550
fi
 
4551
 
 
4552
# Find out how to test for executable files. Don't use a zero-byte file,
 
4553
# as systems may use methods other than mode bits to determine executability.
 
4554
cat >conf$$.file <<_ASEOF
 
4555
#! /bin/sh
 
4556
exit 0
 
4557
_ASEOF
 
4558
chmod +x conf$$.file
 
4559
if test -x conf$$.file >/dev/null 2>&1; then
 
4560
  ac_executable_p="test -x"
 
4561
else
 
4562
  ac_executable_p="test -f"
 
4563
fi
 
4564
rm -f conf$$.file
 
4565
 
 
4566
# Extract the first word of "msgfmt", so it can be a program name with args.
 
4567
set dummy msgfmt; ac_word=$2
 
4568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4569
$as_echo_n "checking for $ac_word... " >&6; }
 
4570
if test "${ac_cv_path_MSGFMT+set}" = set; then :
 
4571
  $as_echo_n "(cached) " >&6
 
4572
else
 
4573
  case "$MSGFMT" in
 
4574
  [\\/]* | ?:[\\/]*)
 
4575
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
4576
    ;;
 
4577
  *)
 
4578
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
4579
    for ac_dir in $PATH; do
 
4580
      IFS="$ac_save_IFS"
 
4581
      test -z "$ac_dir" && ac_dir=.
 
4582
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4583
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
4584
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
4585
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
4586
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
4587
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
4588
            break 2
 
4589
          fi
 
4590
        fi
 
4591
      done
 
4592
    done
 
4593
    IFS="$ac_save_IFS"
 
4594
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
4595
    ;;
 
4596
esac
 
4597
fi
 
4598
MSGFMT="$ac_cv_path_MSGFMT"
 
4599
if test "$MSGFMT" != ":"; then
 
4600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
 
4601
$as_echo "$MSGFMT" >&6; }
 
4602
else
 
4603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4604
$as_echo "no" >&6; }
 
4605
fi
 
4606
 
 
4607
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
4608
set dummy gmsgfmt; ac_word=$2
 
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4610
$as_echo_n "checking for $ac_word... " >&6; }
 
4611
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
 
4612
  $as_echo_n "(cached) " >&6
 
4613
else
 
4614
  case $GMSGFMT in
 
4615
  [\\/]* | ?:[\\/]*)
 
4616
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
4617
  ;;
 
4618
  *)
 
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_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
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
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
4635
  ;;
 
4636
esac
 
4637
fi
 
4638
GMSGFMT=$ac_cv_path_GMSGFMT
 
4639
if test -n "$GMSGFMT"; then
 
4640
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
 
4641
$as_echo "$GMSGFMT" >&6; }
 
4642
else
 
4643
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4644
$as_echo "no" >&6; }
 
4645
fi
 
4646
 
 
4647
 
 
4648
 
 
4649
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
4650
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
4651
    *) MSGFMT_015=$MSGFMT ;;
 
4652
  esac
 
4653
 
 
4654
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
4655
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
4656
    *) GMSGFMT_015=$GMSGFMT ;;
 
4657
  esac
 
4658
 
 
4659
 
 
4660
 
 
4661
# Prepare PATH_SEPARATOR.
 
4662
# The user is always right.
 
4663
if test "${PATH_SEPARATOR+set}" != set; then
 
4664
  echo "#! /bin/sh" >conf$$.sh
 
4665
  echo  "exit 0"   >>conf$$.sh
 
4666
  chmod +x conf$$.sh
 
4667
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
4668
    PATH_SEPARATOR=';'
 
4669
  else
 
4670
    PATH_SEPARATOR=:
 
4671
  fi
 
4672
  rm -f conf$$.sh
 
4673
fi
 
4674
 
 
4675
# Find out how to test for executable files. Don't use a zero-byte file,
 
4676
# as systems may use methods other than mode bits to determine executability.
 
4677
cat >conf$$.file <<_ASEOF
 
4678
#! /bin/sh
 
4679
exit 0
 
4680
_ASEOF
 
4681
chmod +x conf$$.file
 
4682
if test -x conf$$.file >/dev/null 2>&1; then
 
4683
  ac_executable_p="test -x"
 
4684
else
 
4685
  ac_executable_p="test -f"
 
4686
fi
 
4687
rm -f conf$$.file
 
4688
 
 
4689
# Extract the first word of "xgettext", so it can be a program name with args.
 
4690
set dummy xgettext; ac_word=$2
 
4691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4692
$as_echo_n "checking for $ac_word... " >&6; }
 
4693
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
 
4694
  $as_echo_n "(cached) " >&6
 
4695
else
 
4696
  case "$XGETTEXT" in
 
4697
  [\\/]* | ?:[\\/]*)
 
4698
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
4699
    ;;
 
4700
  *)
 
4701
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
4702
    for ac_dir in $PATH; do
 
4703
      IFS="$ac_save_IFS"
 
4704
      test -z "$ac_dir" && ac_dir=.
 
4705
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4706
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
4707
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
4708
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
4709
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
4710
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
4711
            break 2
 
4712
          fi
 
4713
        fi
 
4714
      done
 
4715
    done
 
4716
    IFS="$ac_save_IFS"
 
4717
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
4718
    ;;
 
4719
esac
 
4720
fi
 
4721
XGETTEXT="$ac_cv_path_XGETTEXT"
 
4722
if test "$XGETTEXT" != ":"; then
 
4723
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
 
4724
$as_echo "$XGETTEXT" >&6; }
 
4725
else
 
4726
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4727
$as_echo "no" >&6; }
 
4728
fi
 
4729
 
 
4730
    rm -f messages.po
 
4731
 
 
4732
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
4733
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
4734
    *) XGETTEXT_015=$XGETTEXT ;;
 
4735
  esac
 
4736
 
 
4737
 
 
4738
 
 
4739
# Prepare PATH_SEPARATOR.
 
4740
# The user is always right.
 
4741
if test "${PATH_SEPARATOR+set}" != set; then
 
4742
  echo "#! /bin/sh" >conf$$.sh
 
4743
  echo  "exit 0"   >>conf$$.sh
 
4744
  chmod +x conf$$.sh
 
4745
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
4746
    PATH_SEPARATOR=';'
 
4747
  else
 
4748
    PATH_SEPARATOR=:
 
4749
  fi
 
4750
  rm -f conf$$.sh
 
4751
fi
 
4752
 
 
4753
# Find out how to test for executable files. Don't use a zero-byte file,
 
4754
# as systems may use methods other than mode bits to determine executability.
 
4755
cat >conf$$.file <<_ASEOF
 
4756
#! /bin/sh
 
4757
exit 0
 
4758
_ASEOF
 
4759
chmod +x conf$$.file
 
4760
if test -x conf$$.file >/dev/null 2>&1; then
 
4761
  ac_executable_p="test -x"
 
4762
else
 
4763
  ac_executable_p="test -f"
 
4764
fi
 
4765
rm -f conf$$.file
 
4766
 
 
4767
# Extract the first word of "msgmerge", so it can be a program name with args.
 
4768
set dummy msgmerge; ac_word=$2
 
4769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4770
$as_echo_n "checking for $ac_word... " >&6; }
 
4771
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
 
4772
  $as_echo_n "(cached) " >&6
 
4773
else
 
4774
  case "$MSGMERGE" in
 
4775
  [\\/]* | ?:[\\/]*)
 
4776
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
4777
    ;;
 
4778
  *)
 
4779
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
4780
    for ac_dir in $PATH; do
 
4781
      IFS="$ac_save_IFS"
 
4782
      test -z "$ac_dir" && ac_dir=.
 
4783
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4784
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
4785
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
4786
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
4787
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
4788
            break 2
 
4789
          fi
 
4790
        fi
 
4791
      done
 
4792
    done
 
4793
    IFS="$ac_save_IFS"
 
4794
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
4795
    ;;
 
4796
esac
 
4797
fi
 
4798
MSGMERGE="$ac_cv_path_MSGMERGE"
 
4799
if test "$MSGMERGE" != ":"; then
 
4800
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
 
4801
$as_echo "$MSGMERGE" >&6; }
 
4802
else
 
4803
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4804
$as_echo "no" >&6; }
 
4805
fi
 
4806
 
 
4807
 
 
4808
        test -n "$localedir" || localedir='${datadir}/locale'
 
4809
 
 
4810
 
 
4811
    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
 
4812
 
 
4813
 
 
4814
  ac_config_commands="$ac_config_commands po-directories"
 
4815
 
 
4816
 
 
4817
 
 
4818
      if test "X$prefix" = "XNONE"; then
 
4819
    acl_final_prefix="$ac_default_prefix"
 
4820
  else
 
4821
    acl_final_prefix="$prefix"
 
4822
  fi
 
4823
  if test "X$exec_prefix" = "XNONE"; then
 
4824
    acl_final_exec_prefix='${prefix}'
 
4825
  else
 
4826
    acl_final_exec_prefix="$exec_prefix"
 
4827
  fi
 
4828
  acl_save_prefix="$prefix"
 
4829
  prefix="$acl_final_prefix"
 
4830
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
4831
  prefix="$acl_save_prefix"
 
4832
 
 
4833
 
 
4834
# Check whether --with-gnu-ld was given.
 
4835
if test "${with_gnu_ld+set}" = set; then :
 
4836
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4837
else
 
4838
  with_gnu_ld=no
 
4839
fi
 
4840
 
 
4841
# Prepare PATH_SEPARATOR.
 
4842
# The user is always right.
 
4843
if test "${PATH_SEPARATOR+set}" != set; then
 
4844
  echo "#! /bin/sh" >conf$$.sh
 
4845
  echo  "exit 0"   >>conf$$.sh
 
4846
  chmod +x conf$$.sh
 
4847
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
4848
    PATH_SEPARATOR=';'
 
4849
  else
 
4850
    PATH_SEPARATOR=:
 
4851
  fi
 
4852
  rm -f conf$$.sh
 
4853
fi
 
4854
ac_prog=ld
 
4855
if test "$GCC" = yes; then
 
4856
  # Check if gcc -print-prog-name=ld gives a path.
 
4857
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
 
4858
$as_echo_n "checking for ld used by GCC... " >&6; }
 
4859
  case $host in
 
4860
  *-*-mingw*)
 
4861
    # gcc leaves a trailing carriage return which upsets mingw
 
4862
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4863
  *)
 
4864
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4865
  esac
 
4866
  case $ac_prog in
 
4867
    # Accept absolute paths.
 
4868
    [\\/]* | [A-Za-z]:[\\/]*)
 
4869
      re_direlt='/[^/][^/]*/\.\./'
 
4870
      # Canonicalize the path of ld
 
4871
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
4872
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4873
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
4874
      done
 
4875
      test -z "$LD" && LD="$ac_prog"
 
4876
      ;;
 
4877
  "")
 
4878
    # If it fails, then pretend we aren't using GCC.
 
4879
    ac_prog=ld
 
4880
    ;;
 
4881
  *)
 
4882
    # If it is relative, then search for the first ld in PATH.
 
4883
    with_gnu_ld=unknown
 
4884
    ;;
 
4885
  esac
 
4886
elif test "$with_gnu_ld" = yes; then
 
4887
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4888
$as_echo_n "checking for GNU ld... " >&6; }
 
4889
else
 
4890
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4891
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4892
fi
 
4893
if test "${acl_cv_path_LD+set}" = set; then :
 
4894
  $as_echo_n "(cached) " >&6
 
4895
else
 
4896
  if test -z "$LD"; then
 
4897
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
4898
  for ac_dir in $PATH; do
 
4899
    test -z "$ac_dir" && ac_dir=.
 
4900
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4901
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
4902
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4903
      # but apparently some GNU ld's only accept -v.
 
4904
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4905
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
4906
      *GNU* | *'with BFD'*)
 
4907
        test "$with_gnu_ld" != no && break ;;
 
4908
      *)
 
4909
        test "$with_gnu_ld" != yes && break ;;
 
4910
      esac
 
4911
    fi
 
4912
  done
 
4913
  IFS="$ac_save_ifs"
 
4914
else
 
4915
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
4916
fi
 
4917
fi
 
4918
 
 
4919
LD="$acl_cv_path_LD"
 
4920
if test -n "$LD"; then
 
4921
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4922
$as_echo "$LD" >&6; }
 
4923
else
 
4924
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4925
$as_echo "no" >&6; }
 
4926
fi
 
4927
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4929
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4930
if test "${acl_cv_prog_gnu_ld+set}" = set; then :
 
4931
  $as_echo_n "(cached) " >&6
 
4932
else
 
4933
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4934
case `$LD -v 2>&1 </dev/null` in
 
4935
*GNU* | *'with BFD'*)
 
4936
  acl_cv_prog_gnu_ld=yes ;;
 
4937
*)
 
4938
  acl_cv_prog_gnu_ld=no ;;
 
4939
esac
 
4940
fi
 
4941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
 
4942
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
 
4943
with_gnu_ld=$acl_cv_prog_gnu_ld
 
4944
 
 
4945
 
 
4946
 
 
4947
 
 
4948
                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
 
4949
$as_echo_n "checking for shared library run path origin... " >&6; }
 
4950
if test "${acl_cv_rpath+set}" = set; then :
 
4951
  $as_echo_n "(cached) " >&6
 
4952
else
 
4953
 
 
4954
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
4955
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
4956
    . ./conftest.sh
 
4957
    rm -f ./conftest.sh
 
4958
    acl_cv_rpath=done
 
4959
 
 
4960
fi
 
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
 
4962
$as_echo "$acl_cv_rpath" >&6; }
 
4963
  wl="$acl_cv_wl"
 
4964
  acl_libext="$acl_cv_libext"
 
4965
  acl_shlibext="$acl_cv_shlibext"
 
4966
  acl_libname_spec="$acl_cv_libname_spec"
 
4967
  acl_library_names_spec="$acl_cv_library_names_spec"
 
4968
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
4969
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
4970
  acl_hardcode_direct="$acl_cv_hardcode_direct"
 
4971
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
4972
    # Check whether --enable-rpath was given.
 
4973
if test "${enable_rpath+set}" = set; then :
 
4974
  enableval=$enable_rpath; :
 
4975
else
 
4976
  enable_rpath=yes
 
4977
fi
 
4978
 
 
4979
 
 
4980
 
 
4981
 
 
4982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4983
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4984
if test "${ac_cv_path_GREP+set}" = set; then :
 
4985
  $as_echo_n "(cached) " >&6
 
4986
else
 
4987
  if test -z "$GREP"; then
 
4988
  ac_path_GREP_found=false
 
4989
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4990
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4991
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4992
do
 
4993
  IFS=$as_save_IFS
 
4994
  test -z "$as_dir" && as_dir=.
 
4995
    for ac_prog in grep ggrep; do
 
4996
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4997
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4998
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4999
# Check for GNU ac_path_GREP and select it if it is found.
 
5000
  # Check for GNU $ac_path_GREP
 
5001
case `"$ac_path_GREP" --version 2>&1` in
 
5002
*GNU*)
 
5003
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
5004
*)
 
5005
  ac_count=0
 
5006
  $as_echo_n 0123456789 >"conftest.in"
 
5007
  while :
 
5008
  do
 
5009
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5010
    mv "conftest.tmp" "conftest.in"
 
5011
    cp "conftest.in" "conftest.nl"
 
5012
    $as_echo 'GREP' >> "conftest.nl"
 
5013
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5014
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5015
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5016
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5017
      # Best one so far, save it but keep looking for a better one
 
5018
      ac_cv_path_GREP="$ac_path_GREP"
 
5019
      ac_path_GREP_max=$ac_count
 
5020
    fi
 
5021
    # 10*(2^10) chars as input seems more than enough
 
5022
    test $ac_count -gt 10 && break
 
5023
  done
 
5024
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5025
esac
 
5026
 
 
5027
      $ac_path_GREP_found && break 3
 
5028
    done
 
5029
  done
 
5030
  done
 
5031
IFS=$as_save_IFS
 
5032
  if test -z "$ac_cv_path_GREP"; then
 
5033
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5034
  fi
 
5035
else
 
5036
  ac_cv_path_GREP=$GREP
 
5037
fi
 
5038
 
 
5039
fi
 
5040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
5041
$as_echo "$ac_cv_path_GREP" >&6; }
 
5042
 GREP="$ac_cv_path_GREP"
 
5043
 
 
5044
 
 
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
5046
$as_echo_n "checking for egrep... " >&6; }
 
5047
if test "${ac_cv_path_EGREP+set}" = set; then :
 
5048
  $as_echo_n "(cached) " >&6
 
5049
else
 
5050
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5051
   then ac_cv_path_EGREP="$GREP -E"
 
5052
   else
 
5053
     if test -z "$EGREP"; then
 
5054
  ac_path_EGREP_found=false
 
5055
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5056
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5057
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5058
do
 
5059
  IFS=$as_save_IFS
 
5060
  test -z "$as_dir" && as_dir=.
 
5061
    for ac_prog in egrep; do
 
5062
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5063
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5064
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
5065
# Check for GNU ac_path_EGREP and select it if it is found.
 
5066
  # Check for GNU $ac_path_EGREP
 
5067
case `"$ac_path_EGREP" --version 2>&1` in
 
5068
*GNU*)
 
5069
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5070
*)
 
5071
  ac_count=0
 
5072
  $as_echo_n 0123456789 >"conftest.in"
 
5073
  while :
 
5074
  do
 
5075
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5076
    mv "conftest.tmp" "conftest.in"
 
5077
    cp "conftest.in" "conftest.nl"
 
5078
    $as_echo 'EGREP' >> "conftest.nl"
 
5079
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5080
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5081
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
5082
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5083
      # Best one so far, save it but keep looking for a better one
 
5084
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5085
      ac_path_EGREP_max=$ac_count
 
5086
    fi
 
5087
    # 10*(2^10) chars as input seems more than enough
 
5088
    test $ac_count -gt 10 && break
 
5089
  done
 
5090
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5091
esac
 
5092
 
 
5093
      $ac_path_EGREP_found && break 3
 
5094
    done
 
5095
  done
 
5096
  done
 
5097
IFS=$as_save_IFS
 
5098
  if test -z "$ac_cv_path_EGREP"; then
 
5099
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
5100
  fi
 
5101
else
 
5102
  ac_cv_path_EGREP=$EGREP
 
5103
fi
 
5104
 
 
5105
   fi
 
5106
fi
 
5107
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
5108
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5109
 EGREP="$ac_cv_path_EGREP"
 
5110
 
 
5111
 
 
5112
 
 
5113
 
 
5114
  acl_libdirstem=lib
 
5115
  acl_libdirstem2=
 
5116
  case "$host_os" in
 
5117
    solaris*)
 
5118
                                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
 
5119
$as_echo_n "checking for 64-bit host... " >&6; }
 
5120
if test "${gl_cv_solaris_64bit+set}" = set; then :
 
5121
  $as_echo_n "(cached) " >&6
 
5122
else
 
5123
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5124
/* end confdefs.h.  */
 
5125
 
 
5126
#ifdef _LP64
 
5127
sixtyfour bits
 
5128
#endif
 
5129
 
 
5130
_ACEOF
 
5131
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5132
  $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
 
5133
  gl_cv_solaris_64bit=yes
 
5134
else
 
5135
  gl_cv_solaris_64bit=no
 
5136
fi
 
5137
rm -f conftest*
 
5138
 
 
5139
 
 
5140
fi
 
5141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
 
5142
$as_echo "$gl_cv_solaris_64bit" >&6; }
 
5143
      if test $gl_cv_solaris_64bit = yes; then
 
5144
        acl_libdirstem=lib/64
 
5145
        case "$host_cpu" in
 
5146
          sparc*)        acl_libdirstem2=lib/sparcv9 ;;
 
5147
          i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
 
5148
        esac
 
5149
      fi
 
5150
      ;;
 
5151
    *)
 
5152
      searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
5153
      if test -n "$searchpath"; then
 
5154
        acl_save_IFS="${IFS=    }"; IFS=":"
 
5155
        for searchdir in $searchpath; do
 
5156
          if test -d "$searchdir"; then
 
5157
            case "$searchdir" in
 
5158
              */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
5159
              */../ | */.. )
 
5160
                # Better ignore directories of this form. They are misleading.
 
5161
                ;;
 
5162
              *) searchdir=`cd "$searchdir" && pwd`
 
5163
                 case "$searchdir" in
 
5164
                   */lib64 ) acl_libdirstem=lib64 ;;
 
5165
                 esac ;;
 
5166
            esac
 
5167
          fi
 
5168
        done
 
5169
        IFS="$acl_save_IFS"
 
5170
      fi
 
5171
      ;;
 
5172
  esac
 
5173
  test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
 
5174
 
 
5175
 
 
5176
 
 
5177
 
 
5178
 
 
5179
 
 
5180
 
 
5181
 
 
5182
 
 
5183
 
 
5184
 
 
5185
 
 
5186
    use_additional=yes
 
5187
 
 
5188
  acl_save_prefix="$prefix"
 
5189
  prefix="$acl_final_prefix"
 
5190
  acl_save_exec_prefix="$exec_prefix"
 
5191
  exec_prefix="$acl_final_exec_prefix"
 
5192
 
 
5193
    eval additional_includedir=\"$includedir\"
 
5194
    eval additional_libdir=\"$libdir\"
 
5195
 
 
5196
  exec_prefix="$acl_save_exec_prefix"
 
5197
  prefix="$acl_save_prefix"
 
5198
 
 
5199
 
 
5200
# Check whether --with-libiconv-prefix was given.
 
5201
if test "${with_libiconv_prefix+set}" = set; then :
 
5202
  withval=$with_libiconv_prefix;
 
5203
    if test "X$withval" = "Xno"; then
 
5204
      use_additional=no
 
5205
    else
 
5206
      if test "X$withval" = "X"; then
 
5207
 
 
5208
  acl_save_prefix="$prefix"
 
5209
  prefix="$acl_final_prefix"
 
5210
  acl_save_exec_prefix="$exec_prefix"
 
5211
  exec_prefix="$acl_final_exec_prefix"
 
5212
 
 
5213
          eval additional_includedir=\"$includedir\"
 
5214
          eval additional_libdir=\"$libdir\"
 
5215
 
 
5216
  exec_prefix="$acl_save_exec_prefix"
 
5217
  prefix="$acl_save_prefix"
 
5218
 
 
5219
      else
 
5220
        additional_includedir="$withval/include"
 
5221
        additional_libdir="$withval/$acl_libdirstem"
 
5222
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
5223
           && ! test -d "$withval/$acl_libdirstem"; then
 
5224
          additional_libdir="$withval/$acl_libdirstem2"
 
5225
        fi
 
5226
      fi
 
5227
    fi
 
5228
 
 
5229
fi
 
5230
 
 
5231
      LIBICONV=
 
5232
  LTLIBICONV=
 
5233
  INCICONV=
 
5234
  LIBICONV_PREFIX=
 
5235
      HAVE_LIBICONV=
 
5236
  rpathdirs=
 
5237
  ltrpathdirs=
 
5238
  names_already_handled=
 
5239
  names_next_round='iconv '
 
5240
  while test -n "$names_next_round"; do
 
5241
    names_this_round="$names_next_round"
 
5242
    names_next_round=
 
5243
    for name in $names_this_round; do
 
5244
      already_handled=
 
5245
      for n in $names_already_handled; do
 
5246
        if test "$n" = "$name"; then
 
5247
          already_handled=yes
 
5248
          break
 
5249
        fi
 
5250
      done
 
5251
      if test -z "$already_handled"; then
 
5252
        names_already_handled="$names_already_handled $name"
 
5253
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
5254
        eval value=\"\$HAVE_LIB$uppername\"
 
5255
        if test -n "$value"; then
 
5256
          if test "$value" = yes; then
 
5257
            eval value=\"\$LIB$uppername\"
 
5258
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
5259
            eval value=\"\$LTLIB$uppername\"
 
5260
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
5261
          else
 
5262
                                    :
 
5263
          fi
 
5264
        else
 
5265
                              found_dir=
 
5266
          found_la=
 
5267
          found_so=
 
5268
          found_a=
 
5269
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
5270
          if test -n "$acl_shlibext"; then
 
5271
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
5272
          else
 
5273
            shrext=
 
5274
          fi
 
5275
          if test $use_additional = yes; then
 
5276
            dir="$additional_libdir"
 
5277
                                    if test -n "$acl_shlibext"; then
 
5278
              if test -f "$dir/$libname$shrext"; then
 
5279
                found_dir="$dir"
 
5280
                found_so="$dir/$libname$shrext"
 
5281
              else
 
5282
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
5283
                  ver=`(cd "$dir" && \
 
5284
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
5285
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
5286
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
5287
                        | sed 1q ) 2>/dev/null`
 
5288
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
5289
                    found_dir="$dir"
 
5290
                    found_so="$dir/$libname$shrext.$ver"
 
5291
                  fi
 
5292
                else
 
5293
                  eval library_names=\"$acl_library_names_spec\"
 
5294
                  for f in $library_names; do
 
5295
                    if test -f "$dir/$f"; then
 
5296
                      found_dir="$dir"
 
5297
                      found_so="$dir/$f"
 
5298
                      break
 
5299
                    fi
 
5300
                  done
 
5301
                fi
 
5302
              fi
 
5303
            fi
 
5304
                        if test "X$found_dir" = "X"; then
 
5305
              if test -f "$dir/$libname.$acl_libext"; then
 
5306
                found_dir="$dir"
 
5307
                found_a="$dir/$libname.$acl_libext"
 
5308
              fi
 
5309
            fi
 
5310
            if test "X$found_dir" != "X"; then
 
5311
              if test -f "$dir/$libname.la"; then
 
5312
                found_la="$dir/$libname.la"
 
5313
              fi
 
5314
            fi
 
5315
          fi
 
5316
          if test "X$found_dir" = "X"; then
 
5317
            for x in $LDFLAGS $LTLIBICONV; do
 
5318
 
 
5319
  acl_save_prefix="$prefix"
 
5320
  prefix="$acl_final_prefix"
 
5321
  acl_save_exec_prefix="$exec_prefix"
 
5322
  exec_prefix="$acl_final_exec_prefix"
 
5323
  eval x=\"$x\"
 
5324
  exec_prefix="$acl_save_exec_prefix"
 
5325
  prefix="$acl_save_prefix"
 
5326
 
 
5327
              case "$x" in
 
5328
                -L*)
 
5329
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
5330
                                    if test -n "$acl_shlibext"; then
 
5331
                    if test -f "$dir/$libname$shrext"; then
 
5332
                      found_dir="$dir"
 
5333
                      found_so="$dir/$libname$shrext"
 
5334
                    else
 
5335
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
5336
                        ver=`(cd "$dir" && \
 
5337
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
5338
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
5339
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
5340
                              | sed 1q ) 2>/dev/null`
 
5341
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
5342
                          found_dir="$dir"
 
5343
                          found_so="$dir/$libname$shrext.$ver"
 
5344
                        fi
 
5345
                      else
 
5346
                        eval library_names=\"$acl_library_names_spec\"
 
5347
                        for f in $library_names; do
 
5348
                          if test -f "$dir/$f"; then
 
5349
                            found_dir="$dir"
 
5350
                            found_so="$dir/$f"
 
5351
                            break
 
5352
                          fi
 
5353
                        done
 
5354
                      fi
 
5355
                    fi
 
5356
                  fi
 
5357
                                    if test "X$found_dir" = "X"; then
 
5358
                    if test -f "$dir/$libname.$acl_libext"; then
 
5359
                      found_dir="$dir"
 
5360
                      found_a="$dir/$libname.$acl_libext"
 
5361
                    fi
 
5362
                  fi
 
5363
                  if test "X$found_dir" != "X"; then
 
5364
                    if test -f "$dir/$libname.la"; then
 
5365
                      found_la="$dir/$libname.la"
 
5366
                    fi
 
5367
                  fi
 
5368
                  ;;
 
5369
              esac
 
5370
              if test "X$found_dir" != "X"; then
 
5371
                break
 
5372
              fi
 
5373
            done
 
5374
          fi
 
5375
          if test "X$found_dir" != "X"; then
 
5376
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
5377
            if test "X$found_so" != "X"; then
 
5378
                                                        if test "$enable_rpath" = no \
 
5379
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
5380
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
5381
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5382
              else
 
5383
                                                                                haveit=
 
5384
                for x in $ltrpathdirs; do
 
5385
                  if test "X$x" = "X$found_dir"; then
 
5386
                    haveit=yes
 
5387
                    break
 
5388
                  fi
 
5389
                done
 
5390
                if test -z "$haveit"; then
 
5391
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
5392
                fi
 
5393
                                if test "$acl_hardcode_direct" = yes; then
 
5394
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5395
                else
 
5396
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
5397
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5398
                                                            haveit=
 
5399
                    for x in $rpathdirs; do
 
5400
                      if test "X$x" = "X$found_dir"; then
 
5401
                        haveit=yes
 
5402
                        break
 
5403
                      fi
 
5404
                    done
 
5405
                    if test -z "$haveit"; then
 
5406
                      rpathdirs="$rpathdirs $found_dir"
 
5407
                    fi
 
5408
                  else
 
5409
                                                                                haveit=
 
5410
                    for x in $LDFLAGS $LIBICONV; do
 
5411
 
 
5412
  acl_save_prefix="$prefix"
 
5413
  prefix="$acl_final_prefix"
 
5414
  acl_save_exec_prefix="$exec_prefix"
 
5415
  exec_prefix="$acl_final_exec_prefix"
 
5416
  eval x=\"$x\"
 
5417
  exec_prefix="$acl_save_exec_prefix"
 
5418
  prefix="$acl_save_prefix"
 
5419
 
 
5420
                      if test "X$x" = "X-L$found_dir"; then
 
5421
                        haveit=yes
 
5422
                        break
 
5423
                      fi
 
5424
                    done
 
5425
                    if test -z "$haveit"; then
 
5426
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
5427
                    fi
 
5428
                    if test "$acl_hardcode_minus_L" != no; then
 
5429
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
5430
                    else
 
5431
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
5432
                    fi
 
5433
                  fi
 
5434
                fi
 
5435
              fi
 
5436
            else
 
5437
              if test "X$found_a" != "X"; then
 
5438
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
5439
              else
 
5440
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
5441
              fi
 
5442
            fi
 
5443
                        additional_includedir=
 
5444
            case "$found_dir" in
 
5445
              */$acl_libdirstem | */$acl_libdirstem/)
 
5446
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
5447
                if test "$name" = 'iconv'; then
 
5448
                  LIBICONV_PREFIX="$basedir"
 
5449
                fi
 
5450
                additional_includedir="$basedir/include"
 
5451
                ;;
 
5452
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
5453
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
5454
                if test "$name" = 'iconv'; then
 
5455
                  LIBICONV_PREFIX="$basedir"
 
5456
                fi
 
5457
                additional_includedir="$basedir/include"
 
5458
                ;;
 
5459
            esac
 
5460
            if test "X$additional_includedir" != "X"; then
 
5461
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
5462
                haveit=
 
5463
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
5464
                  if test -n "$GCC"; then
 
5465
                    case $host_os in
 
5466
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
5467
                    esac
 
5468
                  fi
 
5469
                fi
 
5470
                if test -z "$haveit"; then
 
5471
                  for x in $CPPFLAGS $INCICONV; do
 
5472
 
 
5473
  acl_save_prefix="$prefix"
 
5474
  prefix="$acl_final_prefix"
 
5475
  acl_save_exec_prefix="$exec_prefix"
 
5476
  exec_prefix="$acl_final_exec_prefix"
 
5477
  eval x=\"$x\"
 
5478
  exec_prefix="$acl_save_exec_prefix"
 
5479
  prefix="$acl_save_prefix"
 
5480
 
 
5481
                    if test "X$x" = "X-I$additional_includedir"; then
 
5482
                      haveit=yes
 
5483
                      break
 
5484
                    fi
 
5485
                  done
 
5486
                  if test -z "$haveit"; then
 
5487
                    if test -d "$additional_includedir"; then
 
5488
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
5489
                    fi
 
5490
                  fi
 
5491
                fi
 
5492
              fi
 
5493
            fi
 
5494
                        if test -n "$found_la"; then
 
5495
                                                        save_libdir="$libdir"
 
5496
              case "$found_la" in
 
5497
                */* | *\\*) . "$found_la" ;;
 
5498
                *) . "./$found_la" ;;
 
5499
              esac
 
5500
              libdir="$save_libdir"
 
5501
                            for dep in $dependency_libs; do
 
5502
                case "$dep" in
 
5503
                  -L*)
 
5504
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
5505
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
5506
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
5507
                      haveit=
 
5508
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
5509
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
5510
                        if test -n "$GCC"; then
 
5511
                          case $host_os in
 
5512
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
5513
                          esac
 
5514
                        fi
 
5515
                      fi
 
5516
                      if test -z "$haveit"; then
 
5517
                        haveit=
 
5518
                        for x in $LDFLAGS $LIBICONV; do
 
5519
 
 
5520
  acl_save_prefix="$prefix"
 
5521
  prefix="$acl_final_prefix"
 
5522
  acl_save_exec_prefix="$exec_prefix"
 
5523
  exec_prefix="$acl_final_exec_prefix"
 
5524
  eval x=\"$x\"
 
5525
  exec_prefix="$acl_save_exec_prefix"
 
5526
  prefix="$acl_save_prefix"
 
5527
 
 
5528
                          if test "X$x" = "X-L$additional_libdir"; then
 
5529
                            haveit=yes
 
5530
                            break
 
5531
                          fi
 
5532
                        done
 
5533
                        if test -z "$haveit"; then
 
5534
                          if test -d "$additional_libdir"; then
 
5535
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
5536
                          fi
 
5537
                        fi
 
5538
                        haveit=
 
5539
                        for x in $LDFLAGS $LTLIBICONV; do
 
5540
 
 
5541
  acl_save_prefix="$prefix"
 
5542
  prefix="$acl_final_prefix"
 
5543
  acl_save_exec_prefix="$exec_prefix"
 
5544
  exec_prefix="$acl_final_exec_prefix"
 
5545
  eval x=\"$x\"
 
5546
  exec_prefix="$acl_save_exec_prefix"
 
5547
  prefix="$acl_save_prefix"
 
5548
 
 
5549
                          if test "X$x" = "X-L$additional_libdir"; then
 
5550
                            haveit=yes
 
5551
                            break
 
5552
                          fi
 
5553
                        done
 
5554
                        if test -z "$haveit"; then
 
5555
                          if test -d "$additional_libdir"; then
 
5556
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
5557
                          fi
 
5558
                        fi
 
5559
                      fi
 
5560
                    fi
 
5561
                    ;;
 
5562
                  -R*)
 
5563
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
5564
                    if test "$enable_rpath" != no; then
 
5565
                                                                  haveit=
 
5566
                      for x in $rpathdirs; do
 
5567
                        if test "X$x" = "X$dir"; then
 
5568
                          haveit=yes
 
5569
                          break
 
5570
                        fi
 
5571
                      done
 
5572
                      if test -z "$haveit"; then
 
5573
                        rpathdirs="$rpathdirs $dir"
 
5574
                      fi
 
5575
                                                                  haveit=
 
5576
                      for x in $ltrpathdirs; do
 
5577
                        if test "X$x" = "X$dir"; then
 
5578
                          haveit=yes
 
5579
                          break
 
5580
                        fi
 
5581
                      done
 
5582
                      if test -z "$haveit"; then
 
5583
                        ltrpathdirs="$ltrpathdirs $dir"
 
5584
                      fi
 
5585
                    fi
 
5586
                    ;;
 
5587
                  -l*)
 
5588
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
5589
                    ;;
 
5590
                  *.la)
 
5591
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
5592
                    ;;
 
5593
                  *)
 
5594
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
5595
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
5596
                    ;;
 
5597
                esac
 
5598
              done
 
5599
            fi
 
5600
          else
 
5601
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
5602
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
5603
          fi
 
5604
        fi
 
5605
      fi
 
5606
    done
 
5607
  done
 
5608
  if test "X$rpathdirs" != "X"; then
 
5609
    if test -n "$acl_hardcode_libdir_separator"; then
 
5610
                        alldirs=
 
5611
      for found_dir in $rpathdirs; do
 
5612
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
5613
      done
 
5614
            acl_save_libdir="$libdir"
 
5615
      libdir="$alldirs"
 
5616
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
5617
      libdir="$acl_save_libdir"
 
5618
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
5619
    else
 
5620
            for found_dir in $rpathdirs; do
 
5621
        acl_save_libdir="$libdir"
 
5622
        libdir="$found_dir"
 
5623
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
5624
        libdir="$acl_save_libdir"
 
5625
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
5626
      done
 
5627
    fi
 
5628
  fi
 
5629
  if test "X$ltrpathdirs" != "X"; then
 
5630
            for found_dir in $ltrpathdirs; do
 
5631
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
5632
    done
 
5633
  fi
 
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
 
5639
 
 
5640
 
 
5641
 
 
5642
 
 
5643
 
 
5644
 
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
 
 
5650
 
 
5651
 
 
5652
 
 
5653
 
 
5654
 
 
5655
 
 
5656
 
 
5657
 
 
5658
 
 
5659
 
 
5660
 
 
5661
 
 
5662
 
 
5663
 
 
5664
 
 
5665
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
 
5666
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
 
5667
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
 
5668
  $as_echo_n "(cached) " >&6
 
5669
else
 
5670
  gt_save_LIBS="$LIBS"
 
5671
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
5672
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5673
/* end confdefs.h.  */
 
5674
#include <CoreFoundation/CFPreferences.h>
 
5675
int
 
5676
main ()
 
5677
{
 
5678
CFPreferencesCopyAppValue(NULL, NULL)
 
5679
  ;
 
5680
  return 0;
 
5681
}
 
5682
_ACEOF
 
5683
if ac_fn_c_try_link "$LINENO"; then :
 
5684
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
5685
else
 
5686
  gt_cv_func_CFPreferencesCopyAppValue=no
 
5687
fi
 
5688
rm -f core conftest.err conftest.$ac_objext \
 
5689
    conftest$ac_exeext conftest.$ac_ext
 
5690
     LIBS="$gt_save_LIBS"
 
5691
fi
 
5692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
5693
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
5694
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
5695
 
 
5696
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
 
5697
 
 
5698
  fi
 
5699
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
 
5700
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
 
5701
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
 
5702
  $as_echo_n "(cached) " >&6
 
5703
else
 
5704
  gt_save_LIBS="$LIBS"
 
5705
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
5706
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5707
/* end confdefs.h.  */
 
5708
#include <CoreFoundation/CFLocale.h>
 
5709
int
 
5710
main ()
 
5711
{
 
5712
CFLocaleCopyCurrent();
 
5713
  ;
 
5714
  return 0;
 
5715
}
 
5716
_ACEOF
 
5717
if ac_fn_c_try_link "$LINENO"; then :
 
5718
  gt_cv_func_CFLocaleCopyCurrent=yes
 
5719
else
 
5720
  gt_cv_func_CFLocaleCopyCurrent=no
 
5721
fi
 
5722
rm -f core conftest.err conftest.$ac_objext \
 
5723
    conftest$ac_exeext conftest.$ac_ext
 
5724
     LIBS="$gt_save_LIBS"
 
5725
fi
 
5726
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
5727
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
5728
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
5729
 
 
5730
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
 
5731
 
 
5732
  fi
 
5733
  INTL_MACOSX_LIBS=
 
5734
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
5735
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
5736
  fi
 
5737
 
 
5738
 
 
5739
 
 
5740
 
 
5741
 
 
5742
 
 
5743
  LIBINTL=
 
5744
  LTLIBINTL=
 
5745
  POSUB=
 
5746
 
 
5747
    case " $gt_needs " in
 
5748
    *" need-formatstring-macros "*) gt_api_version=3 ;;
 
5749
    *" need-ngettext "*) gt_api_version=2 ;;
 
5750
    *) gt_api_version=1 ;;
 
5751
  esac
 
5752
  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
 
5753
  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
 
5754
 
 
5755
    if test "$USE_NLS" = "yes"; then
 
5756
    gt_use_preinstalled_gnugettext=no
 
5757
 
 
5758
 
 
5759
        if test $gt_api_version -ge 3; then
 
5760
          gt_revision_test_code='
 
5761
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
 
5762
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
 
5763
#endif
 
5764
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
 
5765
'
 
5766
        else
 
5767
          gt_revision_test_code=
 
5768
        fi
 
5769
        if test $gt_api_version -ge 2; then
 
5770
          gt_expression_test_code=' + * ngettext ("", "", 0)'
 
5771
        else
 
5772
          gt_expression_test_code=
 
5773
        fi
 
5774
 
 
5775
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
 
5776
$as_echo_n "checking for GNU gettext in libc... " >&6; }
 
5777
if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
 
5778
  $as_echo_n "(cached) " >&6
 
5779
else
 
5780
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5781
/* end confdefs.h.  */
 
5782
#include <libintl.h>
 
5783
$gt_revision_test_code
 
5784
extern int _nl_msg_cat_cntr;
 
5785
extern int *_nl_domain_bindings;
 
5786
int
 
5787
main ()
 
5788
{
 
5789
bindtextdomain ("", "");
 
5790
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
 
5791
  ;
 
5792
  return 0;
 
5793
}
 
5794
_ACEOF
 
5795
if ac_fn_c_try_link "$LINENO"; then :
 
5796
  eval "$gt_func_gnugettext_libc=yes"
 
5797
else
 
5798
  eval "$gt_func_gnugettext_libc=no"
 
5799
fi
 
5800
rm -f core conftest.err conftest.$ac_objext \
 
5801
    conftest$ac_exeext conftest.$ac_ext
 
5802
fi
 
5803
eval ac_res=\$$gt_func_gnugettext_libc
 
5804
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
5805
$as_echo "$ac_res" >&6; }
 
5806
 
 
5807
        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
 
 
5813
          am_save_CPPFLAGS="$CPPFLAGS"
 
5814
 
 
5815
  for element in $INCICONV; do
 
5816
    haveit=
 
5817
    for x in $CPPFLAGS; do
 
5818
 
 
5819
  acl_save_prefix="$prefix"
 
5820
  prefix="$acl_final_prefix"
 
5821
  acl_save_exec_prefix="$exec_prefix"
 
5822
  exec_prefix="$acl_final_exec_prefix"
 
5823
  eval x=\"$x\"
 
5824
  exec_prefix="$acl_save_exec_prefix"
 
5825
  prefix="$acl_save_prefix"
 
5826
 
 
5827
      if test "X$x" = "X$element"; then
 
5828
        haveit=yes
 
5829
        break
 
5830
      fi
 
5831
    done
 
5832
    if test -z "$haveit"; then
 
5833
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
5834
    fi
 
5835
  done
 
5836
 
 
5837
 
 
5838
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
 
5839
$as_echo_n "checking for iconv... " >&6; }
 
5840
if test "${am_cv_func_iconv+set}" = set; then :
 
5841
  $as_echo_n "(cached) " >&6
 
5842
else
 
5843
 
 
5844
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
5845
    am_cv_lib_iconv=no
 
5846
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5847
/* end confdefs.h.  */
 
5848
#include <stdlib.h>
 
5849
#include <iconv.h>
 
5850
int
 
5851
main ()
 
5852
{
 
5853
iconv_t cd = iconv_open("","");
 
5854
       iconv(cd,NULL,NULL,NULL,NULL);
 
5855
       iconv_close(cd);
 
5856
  ;
 
5857
  return 0;
 
5858
}
 
5859
_ACEOF
 
5860
if ac_fn_c_try_link "$LINENO"; then :
 
5861
  am_cv_func_iconv=yes
 
5862
fi
 
5863
rm -f core conftest.err conftest.$ac_objext \
 
5864
    conftest$ac_exeext conftest.$ac_ext
 
5865
    if test "$am_cv_func_iconv" != yes; then
 
5866
      am_save_LIBS="$LIBS"
 
5867
      LIBS="$LIBS $LIBICONV"
 
5868
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5869
/* end confdefs.h.  */
 
5870
#include <stdlib.h>
 
5871
#include <iconv.h>
 
5872
int
 
5873
main ()
 
5874
{
 
5875
iconv_t cd = iconv_open("","");
 
5876
         iconv(cd,NULL,NULL,NULL,NULL);
 
5877
         iconv_close(cd);
 
5878
  ;
 
5879
  return 0;
 
5880
}
 
5881
_ACEOF
 
5882
if ac_fn_c_try_link "$LINENO"; then :
 
5883
  am_cv_lib_iconv=yes
 
5884
        am_cv_func_iconv=yes
 
5885
fi
 
5886
rm -f core conftest.err conftest.$ac_objext \
 
5887
    conftest$ac_exeext conftest.$ac_ext
 
5888
      LIBS="$am_save_LIBS"
 
5889
    fi
 
5890
 
 
5891
fi
 
5892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
 
5893
$as_echo "$am_cv_func_iconv" >&6; }
 
5894
  if test "$am_cv_func_iconv" = yes; then
 
5895
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
 
5896
$as_echo_n "checking for working iconv... " >&6; }
 
5897
if test "${am_cv_func_iconv_works+set}" = set; then :
 
5898
  $as_echo_n "(cached) " >&6
 
5899
else
 
5900
 
 
5901
            am_save_LIBS="$LIBS"
 
5902
      if test $am_cv_lib_iconv = yes; then
 
5903
        LIBS="$LIBS $LIBICONV"
 
5904
      fi
 
5905
      if test "$cross_compiling" = yes; then :
 
5906
  case "$host_os" in
 
5907
           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
 
5908
           *)            am_cv_func_iconv_works="guessing yes" ;;
 
5909
         esac
 
5910
else
 
5911
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5912
/* end confdefs.h.  */
 
5913
 
 
5914
#include <iconv.h>
 
5915
#include <string.h>
 
5916
int main ()
 
5917
{
 
5918
  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
 
5919
     returns.  */
 
5920
  {
 
5921
    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
 
5922
    if (cd_utf8_to_88591 != (iconv_t)(-1))
 
5923
      {
 
5924
        static const char input[] = "\342\202\254"; /* EURO SIGN */
 
5925
        char buf[10];
 
5926
        const char *inptr = input;
 
5927
        size_t inbytesleft = strlen (input);
 
5928
        char *outptr = buf;
 
5929
        size_t outbytesleft = sizeof (buf);
 
5930
        size_t res = iconv (cd_utf8_to_88591,
 
5931
                            (char **) &inptr, &inbytesleft,
 
5932
                            &outptr, &outbytesleft);
 
5933
        if (res == 0)
 
5934
          return 1;
 
5935
      }
 
5936
  }
 
5937
  /* Test against Solaris 10 bug: Failures are not distinguishable from
 
5938
     successful returns.  */
 
5939
  {
 
5940
    iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
 
5941
    if (cd_ascii_to_88591 != (iconv_t)(-1))
 
5942
      {
 
5943
        static const char input[] = "\263";
 
5944
        char buf[10];
 
5945
        const char *inptr = input;
 
5946
        size_t inbytesleft = strlen (input);
 
5947
        char *outptr = buf;
 
5948
        size_t outbytesleft = sizeof (buf);
 
5949
        size_t res = iconv (cd_ascii_to_88591,
 
5950
                            (char **) &inptr, &inbytesleft,
 
5951
                            &outptr, &outbytesleft);
 
5952
        if (res == 0)
 
5953
          return 1;
 
5954
      }
 
5955
  }
 
5956
#if 0 /* This bug could be worked around by the caller.  */
 
5957
  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
 
5958
  {
 
5959
    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
 
5960
    if (cd_88591_to_utf8 != (iconv_t)(-1))
 
5961
      {
 
5962
        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
 
5963
        char buf[50];
 
5964
        const char *inptr = input;
 
5965
        size_t inbytesleft = strlen (input);
 
5966
        char *outptr = buf;
 
5967
        size_t outbytesleft = sizeof (buf);
 
5968
        size_t res = iconv (cd_88591_to_utf8,
 
5969
                            (char **) &inptr, &inbytesleft,
 
5970
                            &outptr, &outbytesleft);
 
5971
        if ((int)res > 0)
 
5972
          return 1;
 
5973
      }
 
5974
  }
 
5975
#endif
 
5976
  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
 
5977
     provided.  */
 
5978
  if (/* Try standardized names.  */
 
5979
      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
 
5980
      /* Try IRIX, OSF/1 names.  */
 
5981
      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
 
5982
      /* Try AIX names.  */
 
5983
      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
 
5984
      /* Try HP-UX names.  */
 
5985
      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
 
5986
    return 1;
 
5987
  return 0;
 
5988
}
 
5989
_ACEOF
 
5990
if ac_fn_c_try_run "$LINENO"; then :
 
5991
  am_cv_func_iconv_works=yes
 
5992
else
 
5993
  am_cv_func_iconv_works=no
 
5994
fi
 
5995
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
5996
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
5997
fi
 
5998
 
 
5999
      LIBS="$am_save_LIBS"
 
6000
 
 
6001
fi
 
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
 
6003
$as_echo "$am_cv_func_iconv_works" >&6; }
 
6004
    case "$am_cv_func_iconv_works" in
 
6005
      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
 
6006
      *)   am_func_iconv=yes ;;
 
6007
    esac
 
6008
  else
 
6009
    am_func_iconv=no am_cv_lib_iconv=no
 
6010
  fi
 
6011
  if test "$am_func_iconv" = yes; then
 
6012
 
 
6013
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
 
6014
 
 
6015
  fi
 
6016
  if test "$am_cv_lib_iconv" = yes; then
 
6017
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
 
6018
$as_echo_n "checking how to link with libiconv... " >&6; }
 
6019
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
 
6020
$as_echo "$LIBICONV" >&6; }
 
6021
  else
 
6022
            CPPFLAGS="$am_save_CPPFLAGS"
 
6023
    LIBICONV=
 
6024
    LTLIBICONV=
 
6025
  fi
 
6026
 
 
6027
 
 
6028
 
 
6029
 
 
6030
 
 
6031
 
 
6032
 
 
6033
 
 
6034
 
 
6035
 
 
6036
 
 
6037
    use_additional=yes
 
6038
 
 
6039
  acl_save_prefix="$prefix"
 
6040
  prefix="$acl_final_prefix"
 
6041
  acl_save_exec_prefix="$exec_prefix"
 
6042
  exec_prefix="$acl_final_exec_prefix"
 
6043
 
 
6044
    eval additional_includedir=\"$includedir\"
 
6045
    eval additional_libdir=\"$libdir\"
 
6046
 
 
6047
  exec_prefix="$acl_save_exec_prefix"
 
6048
  prefix="$acl_save_prefix"
 
6049
 
 
6050
 
 
6051
# Check whether --with-libintl-prefix was given.
 
6052
if test "${with_libintl_prefix+set}" = set; then :
 
6053
  withval=$with_libintl_prefix;
 
6054
    if test "X$withval" = "Xno"; then
 
6055
      use_additional=no
 
6056
    else
 
6057
      if test "X$withval" = "X"; then
 
6058
 
 
6059
  acl_save_prefix="$prefix"
 
6060
  prefix="$acl_final_prefix"
 
6061
  acl_save_exec_prefix="$exec_prefix"
 
6062
  exec_prefix="$acl_final_exec_prefix"
 
6063
 
 
6064
          eval additional_includedir=\"$includedir\"
 
6065
          eval additional_libdir=\"$libdir\"
 
6066
 
 
6067
  exec_prefix="$acl_save_exec_prefix"
 
6068
  prefix="$acl_save_prefix"
 
6069
 
 
6070
      else
 
6071
        additional_includedir="$withval/include"
 
6072
        additional_libdir="$withval/$acl_libdirstem"
 
6073
        if test "$acl_libdirstem2" != "$acl_libdirstem" \
 
6074
           && ! test -d "$withval/$acl_libdirstem"; then
 
6075
          additional_libdir="$withval/$acl_libdirstem2"
 
6076
        fi
 
6077
      fi
 
6078
    fi
 
6079
 
 
6080
fi
 
6081
 
 
6082
      LIBINTL=
 
6083
  LTLIBINTL=
 
6084
  INCINTL=
 
6085
  LIBINTL_PREFIX=
 
6086
      HAVE_LIBINTL=
 
6087
  rpathdirs=
 
6088
  ltrpathdirs=
 
6089
  names_already_handled=
 
6090
  names_next_round='intl '
 
6091
  while test -n "$names_next_round"; do
 
6092
    names_this_round="$names_next_round"
 
6093
    names_next_round=
 
6094
    for name in $names_this_round; do
 
6095
      already_handled=
 
6096
      for n in $names_already_handled; do
 
6097
        if test "$n" = "$name"; then
 
6098
          already_handled=yes
 
6099
          break
 
6100
        fi
 
6101
      done
 
6102
      if test -z "$already_handled"; then
 
6103
        names_already_handled="$names_already_handled $name"
 
6104
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
6105
        eval value=\"\$HAVE_LIB$uppername\"
 
6106
        if test -n "$value"; then
 
6107
          if test "$value" = yes; then
 
6108
            eval value=\"\$LIB$uppername\"
 
6109
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
6110
            eval value=\"\$LTLIB$uppername\"
 
6111
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
6112
          else
 
6113
                                    :
 
6114
          fi
 
6115
        else
 
6116
                              found_dir=
 
6117
          found_la=
 
6118
          found_so=
 
6119
          found_a=
 
6120
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
 
6121
          if test -n "$acl_shlibext"; then
 
6122
            shrext=".$acl_shlibext"             # typically: shrext=.so
 
6123
          else
 
6124
            shrext=
 
6125
          fi
 
6126
          if test $use_additional = yes; then
 
6127
            dir="$additional_libdir"
 
6128
                                    if test -n "$acl_shlibext"; then
 
6129
              if test -f "$dir/$libname$shrext"; then
 
6130
                found_dir="$dir"
 
6131
                found_so="$dir/$libname$shrext"
 
6132
              else
 
6133
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
6134
                  ver=`(cd "$dir" && \
 
6135
                        for f in "$libname$shrext".*; do echo "$f"; done \
 
6136
                        | sed -e "s,^$libname$shrext\\\\.,," \
 
6137
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
6138
                        | sed 1q ) 2>/dev/null`
 
6139
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
6140
                    found_dir="$dir"
 
6141
                    found_so="$dir/$libname$shrext.$ver"
 
6142
                  fi
 
6143
                else
 
6144
                  eval library_names=\"$acl_library_names_spec\"
 
6145
                  for f in $library_names; do
 
6146
                    if test -f "$dir/$f"; then
 
6147
                      found_dir="$dir"
 
6148
                      found_so="$dir/$f"
 
6149
                      break
 
6150
                    fi
 
6151
                  done
 
6152
                fi
 
6153
              fi
 
6154
            fi
 
6155
                        if test "X$found_dir" = "X"; then
 
6156
              if test -f "$dir/$libname.$acl_libext"; then
 
6157
                found_dir="$dir"
 
6158
                found_a="$dir/$libname.$acl_libext"
 
6159
              fi
 
6160
            fi
 
6161
            if test "X$found_dir" != "X"; then
 
6162
              if test -f "$dir/$libname.la"; then
 
6163
                found_la="$dir/$libname.la"
 
6164
              fi
 
6165
            fi
 
6166
          fi
 
6167
          if test "X$found_dir" = "X"; then
 
6168
            for x in $LDFLAGS $LTLIBINTL; do
 
6169
 
 
6170
  acl_save_prefix="$prefix"
 
6171
  prefix="$acl_final_prefix"
 
6172
  acl_save_exec_prefix="$exec_prefix"
 
6173
  exec_prefix="$acl_final_exec_prefix"
 
6174
  eval x=\"$x\"
 
6175
  exec_prefix="$acl_save_exec_prefix"
 
6176
  prefix="$acl_save_prefix"
 
6177
 
 
6178
              case "$x" in
 
6179
                -L*)
 
6180
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
6181
                                    if test -n "$acl_shlibext"; then
 
6182
                    if test -f "$dir/$libname$shrext"; then
 
6183
                      found_dir="$dir"
 
6184
                      found_so="$dir/$libname$shrext"
 
6185
                    else
 
6186
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
 
6187
                        ver=`(cd "$dir" && \
 
6188
                              for f in "$libname$shrext".*; do echo "$f"; done \
 
6189
                              | sed -e "s,^$libname$shrext\\\\.,," \
 
6190
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
 
6191
                              | sed 1q ) 2>/dev/null`
 
6192
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
 
6193
                          found_dir="$dir"
 
6194
                          found_so="$dir/$libname$shrext.$ver"
 
6195
                        fi
 
6196
                      else
 
6197
                        eval library_names=\"$acl_library_names_spec\"
 
6198
                        for f in $library_names; do
 
6199
                          if test -f "$dir/$f"; then
 
6200
                            found_dir="$dir"
 
6201
                            found_so="$dir/$f"
 
6202
                            break
 
6203
                          fi
 
6204
                        done
 
6205
                      fi
 
6206
                    fi
 
6207
                  fi
 
6208
                                    if test "X$found_dir" = "X"; then
 
6209
                    if test -f "$dir/$libname.$acl_libext"; then
 
6210
                      found_dir="$dir"
 
6211
                      found_a="$dir/$libname.$acl_libext"
 
6212
                    fi
 
6213
                  fi
 
6214
                  if test "X$found_dir" != "X"; then
 
6215
                    if test -f "$dir/$libname.la"; then
 
6216
                      found_la="$dir/$libname.la"
 
6217
                    fi
 
6218
                  fi
 
6219
                  ;;
 
6220
              esac
 
6221
              if test "X$found_dir" != "X"; then
 
6222
                break
 
6223
              fi
 
6224
            done
 
6225
          fi
 
6226
          if test "X$found_dir" != "X"; then
 
6227
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
6228
            if test "X$found_so" != "X"; then
 
6229
                                                        if test "$enable_rpath" = no \
 
6230
                 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
 
6231
                 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
 
6232
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6233
              else
 
6234
                                                                                haveit=
 
6235
                for x in $ltrpathdirs; do
 
6236
                  if test "X$x" = "X$found_dir"; then
 
6237
                    haveit=yes
 
6238
                    break
 
6239
                  fi
 
6240
                done
 
6241
                if test -z "$haveit"; then
 
6242
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
6243
                fi
 
6244
                                if test "$acl_hardcode_direct" = yes; then
 
6245
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6246
                else
 
6247
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
 
6248
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6249
                                                            haveit=
 
6250
                    for x in $rpathdirs; do
 
6251
                      if test "X$x" = "X$found_dir"; then
 
6252
                        haveit=yes
 
6253
                        break
 
6254
                      fi
 
6255
                    done
 
6256
                    if test -z "$haveit"; then
 
6257
                      rpathdirs="$rpathdirs $found_dir"
 
6258
                    fi
 
6259
                  else
 
6260
                                                                                haveit=
 
6261
                    for x in $LDFLAGS $LIBINTL; do
 
6262
 
 
6263
  acl_save_prefix="$prefix"
 
6264
  prefix="$acl_final_prefix"
 
6265
  acl_save_exec_prefix="$exec_prefix"
 
6266
  exec_prefix="$acl_final_exec_prefix"
 
6267
  eval x=\"$x\"
 
6268
  exec_prefix="$acl_save_exec_prefix"
 
6269
  prefix="$acl_save_prefix"
 
6270
 
 
6271
                      if test "X$x" = "X-L$found_dir"; then
 
6272
                        haveit=yes
 
6273
                        break
 
6274
                      fi
 
6275
                    done
 
6276
                    if test -z "$haveit"; then
 
6277
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
6278
                    fi
 
6279
                    if test "$acl_hardcode_minus_L" != no; then
 
6280
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
6281
                    else
 
6282
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
6283
                    fi
 
6284
                  fi
 
6285
                fi
 
6286
              fi
 
6287
            else
 
6288
              if test "X$found_a" != "X"; then
 
6289
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
6290
              else
 
6291
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
6292
              fi
 
6293
            fi
 
6294
                        additional_includedir=
 
6295
            case "$found_dir" in
 
6296
              */$acl_libdirstem | */$acl_libdirstem/)
 
6297
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
6298
                if test "$name" = 'intl'; then
 
6299
                  LIBINTL_PREFIX="$basedir"
 
6300
                fi
 
6301
                additional_includedir="$basedir/include"
 
6302
                ;;
 
6303
              */$acl_libdirstem2 | */$acl_libdirstem2/)
 
6304
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
 
6305
                if test "$name" = 'intl'; then
 
6306
                  LIBINTL_PREFIX="$basedir"
 
6307
                fi
 
6308
                additional_includedir="$basedir/include"
 
6309
                ;;
 
6310
            esac
 
6311
            if test "X$additional_includedir" != "X"; then
 
6312
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
6313
                haveit=
 
6314
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
6315
                  if test -n "$GCC"; then
 
6316
                    case $host_os in
 
6317
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
6318
                    esac
 
6319
                  fi
 
6320
                fi
 
6321
                if test -z "$haveit"; then
 
6322
                  for x in $CPPFLAGS $INCINTL; do
 
6323
 
 
6324
  acl_save_prefix="$prefix"
 
6325
  prefix="$acl_final_prefix"
 
6326
  acl_save_exec_prefix="$exec_prefix"
 
6327
  exec_prefix="$acl_final_exec_prefix"
 
6328
  eval x=\"$x\"
 
6329
  exec_prefix="$acl_save_exec_prefix"
 
6330
  prefix="$acl_save_prefix"
 
6331
 
 
6332
                    if test "X$x" = "X-I$additional_includedir"; then
 
6333
                      haveit=yes
 
6334
                      break
 
6335
                    fi
 
6336
                  done
 
6337
                  if test -z "$haveit"; then
 
6338
                    if test -d "$additional_includedir"; then
 
6339
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
6340
                    fi
 
6341
                  fi
 
6342
                fi
 
6343
              fi
 
6344
            fi
 
6345
                        if test -n "$found_la"; then
 
6346
                                                        save_libdir="$libdir"
 
6347
              case "$found_la" in
 
6348
                */* | *\\*) . "$found_la" ;;
 
6349
                *) . "./$found_la" ;;
 
6350
              esac
 
6351
              libdir="$save_libdir"
 
6352
                            for dep in $dependency_libs; do
 
6353
                case "$dep" in
 
6354
                  -L*)
 
6355
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
6356
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
 
6357
                       && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
 
6358
                      haveit=
 
6359
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
 
6360
                         || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
 
6361
                        if test -n "$GCC"; then
 
6362
                          case $host_os in
 
6363
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
6364
                          esac
 
6365
                        fi
 
6366
                      fi
 
6367
                      if test -z "$haveit"; then
 
6368
                        haveit=
 
6369
                        for x in $LDFLAGS $LIBINTL; do
 
6370
 
 
6371
  acl_save_prefix="$prefix"
 
6372
  prefix="$acl_final_prefix"
 
6373
  acl_save_exec_prefix="$exec_prefix"
 
6374
  exec_prefix="$acl_final_exec_prefix"
 
6375
  eval x=\"$x\"
 
6376
  exec_prefix="$acl_save_exec_prefix"
 
6377
  prefix="$acl_save_prefix"
 
6378
 
 
6379
                          if test "X$x" = "X-L$additional_libdir"; then
 
6380
                            haveit=yes
 
6381
                            break
 
6382
                          fi
 
6383
                        done
 
6384
                        if test -z "$haveit"; then
 
6385
                          if test -d "$additional_libdir"; then
 
6386
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
6387
                          fi
 
6388
                        fi
 
6389
                        haveit=
 
6390
                        for x in $LDFLAGS $LTLIBINTL; do
 
6391
 
 
6392
  acl_save_prefix="$prefix"
 
6393
  prefix="$acl_final_prefix"
 
6394
  acl_save_exec_prefix="$exec_prefix"
 
6395
  exec_prefix="$acl_final_exec_prefix"
 
6396
  eval x=\"$x\"
 
6397
  exec_prefix="$acl_save_exec_prefix"
 
6398
  prefix="$acl_save_prefix"
 
6399
 
 
6400
                          if test "X$x" = "X-L$additional_libdir"; then
 
6401
                            haveit=yes
 
6402
                            break
 
6403
                          fi
 
6404
                        done
 
6405
                        if test -z "$haveit"; then
 
6406
                          if test -d "$additional_libdir"; then
 
6407
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
6408
                          fi
 
6409
                        fi
 
6410
                      fi
 
6411
                    fi
 
6412
                    ;;
 
6413
                  -R*)
 
6414
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
6415
                    if test "$enable_rpath" != no; then
 
6416
                                                                  haveit=
 
6417
                      for x in $rpathdirs; do
 
6418
                        if test "X$x" = "X$dir"; then
 
6419
                          haveit=yes
 
6420
                          break
 
6421
                        fi
 
6422
                      done
 
6423
                      if test -z "$haveit"; then
 
6424
                        rpathdirs="$rpathdirs $dir"
 
6425
                      fi
 
6426
                                                                  haveit=
 
6427
                      for x in $ltrpathdirs; do
 
6428
                        if test "X$x" = "X$dir"; then
 
6429
                          haveit=yes
 
6430
                          break
 
6431
                        fi
 
6432
                      done
 
6433
                      if test -z "$haveit"; then
 
6434
                        ltrpathdirs="$ltrpathdirs $dir"
 
6435
                      fi
 
6436
                    fi
 
6437
                    ;;
 
6438
                  -l*)
 
6439
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
6440
                    ;;
 
6441
                  *.la)
 
6442
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
6443
                    ;;
 
6444
                  *)
 
6445
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
6446
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
6447
                    ;;
 
6448
                esac
 
6449
              done
 
6450
            fi
 
6451
          else
 
6452
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
6453
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
6454
          fi
 
6455
        fi
 
6456
      fi
 
6457
    done
 
6458
  done
 
6459
  if test "X$rpathdirs" != "X"; then
 
6460
    if test -n "$acl_hardcode_libdir_separator"; then
 
6461
                        alldirs=
 
6462
      for found_dir in $rpathdirs; do
 
6463
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
 
6464
      done
 
6465
            acl_save_libdir="$libdir"
 
6466
      libdir="$alldirs"
 
6467
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
6468
      libdir="$acl_save_libdir"
 
6469
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
6470
    else
 
6471
            for found_dir in $rpathdirs; do
 
6472
        acl_save_libdir="$libdir"
 
6473
        libdir="$found_dir"
 
6474
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
 
6475
        libdir="$acl_save_libdir"
 
6476
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
6477
      done
 
6478
    fi
 
6479
  fi
 
6480
  if test "X$ltrpathdirs" != "X"; then
 
6481
            for found_dir in $ltrpathdirs; do
 
6482
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
6483
    done
 
6484
  fi
 
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
 
6491
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
 
6492
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
 
6493
if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
 
6494
  $as_echo_n "(cached) " >&6
 
6495
else
 
6496
  gt_save_CPPFLAGS="$CPPFLAGS"
 
6497
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
6498
            gt_save_LIBS="$LIBS"
 
6499
            LIBS="$LIBS $LIBINTL"
 
6500
                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6501
/* end confdefs.h.  */
 
6502
#include <libintl.h>
 
6503
$gt_revision_test_code
 
6504
extern int _nl_msg_cat_cntr;
 
6505
extern
 
6506
#ifdef __cplusplus
 
6507
"C"
 
6508
#endif
 
6509
const char *_nl_expand_alias (const char *);
 
6510
int
 
6511
main ()
 
6512
{
 
6513
bindtextdomain ("", "");
 
6514
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
6515
  ;
 
6516
  return 0;
 
6517
}
 
6518
_ACEOF
 
6519
if ac_fn_c_try_link "$LINENO"; then :
 
6520
  eval "$gt_func_gnugettext_libintl=yes"
 
6521
else
 
6522
  eval "$gt_func_gnugettext_libintl=no"
 
6523
fi
 
6524
rm -f core conftest.err conftest.$ac_objext \
 
6525
    conftest$ac_exeext conftest.$ac_ext
 
6526
                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
 
6527
              LIBS="$LIBS $LIBICONV"
 
6528
              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6529
/* end confdefs.h.  */
 
6530
#include <libintl.h>
 
6531
$gt_revision_test_code
 
6532
extern int _nl_msg_cat_cntr;
 
6533
extern
 
6534
#ifdef __cplusplus
 
6535
"C"
 
6536
#endif
 
6537
const char *_nl_expand_alias (const char *);
 
6538
int
 
6539
main ()
 
6540
{
 
6541
bindtextdomain ("", "");
 
6542
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
6543
  ;
 
6544
  return 0;
 
6545
}
 
6546
_ACEOF
 
6547
if ac_fn_c_try_link "$LINENO"; then :
 
6548
  LIBINTL="$LIBINTL $LIBICONV"
 
6549
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
6550
                eval "$gt_func_gnugettext_libintl=yes"
 
6551
 
 
6552
fi
 
6553
rm -f core conftest.err conftest.$ac_objext \
 
6554
    conftest$ac_exeext conftest.$ac_ext
 
6555
            fi
 
6556
            CPPFLAGS="$gt_save_CPPFLAGS"
 
6557
            LIBS="$gt_save_LIBS"
 
6558
fi
 
6559
eval ac_res=\$$gt_func_gnugettext_libintl
 
6560
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
6561
$as_echo "$ac_res" >&6; }
 
6562
        fi
 
6563
 
 
6564
                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
 
6565
           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
 
6566
                && test "$PACKAGE" != gettext-runtime \
 
6567
                && test "$PACKAGE" != gettext-tools; }; then
 
6568
          gt_use_preinstalled_gnugettext=yes
 
6569
        else
 
6570
                    LIBINTL=
 
6571
          LTLIBINTL=
 
6572
          INCINTL=
 
6573
        fi
 
6574
 
 
6575
 
 
6576
 
 
6577
    if test -n "$INTL_MACOSX_LIBS"; then
 
6578
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
6579
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
6580
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
6581
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
6582
      fi
 
6583
    fi
 
6584
 
 
6585
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
6586
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
6587
 
 
6588
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
 
6589
 
 
6590
    else
 
6591
      USE_NLS=no
 
6592
    fi
 
6593
  fi
 
6594
 
 
6595
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
 
6596
$as_echo_n "checking whether to use NLS... " >&6; }
 
6597
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
 
6598
$as_echo "$USE_NLS" >&6; }
 
6599
  if test "$USE_NLS" = "yes"; then
 
6600
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
 
6601
$as_echo_n "checking where the gettext function comes from... " >&6; }
 
6602
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
6603
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
6604
        gt_source="external libintl"
 
6605
      else
 
6606
        gt_source="libc"
 
6607
      fi
 
6608
    else
 
6609
      gt_source="included intl directory"
 
6610
    fi
 
6611
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
 
6612
$as_echo "$gt_source" >&6; }
 
6613
  fi
 
6614
 
 
6615
  if test "$USE_NLS" = "yes"; then
 
6616
 
 
6617
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
6618
      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
 
6619
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
 
6620
$as_echo_n "checking how to link with libintl... " >&6; }
 
6621
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
 
6622
$as_echo "$LIBINTL" >&6; }
 
6623
 
 
6624
  for element in $INCINTL; do
 
6625
    haveit=
 
6626
    for x in $CPPFLAGS; do
 
6627
 
 
6628
  acl_save_prefix="$prefix"
 
6629
  prefix="$acl_final_prefix"
 
6630
  acl_save_exec_prefix="$exec_prefix"
 
6631
  exec_prefix="$acl_final_exec_prefix"
 
6632
  eval x=\"$x\"
 
6633
  exec_prefix="$acl_save_exec_prefix"
 
6634
  prefix="$acl_save_prefix"
 
6635
 
 
6636
      if test "X$x" = "X$element"; then
 
6637
        haveit=yes
 
6638
        break
 
6639
      fi
 
6640
    done
 
6641
    if test -z "$haveit"; then
 
6642
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
6643
    fi
 
6644
  done
 
6645
 
 
6646
      fi
 
6647
 
 
6648
 
 
6649
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
 
6650
 
 
6651
 
 
6652
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
 
6653
 
 
6654
    fi
 
6655
 
 
6656
        POSUB=po
 
6657
  fi
 
6658
 
 
6659
 
 
6660
 
 
6661
    INTLLIBS="$LIBINTL"
 
6662
 
 
6663
 
 
6664
 
 
6665
 
 
6666
 
 
6667
 
 
6668
fi
 
6669
 
 
6670
NLSTARGET=""
 
6671
if test x"$USE_NLS" = xyes; then
 
6672
  NLSTARGET="po"
 
6673
fi
 
6674
 
 
6675
 
 
6676
 
 
6677
 
 
6678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if color escape sequence for kterm/pxvt is enabled" >&5
 
6679
$as_echo_n "checking if color escape sequence for kterm/pxvt is enabled... " >&6; }
 
6680
# Check whether --enable-color was given.
 
6681
if test "${enable_color+set}" = set; then :
 
6682
  enableval=$enable_color;
 
6683
else
 
6684
  enable_color="yes"
 
6685
fi
 
6686
 
 
6687
test x"$enable_color" = xyes && $as_echo "#define USE_COLOR 1" >>confdefs.h
 
6688
 
 
6689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_color" >&5
 
6690
$as_echo "$enable_color" >&6; }
 
6691
 
 
6692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ansi color escape sequence support is enabled" >&5
 
6693
$as_echo_n "checking if ansi color escape sequence support is enabled... " >&6; }
 
6694
# Check whether --enable-ansi_color was given.
 
6695
if test "${enable_ansi_color+set}" = set; then :
 
6696
  enableval=$enable_ansi_color;
 
6697
else
 
6698
  enable_ansi_color="$enable_color"
 
6699
fi
 
6700
 
 
6701
 test x"$enable_ansi_color" = xyes && $as_echo "#define USE_ANSI_COLOR 1" >>confdefs.h
 
6702
 
 
6703
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ansi_color" >&5
 
6704
$as_echo "$enable_ansi_color" >&6; }
 
6705
 
 
6706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if background color support is enabled" >&5
 
6707
$as_echo_n "checking if background color support is enabled... " >&6; }
 
6708
# Check whether --enable-bgcolor was given.
 
6709
if test "${enable_bgcolor+set}" = set; then :
 
6710
  enableval=$enable_bgcolor;
 
6711
else
 
6712
  enable_bgcolor="$enable_color"
 
6713
fi
 
6714
 
 
6715
 test x"$enable_bgcolor" = xyes && $as_echo "#define USE_BG_COLOR 1" >>confdefs.h
 
6716
 
 
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bgcolor" >&5
 
6718
$as_echo "$enable_bgcolor" >&6; }
 
6719
 
 
6720
 
 
6721
 
 
6722
 
 
6723
 
 
6724
 
 
6725
 
 
6726
 
 
6727
 INSTALL_W3MIMGDISPLAY='${INSTALL_PROGRAM}'
 
6728
 $as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h
 
6729
 
 
6730
 
 
6731
 
 
6732
 
 
6733
 
 
6734
 
 
6735
 
 
6736
 
 
6737
 
 
6738
 
 
6739
 
 
6740
 
 
6741
 
 
6742
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if image is enabled" >&5
 
6743
$as_echo_n "checking if image is enabled... " >&6; }
 
6744
 # Check whether --enable-image was given.
 
6745
if test "${enable_image+set}" = set; then :
 
6746
  enableval=$enable_image;
 
6747
else
 
6748
  enable_image="yes"
 
6749
fi
 
6750
 
 
6751
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_image" >&5
 
6752
$as_echo "$enable_image" >&6; }
 
6753
 if test x"$enable_image" != xno; then
 
6754
  IMGOBJS=w3mimg.o
 
6755
  if test x"$enable_image" = xyes; then
 
6756
    enable_image=x11
 
6757
    case "`uname -s`" in
 
6758
    Linux|linux|LINUX)
 
6759
        if test -c /dev/fb0; then
 
6760
          enable_image=x11,fb
 
6761
        fi;;
 
6762
    CYGWIN*)
 
6763
        enable_image=x11,win;;
 
6764
    esac
 
6765
  fi
 
6766
  save_ifs="$IFS"; IFS=",";
 
6767
  set x $enable_image; shift
 
6768
  IFS="$save_ifs"
 
6769
  for img in "$@"; do
 
6770
    case $img in
 
6771
      x11) x11=yes;;
 
6772
      fb)  fb=yes;;
 
6773
      fb+s) fb=yes
 
6774
           $as_echo "#define W3MIMGDISPLAY_SETUID 1" >>confdefs.h
 
6775
 
 
6776
           INSTALL_W3MIMGDISPLAY='${INSTALL} -o root -m 4755 -s'
 
6777
           $as_echo "#define INSTALL_W3MIMGDISPLAY \$INSTALL_W3MIMGDISPLAY" >>confdefs.h
 
6778
;;
 
6779
      win) win=yes;;
 
6780
    esac
 
6781
  done
 
6782
  enable_image=yes
 
6783
  $as_echo "#define USE_IMAGE 1" >>confdefs.h
 
6784
 
 
6785
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking image library" >&5
 
6786
$as_echo_n "checking image library... " >&6; }
 
6787
 
 
6788
# Check whether --with-imagelib was given.
 
6789
if test "${with_imagelib+set}" = set; then :
 
6790
  withval=$with_imagelib;
 
6791
else
 
6792
  with_imagelib="yes"
 
6793
fi
 
6794
 
 
6795
  if test x"$with_imagelib" = xyes; then
 
6796
    with_imagelib="gtk2 gdk-pixbuf imlib imlib2"
 
6797
  fi
 
6798
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_imagelib" >&5
 
6799
$as_echo "$with_imagelib" >&6; }
 
6800
  with_imlib=no
 
6801
  with_imlib2=no
 
6802
  with_gdkpixbuf=no
 
6803
  with_gtk2=no
 
6804
  for imagelib in $with_imagelib
 
6805
  do
 
6806
   case "$imagelib" in
 
6807
   imlib)
 
6808
     with_imlib="yes"
 
6809
     if test x"$IMLIB_CONFIG" = x; then
 
6810
       IMLIB_CONFIG=imlib-config
 
6811
     fi;;
 
6812
   imlib2)
 
6813
     with_imlib2="yes"
 
6814
     if test x"$IMLIB2_CONFIG" = x; then
 
6815
       IMLIB2_CONFIG=imlib2-config
 
6816
     fi;;
 
6817
   gdk-pixbuf)
 
6818
     with_gdkpixbuf="yes"
 
6819
     if test x"$GDKPIXBUF_CONFIG" = x; then
 
6820
       GDKPIXBUF_CONFIG=gdk-pixbuf-config
 
6821
     fi;;
 
6822
   gtk2)
 
6823
     with_gtk2="yes"
 
6824
     if test x"$PKG_CONFIG" = x; then
 
6825
       PKG_CONFIG=pkg-config
 
6826
     else
 
6827
       PKG_CONFIG=:
 
6828
     fi;;
 
6829
   esac
 
6830
  done
 
6831
  IMGTARGETS=""
 
6832
  IMGLINK='$(CC)'
 
6833
  if test x"$with_gtk2" = xyes; then
 
6834
   version="`$PKG_CONFIG --modversion gdk-pixbuf-2.0 2>/dev/null`"
 
6835
 if test x"$version" != x; then
 
6836
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
 
6837
$as_echo_n "checking GdkPixbuf version... " >&6; }
 
6838
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
 
6839
$as_echo "$version" >&6; }
 
6840
   set -- `echo "$version" | sed 's/[^0-9]/ /g'`
 
6841
   if test "$1" -ne "2" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "0"; then
 
6842
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&5
 
6843
$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 2.0.0)" >&2;}
 
6844
     have_gdkpixbuf="no"; have_gtk2="no"
 
6845
   else
 
6846
     have_gdkpixbuf="yes"; have_gtk2="yes"
 
6847
   fi
 
6848
 else
 
6849
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 2.0.0)" >&5
 
6850
$as_echo "$as_me: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 2.0.0)" >&2;}
 
6851
   have_gdkpixbuf="no"; have_gtk2="no"
 
6852
 fi
 
6853
  fi
 
6854
  if test x"$with_gdkpixbuf" = xyes; then
 
6855
   if test x"$have_gdkpixbuf" != xyes; then
 
6856
    version="`$GDKPIXBUF_CONFIG --version 2>/dev/null`"
 
6857
 if test x"$version" != x; then
 
6858
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking GdkPixbuf version" >&5
 
6859
$as_echo_n "checking GdkPixbuf version... " >&6; }
 
6860
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
 
6861
$as_echo "$version" >&6; }
 
6862
   set -- `echo "$version" | sed 's/[^0-9]/ /g'`
 
6863
   if test "$1" -ne "0" -o "$2" -lt "16" || test "$2" -eq "16" -a "$3" -lt "0"; then
 
6864
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&5
 
6865
$as_echo "$as_me: WARNING: GdkPixbuf is too old. Install GdkPixbuf (version >= 0.16.0)" >&2;}
 
6866
     have_gdkpixbuf="no"
 
6867
   else
 
6868
     have_gdkpixbuf="yes"
 
6869
   fi
 
6870
 else
 
6871
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 0.16.0)" >&5
 
6872
$as_echo "$as_me: WARNING: GdkPixbuf is not installed.  Install GdkPixbuf (version >= 0.16.0)" >&2;}
 
6873
   have_gdkpixbuf="no"
 
6874
 fi
 
6875
   fi
 
6876
  fi
 
6877
  if test x"$with_imlib" = xyes; then
 
6878
   version="`$IMLIB_CONFIG --version 2>/dev/null`"
 
6879
 if test x"$version" != x; then
 
6880
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib version" >&5
 
6881
$as_echo_n "checking Imlib version... " >&6; }
 
6882
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
 
6883
$as_echo "$version" >&6; }
 
6884
   set -- `echo "$version" | sed 's/[^0-9]/ /g'`
 
6885
   if test "$1" -ne "1" -o "$2" -lt "9" || test "$2" -eq "9" -a "$3" -lt "8"; then
 
6886
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&5
 
6887
$as_echo "$as_me: WARNING: Imlib is too old. Install Imlib (version >= 1.9.8)" >&2;}
 
6888
     have_imlib="no"
 
6889
   else
 
6890
     have_imlib="yes"
 
6891
   fi
 
6892
 else
 
6893
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib is not installed.  Install Imlib (version >= 1.9.8)" >&5
 
6894
$as_echo "$as_me: WARNING: Imlib is not installed.  Install Imlib (version >= 1.9.8)" >&2;}
 
6895
   have_imlib="no"
 
6896
 fi
 
6897
  fi
 
6898
  if test x"$with_imlib2" = xyes; then
 
6899
   version="`$IMLIB2_CONFIG --version 2>/dev/null`"
 
6900
 if test x"$version" != x; then
 
6901
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Imlib2 version" >&5
 
6902
$as_echo_n "checking Imlib2 version... " >&6; }
 
6903
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5
 
6904
$as_echo "$version" >&6; }
 
6905
   set -- `echo "$version" | sed 's/[^0-9]/ /g'`
 
6906
   if test "$1" -ne "1" -o "$2" -lt "0" || test "$2" -eq "0" -a "$3" -lt "5"; then
 
6907
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&5
 
6908
$as_echo "$as_me: WARNING: Imlib2 is too old. Install Imlib2 (version >= 1.0.5)" >&2;}
 
6909
     have_imlib2="no"
 
6910
   else
 
6911
     have_imlib2="yes"
 
6912
   fi
 
6913
 else
 
6914
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Imlib2 is not installed.  Install Imlib2 (version >= 1.0.5)" >&5
 
6915
$as_echo "$as_me: WARNING: Imlib2 is not installed.  Install Imlib2 (version >= 1.0.5)" >&2;}
 
6916
   have_imlib2="no"
 
6917
 fi
 
6918
  fi
 
6919
  if test x"$x11" = xyes; then
 
6920
   if test x"$have_gtk2" = xyes; then
 
6921
     $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
 
6922
 
 
6923
     IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
 
6924
     IMGTARGETS="x11"
 
6925
     $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
 
6926
 
 
6927
     $as_echo "#define USE_GTK2 1" >>confdefs.h
 
6928
 
 
6929
     IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
 
6930
     IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
 
6931
   elif test x"$have_gdkpixbuf" = xyes; then
 
6932
     $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
 
6933
 
 
6934
     IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
 
6935
     IMGTARGETS="x11"
 
6936
     $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
 
6937
 
 
6938
     IMGX11CFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
 
6939
     IMGX11LDFLAGS="`${GDKPIXBUF_CONFIG} --libs` -lgdk_pixbuf_xlib"
 
6940
   elif test x"$have_imlib" = xyes; then
 
6941
     $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
 
6942
 
 
6943
     IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
 
6944
     IMGTARGETS="x11"
 
6945
     $as_echo "#define USE_IMLIB 1" >>confdefs.h
 
6946
 
 
6947
     IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`"
 
6948
     IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`"
 
6949
     IMGTARGETS="x11"
 
6950
   elif test x"$have_imlib2" = xyes; then
 
6951
     $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h
 
6952
 
 
6953
     IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
 
6954
     IMGTARGETS="x11"
 
6955
     $as_echo "#define USE_IMLIB2 1" >>confdefs.h
 
6956
 
 
6957
     IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`"
 
6958
     IMGX11LDFLAGS="`${IMLIB2_CONFIG} --libs`"
 
6959
   else
 
6960
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with X11 support" >&5
 
6961
$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;}
 
6962
   fi
 
6963
  fi
 
6964
  if test x"$fb" = xyes; then
 
6965
   if test x"$have_gtk2" = xyes; then
 
6966
     $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
 
6967
 
 
6968
     IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
 
6969
     IMGTARGETS="${IMGTARGETS} fb"
 
6970
     $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
 
6971
 
 
6972
     $as_echo "#define USE_GTK2 1" >>confdefs.h
 
6973
 
 
6974
     IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gtk+-2.0`"
 
6975
     IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gtk+-2.0`"
 
6976
   elif test x"$have_gdkpixbuf" = xyes; then
 
6977
     $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
 
6978
 
 
6979
     IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
 
6980
     IMGTARGETS="${IMGTARGETS} fb"
 
6981
     $as_echo "#define USE_GDKPIXBUF 1" >>confdefs.h
 
6982
 
 
6983
     IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`"
 
6984
     IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`"
 
6985
   elif test x"$have_imlib2" = xyes; then
 
6986
     $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h
 
6987
 
 
6988
     IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
 
6989
     IMGTARGETS="${IMGTARGETS} fb"
 
6990
     $as_echo "#define USE_IMLIB2 1" >>confdefs.h
 
6991
 
 
6992
     IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
 
6993
     IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`"
 
6994
     IMGFBLDFLAGS="`${IMLIB2_CONFIG} --libs`"
 
6995
   else
 
6996
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with FB support" >&5
 
6997
$as_echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;}
 
6998
   fi
 
6999
  fi
 
7000
  if test x"$win" = xyes; then
 
7001
    $as_echo "#define USE_W3MIMG_WIN 1" >>confdefs.h
 
7002
 
 
7003
    IMGOBJS="$IMGOBJS win/win_w3mimg.o"
 
7004
    IMGTARGETS="${IMGTARGETS} win"
 
7005
    IMGWINCFLAGS="-I/usr/include/w32api"
 
7006
    IMGWINLDFLAGS="-lgdiplus -lgdi32 -luser32"
 
7007
    IMGLINK='$(CXX)'
 
7008
  fi
 
7009
  $as_echo "#define IMGTARGETS \"\$IMGTARGETS\"" >>confdefs.h
 
7010
 
 
7011
  $as_echo "#define IMGOBJS \"\$IMGOBJS\"" >>confdefs.h
 
7012
 
 
7013
  $as_echo "#define IMGX11CFLAGS \"\$IMGX11CFLAGS\"" >>confdefs.h
 
7014
 
 
7015
  $as_echo "#define IMGX11LDFLAGS \"\$IMGX11LDFLAGS\"" >>confdefs.h
 
7016
 
 
7017
  $as_echo "#define IMGFBCFLAGS \"\$IMGFBCFLAGS\"" >>confdefs.h
 
7018
 
 
7019
  $as_echo "#define IMGFBLDFLAGS \"\$IMGFBLDFLAGS\"" >>confdefs.h
 
7020
 
 
7021
  $as_echo "#define IMGLINK \"\$IMGLINK\"" >>confdefs.h
 
7022
 
 
7023
  $as_echo "#define IMGWINCFLAGS \"\$IMGWINCFLAGS\"" >>confdefs.h
 
7024
 
 
7025
  $as_echo "#define IMGWINLDFLAGS \"\$IMGWINLDFLAGS\"" >>confdefs.h
 
7026
 
 
7027
 fi
 
7028
if test x"$enable_image" != xno; then
 
7029
 AUXBIN_TARGETS="$AUXBIN_TARGETS w3mimgdisplay\$(EXT)"
 
7030
 
 
7031
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if xface is enabled" >&5
 
7032
$as_echo_n "checking if xface is enabled... " >&6; }
 
7033
 # Check whether --enable-xface was given.
 
7034
if test "${enable_xface+set}" = set; then :
 
7035
  enableval=$enable_xface;
 
7036
else
 
7037
  enable_xface="$enable_image"
 
7038
fi
 
7039
 
 
7040
 test x"$enable_xface" = xyes && $as_echo "#define USE_XFACE 1" >>confdefs.h
 
7041
 
 
7042
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xface" >&5
 
7043
$as_echo "$enable_xface" >&6; }
 
7044
 # Extract the first word of "uncompface", so it can be a program name with args.
 
7045
set dummy uncompface; ac_word=$2
 
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7047
$as_echo_n "checking for $ac_word... " >&6; }
 
7048
if test "${ac_cv_prog_uncompface+set}" = set; then :
 
7049
  $as_echo_n "(cached) " >&6
 
7050
else
 
7051
  if test -n "$uncompface"; then
 
7052
  ac_cv_prog_uncompface="$uncompface" # Let the user override the test.
 
7053
else
 
7054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7055
for as_dir in $PATH
 
7056
do
 
7057
  IFS=$as_save_IFS
 
7058
  test -z "$as_dir" && as_dir=.
 
7059
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7060
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7061
    ac_cv_prog_uncompface=""yes""
 
7062
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7063
    break 2
 
7064
  fi
 
7065
done
 
7066
  done
 
7067
IFS=$as_save_IFS
 
7068
 
 
7069
  test -z "$ac_cv_prog_uncompface" && ac_cv_prog_uncompface=""no""
 
7070
fi
 
7071
fi
 
7072
uncompface=$ac_cv_prog_uncompface
 
7073
if test -n "$uncompface"; then
 
7074
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uncompface" >&5
 
7075
$as_echo "$uncompface" >&6; }
 
7076
else
 
7077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7078
$as_echo "no" >&6; }
 
7079
fi
 
7080
 
 
7081
 
 
7082
 test "$uncompface" = "no" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uncompface is not installed." >&5
 
7083
$as_echo "$as_me: WARNING: uncompface is not installed." >&2;}
 
7084
 
 
7085
fi
 
7086
 
 
7087
 
 
7088
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default keymap" >&5
 
7089
$as_echo_n "checking default keymap... " >&6; }
 
7090
 # Check whether --enable-keymap was given.
 
7091
if test "${enable_keymap+set}" = set; then :
 
7092
  enableval=$enable_keymap;
 
7093
else
 
7094
  enable_keymap="w3m"
 
7095
fi
 
7096
 
 
7097
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_keymap" >&5
 
7098
$as_echo "$enable_keymap" >&6; }
 
7099
 case x"$enable_keymap" in
 
7100
 xw3m)
 
7101
  KEYMAP_FILE="keybind";;
 
7102
 xlynx)
 
7103
  KEYMAP_FILE="keybind_lynx";;
 
7104
 *)
 
7105
  as_fn_error $? "keymap should be either w3m or lynx." "$LINENO" 5 ;;
 
7106
 esac
 
7107
 
 
7108
 HELP_FILE=w3mhelp-${enable_keymap}_$w3m_lang.html
 
7109
 cat >>confdefs.h <<_ACEOF
 
7110
#define HELP_FILE "$HELP_FILE"
 
7111
_ACEOF
 
7112
 
 
7113
 
 
7114
 cat >>confdefs.h <<_ACEOF
 
7115
#define KEYBIND $enable_keymap
 
7116
_ACEOF
 
7117
 
 
7118
 
 
7119
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if popup menu is enabled" >&5
 
7120
$as_echo_n "checking if popup menu is enabled... " >&6; }
 
7121
# Check whether --enable-menu was given.
 
7122
if test "${enable_menu+set}" = set; then :
 
7123
  enableval=$enable_menu;
 
7124
else
 
7125
  enable_menu="yes"
 
7126
fi
 
7127
 
 
7128
 test x"$enable_menu" = xyes && $as_echo "#define USE_MENU 1" >>confdefs.h
 
7129
 
 
7130
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_menu" >&5
 
7131
$as_echo "$enable_menu" >&6; }
 
7132
 
 
7133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if mouse operation enabled" >&5
 
7134
$as_echo_n "checking if mouse operation enabled... " >&6; }
 
7135
# Check whether --enable-mouse was given.
 
7136
if test "${enable_mouse+set}" = set; then :
 
7137
  enableval=$enable_mouse;
 
7138
else
 
7139
  enable_mouse="yes"
 
7140
fi
 
7141
 
 
7142
test x"$enable_mouse" = xyes && $as_echo "#define USE_MOUSE 1" >>confdefs.h
 
7143
 
 
7144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mouse" >&5
 
7145
$as_echo "$enable_mouse" >&6; }
 
7146
 
 
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if URL history is enabled" >&5
 
7148
$as_echo_n "checking if URL history is enabled... " >&6; }
 
7149
# Check whether --enable-history was given.
 
7150
if test "${enable_history+set}" = set; then :
 
7151
  enableval=$enable_history;
 
7152
else
 
7153
  enable_history="yes"
 
7154
fi
 
7155
 
 
7156
 test x"$enable_history" = xyes && $as_echo "#define USE_HISTORY 1" >>confdefs.h
 
7157
 
 
7158
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_history" >&5
 
7159
$as_echo "$enable_history" >&6; }
 
7160
 
 
7161
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is enabled" >&5
 
7162
$as_echo_n "checking if alarm is enabled... " >&6; }
 
7163
 # Check whether --enable-alarm was given.
 
7164
if test "${enable_alarm+set}" = set; then :
 
7165
  enableval=$enable_alarm;
 
7166
else
 
7167
  enable_alarm="yes"
 
7168
fi
 
7169
 
 
7170
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_alarm" >&5
 
7171
$as_echo "$enable_alarm" >&6; }
 
7172
 if test x"$enable_alarm" = xyes; then
 
7173
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7174
/* end confdefs.h.  */
 
7175
#include <unistd.h>
 
7176
#include <signal.h>
 
7177
int
 
7178
main ()
 
7179
{
 
7180
int sa = SIGALRM;
 
7181
     void (*a) = alarm;
 
7182
  ;
 
7183
  return 0;
 
7184
}
 
7185
_ACEOF
 
7186
if ac_fn_c_try_compile "$LINENO"; then :
 
7187
  $as_echo "#define USE_ALARM 1" >>confdefs.h
 
7188
 
 
7189
fi
 
7190
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7191
 fi
 
7192
 
 
7193
 
 
7194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if cookie is enabled" >&5
 
7195
$as_echo_n "checking if cookie is enabled... " >&6; }
 
7196
# Check whether --enable-cookie was given.
 
7197
if test "${enable_cookie+set}" = set; then :
 
7198
  enableval=$enable_cookie;
 
7199
else
 
7200
  enable_cookie="yes"
 
7201
fi
 
7202
 
 
7203
test x"$enable_cookie" = xyes && $as_echo "#define USE_COOKIE 1" >>confdefs.h
 
7204
 
 
7205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cookie" >&5
 
7206
$as_echo "$enable_cookie" >&6; }
 
7207
 
 
7208
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nntp is enabled" >&5
 
7209
$as_echo_n "checking if nntp is enabled... " >&6; }
 
7210
 # Check whether --enable-nntp was given.
 
7211
if test "${enable_nntp+set}" = set; then :
 
7212
  enableval=$enable_nntp;
 
7213
else
 
7214
  enable_nntp="yes"
 
7215
fi
 
7216
 
 
7217
 test x"$enable_nntp" = xyes && $as_echo "#define USE_NNTP 1" >>confdefs.h
 
7218
 
 
7219
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nntp" >&5
 
7220
$as_echo "$enable_nntp" >&6; }
 
7221
 
 
7222
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gopher is enabled" >&5
 
7223
$as_echo_n "checking if gopher is enabled... " >&6; }
 
7224
 # Check whether --enable-gopher was given.
 
7225
if test "${enable_gopher+set}" = set; then :
 
7226
  enableval=$enable_gopher;
 
7227
else
 
7228
  enable_gopher="no"
 
7229
fi
 
7230
 
 
7231
 test x"$enable_gopher" = xyes &&  $as_echo "#define USE_GOPHER 1" >>confdefs.h
 
7232
 
 
7233
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gopher" >&5
 
7234
$as_echo "$enable_gopher" >&6; }
 
7235
 
 
7236
 
 
7237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dictionary lookup is enabled" >&5
 
7238
$as_echo_n "checking if dictionary lookup is enabled... " >&6; }
 
7239
# Check whether --enable-dict was given.
 
7240
if test "${enable_dict+set}" = set; then :
 
7241
  enableval=$enable_dict;
 
7242
else
 
7243
  enable_dict="yes"
 
7244
fi
 
7245
 
 
7246
 test x"$enable_dict" = xyes && $as_echo "#define USE_DICT 1" >>confdefs.h
 
7247
 
 
7248
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dict" >&5
 
7249
$as_echo "$enable_dict" >&6; }
 
7250
 
 
7251
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if help cgi is enabled" >&5
 
7252
$as_echo_n "checking if help cgi is enabled... " >&6; }
 
7253
 # Check whether --enable-help_cgi was given.
 
7254
if test "${enable_help_cgi+set}" = set; then :
 
7255
  enableval=$enable_help_cgi;
 
7256
else
 
7257
  enable_help_cgi="yes"
 
7258
fi
 
7259
 
 
7260
 test x"$enable_help_cgi" = xyes && $as_echo "#define USE_HELP_CGI 1" >>confdefs.h
 
7261
 
 
7262
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_help_cgi" >&5
 
7263
$as_echo "$enable_help_cgi" >&6; }
 
7264
 
 
7265
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external URI loader is enabled" >&5
 
7266
$as_echo_n "checking if external URI loader is enabled... " >&6; }
 
7267
 # Check whether --enable-external_uri_loader was given.
 
7268
if test "${enable_external_uri_loader+set}" = set; then :
 
7269
  enableval=$enable_external_uri_loader;
 
7270
else
 
7271
  enable_external_uri_loader="yes"
 
7272
fi
 
7273
 
 
7274
 test x"$enable_external_uri_loader" = xyes && $as_echo "#define USE_EXTERNAL_URI_LOADER 1" >>confdefs.h
 
7275
 
 
7276
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_uri_loader" >&5
 
7277
$as_echo "$enable_external_uri_loader" >&6; }
 
7278
 
 
7279
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if w3mmail is used" >&5
 
7280
$as_echo_n "checking if w3mmail is used... " >&6; }
 
7281
 # Check whether --enable-w3mmailer was given.
 
7282
if test "${enable_w3mmailer+set}" = set; then :
 
7283
  enableval=$enable_w3mmailer;
 
7284
else
 
7285
  enable_w3mmailer="$enable_external_uri_loader"
 
7286
fi
 
7287
 
 
7288
 test x"$enable_external_uri_loader" = xno && enable_w3mmailer=no
 
7289
 test x"$enable_w3mmailer" = xyes && $as_echo "#define USE_W3MMAILER 1" >>confdefs.h
 
7290
 
 
7291
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_w3mmailer" >&5
 
7292
$as_echo "$enable_w3mmailer" >&6; }
 
7293
 
 
7294
 
 
7295
 migemo_command="migemo -t egrep /usr/local/share/migemo/migemo-dict"
 
7296
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if migemo is supported with" >&5
 
7297
$as_echo_n "checking if migemo is supported with... " >&6; }
 
7298
 
 
7299
# Check whether --with-migemo was given.
 
7300
if test "${with_migemo+set}" = set; then :
 
7301
  withval=$with_migemo; test x"$with_migemo" = xyes || migemo_command="$with_migemo"
 
7302
fi
 
7303
 
 
7304
 if test "${with_migemo+set}" = set -a "$with_migemo" != "no"; then
 
7305
   $as_echo "#define USE_MIGEMO 1" >>confdefs.h
 
7306
 
 
7307
 fi
 
7308
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $migemo_command" >&5
 
7309
$as_echo "$migemo_command" >&6; }
 
7310
 cat >>confdefs.h <<_ACEOF
 
7311
#define DEF_MIGEMO_COMMAND "$migemo_command"
 
7312
_ACEOF
 
7313
 
 
7314
 
 
7315
w3m_editor="/usr/bin/vi"
 
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which editor is used by default" >&5
 
7317
$as_echo_n "checking which editor is used by default... " >&6; }
 
7318
 
 
7319
# Check whether --with-editor was given.
 
7320
if test "${with_editor+set}" = set; then :
 
7321
  withval=$with_editor; w3m_editor="$with_editor"
 
7322
fi
 
7323
 
 
7324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_editor" >&5
 
7325
$as_echo "$w3m_editor" >&6; }
 
7326
cat >>confdefs.h <<_ACEOF
 
7327
#define DEF_EDITOR "$w3m_editor"
 
7328
_ACEOF
 
7329
 
 
7330
 
 
7331
w3m_mailer="/usr/bin/mail"
 
7332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which mailer is used by default" >&5
 
7333
$as_echo_n "checking which mailer is used by default... " >&6; }
 
7334
 
 
7335
# Check whether --with-mailer was given.
 
7336
if test "${with_mailer+set}" = set; then :
 
7337
  withval=$with_mailer; w3m_mailer="$with_mailer"
 
7338
fi
 
7339
 
 
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_mailer" >&5
 
7341
$as_echo "$w3m_mailer" >&6; }
 
7342
cat >>confdefs.h <<_ACEOF
 
7343
#define DEF_MAILER "$w3m_mailer"
 
7344
_ACEOF
 
7345
 
 
7346
 
 
7347
w3m_browser="/usr/bin/mozilla"
 
7348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which external browser is used by default" >&5
 
7349
$as_echo_n "checking which external browser is used by default... " >&6; }
 
7350
 
 
7351
# Check whether --with-browser was given.
 
7352
if test "${with_browser+set}" = set; then :
 
7353
  withval=$with_browser; w3m_browser="$with_browser"
 
7354
fi
 
7355
 
 
7356
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $w3m_browser" >&5
 
7357
$as_echo "$w3m_browser" >&6; }
 
7358
cat >>confdefs.h <<_ACEOF
 
7359
#define DEF_EXT_BROWSER "$w3m_browser"
 
7360
_ACEOF
 
7361
 
 
7362
 
 
7363
for lib in bsd BSD 44bsd socket nsl dld dl
 
7364
do
 
7365
 lib=$lib
 
7366
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$lib" >&5
 
7367
$as_echo_n "checking for -l$lib... " >&6; }
 
7368
 extlib="not found"
 
7369
 for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib /lib64 /usr/lib64
 
7370
 do
 
7371
   if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then
 
7372
    LIBS="$LIBS -l$lib"
 
7373
    extlib="found at $dir"
 
7374
    break
 
7375
   fi
 
7376
 done
 
7377
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $extlib" >&5
 
7378
$as_echo "$extlib" >&6; }
 
7379
done
 
7380
 
 
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support is enabled" >&5
 
7382
$as_echo_n "checking if IPv6 support is enabled... " >&6; }
 
7383
# Check whether --enable-ipv6 was given.
 
7384
if test "${enable_ipv6+set}" = set; then :
 
7385
  enableval=$enable_ipv6;
 
7386
else
 
7387
  enable_ipv6="yes"
 
7388
fi
 
7389
 
 
7390
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ipv6" >&5
 
7391
$as_echo "$enable_ipv6" >&6; }
 
7392
 
 
7393
if test x"$enable_ipv6" = xyes; then
 
7394
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 API available" >&5
 
7395
$as_echo_n "checking if IPv6 API available... " >&6; }
 
7396
 
 
7397
 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
 
7398
if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
 
7399
  enable_ipv6="yes"
 
7400
else
 
7401
  enable_ipv6="no"
 
7402
fi
 
7403
 
 
7404
 if test x"$enable_ipv6" = xno; then
 
7405
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libinet6" >&5
 
7406
$as_echo_n "checking for libinet6... " >&6; }
 
7407
    for dir in /usr/local/v6/lib /usr/local/lib /usr/lib
 
7408
    do
 
7409
        if test -f $dir/libinet6.a; then
 
7410
          if test $dir != "/usr/lib"; then
 
7411
                W3M_LIBS="$W3M_LIBS -L$dir"
 
7412
          fi
 
7413
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
 
7414
$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
 
7415
if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then :
 
7416
  $as_echo_n "(cached) " >&6
 
7417
else
 
7418
  ac_check_lib_save_LIBS=$LIBS
 
7419
LIBS="-linet6  $LIBS"
 
7420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7421
/* end confdefs.h.  */
 
7422
 
 
7423
/* Override any GCC internal prototype to avoid an error.
 
7424
   Use char because int might match the return type of a GCC
 
7425
   builtin and then its argument prototype would still apply.  */
 
7426
#ifdef __cplusplus
 
7427
extern "C"
 
7428
#endif
 
7429
char getaddrinfo ();
 
7430
int
 
7431
main ()
 
7432
{
 
7433
return getaddrinfo ();
 
7434
  ;
 
7435
  return 0;
 
7436
}
 
7437
_ACEOF
 
7438
if ac_fn_c_try_link "$LINENO"; then :
 
7439
  ac_cv_lib_inet6_getaddrinfo=yes
 
7440
else
 
7441
  ac_cv_lib_inet6_getaddrinfo=no
 
7442
fi
 
7443
rm -f core conftest.err conftest.$ac_objext \
 
7444
    conftest$ac_exeext conftest.$ac_ext
 
7445
LIBS=$ac_check_lib_save_LIBS
 
7446
fi
 
7447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
 
7448
$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
 
7449
if test "x$ac_cv_lib_inet6_getaddrinfo" = x""yes; then :
 
7450
  enable_ipv6="yes"
 
7451
                 use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break
 
7452
else
 
7453
  use_libinet6="not found"
 
7454
fi
 
7455
 
 
7456
        fi
 
7457
    done
 
7458
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libinet6" >&5
 
7459
$as_echo "$use_libinet6" >&6; }
 
7460
 fi
 
7461
 if test x"$enable_ipv6" = xyes; then
 
7462
 
 
7463
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_storage has an ss_family member" >&5
 
7464
$as_echo_n "checking if struct sockaddr_storage has an ss_family member... " >&6; }
 
7465
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7466
/* end confdefs.h.  */
 
7467
 
 
7468
#include <sys/types.h>
 
7469
#include <sys/socket.h>
 
7470
 
 
7471
int
 
7472
main ()
 
7473
{
 
7474
 
 
7475
        struct sockaddr_storage ss;
 
7476
        int i = ss.ss_family;
 
7477
 
 
7478
  ;
 
7479
  return 0;
 
7480
}
 
7481
_ACEOF
 
7482
if ac_fn_c_try_compile "$LINENO"; then :
 
7483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7484
$as_echo "yes" >&6; }
 
7485
else
 
7486
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7487
/* end confdefs.h.  */
 
7488
 
 
7489
#include <sys/types.h>
 
7490
#include <sys/socket.h>
 
7491
 
 
7492
int
 
7493
main ()
 
7494
{
 
7495
 
 
7496
        struct sockaddr_storage ss;
 
7497
        int i = ss.__ss_family;
 
7498
 
 
7499
  ;
 
7500
  return 0;
 
7501
}
 
7502
_ACEOF
 
7503
if ac_fn_c_try_compile "$LINENO"; then :
 
7504
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7505
$as_echo "no" >&6; }
 
7506
         $as_echo "#define HAVE_OLD_SS_FAMILY 1" >>confdefs.h
 
7507
 
 
7508
else
 
7509
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7510
$as_echo "no" >&6; }
 
7511
         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IPv6 support is disabled" >&5
 
7512
$as_echo "$as_me: WARNING: IPv6 support is disabled" >&2;}
 
7513
         enable_ipv6="no"
 
7514
fi
 
7515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7516
 
 
7517
fi
 
7518
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7519
 fi
 
7520
 if test x"$enable_ipv6" = xyes; then
 
7521
    $as_echo "#define INET6 1" >>confdefs.h
 
7522
 
 
7523
 fi
 
7524
fi
 
7525
 
 
7526
 
 
7527
 
 
7528
 
 
7529
 
 
7530
 
 
7531
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
7532
        if test -n "$ac_tool_prefix"; then
 
7533
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
7534
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
7535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7536
$as_echo_n "checking for $ac_word... " >&6; }
 
7537
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
7538
  $as_echo_n "(cached) " >&6
 
7539
else
 
7540
  case $PKG_CONFIG in
 
7541
  [\\/]* | ?:[\\/]*)
 
7542
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
7543
  ;;
 
7544
  *)
 
7545
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7546
for as_dir in $PATH
 
7547
do
 
7548
  IFS=$as_save_IFS
 
7549
  test -z "$as_dir" && as_dir=.
 
7550
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7551
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7552
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
7553
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7554
    break 2
 
7555
  fi
 
7556
done
 
7557
  done
 
7558
IFS=$as_save_IFS
 
7559
 
 
7560
  ;;
 
7561
esac
 
7562
fi
 
7563
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
7564
if test -n "$PKG_CONFIG"; then
 
7565
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
7566
$as_echo "$PKG_CONFIG" >&6; }
 
7567
else
 
7568
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7569
$as_echo "no" >&6; }
 
7570
fi
 
7571
 
 
7572
 
 
7573
fi
 
7574
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
7575
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
7576
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
7577
set dummy pkg-config; ac_word=$2
 
7578
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
7579
$as_echo_n "checking for $ac_word... " >&6; }
 
7580
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
 
7581
  $as_echo_n "(cached) " >&6
 
7582
else
 
7583
  case $ac_pt_PKG_CONFIG in
 
7584
  [\\/]* | ?:[\\/]*)
 
7585
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
7586
  ;;
 
7587
  *)
 
7588
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7589
for as_dir in $PATH
 
7590
do
 
7591
  IFS=$as_save_IFS
 
7592
  test -z "$as_dir" && as_dir=.
 
7593
    for ac_exec_ext in '' $ac_executable_extensions; do
 
7594
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7595
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
7596
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7597
    break 2
 
7598
  fi
 
7599
done
 
7600
  done
 
7601
IFS=$as_save_IFS
 
7602
 
 
7603
  ;;
 
7604
esac
 
7605
fi
 
7606
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
7607
if test -n "$ac_pt_PKG_CONFIG"; then
 
7608
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
 
7609
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
7610
else
 
7611
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7612
$as_echo "no" >&6; }
 
7613
fi
 
7614
 
 
7615
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
7616
    PKG_CONFIG=""
 
7617
  else
 
7618
    case $cross_compiling:$ac_tool_warned in
 
7619
yes:)
 
7620
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
7621
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7622
ac_tool_warned=yes ;;
 
7623
esac
 
7624
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
7625
  fi
 
7626
else
 
7627
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
7628
fi
 
7629
 
 
7630
fi
 
7631
if test -n "$PKG_CONFIG"; then
 
7632
        _pkg_min_version=0.9.0
 
7633
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
 
7634
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
7635
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
7636
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7637
$as_echo "yes" >&6; }
 
7638
        else
 
7639
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7640
$as_echo "no" >&6; }
 
7641
                PKG_CONFIG=""
 
7642
        fi
 
7643
fi
 
7644
 
 
7645
 
 
7646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL is suported" >&5
 
7647
$as_echo_n "checking if SSL is suported... " >&6; }
 
7648
 
 
7649
# Check whether --with-ssl was given.
 
7650
if test "${with_ssl+set}" = set; then :
 
7651
  withval=$with_ssl;
 
7652
else
 
7653
  with_ssl="yes"
 
7654
fi
 
7655
 
 
7656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
 
7657
$as_echo "$with_ssl" >&6; }
 
7658
if test x"$with_ssl" != xno; then
 
7659
 
 
7660
pkg_failed=no
 
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL" >&5
 
7662
$as_echo_n "checking for SSL... " >&6; }
 
7663
 
 
7664
if test -n "$SSL_CFLAGS"; then
 
7665
    pkg_cv_SSL_CFLAGS="$SSL_CFLAGS"
 
7666
 elif test -n "$PKG_CONFIG"; then
 
7667
    if test -n "$PKG_CONFIG" && \
 
7668
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
 
7669
  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
 
7670
  ac_status=$?
 
7671
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7672
  test $ac_status = 0; }; then
 
7673
  pkg_cv_SSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
 
7674
else
 
7675
  pkg_failed=yes
 
7676
fi
 
7677
 else
 
7678
    pkg_failed=untried
 
7679
fi
 
7680
if test -n "$SSL_LIBS"; then
 
7681
    pkg_cv_SSL_LIBS="$SSL_LIBS"
 
7682
 elif test -n "$PKG_CONFIG"; then
 
7683
    if test -n "$PKG_CONFIG" && \
 
7684
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
 
7685
  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
 
7686
  ac_status=$?
 
7687
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
7688
  test $ac_status = 0; }; then
 
7689
  pkg_cv_SSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
 
7690
else
 
7691
  pkg_failed=yes
 
7692
fi
 
7693
 else
 
7694
    pkg_failed=untried
 
7695
fi
 
7696
 
 
7697
 
 
7698
 
 
7699
if test $pkg_failed = yes; then
 
7700
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7701
$as_echo "no" >&6; }
 
7702
 
 
7703
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
7704
        _pkg_short_errors_supported=yes
 
7705
else
 
7706
        _pkg_short_errors_supported=no
 
7707
fi
 
7708
        if test $_pkg_short_errors_supported = yes; then
 
7709
                SSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openssl" 2>&1`
 
7710
        else
 
7711
                SSL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openssl" 2>&1`
 
7712
        fi
 
7713
        # Put the nasty error message in config.log where it belongs
 
7714
        echo "$SSL_PKG_ERRORS" >&5
 
7715
 
 
7716
 
 
7717
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5
 
7718
$as_echo_n "checking for SSL library/header... " >&6; }
 
7719
    test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
 
7720
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
 
7721
$as_echo "$with_ssl" >&6; }
 
7722
    for dir in $with_ssl
 
7723
    do
 
7724
       if test -f "$dir/include/openssl/ssl.h"; then
 
7725
          SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
 
7726
          if test "$dir" != "/usr"; then
 
7727
             SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
 
7728
          fi
 
7729
       elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
 
7730
          SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
 
7731
       fi
 
7732
       if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
 
7733
          SSL_LIBS="$SSL_LIBS -L$dir/lib"
 
7734
       fi
 
7735
    done
 
7736
 
 
7737
elif test $pkg_failed = untried; then
 
7738
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7739
$as_echo "no" >&6; }
 
7740
 
 
7741
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL library/header" >&5
 
7742
$as_echo_n "checking for SSL library/header... " >&6; }
 
7743
    test x"$with_ssl" = xyes && with_ssl="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
 
7744
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ssl" >&5
 
7745
$as_echo "$with_ssl" >&6; }
 
7746
    for dir in $with_ssl
 
7747
    do
 
7748
       if test -f "$dir/include/openssl/ssl.h"; then
 
7749
          SSL_CFLAGS="$SSL_CFLAGS -I$dir/include/openssl"
 
7750
          if test "$dir" != "/usr"; then
 
7751
             SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
 
7752
          fi
 
7753
       elif test "$dir" != "/usr" -a -f "$dir/include/ssl.h"; then
 
7754
          SSL_CFLAGS="$SSL_CFLAGS -I$dir/include"
 
7755
       fi
 
7756
       if test "$dir" != "/usr" -a -f "$dir/lib/libssl.a"; then
 
7757
          SSL_LIBS="$SSL_LIBS -L$dir/lib"
 
7758
       fi
 
7759
    done
 
7760
 
 
7761
else
 
7762
        SSL_CFLAGS=$pkg_cv_SSL_CFLAGS
 
7763
        SSL_LIBS=$pkg_cv_SSL_LIBS
 
7764
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7765
$as_echo "yes" >&6; }
 
7766
 
 
7767
fi
 
7768
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
 
7769
$as_echo_n "checking for SSL_new in -lssl... " >&6; }
 
7770
if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
 
7771
  $as_echo_n "(cached) " >&6
 
7772
else
 
7773
  ac_check_lib_save_LIBS=$LIBS
 
7774
LIBS="-lssl $SSL_LIBS -lcrypto $LIBS"
 
7775
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7776
/* end confdefs.h.  */
 
7777
 
 
7778
/* Override any GCC internal prototype to avoid an error.
 
7779
   Use char because int might match the return type of a GCC
 
7780
   builtin and then its argument prototype would still apply.  */
 
7781
#ifdef __cplusplus
 
7782
extern "C"
 
7783
#endif
 
7784
char SSL_new ();
 
7785
int
 
7786
main ()
 
7787
{
 
7788
return SSL_new ();
 
7789
  ;
 
7790
  return 0;
 
7791
}
 
7792
_ACEOF
 
7793
if ac_fn_c_try_link "$LINENO"; then :
 
7794
  ac_cv_lib_ssl_SSL_new=yes
 
7795
else
 
7796
  ac_cv_lib_ssl_SSL_new=no
 
7797
fi
 
7798
rm -f core conftest.err conftest.$ac_objext \
 
7799
    conftest$ac_exeext conftest.$ac_ext
 
7800
LIBS=$ac_check_lib_save_LIBS
 
7801
fi
 
7802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
 
7803
$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
 
7804
if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
 
7805
  w3m_ssl="found"; CFLAGS="$CFLAGS $SSL_CFLAGS" W3M_LIBS="$W3M_LIBS $SSL_LIBS -lssl -lcrypto"
 
7806
else
 
7807
  w3m_ssl="not found"
 
7808
fi
 
7809
 
 
7810
 
 
7811
  if test x"$w3m_ssl" = xfound; then
 
7812
    $as_echo "#define USE_SSL 1" >>confdefs.h
 
7813
 
 
7814
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SSL certificate verify is enabled" >&5
 
7815
$as_echo_n "checking if SSL certificate verify is enabled... " >&6; }
 
7816
    # Check whether --enable-sslverify was given.
 
7817
if test "${enable_sslverify+set}" = set; then :
 
7818
  enableval=$enable_sslverify;
 
7819
else
 
7820
  enable_sslverify="yes"
 
7821
fi
 
7822
 
 
7823
    test x"$enable_sslverify" = xyes && $as_echo "#define USE_SSL_VERIFY 1" >>confdefs.h
 
7824
 
 
7825
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sslverify" >&5
 
7826
$as_echo "$enable_sslverify" >&6; }
 
7827
  fi
 
7828
fi
 
7829
 
 
7830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if digest auth is enabled" >&5
 
7831
$as_echo_n "checking if digest auth is enabled... " >&6; }
 
7832
# Check whether --enable-digest_auth was given.
 
7833
if test "${enable_digest_auth+set}" = set; then :
 
7834
  enableval=$enable_digest_auth;
 
7835
else
 
7836
  enable_digest_auth="yes"
 
7837
fi
 
7838
 
 
7839
if test x"$enable_digest_auth" = xyes -a x"$w3m_ssl" = xfound; then
 
7840
  $as_echo "#define USE_DIGEST_AUTH 1" >>confdefs.h
 
7841
 
 
7842
else
 
7843
  enable_digest_auth="no"
 
7844
fi
 
7845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_digest_auth" >&5
 
7846
$as_echo "$enable_digest_auth" >&6; }
 
7847
 
 
7848
 
 
7849
ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
 
7850
if test "x$ac_cv_func_sqrt" = x""yes; then :
 
7851
 
 
7852
else
 
7853
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
 
7854
$as_echo_n "checking for sqrt in -lm... " >&6; }
 
7855
if test "${ac_cv_lib_m_sqrt+set}" = set; then :
 
7856
  $as_echo_n "(cached) " >&6
 
7857
else
 
7858
  ac_check_lib_save_LIBS=$LIBS
 
7859
LIBS="-lm  $LIBS"
 
7860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7861
/* end confdefs.h.  */
 
7862
 
 
7863
/* Override any GCC internal prototype to avoid an error.
 
7864
   Use char because int might match the return type of a GCC
 
7865
   builtin and then its argument prototype would still apply.  */
 
7866
#ifdef __cplusplus
 
7867
extern "C"
 
7868
#endif
 
7869
char sqrt ();
 
7870
int
 
7871
main ()
 
7872
{
 
7873
return sqrt ();
 
7874
  ;
 
7875
  return 0;
 
7876
}
 
7877
_ACEOF
 
7878
if ac_fn_c_try_link "$LINENO"; then :
 
7879
  ac_cv_lib_m_sqrt=yes
 
7880
else
 
7881
  ac_cv_lib_m_sqrt=no
 
7882
fi
 
7883
rm -f core conftest.err conftest.$ac_objext \
 
7884
    conftest$ac_exeext conftest.$ac_ext
 
7885
LIBS=$ac_check_lib_save_LIBS
 
7886
fi
 
7887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
 
7888
$as_echo "$ac_cv_lib_m_sqrt" >&6; }
 
7889
if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
 
7890
  cat >>confdefs.h <<_ACEOF
 
7891
#define HAVE_LIBM 1
 
7892
_ACEOF
 
7893
 
 
7894
  LIBS="-lm $LIBS"
 
7895
 
 
7896
fi
 
7897
 
 
7898
fi
 
7899
 
 
7900
if test x"$enable_mouse" = xyes; then
 
7901
 
 
7902
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
 
7903
$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
 
7904
if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
 
7905
  $as_echo_n "(cached) " >&6
 
7906
else
 
7907
  ac_check_lib_save_LIBS=$LIBS
 
7908
LIBS="-lgpm  $LIBS"
 
7909
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7910
/* end confdefs.h.  */
 
7911
 
 
7912
/* Override any GCC internal prototype to avoid an error.
 
7913
   Use char because int might match the return type of a GCC
 
7914
   builtin and then its argument prototype would still apply.  */
 
7915
#ifdef __cplusplus
 
7916
extern "C"
 
7917
#endif
 
7918
char Gpm_Open ();
 
7919
int
 
7920
main ()
 
7921
{
 
7922
return Gpm_Open ();
 
7923
  ;
 
7924
  return 0;
 
7925
}
 
7926
_ACEOF
 
7927
if ac_fn_c_try_link "$LINENO"; then :
 
7928
  ac_cv_lib_gpm_Gpm_Open=yes
 
7929
else
 
7930
  ac_cv_lib_gpm_Gpm_Open=no
 
7931
fi
 
7932
rm -f core conftest.err conftest.$ac_objext \
 
7933
    conftest$ac_exeext conftest.$ac_ext
 
7934
LIBS=$ac_check_lib_save_LIBS
 
7935
fi
 
7936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
 
7937
$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
 
7938
if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
 
7939
  $as_echo "#define USE_GPM 1" >>confdefs.h
 
7940
 
 
7941
                W3M_LIBS="$W3M_LIBS -lgpm"
 
7942
fi
 
7943
 
 
7944
 
 
7945
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7946
/* end confdefs.h.  */
 
7947
#include <sys/consio.h>
 
7948
   MOUSE_GETINFO
 
7949
_ACEOF
 
7950
if ac_fn_c_try_cpp "$LINENO"; then :
 
7951
  $as_echo "#define USE_SYSMOUSE 1" >>confdefs.h
 
7952
 
 
7953
else
 
7954
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7955
/* end confdefs.h.  */
 
7956
#include <machine/console.h>
 
7957
      MOUSE_GETINFO
 
7958
_ACEOF
 
7959
if ac_fn_c_try_cpp "$LINENO"; then :
 
7960
  $as_echo "#define USE_SYSMOUSE 1" >>confdefs.h
 
7961
 
 
7962
fi
 
7963
rm -f conftest.err conftest.i conftest.$ac_ext
 
7964
fi
 
7965
rm -f conftest.err conftest.i conftest.$ac_ext
 
7966
fi
 
7967
 
 
7968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking terminal library" >&5
 
7969
$as_echo_n "checking terminal library... " >&6; }
 
7970
 
 
7971
# Check whether --with-termlib was given.
 
7972
if test "${with_termlib+set}" = set; then :
 
7973
  withval=$with_termlib;
 
7974
else
 
7975
  with_termlib="yes"
 
7976
fi
 
7977
 
 
7978
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_termlib" >&5
 
7979
$as_echo "$with_termlib" >&6; }
 
7980
 test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap ncurses curses"
 
7981
 for lib in $with_termlib; do
 
7982
   as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_tgetent" | $as_tr_sh`
 
7983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l$lib" >&5
 
7984
$as_echo_n "checking for tgetent in -l$lib... " >&6; }
 
7985
if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
 
7986
  $as_echo_n "(cached) " >&6
 
7987
else
 
7988
  ac_check_lib_save_LIBS=$LIBS
 
7989
LIBS="-l$lib  $LIBS"
 
7990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7991
/* end confdefs.h.  */
 
7992
 
 
7993
/* Override any GCC internal prototype to avoid an error.
 
7994
   Use char because int might match the return type of a GCC
 
7995
   builtin and then its argument prototype would still apply.  */
 
7996
#ifdef __cplusplus
 
7997
extern "C"
 
7998
#endif
 
7999
char tgetent ();
 
8000
int
 
8001
main ()
 
8002
{
 
8003
return tgetent ();
 
8004
  ;
 
8005
  return 0;
 
8006
}
 
8007
_ACEOF
 
8008
if ac_fn_c_try_link "$LINENO"; then :
 
8009
  eval "$as_ac_Lib=yes"
 
8010
else
 
8011
  eval "$as_ac_Lib=no"
 
8012
fi
 
8013
rm -f core conftest.err conftest.$ac_objext \
 
8014
    conftest$ac_exeext conftest.$ac_ext
 
8015
LIBS=$ac_check_lib_save_LIBS
 
8016
fi
 
8017
eval ac_res=\$$as_ac_Lib
 
8018
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8019
$as_echo "$ac_res" >&6; }
 
8020
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
 
8021
  W3M_LIBS="$W3M_LIBS -l$lib"; break
 
8022
fi
 
8023
 
 
8024
 done
 
8025
 
 
8026
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8027
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8028
if test "${ac_cv_header_stdc+set}" = set; then :
 
8029
  $as_echo_n "(cached) " >&6
 
8030
else
 
8031
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8032
/* end confdefs.h.  */
 
8033
#include <stdlib.h>
 
8034
#include <stdarg.h>
 
8035
#include <string.h>
 
8036
#include <float.h>
 
8037
 
 
8038
int
 
8039
main ()
 
8040
{
 
8041
 
 
8042
  ;
 
8043
  return 0;
 
8044
}
 
8045
_ACEOF
 
8046
if ac_fn_c_try_compile "$LINENO"; then :
 
8047
  ac_cv_header_stdc=yes
 
8048
else
 
8049
  ac_cv_header_stdc=no
 
8050
fi
 
8051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8052
 
 
8053
if test $ac_cv_header_stdc = yes; then
 
8054
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8055
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8056
/* end confdefs.h.  */
 
8057
#include <string.h>
 
8058
 
 
8059
_ACEOF
 
8060
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8061
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8062
 
 
8063
else
 
8064
  ac_cv_header_stdc=no
 
8065
fi
 
8066
rm -f conftest*
 
8067
 
 
8068
fi
 
8069
 
 
8070
if test $ac_cv_header_stdc = yes; then
 
8071
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8072
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8073
/* end confdefs.h.  */
 
8074
#include <stdlib.h>
 
8075
 
 
8076
_ACEOF
 
8077
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8078
  $EGREP "free" >/dev/null 2>&1; then :
 
8079
 
 
8080
else
 
8081
  ac_cv_header_stdc=no
 
8082
fi
 
8083
rm -f conftest*
 
8084
 
 
8085
fi
 
8086
 
 
8087
if test $ac_cv_header_stdc = yes; then
 
8088
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8089
  if test "$cross_compiling" = yes; then :
 
8090
  :
 
8091
else
 
8092
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8093
/* end confdefs.h.  */
 
8094
#include <ctype.h>
 
8095
#include <stdlib.h>
 
8096
#if ((' ' & 0x0FF) == 0x020)
 
8097
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8098
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8099
#else
 
8100
# define ISLOWER(c) \
 
8101
                   (('a' <= (c) && (c) <= 'i') \
 
8102
                     || ('j' <= (c) && (c) <= 'r') \
 
8103
                     || ('s' <= (c) && (c) <= 'z'))
 
8104
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8105
#endif
 
8106
 
 
8107
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8108
int
 
8109
main ()
 
8110
{
 
8111
  int i;
 
8112
  for (i = 0; i < 256; i++)
 
8113
    if (XOR (islower (i), ISLOWER (i))
 
8114
        || toupper (i) != TOUPPER (i))
 
8115
      return 2;
 
8116
  return 0;
 
8117
}
 
8118
_ACEOF
 
8119
if ac_fn_c_try_run "$LINENO"; then :
 
8120
 
 
8121
else
 
8122
  ac_cv_header_stdc=no
 
8123
fi
 
8124
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8125
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8126
fi
 
8127
 
 
8128
fi
 
8129
fi
 
8130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8131
$as_echo "$ac_cv_header_stdc" >&6; }
 
8132
if test $ac_cv_header_stdc = yes; then
 
8133
 
 
8134
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8135
 
 
8136
fi
 
8137
 
 
8138
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
8139
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
8140
                  inttypes.h stdint.h unistd.h
 
8141
do :
 
8142
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8143
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
8144
"
 
8145
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8146
  cat >>confdefs.h <<_ACEOF
 
8147
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8148
_ACEOF
 
8149
 
 
8150
fi
 
8151
 
 
8152
done
 
8153
 
 
8154
 
 
8155
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library exists" >&5
 
8156
$as_echo_n "checking GC library exists... " >&6; }
 
8157
 
 
8158
 
 
8159
# Check whether --with-gc was given.
 
8160
if test "${with_gc+set}" = set; then :
 
8161
  withval=$with_gc; test x"$with_gc" = xno && as_fn_error $? "You can not build w3m without gc" "$LINENO" 5
 
8162
else
 
8163
  with_gc="yes"
 
8164
fi
 
8165
 
 
8166
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
 
8167
$as_echo "$with_gc" >&6; }
 
8168
 test x"$with_gc" = xyes && with_gc="/usr /usr/local ${HOME}"
 
8169
 unset ac_cv_header_gc_h
 
8170
 ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
 
8171
if test "x$ac_cv_header_gc_h" = x""yes; then :
 
8172
 
 
8173
fi
 
8174
 
 
8175
 
 
8176
 if test x"$ac_cv_header_gc_h" = xno; then
 
8177
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC header location" >&5
 
8178
$as_echo_n "checking GC header location... " >&6; }
 
8179
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
 
8180
$as_echo "$with_gc" >&6; }
 
8181
   gcincludedir=no
 
8182
   for dir in $with_gc; do
 
8183
     for inc in include include/gc; do
 
8184
       cppflags="$CPPFLAGS"
 
8185
       CPPFLAGS="$CPPFLAGS -I$dir/$inc"
 
8186
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir/$inc" >&5
 
8187
$as_echo_n "checking $dir/$inc... " >&6; }
 
8188
       unset ac_cv_header_gc_h
 
8189
       ac_fn_c_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default"
 
8190
if test "x$ac_cv_header_gc_h" = x""yes; then :
 
8191
  gcincludedir="$dir/$inc"; CFLAGS="$CFLAGS -I$dir/$inc"; break
 
8192
fi
 
8193
 
 
8194
 
 
8195
       CPPFLAGS="$cppflags"
 
8196
     done
 
8197
     if test x"$gcincludedir" != xno; then
 
8198
       break;
 
8199
     fi
 
8200
   done
 
8201
   if test x"$gcincludedir" = xno; then
 
8202
     as_fn_error $? "gc.h not found" "$LINENO" 5
 
8203
   fi
 
8204
 fi
 
8205
 unset ac_cv_lib_gc_GC_init
 
8206
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5
 
8207
$as_echo_n "checking for GC_init in -lgc... " >&6; }
 
8208
if test "${ac_cv_lib_gc_GC_init+set}" = set; then :
 
8209
  $as_echo_n "(cached) " >&6
 
8210
else
 
8211
  ac_check_lib_save_LIBS=$LIBS
 
8212
LIBS="-lgc  $LIBS"
 
8213
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8214
/* end confdefs.h.  */
 
8215
 
 
8216
/* Override any GCC internal prototype to avoid an error.
 
8217
   Use char because int might match the return type of a GCC
 
8218
   builtin and then its argument prototype would still apply.  */
 
8219
#ifdef __cplusplus
 
8220
extern "C"
 
8221
#endif
 
8222
char GC_init ();
 
8223
int
 
8224
main ()
 
8225
{
 
8226
return GC_init ();
 
8227
  ;
 
8228
  return 0;
 
8229
}
 
8230
_ACEOF
 
8231
if ac_fn_c_try_link "$LINENO"; then :
 
8232
  ac_cv_lib_gc_GC_init=yes
 
8233
else
 
8234
  ac_cv_lib_gc_GC_init=no
 
8235
fi
 
8236
rm -f core conftest.err conftest.$ac_objext \
 
8237
    conftest$ac_exeext conftest.$ac_ext
 
8238
LIBS=$ac_check_lib_save_LIBS
 
8239
fi
 
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
 
8241
$as_echo "$ac_cv_lib_gc_GC_init" >&6; }
 
8242
if test "x$ac_cv_lib_gc_GC_init" = x""yes; then :
 
8243
  LIBGC="-lgc"
 
8244
fi
 
8245
 
 
8246
 if test x"$ac_cv_lib_gc_GC_init" = xno; then
 
8247
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking GC library location" >&5
 
8248
$as_echo_n "checking GC library location... " >&6; }
 
8249
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gc" >&5
 
8250
$as_echo "$with_gc" >&6; }
 
8251
    gclibdir=no
 
8252
    for dir in $with_gc; do
 
8253
      ldflags="$LDFLAGS"
 
8254
      LDFLAGS="$LDFLAGS -L$dir/lib"
 
8255
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking $dir" >&5
 
8256
$as_echo_n "checking $dir... " >&6; }
 
8257
      unset ac_cv_lib_gc_GC_init
 
8258
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_init in -lgc" >&5
 
8259
$as_echo_n "checking for GC_init in -lgc... " >&6; }
 
8260
if test "${ac_cv_lib_gc_GC_init+set}" = set; then :
 
8261
  $as_echo_n "(cached) " >&6
 
8262
else
 
8263
  ac_check_lib_save_LIBS=$LIBS
 
8264
LIBS="-lgc  $LIBS"
 
8265
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8266
/* end confdefs.h.  */
 
8267
 
 
8268
/* Override any GCC internal prototype to avoid an error.
 
8269
   Use char because int might match the return type of a GCC
 
8270
   builtin and then its argument prototype would still apply.  */
 
8271
#ifdef __cplusplus
 
8272
extern "C"
 
8273
#endif
 
8274
char GC_init ();
 
8275
int
 
8276
main ()
 
8277
{
 
8278
return GC_init ();
 
8279
  ;
 
8280
  return 0;
 
8281
}
 
8282
_ACEOF
 
8283
if ac_fn_c_try_link "$LINENO"; then :
 
8284
  ac_cv_lib_gc_GC_init=yes
 
8285
else
 
8286
  ac_cv_lib_gc_GC_init=no
 
8287
fi
 
8288
rm -f core conftest.err conftest.$ac_objext \
 
8289
    conftest$ac_exeext conftest.$ac_ext
 
8290
LIBS=$ac_check_lib_save_LIBS
 
8291
fi
 
8292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_init" >&5
 
8293
$as_echo "$ac_cv_lib_gc_GC_init" >&6; }
 
8294
if test "x$ac_cv_lib_gc_GC_init" = x""yes; then :
 
8295
  gclibdir="$dir/lib"; LIBGC="-L$dir/lib -lgc"; break
 
8296
fi
 
8297
 
 
8298
      LDFLAGS="$ldflags"
 
8299
    done
 
8300
    if test x"$gclibdir" = xno; then
 
8301
      as_fn_error $? "libgc not found" "$LINENO" 5
 
8302
    fi
 
8303
 fi
 
8304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zError in -lz" >&5
 
8305
$as_echo_n "checking for zError in -lz... " >&6; }
 
8306
if test "${ac_cv_lib_z_zError+set}" = set; then :
 
8307
  $as_echo_n "(cached) " >&6
 
8308
else
 
8309
  ac_check_lib_save_LIBS=$LIBS
 
8310
LIBS="-lz  $LIBS"
 
8311
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8312
/* end confdefs.h.  */
 
8313
 
 
8314
/* Override any GCC internal prototype to avoid an error.
 
8315
   Use char because int might match the return type of a GCC
 
8316
   builtin and then its argument prototype would still apply.  */
 
8317
#ifdef __cplusplus
 
8318
extern "C"
 
8319
#endif
 
8320
char zError ();
 
8321
int
 
8322
main ()
 
8323
{
 
8324
return zError ();
 
8325
  ;
 
8326
  return 0;
 
8327
}
 
8328
_ACEOF
 
8329
if ac_fn_c_try_link "$LINENO"; then :
 
8330
  ac_cv_lib_z_zError=yes
 
8331
else
 
8332
  ac_cv_lib_z_zError=no
 
8333
fi
 
8334
rm -f core conftest.err conftest.$ac_objext \
 
8335
    conftest$ac_exeext conftest.$ac_ext
 
8336
LIBS=$ac_check_lib_save_LIBS
 
8337
fi
 
8338
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zError" >&5
 
8339
$as_echo "$ac_cv_lib_z_zError" >&6; }
 
8340
if test "x$ac_cv_lib_z_zError" = x""yes; then :
 
8341
  AUXBIN_TARGETS="$AUXBIN_TARGETS inflate\$(EXT)"
 
8342
fi
 
8343
 
 
8344
 
 
8345
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
 
8346
          #include <sys/socket.h>
 
8347
"
 
8348
if test "x$ac_cv_type_socklen_t" = x""yes; then :
 
8349
  $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
 
8350
 
 
8351
fi
 
8352
 
 
8353
 
 
8354
$as_echo "#define AUXBIN_TARGETS \"\$AUXBIN_TARGETS\"" >>confdefs.h
 
8355
 
 
8356
 
 
8357
 
 
8358
case "$host_os" in
 
8359
  *cygwin*|*os2-emx*|*mingw*)
 
8360
    $as_echo "#define USE_BINMODE_STREAM 1" >>confdefs.h
 
8361
 
 
8362
    ;;
 
8363
esac
 
8364
 
 
8365
ac_header_dirent=no
 
8366
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
8367
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
8368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
8369
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
8370
if eval "test \"\${$as_ac_Header+set}\"" = set; then :
 
8371
  $as_echo_n "(cached) " >&6
 
8372
else
 
8373
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8374
/* end confdefs.h.  */
 
8375
#include <sys/types.h>
 
8376
#include <$ac_hdr>
 
8377
 
 
8378
int
 
8379
main ()
 
8380
{
 
8381
if ((DIR *) 0)
 
8382
return 0;
 
8383
  ;
 
8384
  return 0;
 
8385
}
 
8386
_ACEOF
 
8387
if ac_fn_c_try_compile "$LINENO"; then :
 
8388
  eval "$as_ac_Header=yes"
 
8389
else
 
8390
  eval "$as_ac_Header=no"
 
8391
fi
 
8392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8393
fi
 
8394
eval ac_res=\$$as_ac_Header
 
8395
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
8396
$as_echo "$ac_res" >&6; }
 
8397
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
8398
  cat >>confdefs.h <<_ACEOF
 
8399
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
8400
_ACEOF
 
8401
 
 
8402
ac_header_dirent=$ac_hdr; break
 
8403
fi
 
8404
 
 
8405
done
 
8406
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
8407
if test $ac_header_dirent = dirent.h; then
 
8408
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
8409
$as_echo_n "checking for library containing opendir... " >&6; }
 
8410
if test "${ac_cv_search_opendir+set}" = set; then :
 
8411
  $as_echo_n "(cached) " >&6
 
8412
else
 
8413
  ac_func_search_save_LIBS=$LIBS
 
8414
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8415
/* end confdefs.h.  */
 
8416
 
 
8417
/* Override any GCC internal prototype to avoid an error.
 
8418
   Use char because int might match the return type of a GCC
 
8419
   builtin and then its argument prototype would still apply.  */
 
8420
#ifdef __cplusplus
 
8421
extern "C"
 
8422
#endif
 
8423
char opendir ();
 
8424
int
 
8425
main ()
 
8426
{
 
8427
return opendir ();
 
8428
  ;
 
8429
  return 0;
 
8430
}
 
8431
_ACEOF
 
8432
for ac_lib in '' dir; do
 
8433
  if test -z "$ac_lib"; then
 
8434
    ac_res="none required"
 
8435
  else
 
8436
    ac_res=-l$ac_lib
 
8437
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8438
  fi
 
8439
  if ac_fn_c_try_link "$LINENO"; then :
 
8440
  ac_cv_search_opendir=$ac_res
 
8441
fi
 
8442
rm -f core conftest.err conftest.$ac_objext \
 
8443
    conftest$ac_exeext
 
8444
  if test "${ac_cv_search_opendir+set}" = set; then :
 
8445
  break
 
8446
fi
 
8447
done
 
8448
if test "${ac_cv_search_opendir+set}" = set; then :
 
8449
 
 
8450
else
 
8451
  ac_cv_search_opendir=no
 
8452
fi
 
8453
rm conftest.$ac_ext
 
8454
LIBS=$ac_func_search_save_LIBS
 
8455
fi
 
8456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
8457
$as_echo "$ac_cv_search_opendir" >&6; }
 
8458
ac_res=$ac_cv_search_opendir
 
8459
if test "$ac_res" != no; then :
 
8460
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8461
 
 
8462
fi
 
8463
 
 
8464
else
 
8465
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
8466
$as_echo_n "checking for library containing opendir... " >&6; }
 
8467
if test "${ac_cv_search_opendir+set}" = set; then :
 
8468
  $as_echo_n "(cached) " >&6
 
8469
else
 
8470
  ac_func_search_save_LIBS=$LIBS
 
8471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8472
/* end confdefs.h.  */
 
8473
 
 
8474
/* Override any GCC internal prototype to avoid an error.
 
8475
   Use char because int might match the return type of a GCC
 
8476
   builtin and then its argument prototype would still apply.  */
 
8477
#ifdef __cplusplus
 
8478
extern "C"
 
8479
#endif
 
8480
char opendir ();
 
8481
int
 
8482
main ()
 
8483
{
 
8484
return opendir ();
 
8485
  ;
 
8486
  return 0;
 
8487
}
 
8488
_ACEOF
 
8489
for ac_lib in '' x; do
 
8490
  if test -z "$ac_lib"; then
 
8491
    ac_res="none required"
 
8492
  else
 
8493
    ac_res=-l$ac_lib
 
8494
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
8495
  fi
 
8496
  if ac_fn_c_try_link "$LINENO"; then :
 
8497
  ac_cv_search_opendir=$ac_res
 
8498
fi
 
8499
rm -f core conftest.err conftest.$ac_objext \
 
8500
    conftest$ac_exeext
 
8501
  if test "${ac_cv_search_opendir+set}" = set; then :
 
8502
  break
 
8503
fi
 
8504
done
 
8505
if test "${ac_cv_search_opendir+set}" = set; then :
 
8506
 
 
8507
else
 
8508
  ac_cv_search_opendir=no
 
8509
fi
 
8510
rm conftest.$ac_ext
 
8511
LIBS=$ac_func_search_save_LIBS
 
8512
fi
 
8513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
8514
$as_echo "$ac_cv_search_opendir" >&6; }
 
8515
ac_res=$ac_cv_search_opendir
 
8516
if test "$ac_res" != no; then :
 
8517
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
8518
 
 
8519
fi
 
8520
 
 
8521
fi
 
8522
 
 
8523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
8524
$as_echo_n "checking for ANSI C header files... " >&6; }
 
8525
if test "${ac_cv_header_stdc+set}" = set; then :
 
8526
  $as_echo_n "(cached) " >&6
 
8527
else
 
8528
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8529
/* end confdefs.h.  */
 
8530
#include <stdlib.h>
 
8531
#include <stdarg.h>
 
8532
#include <string.h>
 
8533
#include <float.h>
 
8534
 
 
8535
int
 
8536
main ()
 
8537
{
 
8538
 
 
8539
  ;
 
8540
  return 0;
 
8541
}
 
8542
_ACEOF
 
8543
if ac_fn_c_try_compile "$LINENO"; then :
 
8544
  ac_cv_header_stdc=yes
 
8545
else
 
8546
  ac_cv_header_stdc=no
 
8547
fi
 
8548
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8549
 
 
8550
if test $ac_cv_header_stdc = yes; then
 
8551
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
8552
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8553
/* end confdefs.h.  */
 
8554
#include <string.h>
 
8555
 
 
8556
_ACEOF
 
8557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8558
  $EGREP "memchr" >/dev/null 2>&1; then :
 
8559
 
 
8560
else
 
8561
  ac_cv_header_stdc=no
 
8562
fi
 
8563
rm -f conftest*
 
8564
 
 
8565
fi
 
8566
 
 
8567
if test $ac_cv_header_stdc = yes; then
 
8568
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
8569
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8570
/* end confdefs.h.  */
 
8571
#include <stdlib.h>
 
8572
 
 
8573
_ACEOF
 
8574
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
8575
  $EGREP "free" >/dev/null 2>&1; then :
 
8576
 
 
8577
else
 
8578
  ac_cv_header_stdc=no
 
8579
fi
 
8580
rm -f conftest*
 
8581
 
 
8582
fi
 
8583
 
 
8584
if test $ac_cv_header_stdc = yes; then
 
8585
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
8586
  if test "$cross_compiling" = yes; then :
 
8587
  :
 
8588
else
 
8589
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8590
/* end confdefs.h.  */
 
8591
#include <ctype.h>
 
8592
#include <stdlib.h>
 
8593
#if ((' ' & 0x0FF) == 0x020)
 
8594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
8595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
8596
#else
 
8597
# define ISLOWER(c) \
 
8598
                   (('a' <= (c) && (c) <= 'i') \
 
8599
                     || ('j' <= (c) && (c) <= 'r') \
 
8600
                     || ('s' <= (c) && (c) <= 'z'))
 
8601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
8602
#endif
 
8603
 
 
8604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
8605
int
 
8606
main ()
 
8607
{
 
8608
  int i;
 
8609
  for (i = 0; i < 256; i++)
 
8610
    if (XOR (islower (i), ISLOWER (i))
 
8611
        || toupper (i) != TOUPPER (i))
 
8612
      return 2;
 
8613
  return 0;
 
8614
}
 
8615
_ACEOF
 
8616
if ac_fn_c_try_run "$LINENO"; then :
 
8617
 
 
8618
else
 
8619
  ac_cv_header_stdc=no
 
8620
fi
 
8621
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8622
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8623
fi
 
8624
 
 
8625
fi
 
8626
fi
 
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
8628
$as_echo "$ac_cv_header_stdc" >&6; }
 
8629
if test $ac_cv_header_stdc = yes; then
 
8630
 
 
8631
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
8632
 
 
8633
fi
 
8634
 
 
8635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
8636
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
 
8637
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
 
8638
  $as_echo_n "(cached) " >&6
 
8639
else
 
8640
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8641
/* end confdefs.h.  */
 
8642
#include <sys/types.h>
 
8643
#include <sys/wait.h>
 
8644
#ifndef WEXITSTATUS
 
8645
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
8646
#endif
 
8647
#ifndef WIFEXITED
 
8648
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
8649
#endif
 
8650
 
 
8651
int
 
8652
main ()
 
8653
{
 
8654
  int s;
 
8655
  wait (&s);
 
8656
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
8657
  ;
 
8658
  return 0;
 
8659
}
 
8660
_ACEOF
 
8661
if ac_fn_c_try_compile "$LINENO"; then :
 
8662
  ac_cv_header_sys_wait_h=yes
 
8663
else
 
8664
  ac_cv_header_sys_wait_h=no
 
8665
fi
 
8666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8667
fi
 
8668
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
 
8669
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
 
8670
if test $ac_cv_header_sys_wait_h = yes; then
 
8671
 
 
8672
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
 
8673
 
 
8674
fi
 
8675
 
 
8676
ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
 
8677
if test "x$ac_cv_header_termios_h" = x""yes; then :
 
8678
  $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h
 
8679
 
 
8680
else
 
8681
  ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
 
8682
if test "x$ac_cv_header_termio_h" = x""yes; then :
 
8683
  $as_echo "#define HAVE_TERMIO_H 1" >>confdefs.h
 
8684
 
 
8685
else
 
8686
  ac_fn_c_check_header_mongrel "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
 
8687
if test "x$ac_cv_header_sgtty_h" = x""yes; then :
 
8688
  $as_echo "#define HAVE_SGTTY_H 1" >>confdefs.h
 
8689
 
 
8690
fi
 
8691
 
 
8692
 
 
8693
fi
 
8694
 
 
8695
 
 
8696
fi
 
8697
 
 
8698
 
 
8699
ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
 
8700
if test "x$ac_cv_header_float_h" = x""yes; then :
 
8701
  $as_echo "#define HAVE_FLOAT_H 1" >>confdefs.h
 
8702
 
 
8703
fi
 
8704
 
 
8705
 
 
8706
ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
 
8707
if test "x$ac_cv_header_sys_select_h" = x""yes; then :
 
8708
  $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
 
8709
 
 
8710
fi
 
8711
 
 
8712
 
 
8713
ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
 
8714
if test "x$ac_cv_header_locale_h" = x""yes; then :
 
8715
  $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
 
8716
 
 
8717
fi
 
8718
 
 
8719
 
 
8720
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
 
8721
if test "x$ac_cv_header_stdint_h" = x""yes; then :
 
8722
  $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
 
8723
 
 
8724
fi
 
8725
 
 
8726
 
 
8727
ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
 
8728
if test "x$ac_cv_header_inttypes_h" = x""yes; then :
 
8729
  $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
 
8730
 
 
8731
fi
 
8732
 
 
8733
 
 
8734
 
 
8735
# The cast to long int works around a bug in the HP C Compiler
 
8736
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
8737
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
8738
# This bug is HP SR number 8606223364.
 
8739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
 
8740
$as_echo_n "checking size of long long... " >&6; }
 
8741
if test "${ac_cv_sizeof_long_long+set}" = set; then :
 
8742
  $as_echo_n "(cached) " >&6
 
8743
else
 
8744
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
 
8745
 
 
8746
else
 
8747
  if test "$ac_cv_type_long_long" = yes; then
 
8748
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
8749
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
8750
as_fn_error 77 "cannot compute sizeof (long long)
 
8751
See \`config.log' for more details" "$LINENO" 5 ; }
 
8752
   else
 
8753
     ac_cv_sizeof_long_long=0
 
8754
   fi
 
8755
fi
 
8756
 
 
8757
fi
 
8758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
 
8759
$as_echo "$ac_cv_sizeof_long_long" >&6; }
 
8760
 
 
8761
 
 
8762
 
 
8763
cat >>confdefs.h <<_ACEOF
 
8764
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
8765
_ACEOF
 
8766
 
 
8767
 
 
8768
 
 
8769
for ac_func in strcasecmp strcasestr strchr memcpy strerror bcopy setpgrp chdir getcwd getwd readlink setenv putenv strtoll stroq atoll atoq symlink readlink lstat srand48 srandom getpassphrase waitpid setlocale
 
8770
do :
 
8771
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8772
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
8773
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
 
8774
  cat >>confdefs.h <<_ACEOF
 
8775
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8776
_ACEOF
 
8777
 
 
8778
fi
 
8779
done
 
8780
 
 
8781
for ac_func in strftime
 
8782
do :
 
8783
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
 
8784
if test "x$ac_cv_func_strftime" = x""yes; then :
 
8785
  cat >>confdefs.h <<_ACEOF
 
8786
#define HAVE_STRFTIME 1
 
8787
_ACEOF
 
8788
 
 
8789
else
 
8790
  # strftime is in -lintl on SCO UNIX.
 
8791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
 
8792
$as_echo_n "checking for strftime in -lintl... " >&6; }
 
8793
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
 
8794
  $as_echo_n "(cached) " >&6
 
8795
else
 
8796
  ac_check_lib_save_LIBS=$LIBS
 
8797
LIBS="-lintl  $LIBS"
 
8798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8799
/* end confdefs.h.  */
 
8800
 
 
8801
/* Override any GCC internal prototype to avoid an error.
 
8802
   Use char because int might match the return type of a GCC
 
8803
   builtin and then its argument prototype would still apply.  */
 
8804
#ifdef __cplusplus
 
8805
extern "C"
 
8806
#endif
 
8807
char strftime ();
 
8808
int
 
8809
main ()
 
8810
{
 
8811
return strftime ();
 
8812
  ;
 
8813
  return 0;
 
8814
}
 
8815
_ACEOF
 
8816
if ac_fn_c_try_link "$LINENO"; then :
 
8817
  ac_cv_lib_intl_strftime=yes
 
8818
else
 
8819
  ac_cv_lib_intl_strftime=no
 
8820
fi
 
8821
rm -f core conftest.err conftest.$ac_objext \
 
8822
    conftest$ac_exeext conftest.$ac_ext
 
8823
LIBS=$ac_check_lib_save_LIBS
 
8824
fi
 
8825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
 
8826
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
 
8827
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
 
8828
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
 
8829
 
 
8830
LIBS="-lintl $LIBS"
 
8831
fi
 
8832
 
 
8833
fi
 
8834
done
 
8835
 
 
8836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
 
8837
$as_echo_n "checking for wait3 that fills in rusage... " >&6; }
 
8838
if test "${ac_cv_func_wait3_rusage+set}" = set; then :
 
8839
  $as_echo_n "(cached) " >&6
 
8840
else
 
8841
  if test "$cross_compiling" = yes; then :
 
8842
  ac_cv_func_wait3_rusage=no
 
8843
else
 
8844
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8845
/* end confdefs.h.  */
 
8846
$ac_includes_default
 
8847
#include <sys/time.h>
 
8848
#include <sys/resource.h>
 
8849
#include <sys/wait.h>
 
8850
/* HP-UX has wait3 but does not fill in rusage at all.  */
 
8851
int
 
8852
main ()
 
8853
{
 
8854
  struct rusage r;
 
8855
  int i;
 
8856
  /* Use a field that we can force nonzero --
 
8857
     voluntary context switches.
 
8858
     For systems like NeXT and OSF/1 that don't set it,
 
8859
     also use the system CPU time.  And page faults (I/O) for Linux.  */
 
8860
  r.ru_nvcsw = 0;
 
8861
  r.ru_stime.tv_sec = 0;
 
8862
  r.ru_stime.tv_usec = 0;
 
8863
  r.ru_majflt = r.ru_minflt = 0;
 
8864
  switch (fork ())
 
8865
    {
 
8866
    case 0: /* Child.  */
 
8867
      sleep(1); /* Give up the CPU.  */
 
8868
      _exit(0);
 
8869
      break;
 
8870
    case -1: /* What can we do?  */
 
8871
      _exit(0);
 
8872
      break;
 
8873
    default: /* Parent.  */
 
8874
      wait3(&i, 0, &r);
 
8875
      /* Avoid "text file busy" from rm on fast HP-UX machines.  */
 
8876
      sleep(2);
 
8877
      return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
 
8878
              && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
 
8879
    }
 
8880
}
 
8881
_ACEOF
 
8882
if ac_fn_c_try_run "$LINENO"; then :
 
8883
  ac_cv_func_wait3_rusage=yes
 
8884
else
 
8885
  ac_cv_func_wait3_rusage=no
 
8886
fi
 
8887
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8888
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8889
fi
 
8890
 
 
8891
fi
 
8892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
 
8893
$as_echo "$ac_cv_func_wait3_rusage" >&6; }
 
8894
if test $ac_cv_func_wait3_rusage = yes; then
 
8895
 
 
8896
$as_echo "#define HAVE_WAIT3 1" >>confdefs.h
 
8897
 
 
8898
fi
 
8899
 
 
8900
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
 
8901
$as_echo_n "checking whether setpgrp takes no argument... " >&6; }
 
8902
if test "${ac_cv_func_setpgrp_void+set}" = set; then :
 
8903
  $as_echo_n "(cached) " >&6
 
8904
else
 
8905
  if test "$cross_compiling" = yes; then :
 
8906
  as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
 
8907
else
 
8908
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8909
/* end confdefs.h.  */
 
8910
$ac_includes_default
 
8911
int
 
8912
main ()
 
8913
{
 
8914
/* If this system has a BSD-style setpgrp which takes arguments,
 
8915
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
 
8916
  exit successfully. */
 
8917
  return setpgrp (1,1) != -1;
 
8918
  ;
 
8919
  return 0;
 
8920
}
 
8921
_ACEOF
 
8922
if ac_fn_c_try_run "$LINENO"; then :
 
8923
  ac_cv_func_setpgrp_void=no
 
8924
else
 
8925
  ac_cv_func_setpgrp_void=yes
 
8926
fi
 
8927
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
8928
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
8929
fi
 
8930
 
 
8931
fi
 
8932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
 
8933
$as_echo "$ac_cv_func_setpgrp_void" >&6; }
 
8934
if test $ac_cv_func_setpgrp_void = yes; then
 
8935
 
 
8936
$as_echo "#define SETPGRP_VOID 1" >>confdefs.h
 
8937
 
 
8938
fi
 
8939
 
 
8940
case "$host_os" in
 
8941
  *cygwin*)
 
8942
    ;;
 
8943
  *)
 
8944
 
 
8945
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
 
8946
$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
 
8947
if test "${am_cv_langinfo_codeset+set}" = set; then :
 
8948
  $as_echo_n "(cached) " >&6
 
8949
else
 
8950
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8951
/* end confdefs.h.  */
 
8952
#include <langinfo.h>
 
8953
int
 
8954
main ()
 
8955
{
 
8956
char* cs = nl_langinfo(CODESET); return !cs;
 
8957
  ;
 
8958
  return 0;
 
8959
}
 
8960
_ACEOF
 
8961
if ac_fn_c_try_link "$LINENO"; then :
 
8962
  am_cv_langinfo_codeset=yes
 
8963
else
 
8964
  am_cv_langinfo_codeset=no
 
8965
fi
 
8966
rm -f core conftest.err conftest.$ac_objext \
 
8967
    conftest$ac_exeext conftest.$ac_ext
 
8968
 
 
8969
fi
 
8970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
 
8971
$as_echo "$am_cv_langinfo_codeset" >&6; }
 
8972
  if test $am_cv_langinfo_codeset = yes; then
 
8973
 
 
8974
$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
 
8975
 
 
8976
  fi
 
8977
 
 
8978
    ;;
 
8979
esac
 
8980
 
 
8981
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist" >&5
 
8982
$as_echo_n "checking for sys_errlist... " >&6; }
 
8983
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8984
/* end confdefs.h.  */
 
8985
extern char *sys_errlist[];
 
8986
int
 
8987
main ()
 
8988
{
 
8989
printf(sys_errlist[0]);
 
8990
  ;
 
8991
  return 0;
 
8992
}
 
8993
_ACEOF
 
8994
if ac_fn_c_try_compile "$LINENO"; then :
 
8995
  have_sys_errlist="yes"; $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
 
8996
 
 
8997
else
 
8998
  have_sys_errlist="no"
 
8999
fi
 
9000
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_errlist" >&5
 
9002
$as_echo "$have_sys_errlist" >&6; }
 
9003
 
 
9004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
 
9005
$as_echo_n "checking for sigsetjmp... " >&6; }
 
9006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9007
/* end confdefs.h.  */
 
9008
#include <setjmp.h>
 
9009
int
 
9010
main ()
 
9011
{
 
9012
 jmp_buf env;
 
9013
   if (sigsetjmp(env, 1) != 0) { exit(0); } siglongjmp(env, 1);
 
9014
  ;
 
9015
  return 0;
 
9016
}
 
9017
_ACEOF
 
9018
if ac_fn_c_try_compile "$LINENO"; then :
 
9019
  have_sigsetjmp="yes"; $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
 
9020
 
 
9021
else
 
9022
  have_sigsetjmp="no"
 
9023
fi
 
9024
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sigsetjmp" >&5
 
9026
$as_echo "$have_sigsetjmp" >&6; }
 
9027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
 
9028
$as_echo_n "checking return type of signal handlers... " >&6; }
 
9029
if test "${ac_cv_type_signal+set}" = set; then :
 
9030
  $as_echo_n "(cached) " >&6
 
9031
else
 
9032
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9033
/* end confdefs.h.  */
 
9034
#include <sys/types.h>
 
9035
#include <signal.h>
 
9036
 
 
9037
int
 
9038
main ()
 
9039
{
 
9040
return *(signal (0, 0)) (0) == 1;
 
9041
  ;
 
9042
  return 0;
 
9043
}
 
9044
_ACEOF
 
9045
if ac_fn_c_try_compile "$LINENO"; then :
 
9046
  ac_cv_type_signal=int
 
9047
else
 
9048
  ac_cv_type_signal=void
 
9049
fi
 
9050
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
9051
fi
 
9052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
 
9053
$as_echo "$ac_cv_type_signal" >&6; }
 
9054
 
 
9055
cat >>confdefs.h <<_ACEOF
 
9056
#define RETSIGTYPE $ac_cv_type_signal
 
9057
_ACEOF
 
9058
 
 
9059
 
 
9060
 
 
9061
 
 
9062
 if test x"$ac_cv_type_signal" = xvoid; then
 
9063
  $as_echo "#define SIGNAL_RETURN return" >>confdefs.h
 
9064
 
 
9065
 else
 
9066
  $as_echo "#define SIGNAL_RETURN return 0" >>confdefs.h
 
9067
 
 
9068
 fi
 
9069
 
 
9070
 
 
9071
HELP_DIR="$datadir/$PACKAGE"
 
9072
$as_echo "#define HELP_DIR \"\$HELP_DIR\"" >>confdefs.h
 
9073
 
 
9074
 
 
9075
RC_DIR="~/.$PACKAGE"
 
9076
$as_echo "#define RC_DIR \"\$RC_DIR\"" >>confdefs.h
 
9077
 
 
9078
 
 
9079
DOCDIRS="doc:en_English doc-jp:ja_Japanese"
 
9080
cat >>confdefs.h <<_ACEOF
 
9081
#define DOCDIRS "$DOCDIRS"
 
9082
_ACEOF
 
9083
 
 
9084
 
 
9085
 
 
9086
 cvsver=`$AWK '\$1 ~ /Id:/ { print \$3}' $srcdir/ChangeLog`
 
9087
 sed -e 's/define CURRENT_VERSION "\(.*\)+cvs/define CURRENT_VERSION "\1+cvs-'$cvsver'/' $srcdir/version.c.in > version.c
 
9088
 CURRENT_VERSION=`sed -n 's/.*define CURRENT_VERSION *"w3m\/\(.*\)".*$/\1/p' version.c`
 
9089
ac_config_files="$ac_config_files Makefile posubst po/Makefile.in scripts/Makefile scripts/dirlist.cgi scripts/w3mhelp.cgi scripts/w3mmail.cgi scripts/xface2xpm scripts/multipart/Makefile scripts/multipart/multipart.cgi scripts/w3mman/Makefile scripts/w3mman/w3mman scripts/w3mman/w3mman.1 scripts/w3mman/w3mman2html.cgi libwc/Makefile w3mimg/Makefile w3mimg/fb/Makefile w3mimg/x11/Makefile w3mimg/win/Makefile w3mhelp-w3m_en.html w3mhelp-w3m_ja.html w3mhelp-lynx_en.html w3mhelp-lynx_ja.html"
 
9090
 
 
9091
cat >confcache <<\_ACEOF
 
9092
# This file is a shell script that caches the results of configure
 
9093
# tests run on this system so they can be shared between configure
 
9094
# scripts and configure runs, see configure's option --config-cache.
 
9095
# It is not useful on other systems.  If it contains results you don't
 
9096
# want to keep, you may remove or edit it.
 
9097
#
 
9098
# config.status only pays attention to the cache file if you give it
 
9099
# the --recheck option to rerun configure.
 
9100
#
 
9101
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
9102
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
9103
# following values.
 
9104
 
 
9105
_ACEOF
 
9106
 
 
9107
# The following way of writing the cache mishandles newlines in values,
 
9108
# but we know of no workaround that is simple, portable, and efficient.
 
9109
# So, we kill variables containing newlines.
 
9110
# Ultrix sh set writes to stderr and can't be redirected directly,
 
9111
# and sets the high bit in the cache file unless we assign to the vars.
 
9112
(
 
9113
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
9114
    eval ac_val=\$$ac_var
 
9115
    case $ac_val in #(
 
9116
    *${as_nl}*)
 
9117
      case $ac_var in #(
 
9118
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
9119
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
9120
      esac
 
9121
      case $ac_var in #(
 
9122
      _ | IFS | as_nl) ;; #(
 
9123
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
9124
      *) { eval $ac_var=; unset $ac_var;} ;;
 
9125
      esac ;;
 
9126
    esac
 
9127
  done
 
9128
 
 
9129
  (set) 2>&1 |
 
9130
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
9131
    *${as_nl}ac_space=\ *)
 
9132
      # `set' does not quote correctly, so add quotes: double-quote
 
9133
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
9134
      sed -n \
 
9135
        "s/'/'\\\\''/g;
 
9136
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
9137
      ;; #(
 
9138
    *)
 
9139
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
9140
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
9141
      ;;
 
9142
    esac |
 
9143
    sort
 
9144
) |
 
9145
  sed '
 
9146
     /^ac_cv_env_/b end
 
9147
     t clear
 
9148
     :clear
 
9149
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
9150
     t end
 
9151
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
9152
     :end' >>confcache
 
9153
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
9154
  if test -w "$cache_file"; then
 
9155
    test "x$cache_file" != "x/dev/null" &&
 
9156
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
9157
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
9158
    cat confcache >$cache_file
 
9159
  else
 
9160
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
9161
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
9162
  fi
 
9163
fi
 
9164
rm -f confcache
 
9165
 
 
9166
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
9167
# Let make expand exec_prefix.
 
9168
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
9169
 
 
9170
DEFS=-DHAVE_CONFIG_H
 
9171
 
 
9172
ac_libobjs=
 
9173
ac_ltlibobjs=
 
9174
U=
 
9175
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
9176
  # 1. Remove the extension, and $U if already installed.
 
9177
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
9178
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
9179
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
9180
  #    will be set to the directory where LIBOBJS objects are built.
 
9181
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
9182
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
9183
done
 
9184
LIBOBJS=$ac_libobjs
 
9185
 
 
9186
LTLIBOBJS=$ac_ltlibobjs
 
9187
 
 
9188
 
 
9189
 
 
9190
: ${CONFIG_STATUS=./config.status}
 
9191
ac_write_fail=0
 
9192
ac_clean_files_save=$ac_clean_files
 
9193
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
9194
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
9195
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
9196
as_write_fail=0
 
9197
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
9198
#! $SHELL
 
9199
# Generated by $as_me.
 
9200
# Run this file to recreate the current configuration.
 
9201
# Compiler output produced by configure, useful for debugging
 
9202
# configure, is in config.log if it exists.
 
9203
 
 
9204
debug=false
 
9205
ac_cs_recheck=false
 
9206
ac_cs_silent=false
 
9207
 
 
9208
SHELL=\${CONFIG_SHELL-$SHELL}
 
9209
export SHELL
 
9210
_ASEOF
 
9211
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
9212
## -------------------- ##
 
9213
## M4sh Initialization. ##
 
9214
## -------------------- ##
 
9215
 
 
9216
# Be more Bourne compatible
 
9217
DUALCASE=1; export DUALCASE # for MKS sh
 
9218
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
9219
  emulate sh
 
9220
  NULLCMD=:
 
9221
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
9222
  # is contrary to our usage.  Disable this feature.
 
9223
  alias -g '${1+"$@"}'='"$@"'
 
9224
  setopt NO_GLOB_SUBST
 
9225
else
 
9226
  case `(set -o) 2>/dev/null` in #(
 
9227
  *posix*) :
 
9228
    set -o posix ;; #(
 
9229
  *) :
 
9230
     ;;
 
9231
esac
 
9232
fi
 
9233
 
 
9234
 
 
9235
as_nl='
 
9236
'
 
9237
export as_nl
 
9238
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
9239
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
9240
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
9241
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
9242
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
9243
# but without wasting forks for bash or zsh.
 
9244
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
9245
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
9246
  as_echo='print -r --'
 
9247
  as_echo_n='print -rn --'
 
9248
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
9249
  as_echo='printf %s\n'
 
9250
  as_echo_n='printf %s'
 
9251
else
 
9252
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
9253
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
9254
    as_echo_n='/usr/ucb/echo -n'
 
9255
  else
 
9256
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
9257
    as_echo_n_body='eval
 
9258
      arg=$1;
 
9259
      case $arg in #(
 
9260
      *"$as_nl"*)
 
9261
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
9262
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
9263
      esac;
 
9264
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
9265
    '
 
9266
    export as_echo_n_body
 
9267
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
9268
  fi
 
9269
  export as_echo_body
 
9270
  as_echo='sh -c $as_echo_body as_echo'
 
9271
fi
 
9272
 
 
9273
# The user is always right.
 
9274
if test "${PATH_SEPARATOR+set}" != set; then
 
9275
  PATH_SEPARATOR=:
 
9276
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
9277
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
9278
      PATH_SEPARATOR=';'
 
9279
  }
 
9280
fi
 
9281
 
 
9282
 
 
9283
# IFS
 
9284
# We need space, tab and new line, in precisely that order.  Quoting is
 
9285
# there to prevent editors from complaining about space-tab.
 
9286
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
9287
# splitting by setting IFS to empty value.)
 
9288
IFS=" ""        $as_nl"
 
9289
 
 
9290
# Find who we are.  Look in the path if we contain no directory separator.
 
9291
case $0 in #((
 
9292
  *[\\/]* ) as_myself=$0 ;;
 
9293
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9294
for as_dir in $PATH
 
9295
do
 
9296
  IFS=$as_save_IFS
 
9297
  test -z "$as_dir" && as_dir=.
 
9298
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
9299
  done
 
9300
IFS=$as_save_IFS
 
9301
 
 
9302
     ;;
 
9303
esac
 
9304
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
9305
# in which case we are not to be found in the path.
 
9306
if test "x$as_myself" = x; then
 
9307
  as_myself=$0
 
9308
fi
 
9309
if test ! -f "$as_myself"; then
 
9310
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
9311
  exit 1
 
9312
fi
 
9313
 
 
9314
# Unset variables that we do not need and which cause bugs (e.g. in
 
9315
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
9316
# suppresses any "Segmentation fault" message there.  '((' could
 
9317
# trigger a bug in pdksh 5.2.14.
 
9318
for as_var in BASH_ENV ENV MAIL MAILPATH
 
9319
do eval test x\${$as_var+set} = xset \
 
9320
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
9321
done
 
9322
PS1='$ '
 
9323
PS2='> '
 
9324
PS4='+ '
 
9325
 
 
9326
# NLS nuisances.
 
9327
LC_ALL=C
 
9328
export LC_ALL
 
9329
LANGUAGE=C
 
9330
export LANGUAGE
 
9331
 
 
9332
# CDPATH.
 
9333
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9334
 
 
9335
 
 
9336
# as_fn_error STATUS ERROR [LINENO LOG_FD]
 
9337
# ----------------------------------------
 
9338
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
9339
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
9340
# script with STATUS, using 1 if that was 0.
 
9341
as_fn_error ()
 
9342
{
 
9343
  as_status=$1; test $as_status -eq 0 && as_status=1
 
9344
  if test "$4"; then
 
9345
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
9346
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
9347
  fi
 
9348
  $as_echo "$as_me: error: $2" >&2
 
9349
  as_fn_exit $as_status
 
9350
} # as_fn_error
 
9351
 
 
9352
 
 
9353
# as_fn_set_status STATUS
 
9354
# -----------------------
 
9355
# Set $? to STATUS, without forking.
 
9356
as_fn_set_status ()
 
9357
{
 
9358
  return $1
 
9359
} # as_fn_set_status
 
9360
 
 
9361
# as_fn_exit STATUS
 
9362
# -----------------
 
9363
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
9364
as_fn_exit ()
 
9365
{
 
9366
  set +e
 
9367
  as_fn_set_status $1
 
9368
  exit $1
 
9369
} # as_fn_exit
 
9370
 
 
9371
# as_fn_unset VAR
 
9372
# ---------------
 
9373
# Portably unset VAR.
 
9374
as_fn_unset ()
 
9375
{
 
9376
  { eval $1=; unset $1;}
 
9377
}
 
9378
as_unset=as_fn_unset
 
9379
# as_fn_append VAR VALUE
 
9380
# ----------------------
 
9381
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
9382
# advantage of any shell optimizations that allow amortized linear growth over
 
9383
# repeated appends, instead of the typical quadratic growth present in naive
 
9384
# implementations.
 
9385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
9386
  eval 'as_fn_append ()
 
9387
  {
 
9388
    eval $1+=\$2
 
9389
  }'
 
9390
else
 
9391
  as_fn_append ()
 
9392
  {
 
9393
    eval $1=\$$1\$2
 
9394
  }
 
9395
fi # as_fn_append
 
9396
 
 
9397
# as_fn_arith ARG...
 
9398
# ------------------
 
9399
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
9400
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
9401
# must be portable across $(()) and expr.
 
9402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
9403
  eval 'as_fn_arith ()
 
9404
  {
 
9405
    as_val=$(( $* ))
 
9406
  }'
 
9407
else
 
9408
  as_fn_arith ()
 
9409
  {
 
9410
    as_val=`expr "$@" || test $? -eq 1`
 
9411
  }
 
9412
fi # as_fn_arith
 
9413
 
 
9414
 
 
9415
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
9416
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
9417
  as_expr=expr
 
9418
else
 
9419
  as_expr=false
 
9420
fi
 
9421
 
 
9422
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
9423
  as_basename=basename
 
9424
else
 
9425
  as_basename=false
 
9426
fi
 
9427
 
 
9428
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
9429
  as_dirname=dirname
 
9430
else
 
9431
  as_dirname=false
 
9432
fi
 
9433
 
 
9434
as_me=`$as_basename -- "$0" ||
 
9435
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
9436
         X"$0" : 'X\(//\)$' \| \
 
9437
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
9438
$as_echo X/"$0" |
 
9439
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
9440
            s//\1/
 
9441
            q
 
9442
          }
 
9443
          /^X\/\(\/\/\)$/{
 
9444
            s//\1/
 
9445
            q
 
9446
          }
 
9447
          /^X\/\(\/\).*/{
 
9448
            s//\1/
 
9449
            q
 
9450
          }
 
9451
          s/.*/./; q'`
 
9452
 
 
9453
# Avoid depending upon Character Ranges.
 
9454
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
9455
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
9456
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
9457
as_cr_digits='0123456789'
 
9458
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
9459
 
 
9460
ECHO_C= ECHO_N= ECHO_T=
 
9461
case `echo -n x` in #(((((
 
9462
-n*)
 
9463
  case `echo 'xy\c'` in
 
9464
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
9465
  xy)  ECHO_C='\c';;
 
9466
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
9467
       ECHO_T=' ';;
 
9468
  esac;;
 
9469
*)
 
9470
  ECHO_N='-n';;
 
9471
esac
 
9472
 
 
9473
rm -f conf$$ conf$$.exe conf$$.file
 
9474
if test -d conf$$.dir; then
 
9475
  rm -f conf$$.dir/conf$$.file
 
9476
else
 
9477
  rm -f conf$$.dir
 
9478
  mkdir conf$$.dir 2>/dev/null
 
9479
fi
 
9480
if (echo >conf$$.file) 2>/dev/null; then
 
9481
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
9482
    as_ln_s='ln -s'
 
9483
    # ... but there are two gotchas:
 
9484
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
9485
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
9486
    # In both cases, we have to default to `cp -p'.
 
9487
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
9488
      as_ln_s='cp -p'
 
9489
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
9490
    as_ln_s=ln
 
9491
  else
 
9492
    as_ln_s='cp -p'
 
9493
  fi
 
9494
else
 
9495
  as_ln_s='cp -p'
 
9496
fi
 
9497
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
9498
rmdir conf$$.dir 2>/dev/null
 
9499
 
 
9500
 
 
9501
# as_fn_mkdir_p
 
9502
# -------------
 
9503
# Create "$as_dir" as a directory, including parents if necessary.
 
9504
as_fn_mkdir_p ()
 
9505
{
 
9506
 
 
9507
  case $as_dir in #(
 
9508
  -*) as_dir=./$as_dir;;
 
9509
  esac
 
9510
  test -d "$as_dir" || eval $as_mkdir_p || {
 
9511
    as_dirs=
 
9512
    while :; do
 
9513
      case $as_dir in #(
 
9514
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
9515
      *) as_qdir=$as_dir;;
 
9516
      esac
 
9517
      as_dirs="'$as_qdir' $as_dirs"
 
9518
      as_dir=`$as_dirname -- "$as_dir" ||
 
9519
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
9520
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
9521
         X"$as_dir" : 'X\(//\)$' \| \
 
9522
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
9523
$as_echo X"$as_dir" |
 
9524
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
9525
            s//\1/
 
9526
            q
 
9527
          }
 
9528
          /^X\(\/\/\)[^/].*/{
 
9529
            s//\1/
 
9530
            q
 
9531
          }
 
9532
          /^X\(\/\/\)$/{
 
9533
            s//\1/
 
9534
            q
 
9535
          }
 
9536
          /^X\(\/\).*/{
 
9537
            s//\1/
 
9538
            q
 
9539
          }
 
9540
          s/.*/./; q'`
 
9541
      test -d "$as_dir" && break
 
9542
    done
 
9543
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
9544
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
9545
 
 
9546
 
 
9547
} # as_fn_mkdir_p
 
9548
if mkdir -p . 2>/dev/null; then
 
9549
  as_mkdir_p='mkdir -p "$as_dir"'
 
9550
else
 
9551
  test -d ./-p && rmdir ./-p
 
9552
  as_mkdir_p=false
 
9553
fi
 
9554
 
 
9555
if test -x / >/dev/null 2>&1; then
 
9556
  as_test_x='test -x'
 
9557
else
 
9558
  if ls -dL / >/dev/null 2>&1; then
 
9559
    as_ls_L_option=L
 
9560
  else
 
9561
    as_ls_L_option=
 
9562
  fi
 
9563
  as_test_x='
 
9564
    eval sh -c '\''
 
9565
      if test -d "$1"; then
 
9566
        test -d "$1/.";
 
9567
      else
 
9568
        case $1 in #(
 
9569
        -*)set "./$1";;
 
9570
        esac;
 
9571
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
9572
        ???[sx]*):;;*)false;;esac;fi
 
9573
    '\'' sh
 
9574
  '
 
9575
fi
 
9576
as_executable_p=$as_test_x
 
9577
 
 
9578
# Sed expression to map a string onto a valid CPP name.
 
9579
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
9580
 
 
9581
# Sed expression to map a string onto a valid variable name.
 
9582
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
9583
 
 
9584
 
 
9585
exec 6>&1
 
9586
## ----------------------------------- ##
 
9587
## Main body of $CONFIG_STATUS script. ##
 
9588
## ----------------------------------- ##
 
9589
_ASEOF
 
9590
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
9591
 
 
9592
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9593
# Save the log message, to keep $0 and so on meaningful, and to
 
9594
# report actual input values of CONFIG_FILES etc. instead of their
 
9595
# values after options handling.
 
9596
ac_log="
 
9597
This file was extended by w3m $as_me 0.5.3, which was
 
9598
generated by GNU Autoconf 2.67.  Invocation command line was
 
9599
 
 
9600
  CONFIG_FILES    = $CONFIG_FILES
 
9601
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
9602
  CONFIG_LINKS    = $CONFIG_LINKS
 
9603
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
9604
  $ $0 $@
 
9605
 
 
9606
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
9607
"
 
9608
 
 
9609
_ACEOF
 
9610
 
 
9611
case $ac_config_files in *"
 
9612
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
9613
esac
 
9614
 
 
9615
case $ac_config_headers in *"
 
9616
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
9617
esac
 
9618
 
 
9619
 
 
9620
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9621
# Files that config.status was made for.
 
9622
config_files="$ac_config_files"
 
9623
config_headers="$ac_config_headers"
 
9624
config_commands="$ac_config_commands"
 
9625
 
 
9626
_ACEOF
 
9627
 
 
9628
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9629
ac_cs_usage="\
 
9630
\`$as_me' instantiates files and other configuration actions
 
9631
from templates according to the current configuration.  Unless the files
 
9632
and actions are specified as TAGs, all are instantiated by default.
 
9633
 
 
9634
Usage: $0 [OPTION]... [TAG]...
 
9635
 
 
9636
  -h, --help       print this help, then exit
 
9637
  -V, --version    print version number and configuration settings, then exit
 
9638
      --config     print configuration, then exit
 
9639
  -q, --quiet, --silent
 
9640
                   do not print progress messages
 
9641
  -d, --debug      don't remove temporary files
 
9642
      --recheck    update $as_me by reconfiguring in the same conditions
 
9643
      --file=FILE[:TEMPLATE]
 
9644
                   instantiate the configuration file FILE
 
9645
      --header=FILE[:TEMPLATE]
 
9646
                   instantiate the configuration header FILE
 
9647
 
 
9648
Configuration files:
 
9649
$config_files
 
9650
 
 
9651
Configuration headers:
 
9652
$config_headers
 
9653
 
 
9654
Configuration commands:
 
9655
$config_commands
 
9656
 
 
9657
Report bugs to <satodai@w3m.jp>."
 
9658
 
 
9659
_ACEOF
 
9660
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9661
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
9662
ac_cs_version="\\
 
9663
w3m config.status 0.5.3
 
9664
configured by $0, generated by GNU Autoconf 2.67,
 
9665
  with options \\"\$ac_cs_config\\"
 
9666
 
 
9667
Copyright (C) 2010 Free Software Foundation, Inc.
 
9668
This config.status script is free software; the Free Software Foundation
 
9669
gives unlimited permission to copy, distribute and modify it."
 
9670
 
 
9671
ac_pwd='$ac_pwd'
 
9672
srcdir='$srcdir'
 
9673
INSTALL='$INSTALL'
 
9674
MKDIR_P='$MKDIR_P'
 
9675
AWK='$AWK'
 
9676
test -n "\$AWK" || AWK=awk
 
9677
_ACEOF
 
9678
 
 
9679
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9680
# The default lists apply if the user does not specify any file.
 
9681
ac_need_defaults=:
 
9682
while test $# != 0
 
9683
do
 
9684
  case $1 in
 
9685
  --*=?*)
 
9686
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
9687
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
9688
    ac_shift=:
 
9689
    ;;
 
9690
  --*=)
 
9691
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
9692
    ac_optarg=
 
9693
    ac_shift=:
 
9694
    ;;
 
9695
  *)
 
9696
    ac_option=$1
 
9697
    ac_optarg=$2
 
9698
    ac_shift=shift
 
9699
    ;;
 
9700
  esac
 
9701
 
 
9702
  case $ac_option in
 
9703
  # Handling of the options.
 
9704
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
9705
    ac_cs_recheck=: ;;
 
9706
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
9707
    $as_echo "$ac_cs_version"; exit ;;
 
9708
  --config | --confi | --conf | --con | --co | --c )
 
9709
    $as_echo "$ac_cs_config"; exit ;;
 
9710
  --debug | --debu | --deb | --de | --d | -d )
 
9711
    debug=: ;;
 
9712
  --file | --fil | --fi | --f )
 
9713
    $ac_shift
 
9714
    case $ac_optarg in
 
9715
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
9716
    '') as_fn_error $? "missing file argument" ;;
 
9717
    esac
 
9718
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
9719
    ac_need_defaults=false;;
 
9720
  --header | --heade | --head | --hea )
 
9721
    $ac_shift
 
9722
    case $ac_optarg in
 
9723
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
9724
    esac
 
9725
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
9726
    ac_need_defaults=false;;
 
9727
  --he | --h)
 
9728
    # Conflict between --help and --header
 
9729
    as_fn_error $? "ambiguous option: \`$1'
 
9730
Try \`$0 --help' for more information.";;
 
9731
  --help | --hel | -h )
 
9732
    $as_echo "$ac_cs_usage"; exit ;;
 
9733
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
9734
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
9735
    ac_cs_silent=: ;;
 
9736
 
 
9737
  # This is an error.
 
9738
  -*) as_fn_error $? "unrecognized option: \`$1'
 
9739
Try \`$0 --help' for more information." ;;
 
9740
 
 
9741
  *) as_fn_append ac_config_targets " $1"
 
9742
     ac_need_defaults=false ;;
 
9743
 
 
9744
  esac
 
9745
  shift
 
9746
done
 
9747
 
 
9748
ac_configure_extra_args=
 
9749
 
 
9750
if $ac_cs_silent; then
 
9751
  exec 6>/dev/null
 
9752
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
9753
fi
 
9754
 
 
9755
_ACEOF
 
9756
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9757
if \$ac_cs_recheck; then
 
9758
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
9759
  shift
 
9760
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
9761
  CONFIG_SHELL='$SHELL'
 
9762
  export CONFIG_SHELL
 
9763
  exec "\$@"
 
9764
fi
 
9765
 
 
9766
_ACEOF
 
9767
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9768
exec 5>>config.log
 
9769
{
 
9770
  echo
 
9771
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
9772
## Running $as_me. ##
 
9773
_ASBOX
 
9774
  $as_echo "$ac_log"
 
9775
} >&5
 
9776
 
 
9777
_ACEOF
 
9778
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9779
#
 
9780
# INIT-COMMANDS
 
9781
#
 
9782
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
9783
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
9784
    # from automake < 1.5.
 
9785
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
9786
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
9787
    LINGUAS="${LINGUAS-%UNSET%}"
 
9788
 
 
9789
 
 
9790
_ACEOF
 
9791
 
 
9792
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9793
 
 
9794
# Handling of arguments.
 
9795
for ac_config_target in $ac_config_targets
 
9796
do
 
9797
  case $ac_config_target in
 
9798
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
9799
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
9800
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
9801
    "posubst") CONFIG_FILES="$CONFIG_FILES posubst" ;;
 
9802
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
9803
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
 
9804
    "scripts/dirlist.cgi") CONFIG_FILES="$CONFIG_FILES scripts/dirlist.cgi" ;;
 
9805
    "scripts/w3mhelp.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mhelp.cgi" ;;
 
9806
    "scripts/w3mmail.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mmail.cgi" ;;
 
9807
    "scripts/xface2xpm") CONFIG_FILES="$CONFIG_FILES scripts/xface2xpm" ;;
 
9808
    "scripts/multipart/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/multipart/Makefile" ;;
 
9809
    "scripts/multipart/multipart.cgi") CONFIG_FILES="$CONFIG_FILES scripts/multipart/multipart.cgi" ;;
 
9810
    "scripts/w3mman/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/Makefile" ;;
 
9811
    "scripts/w3mman/w3mman") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman" ;;
 
9812
    "scripts/w3mman/w3mman.1") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman.1" ;;
 
9813
    "scripts/w3mman/w3mman2html.cgi") CONFIG_FILES="$CONFIG_FILES scripts/w3mman/w3mman2html.cgi" ;;
 
9814
    "libwc/Makefile") CONFIG_FILES="$CONFIG_FILES libwc/Makefile" ;;
 
9815
    "w3mimg/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/Makefile" ;;
 
9816
    "w3mimg/fb/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/fb/Makefile" ;;
 
9817
    "w3mimg/x11/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/x11/Makefile" ;;
 
9818
    "w3mimg/win/Makefile") CONFIG_FILES="$CONFIG_FILES w3mimg/win/Makefile" ;;
 
9819
    "w3mhelp-w3m_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_en.html" ;;
 
9820
    "w3mhelp-w3m_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-w3m_ja.html" ;;
 
9821
    "w3mhelp-lynx_en.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_en.html" ;;
 
9822
    "w3mhelp-lynx_ja.html") CONFIG_FILES="$CONFIG_FILES w3mhelp-lynx_ja.html" ;;
 
9823
 
 
9824
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
 
9825
  esac
 
9826
done
 
9827
 
 
9828
 
 
9829
# If the user did not use the arguments to specify the items to instantiate,
 
9830
# then the envvar interface is used.  Set only those that are not.
 
9831
# We use the long form for the default assignment because of an extremely
 
9832
# bizarre bug on SunOS 4.1.3.
 
9833
if $ac_need_defaults; then
 
9834
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
9835
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
9836
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
9837
fi
 
9838
 
 
9839
# Have a temporary directory for convenience.  Make it in the build tree
 
9840
# simply because there is no reason against having it here, and in addition,
 
9841
# creating and moving files from /tmp can sometimes cause problems.
 
9842
# Hook for its removal unless debugging.
 
9843
# Note that there is a small window in which the directory will not be cleaned:
 
9844
# after its creation but before its name has been assigned to `$tmp'.
 
9845
$debug ||
 
9846
{
 
9847
  tmp=
 
9848
  trap 'exit_status=$?
 
9849
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
9850
' 0
 
9851
  trap 'as_fn_exit 1' 1 2 13 15
 
9852
}
 
9853
# Create a (secure) tmp directory for tmp files.
 
9854
 
 
9855
{
 
9856
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
9857
  test -n "$tmp" && test -d "$tmp"
 
9858
}  ||
 
9859
{
 
9860
  tmp=./conf$$-$RANDOM
 
9861
  (umask 077 && mkdir "$tmp")
 
9862
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
9863
 
 
9864
# Set up the scripts for CONFIG_FILES section.
 
9865
# No need to generate them if there are no CONFIG_FILES.
 
9866
# This happens for instance with `./config.status config.h'.
 
9867
if test -n "$CONFIG_FILES"; then
 
9868
 
 
9869
 
 
9870
ac_cr=`echo X | tr X '\015'`
 
9871
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
9872
# But we know of no other shell where ac_cr would be empty at this
 
9873
# point, so we can use a bashism as a fallback.
 
9874
if test "x$ac_cr" = x; then
 
9875
  eval ac_cr=\$\'\\r\'
 
9876
fi
 
9877
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
9878
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
9879
  ac_cs_awk_cr='\\r'
 
9880
else
 
9881
  ac_cs_awk_cr=$ac_cr
 
9882
fi
 
9883
 
 
9884
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
9885
_ACEOF
 
9886
 
 
9887
 
 
9888
{
 
9889
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
9890
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
9891
  echo "_ACEOF"
 
9892
} >conf$$subs.sh ||
 
9893
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
9894
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
9895
ac_delim='%!_!# '
 
9896
for ac_last_try in false false false false false :; do
 
9897
  . ./conf$$subs.sh ||
 
9898
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
9899
 
 
9900
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
9901
  if test $ac_delim_n = $ac_delim_num; then
 
9902
    break
 
9903
  elif $ac_last_try; then
 
9904
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
9905
  else
 
9906
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
9907
  fi
 
9908
done
 
9909
rm -f conf$$subs.sh
 
9910
 
 
9911
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9912
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
9913
_ACEOF
 
9914
sed -n '
 
9915
h
 
9916
s/^/S["/; s/!.*/"]=/
 
9917
p
 
9918
g
 
9919
s/^[^!]*!//
 
9920
:repl
 
9921
t repl
 
9922
s/'"$ac_delim"'$//
 
9923
t delim
 
9924
:nl
 
9925
h
 
9926
s/\(.\{148\}\)..*/\1/
 
9927
t more1
 
9928
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
9929
p
 
9930
n
 
9931
b repl
 
9932
:more1
 
9933
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
9934
p
 
9935
g
 
9936
s/.\{148\}//
 
9937
t nl
 
9938
:delim
 
9939
h
 
9940
s/\(.\{148\}\)..*/\1/
 
9941
t more2
 
9942
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
9943
p
 
9944
b
 
9945
:more2
 
9946
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
9947
p
 
9948
g
 
9949
s/.\{148\}//
 
9950
t delim
 
9951
' <conf$$subs.awk | sed '
 
9952
/^[^""]/{
 
9953
  N
 
9954
  s/\n//
 
9955
}
 
9956
' >>$CONFIG_STATUS || ac_write_fail=1
 
9957
rm -f conf$$subs.awk
 
9958
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
9959
_ACAWK
 
9960
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
9961
  for (key in S) S_is_set[key] = 1
 
9962
  FS = ""
 
9963
 
 
9964
}
 
9965
{
 
9966
  line = $ 0
 
9967
  nfields = split(line, field, "@")
 
9968
  substed = 0
 
9969
  len = length(field[1])
 
9970
  for (i = 2; i < nfields; i++) {
 
9971
    key = field[i]
 
9972
    keylen = length(key)
 
9973
    if (S_is_set[key]) {
 
9974
      value = S[key]
 
9975
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
9976
      len += length(value) + length(field[++i])
 
9977
      substed = 1
 
9978
    } else
 
9979
      len += 1 + keylen
 
9980
  }
 
9981
 
 
9982
  print line
 
9983
}
 
9984
 
 
9985
_ACAWK
 
9986
_ACEOF
 
9987
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
9988
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
9989
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
9990
else
 
9991
  cat
 
9992
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
9993
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
9994
_ACEOF
 
9995
 
 
9996
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
9997
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
9998
# trailing colons and then remove the whole line if VPATH becomes empty
 
9999
# (actually we leave an empty line to preserve line numbers).
 
10000
if test "x$srcdir" = x.; then
 
10001
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
10002
h
 
10003
s///
 
10004
s/^/:/
 
10005
s/[      ]*$/:/
 
10006
s/:\$(srcdir):/:/g
 
10007
s/:\${srcdir}:/:/g
 
10008
s/:@srcdir@:/:/g
 
10009
s/^:*//
 
10010
s/:*$//
 
10011
x
 
10012
s/\(=[   ]*\).*/\1/
 
10013
G
 
10014
s/\n//
 
10015
s/^[^=]*=[       ]*$//
 
10016
}'
 
10017
fi
 
10018
 
 
10019
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10020
fi # test -n "$CONFIG_FILES"
 
10021
 
 
10022
# Set up the scripts for CONFIG_HEADERS section.
 
10023
# No need to generate them if there are no CONFIG_HEADERS.
 
10024
# This happens for instance with `./config.status Makefile'.
 
10025
if test -n "$CONFIG_HEADERS"; then
 
10026
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
10027
BEGIN {
 
10028
_ACEOF
 
10029
 
 
10030
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
10031
# here-document in config.status, that substitutes the proper values into
 
10032
# config.h.in to produce config.h.
 
10033
 
 
10034
# Create a delimiter string that does not exist in confdefs.h, to ease
 
10035
# handling of long lines.
 
10036
ac_delim='%!_!# '
 
10037
for ac_last_try in false false :; do
 
10038
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
10039
  if test -z "$ac_t"; then
 
10040
    break
 
10041
  elif $ac_last_try; then
 
10042
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
10043
  else
 
10044
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
10045
  fi
 
10046
done
 
10047
 
 
10048
# For the awk script, D is an array of macro values keyed by name,
 
10049
# likewise P contains macro parameters if any.  Preserve backslash
 
10050
# newline sequences.
 
10051
 
 
10052
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
10053
sed -n '
 
10054
s/.\{148\}/&'"$ac_delim"'/g
 
10055
t rset
 
10056
:rset
 
10057
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
10058
t def
 
10059
d
 
10060
:def
 
10061
s/\\$//
 
10062
t bsnl
 
10063
s/["\\]/\\&/g
 
10064
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
10065
D["\1"]=" \3"/p
 
10066
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
10067
d
 
10068
:bsnl
 
10069
s/["\\]/\\&/g
 
10070
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
10071
D["\1"]=" \3\\\\\\n"\\/p
 
10072
t cont
 
10073
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
10074
t cont
 
10075
d
 
10076
:cont
 
10077
n
 
10078
s/.\{148\}/&'"$ac_delim"'/g
 
10079
t clear
 
10080
:clear
 
10081
s/\\$//
 
10082
t bsnlc
 
10083
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
10084
d
 
10085
:bsnlc
 
10086
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
10087
b cont
 
10088
' <confdefs.h | sed '
 
10089
s/'"$ac_delim"'/"\\\
 
10090
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
10091
 
 
10092
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10093
  for (key in D) D_is_set[key] = 1
 
10094
  FS = ""
 
10095
}
 
10096
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
10097
  line = \$ 0
 
10098
  split(line, arg, " ")
 
10099
  if (arg[1] == "#") {
 
10100
    defundef = arg[2]
 
10101
    mac1 = arg[3]
 
10102
  } else {
 
10103
    defundef = substr(arg[1], 2)
 
10104
    mac1 = arg[2]
 
10105
  }
 
10106
  split(mac1, mac2, "(") #)
 
10107
  macro = mac2[1]
 
10108
  prefix = substr(line, 1, index(line, defundef) - 1)
 
10109
  if (D_is_set[macro]) {
 
10110
    # Preserve the white space surrounding the "#".
 
10111
    print prefix "define", macro P[macro] D[macro]
 
10112
    next
 
10113
  } else {
 
10114
    # Replace #undef with comments.  This is necessary, for example,
 
10115
    # in the case of _POSIX_SOURCE, which is predefined and required
 
10116
    # on some systems where configure will not decide to define it.
 
10117
    if (defundef == "undef") {
 
10118
      print "/*", prefix defundef, macro, "*/"
 
10119
      next
 
10120
    }
 
10121
  }
 
10122
}
 
10123
{ print }
 
10124
_ACAWK
 
10125
_ACEOF
 
10126
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10127
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
10128
fi # test -n "$CONFIG_HEADERS"
 
10129
 
 
10130
 
 
10131
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
10132
shift
 
10133
for ac_tag
 
10134
do
 
10135
  case $ac_tag in
 
10136
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
10137
  esac
 
10138
  case $ac_mode$ac_tag in
 
10139
  :[FHL]*:*);;
 
10140
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
 
10141
  :[FH]-) ac_tag=-:-;;
 
10142
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
10143
  esac
 
10144
  ac_save_IFS=$IFS
 
10145
  IFS=:
 
10146
  set x $ac_tag
 
10147
  IFS=$ac_save_IFS
 
10148
  shift
 
10149
  ac_file=$1
 
10150
  shift
 
10151
 
 
10152
  case $ac_mode in
 
10153
  :L) ac_source=$1;;
 
10154
  :[FH])
 
10155
    ac_file_inputs=
 
10156
    for ac_f
 
10157
    do
 
10158
      case $ac_f in
 
10159
      -) ac_f="$tmp/stdin";;
 
10160
      *) # Look for the file first in the build tree, then in the source tree
 
10161
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
10162
         # because $ac_f cannot contain `:'.
 
10163
         test -f "$ac_f" ||
 
10164
           case $ac_f in
 
10165
           [\\/$]*) false;;
 
10166
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
10167
           esac ||
 
10168
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
 
10169
      esac
 
10170
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
10171
      as_fn_append ac_file_inputs " '$ac_f'"
 
10172
    done
 
10173
 
 
10174
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10175
    # use $as_me), people would be surprised to read:
 
10176
    #    /* config.h.  Generated by config.status.  */
 
10177
    configure_input='Generated from '`
 
10178
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
10179
        `' by configure.'
 
10180
    if test x"$ac_file" != x-; then
 
10181
      configure_input="$ac_file.  $configure_input"
 
10182
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
10183
$as_echo "$as_me: creating $ac_file" >&6;}
 
10184
    fi
 
10185
    # Neutralize special characters interpreted by sed in replacement strings.
 
10186
    case $configure_input in #(
 
10187
    *\&* | *\|* | *\\* )
 
10188
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
10189
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
10190
    *) ac_sed_conf_input=$configure_input;;
 
10191
    esac
 
10192
 
 
10193
    case $ac_tag in
 
10194
    *:-:* | *:-) cat >"$tmp/stdin" \
 
10195
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
 
10196
    esac
 
10197
    ;;
 
10198
  esac
 
10199
 
 
10200
  ac_dir=`$as_dirname -- "$ac_file" ||
 
10201
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10202
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10203
         X"$ac_file" : 'X\(//\)$' \| \
 
10204
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
10205
$as_echo X"$ac_file" |
 
10206
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
10207
            s//\1/
 
10208
            q
 
10209
          }
 
10210
          /^X\(\/\/\)[^/].*/{
 
10211
            s//\1/
 
10212
            q
 
10213
          }
 
10214
          /^X\(\/\/\)$/{
 
10215
            s//\1/
 
10216
            q
 
10217
          }
 
10218
          /^X\(\/\).*/{
 
10219
            s//\1/
 
10220
            q
 
10221
          }
 
10222
          s/.*/./; q'`
 
10223
  as_dir="$ac_dir"; as_fn_mkdir_p
 
10224
  ac_builddir=.
 
10225
 
 
10226
case "$ac_dir" in
 
10227
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
10228
*)
 
10229
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
10230
  # A ".." for each directory in $ac_dir_suffix.
 
10231
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
10232
  case $ac_top_builddir_sub in
 
10233
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
10234
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
10235
  esac ;;
 
10236
esac
 
10237
ac_abs_top_builddir=$ac_pwd
 
10238
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
10239
# for backward compatibility:
 
10240
ac_top_builddir=$ac_top_build_prefix
 
10241
 
 
10242
case $srcdir in
 
10243
  .)  # We are building in place.
 
10244
    ac_srcdir=.
 
10245
    ac_top_srcdir=$ac_top_builddir_sub
 
10246
    ac_abs_top_srcdir=$ac_pwd ;;
 
10247
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
10248
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10249
    ac_top_srcdir=$srcdir
 
10250
    ac_abs_top_srcdir=$srcdir ;;
 
10251
  *) # Relative name.
 
10252
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
10253
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
10254
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
10255
esac
 
10256
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
10257
 
 
10258
 
 
10259
  case $ac_mode in
 
10260
  :F)
 
10261
  #
 
10262
  # CONFIG_FILE
 
10263
  #
 
10264
 
 
10265
  case $INSTALL in
 
10266
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
10267
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
10268
  esac
 
10269
  ac_MKDIR_P=$MKDIR_P
 
10270
  case $MKDIR_P in
 
10271
  [\\/$]* | ?:[\\/]* ) ;;
 
10272
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
10273
  esac
 
10274
_ACEOF
 
10275
 
 
10276
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10277
# If the template does not know about datarootdir, expand it.
 
10278
# FIXME: This hack should be removed a few years after 2.60.
 
10279
ac_datarootdir_hack=; ac_datarootdir_seen=
 
10280
ac_sed_dataroot='
 
10281
/datarootdir/ {
 
10282
  p
 
10283
  q
 
10284
}
 
10285
/@datadir@/p
 
10286
/@docdir@/p
 
10287
/@infodir@/p
 
10288
/@localedir@/p
 
10289
/@mandir@/p'
 
10290
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
10291
*datarootdir*) ac_datarootdir_seen=yes;;
 
10292
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
10293
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
10294
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
10295
_ACEOF
 
10296
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10297
  ac_datarootdir_hack='
 
10298
  s&@datadir@&$datadir&g
 
10299
  s&@docdir@&$docdir&g
 
10300
  s&@infodir@&$infodir&g
 
10301
  s&@localedir@&$localedir&g
 
10302
  s&@mandir@&$mandir&g
 
10303
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
10304
esac
 
10305
_ACEOF
 
10306
 
 
10307
# Neutralize VPATH when `$srcdir' = `.'.
 
10308
# Shell code in configure.ac might set extrasub.
 
10309
# FIXME: do we really want to maintain this feature?
 
10310
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
10311
ac_sed_extra="$ac_vpsub
 
10312
$extrasub
 
10313
_ACEOF
 
10314
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
10315
:t
 
10316
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
10317
s|@configure_input@|$ac_sed_conf_input|;t t
 
10318
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
10319
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
10320
s&@srcdir@&$ac_srcdir&;t t
 
10321
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
10322
s&@top_srcdir@&$ac_top_srcdir&;t t
 
10323
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
10324
s&@builddir@&$ac_builddir&;t t
 
10325
s&@abs_builddir@&$ac_abs_builddir&;t t
 
10326
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
10327
s&@INSTALL@&$ac_INSTALL&;t t
 
10328
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
10329
$ac_datarootdir_hack
 
10330
"
 
10331
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
10332
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
10333
 
 
10334
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
10335
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
10336
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
10337
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
10338
which seems to be undefined.  Please make sure it is defined" >&5
 
10339
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
10340
which seems to be undefined.  Please make sure it is defined" >&2;}
 
10341
 
 
10342
  rm -f "$tmp/stdin"
 
10343
  case $ac_file in
 
10344
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
10345
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
10346
  esac \
 
10347
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
10348
 ;;
 
10349
  :H)
 
10350
  #
 
10351
  # CONFIG_HEADER
 
10352
  #
 
10353
  if test x"$ac_file" != x-; then
 
10354
    {
 
10355
      $as_echo "/* $configure_input  */" \
 
10356
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
10357
    } >"$tmp/config.h" \
 
10358
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
10359
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
10360
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
10361
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
10362
    else
 
10363
      rm -f "$ac_file"
 
10364
      mv "$tmp/config.h" "$ac_file" \
 
10365
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
10366
    fi
 
10367
  else
 
10368
    $as_echo "/* $configure_input  */" \
 
10369
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
10370
      || as_fn_error $? "could not create -" "$LINENO" 5
 
10371
  fi
 
10372
 ;;
 
10373
 
 
10374
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
10375
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
10376
 ;;
 
10377
  esac
 
10378
 
 
10379
 
 
10380
  case $ac_file$ac_mode in
 
10381
    "po-directories":C)
 
10382
    for ac_file in $CONFIG_FILES; do
 
10383
      # Support "outfile[:infile[:infile...]]"
 
10384
      case "$ac_file" in
 
10385
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
10386
      esac
 
10387
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
10388
      case "$ac_file" in */Makefile.in)
 
10389
        # Adjust a relative srcdir.
 
10390
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
10391
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
10392
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
10393
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
10394
        # In autoconf-2.50 it is called $srcdir.
 
10395
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
10396
        case "$ac_given_srcdir" in
 
10397
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
10398
          /*) top_srcdir="$ac_given_srcdir" ;;
 
10399
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
10400
        esac
 
10401
        # Treat a directory as a PO directory if and only if it has a
 
10402
        # POTFILES.in file. This allows packages to have multiple PO
 
10403
        # directories under different names or in different locations.
 
10404
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
10405
          rm -f "$ac_dir/POTFILES"
 
10406
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
10407
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
10408
          POMAKEFILEDEPS="POTFILES.in"
 
10409
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
10410
          # on $ac_dir but don't depend on user-specified configuration
 
10411
          # parameters.
 
10412
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
10413
            # The LINGUAS file contains the set of available languages.
 
10414
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
10415
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
10416
            fi
 
10417
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
10418
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
10419
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
10420
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
10421
          else
 
10422
            # The set of available languages was given in configure.in.
 
10423
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
10424
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
10425
          fi
 
10426
          # Compute POFILES
 
10427
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
10428
          # Compute UPDATEPOFILES
 
10429
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
10430
          # Compute DUMMYPOFILES
 
10431
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
10432
          # Compute GMOFILES
 
10433
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
10434
          case "$ac_given_srcdir" in
 
10435
            .) srcdirpre= ;;
 
10436
            *) srcdirpre='$(srcdir)/' ;;
 
10437
          esac
 
10438
          POFILES=
 
10439
          UPDATEPOFILES=
 
10440
          DUMMYPOFILES=
 
10441
          GMOFILES=
 
10442
          for lang in $ALL_LINGUAS; do
 
10443
            POFILES="$POFILES $srcdirpre$lang.po"
 
10444
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
10445
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
10446
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
10447
          done
 
10448
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
10449
          # environment variable.
 
10450
          INST_LINGUAS=
 
10451
          if test -n "$ALL_LINGUAS"; then
 
10452
            for presentlang in $ALL_LINGUAS; do
 
10453
              useit=no
 
10454
              if test "%UNSET%" != "$LINGUAS"; then
 
10455
                desiredlanguages="$LINGUAS"
 
10456
              else
 
10457
                desiredlanguages="$ALL_LINGUAS"
 
10458
              fi
 
10459
              for desiredlang in $desiredlanguages; do
 
10460
                # Use the presentlang catalog if desiredlang is
 
10461
                #   a. equal to presentlang, or
 
10462
                #   b. a variant of presentlang (because in this case,
 
10463
                #      presentlang can be used as a fallback for messages
 
10464
                #      which are not translated in the desiredlang catalog).
 
10465
                case "$desiredlang" in
 
10466
                  "$presentlang"*) useit=yes;;
 
10467
                esac
 
10468
              done
 
10469
              if test $useit = yes; then
 
10470
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
10471
              fi
 
10472
            done
 
10473
          fi
 
10474
          CATALOGS=
 
10475
          if test -n "$INST_LINGUAS"; then
 
10476
            for lang in $INST_LINGUAS; do
 
10477
              CATALOGS="$CATALOGS $lang.gmo"
 
10478
            done
 
10479
          fi
 
10480
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
10481
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
10482
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
10483
            if test -f "$f"; then
 
10484
              case "$f" in
 
10485
                *.orig | *.bak | *~) ;;
 
10486
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
10487
              esac
 
10488
            fi
 
10489
          done
 
10490
        fi
 
10491
        ;;
 
10492
      esac
 
10493
    done ;;
 
10494
 
 
10495
  esac
 
10496
done # for ac_tag
 
10497
 
 
10498
 
 
10499
as_fn_exit 0
 
10500
_ACEOF
 
10501
ac_clean_files=$ac_clean_files_save
 
10502
 
 
10503
test $ac_write_fail = 0 ||
 
10504
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
10505
 
 
10506
 
 
10507
# configure is writing to config.log, and then calls config.status.
 
10508
# config.status does its own redirection, appending to config.log.
 
10509
# Unfortunately, on DOS this fails, as config.log is still kept open
 
10510
# by configure, so config.status won't be able to write to it; its
 
10511
# output is simply discarded.  So we exec the FD to /dev/null,
 
10512
# effectively closing config.log, so it can be properly (re)opened and
 
10513
# appended to by config.status.  When coming back to configure, we
 
10514
# need to make the FD available again.
 
10515
if test "$no_create" != yes; then
 
10516
  ac_cs_success=:
 
10517
  ac_config_status_args=
 
10518
  test "$silent" = yes &&
 
10519
    ac_config_status_args="$ac_config_status_args --quiet"
 
10520
  exec 5>/dev/null
 
10521
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
10522
  exec 5>>config.log
 
10523
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
10524
  # would make configure fail if this is the last instruction.
 
10525
  $ac_cs_success || as_fn_exit 1
 
10526
fi
 
10527
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
10528
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
10529
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
10530
fi
 
10531
 
 
10532
 
 
10533
chmod +x posubst