~x2go/x2go/pinentry-x2go_build-main

« back to all changes in this revision

Viewing changes to configure

  • Committer: Mike Gabriel
  • Date: 2012-06-13 12:55:37 UTC
  • Revision ID: git-v1:d2060291d5cc7beb92f78168e48ececfe765d552
Strip code project down to its essentials, remove a lot of unneeded cruft. / Make code tree fully build with autotools, see README file for further info.

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.61 for pinentry-x2go 0.7.5.0.
4
 
#
5
 
# Report bugs to <bugs@x2go.org>.
6
 
#
7
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
 
# This configure script is free software; the Free Software Foundation
10
 
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
14
 
 
15
 
# Be more Bourne compatible
16
 
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
 
  emulate sh
19
 
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
 
  # is contrary to our usage.  Disable this feature.
22
 
  alias -g '${1+"$@"}'='"$@"'
23
 
  setopt NO_GLOB_SUBST
24
 
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
27
 
esac
28
 
 
29
 
fi
30
 
 
31
 
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
 
 
42
 
# The user is always right.
43
 
if test "${PATH_SEPARATOR+set}" != set; then
44
 
  echo "#! /bin/sh" >conf$$.sh
45
 
  echo  "exit 0"   >>conf$$.sh
46
 
  chmod +x conf$$.sh
47
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
 
    PATH_SEPARATOR=';'
49
 
  else
50
 
    PATH_SEPARATOR=:
51
 
  fi
52
 
  rm -f conf$$.sh
53
 
fi
54
 
 
55
 
# Support unset when possible.
56
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
 
  as_unset=unset
58
 
else
59
 
  as_unset=false
60
 
fi
61
 
 
62
 
 
63
 
# IFS
64
 
# We need space, tab and new line, in precisely that order.  Quoting is
65
 
# there to prevent editors from complaining about space-tab.
66
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
 
# splitting by setting IFS to empty value.)
68
 
as_nl='
69
 
'
70
 
IFS=" ""        $as_nl"
71
 
 
72
 
# Find who we are.  Look in the path if we contain no directory separator.
73
 
case $0 in
74
 
  *[\\/]* ) as_myself=$0 ;;
75
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
 
for as_dir in $PATH
77
 
do
78
 
  IFS=$as_save_IFS
79
 
  test -z "$as_dir" && as_dir=.
80
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
 
done
82
 
IFS=$as_save_IFS
83
 
 
84
 
     ;;
85
 
esac
86
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
 
# in which case we are not to be found in the path.
88
 
if test "x$as_myself" = x; then
89
 
  as_myself=$0
90
 
fi
91
 
if test ! -f "$as_myself"; then
92
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
 
  { (exit 1); exit 1; }
94
 
fi
95
 
 
96
 
# Work around bugs in pre-3.0 UWIN ksh.
97
 
for as_var in ENV MAIL MAILPATH
98
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99
 
done
100
 
PS1='$ '
101
 
PS2='> '
102
 
PS4='+ '
103
 
 
104
 
# NLS nuisances.
105
 
for as_var in \
106
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
 
  LC_TELEPHONE LC_TIME
109
 
do
110
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
 
    eval $as_var=C; export $as_var
112
 
  else
113
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
 
  fi
115
 
done
116
 
 
117
 
# Required to use basename.
118
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
 
  as_expr=expr
121
 
else
122
 
  as_expr=false
123
 
fi
124
 
 
125
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
 
  as_basename=basename
127
 
else
128
 
  as_basename=false
129
 
fi
130
 
 
131
 
 
132
 
# Name of the executable.
133
 
as_me=`$as_basename -- "$0" ||
134
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
 
         X"$0" : 'X\(//\)$' \| \
136
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
 
echo X/"$0" |
138
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\/\)$/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          /^X\/\(\/\).*/{
147
 
            s//\1/
148
 
            q
149
 
          }
150
 
          s/.*/./; q'`
151
 
 
152
 
# CDPATH.
153
 
$as_unset CDPATH
154
 
 
155
 
 
156
 
if test "x$CONFIG_SHELL" = x; then
157
 
  if (eval ":") 2>/dev/null; then
158
 
  as_have_required=yes
159
 
else
160
 
  as_have_required=no
161
 
fi
162
 
 
163
 
  if test $as_have_required = yes &&     (eval ":
164
 
(as_func_return () {
165
 
  (exit \$1)
166
 
}
167
 
as_func_success () {
168
 
  as_func_return 0
169
 
}
170
 
as_func_failure () {
171
 
  as_func_return 1
172
 
}
173
 
as_func_ret_success () {
174
 
  return 0
175
 
}
176
 
as_func_ret_failure () {
177
 
  return 1
178
 
}
179
 
 
180
 
exitcode=0
181
 
if as_func_success; then
182
 
  :
183
 
else
184
 
  exitcode=1
185
 
  echo as_func_success failed.
186
 
fi
187
 
 
188
 
if as_func_failure; then
189
 
  exitcode=1
190
 
  echo as_func_failure succeeded.
191
 
fi
192
 
 
193
 
if as_func_ret_success; then
194
 
  :
195
 
else
196
 
  exitcode=1
197
 
  echo as_func_ret_success failed.
198
 
fi
199
 
 
200
 
if as_func_ret_failure; then
201
 
  exitcode=1
202
 
  echo as_func_ret_failure succeeded.
203
 
fi
204
 
 
205
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
 
  :
207
 
else
208
 
  exitcode=1
209
 
  echo positional parameters were not saved.
210
 
fi
211
 
 
212
 
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
 
214
 
(
215
 
  as_lineno_1=\$LINENO
216
 
  as_lineno_2=\$LINENO
217
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
 
") 2> /dev/null; then
220
 
  :
221
 
else
222
 
  as_candidate_shells=
223
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
 
do
226
 
  IFS=$as_save_IFS
227
 
  test -z "$as_dir" && as_dir=.
228
 
  case $as_dir in
229
 
         /*)
230
 
           for as_base in sh bash ksh sh5; do
231
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
 
           done;;
233
 
       esac
234
 
done
235
 
IFS=$as_save_IFS
236
 
 
237
 
 
238
 
      for as_shell in $as_candidate_shells $SHELL; do
239
 
         # Try only shells that exist, to save several forks.
240
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
 
  emulate sh
244
 
  NULLCMD=:
245
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
 
  # is contrary to our usage.  Disable this feature.
247
 
  alias -g '${1+"$@"}'='"$@"'
248
 
  setopt NO_GLOB_SUBST
249
 
else
250
 
  case `(set -o) 2>/dev/null` in
251
 
  *posix*) set -o posix ;;
252
 
esac
253
 
 
254
 
fi
255
 
 
256
 
 
257
 
:
258
 
_ASEOF
259
 
}; then
260
 
  CONFIG_SHELL=$as_shell
261
 
               as_have_required=yes
262
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
 
  emulate sh
265
 
  NULLCMD=:
266
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
 
  # is contrary to our usage.  Disable this feature.
268
 
  alias -g '${1+"$@"}'='"$@"'
269
 
  setopt NO_GLOB_SUBST
270
 
else
271
 
  case `(set -o) 2>/dev/null` in
272
 
  *posix*) set -o posix ;;
273
 
esac
274
 
 
275
 
fi
276
 
 
277
 
 
278
 
:
279
 
(as_func_return () {
280
 
  (exit $1)
281
 
}
282
 
as_func_success () {
283
 
  as_func_return 0
284
 
}
285
 
as_func_failure () {
286
 
  as_func_return 1
287
 
}
288
 
as_func_ret_success () {
289
 
  return 0
290
 
}
291
 
as_func_ret_failure () {
292
 
  return 1
293
 
}
294
 
 
295
 
exitcode=0
296
 
if as_func_success; then
297
 
  :
298
 
else
299
 
  exitcode=1
300
 
  echo as_func_success failed.
301
 
fi
302
 
 
303
 
if as_func_failure; then
304
 
  exitcode=1
305
 
  echo as_func_failure succeeded.
306
 
fi
307
 
 
308
 
if as_func_ret_success; then
309
 
  :
310
 
else
311
 
  exitcode=1
312
 
  echo as_func_ret_success failed.
313
 
fi
314
 
 
315
 
if as_func_ret_failure; then
316
 
  exitcode=1
317
 
  echo as_func_ret_failure succeeded.
318
 
fi
319
 
 
320
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
 
  :
322
 
else
323
 
  exitcode=1
324
 
  echo positional parameters were not saved.
325
 
fi
326
 
 
327
 
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
 
329
 
(
330
 
  as_lineno_1=$LINENO
331
 
  as_lineno_2=$LINENO
332
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
 
 
335
 
_ASEOF
336
 
}; then
337
 
  break
338
 
fi
339
 
 
340
 
fi
341
 
 
342
 
      done
343
 
 
344
 
      if test "x$CONFIG_SHELL" != x; then
345
 
  for as_var in BASH_ENV ENV
346
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
 
        done
348
 
        export CONFIG_SHELL
349
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
 
fi
351
 
 
352
 
 
353
 
    if test $as_have_required = no; then
354
 
  echo This script requires a shell more modern than all the
355
 
      echo shells that I found on your system.  Please install a
356
 
      echo modern shell, or manually run the script under such a
357
 
      echo shell if you do have one.
358
 
      { (exit 1); exit 1; }
359
 
fi
360
 
 
361
 
 
362
 
fi
363
 
 
364
 
fi
365
 
 
366
 
 
367
 
 
368
 
(eval "as_func_return () {
369
 
  (exit \$1)
370
 
}
371
 
as_func_success () {
372
 
  as_func_return 0
373
 
}
374
 
as_func_failure () {
375
 
  as_func_return 1
376
 
}
377
 
as_func_ret_success () {
378
 
  return 0
379
 
}
380
 
as_func_ret_failure () {
381
 
  return 1
382
 
}
383
 
 
384
 
exitcode=0
385
 
if as_func_success; then
386
 
  :
387
 
else
388
 
  exitcode=1
389
 
  echo as_func_success failed.
390
 
fi
391
 
 
392
 
if as_func_failure; then
393
 
  exitcode=1
394
 
  echo as_func_failure succeeded.
395
 
fi
396
 
 
397
 
if as_func_ret_success; then
398
 
  :
399
 
else
400
 
  exitcode=1
401
 
  echo as_func_ret_success failed.
402
 
fi
403
 
 
404
 
if as_func_ret_failure; then
405
 
  exitcode=1
406
 
  echo as_func_ret_failure succeeded.
407
 
fi
408
 
 
409
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
 
  :
411
 
else
412
 
  exitcode=1
413
 
  echo positional parameters were not saved.
414
 
fi
415
 
 
416
 
test \$exitcode = 0") || {
417
 
  echo No shell found that supports shell functions.
418
 
  echo Please tell autoconf@gnu.org about your system,
419
 
  echo including any error possibly output before this
420
 
  echo message
421
 
}
422
 
 
423
 
 
424
 
 
425
 
  as_lineno_1=$LINENO
426
 
  as_lineno_2=$LINENO
427
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
 
 
430
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
 
  # line-number line after each line using $LINENO; the second 'sed'
433
 
  # does the real work.  The second script uses 'N' to pair each
434
 
  # line-number line with the line containing $LINENO, and appends
435
 
  # trailing '-' during substitution so that $LINENO is not a special
436
 
  # case at line end.
437
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
440
 
  sed -n '
441
 
    p
442
 
    /[$]LINENO/=
443
 
  ' <$as_myself |
444
 
    sed '
445
 
      s/[$]LINENO.*/&-/
446
 
      t lineno
447
 
      b
448
 
      :lineno
449
 
      N
450
 
      :loop
451
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452
 
      t loop
453
 
      s/-\n.*//
454
 
    ' >$as_me.lineno &&
455
 
  chmod +x "$as_me.lineno" ||
456
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
 
   { (exit 1); exit 1; }; }
458
 
 
459
 
  # Don't try to exec as it changes $[0], causing all sort of problems
460
 
  # (the dirname of $[0] is not the place where we might find the
461
 
  # original and so on.  Autoconf is especially sensitive to this).
462
 
  . "./$as_me.lineno"
463
 
  # Exit status is that of the last command.
464
 
  exit
465
 
}
466
 
 
467
 
 
468
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
 
  as_dirname=dirname
470
 
else
471
 
  as_dirname=false
472
 
fi
473
 
 
474
 
ECHO_C= ECHO_N= ECHO_T=
475
 
case `echo -n x` in
476
 
-n*)
477
 
  case `echo 'x\c'` in
478
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
 
  *)   ECHO_C='\c';;
480
 
  esac;;
481
 
*)
482
 
  ECHO_N='-n';;
483
 
esac
484
 
 
485
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
 
  as_expr=expr
488
 
else
489
 
  as_expr=false
490
 
fi
491
 
 
492
 
rm -f conf$$ conf$$.exe conf$$.file
493
 
if test -d conf$$.dir; then
494
 
  rm -f conf$$.dir/conf$$.file
495
 
else
496
 
  rm -f conf$$.dir
497
 
  mkdir conf$$.dir
498
 
fi
499
 
echo >conf$$.file
500
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
 
  as_ln_s='ln -s'
502
 
  # ... but there are two gotchas:
503
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
 
  # In both cases, we have to default to `cp -p'.
506
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507
 
    as_ln_s='cp -p'
508
 
elif ln conf$$.file conf$$ 2>/dev/null; then
509
 
  as_ln_s=ln
510
 
else
511
 
  as_ln_s='cp -p'
512
 
fi
513
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
 
rmdir conf$$.dir 2>/dev/null
515
 
 
516
 
if mkdir -p . 2>/dev/null; then
517
 
  as_mkdir_p=:
518
 
else
519
 
  test -d ./-p && rmdir ./-p
520
 
  as_mkdir_p=false
521
 
fi
522
 
 
523
 
if test -x / >/dev/null 2>&1; then
524
 
  as_test_x='test -x'
525
 
else
526
 
  if ls -dL / >/dev/null 2>&1; then
527
 
    as_ls_L_option=L
528
 
  else
529
 
    as_ls_L_option=
530
 
  fi
531
 
  as_test_x='
532
 
    eval sh -c '\''
533
 
      if test -d "$1"; then
534
 
        test -d "$1/.";
535
 
      else
536
 
        case $1 in
537
 
        -*)set "./$1";;
538
 
        esac;
539
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
 
        ???[sx]*):;;*)false;;esac;fi
541
 
    '\'' sh
542
 
  '
543
 
fi
544
 
as_executable_p=$as_test_x
545
 
 
546
 
# Sed expression to map a string onto a valid CPP name.
547
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
 
 
549
 
# Sed expression to map a string onto a valid variable name.
550
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
 
 
552
 
 
553
 
 
554
 
exec 7<&0 </dev/null 6>&1
555
 
 
556
 
# Name of the host.
557
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558
 
# so uname gets run too.
559
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
 
 
561
 
#
562
 
# Initializations.
563
 
#
564
 
ac_default_prefix=/usr/local
565
 
ac_clean_files=
566
 
ac_config_libobj_dir=.
567
 
LIBOBJS=
568
 
cross_compiling=no
569
 
subdirs=
570
 
MFLAGS=
571
 
MAKEFLAGS=
572
 
SHELL=${CONFIG_SHELL-/bin/sh}
573
 
 
574
 
# Identity of this package.
575
 
PACKAGE_NAME='pinentry-x2go'
576
 
PACKAGE_TARNAME='pinentry-x2go'
577
 
PACKAGE_VERSION='0.7.5.0'
578
 
PACKAGE_STRING='pinentry-x2go 0.7.5.0'
579
 
PACKAGE_BUGREPORT='bugs@x2go.org'
580
 
 
581
 
ac_unique_file="pinentry/pinentry.h"
582
 
# Factoring default headers for most tests.
583
 
ac_includes_default="\
584
 
#include <stdio.h>
585
 
#ifdef HAVE_SYS_TYPES_H
586
 
# include <sys/types.h>
587
 
#endif
588
 
#ifdef HAVE_SYS_STAT_H
589
 
# include <sys/stat.h>
590
 
#endif
591
 
#ifdef STDC_HEADERS
592
 
# include <stdlib.h>
593
 
# include <stddef.h>
594
 
#else
595
 
# ifdef HAVE_STDLIB_H
596
 
#  include <stdlib.h>
597
 
# endif
598
 
#endif
599
 
#ifdef HAVE_STRING_H
600
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601
 
#  include <memory.h>
602
 
# endif
603
 
# include <string.h>
604
 
#endif
605
 
#ifdef HAVE_STRINGS_H
606
 
# include <strings.h>
607
 
#endif
608
 
#ifdef HAVE_INTTYPES_H
609
 
# include <inttypes.h>
610
 
#endif
611
 
#ifdef HAVE_STDINT_H
612
 
# include <stdint.h>
613
 
#endif
614
 
#ifdef HAVE_UNISTD_H
615
 
# include <unistd.h>
616
 
#endif"
617
 
 
618
 
ac_subst_vars='SHELL
619
 
PATH_SEPARATOR
620
 
PACKAGE_NAME
621
 
PACKAGE_TARNAME
622
 
PACKAGE_VERSION
623
 
PACKAGE_STRING
624
 
PACKAGE_BUGREPORT
625
 
exec_prefix
626
 
prefix
627
 
program_transform_name
628
 
bindir
629
 
sbindir
630
 
libexecdir
631
 
datarootdir
632
 
datadir
633
 
sysconfdir
634
 
sharedstatedir
635
 
localstatedir
636
 
includedir
637
 
oldincludedir
638
 
docdir
639
 
infodir
640
 
htmldir
641
 
dvidir
642
 
pdfdir
643
 
psdir
644
 
libdir
645
 
localedir
646
 
mandir
647
 
DEFS
648
 
ECHO_C
649
 
ECHO_N
650
 
ECHO_T
651
 
LIBS
652
 
build_alias
653
 
host_alias
654
 
target_alias
655
 
INSTALL_PROGRAM
656
 
INSTALL_SCRIPT
657
 
INSTALL_DATA
658
 
am__isrc
659
 
CYGPATH_W
660
 
PACKAGE
661
 
VERSION
662
 
ACLOCAL
663
 
AUTOCONF
664
 
AUTOMAKE
665
 
AUTOHEADER
666
 
MAKEINFO
667
 
install_sh
668
 
STRIP
669
 
INSTALL_STRIP_PROGRAM
670
 
mkdir_p
671
 
AWK
672
 
SET_MAKE
673
 
am__leading_dot
674
 
AMTAR
675
 
am__tar
676
 
am__untar
677
 
MAINTAINER_MODE_TRUE
678
 
MAINTAINER_MODE_FALSE
679
 
MAINT
680
 
build
681
 
build_cpu
682
 
build_vendor
683
 
build_os
684
 
host
685
 
host_cpu
686
 
host_vendor
687
 
host_os
688
 
CC
689
 
CFLAGS
690
 
LDFLAGS
691
 
CPPFLAGS
692
 
ac_ct_CC
693
 
EXEEXT
694
 
OBJEXT
695
 
DEPDIR
696
 
am__include
697
 
am__quote
698
 
AMDEP_TRUE
699
 
AMDEP_FALSE
700
 
AMDEPBACKSLASH
701
 
CCDEPMODE
702
 
am__fastdepCC_TRUE
703
 
am__fastdepCC_FALSE
704
 
CPP
705
 
RANLIB
706
 
CXX
707
 
CXXFLAGS
708
 
ac_ct_CXX
709
 
CXXDEPMODE
710
 
am__fastdepCXX_TRUE
711
 
am__fastdepCXX_FALSE
712
 
LN_S
713
 
WINDRES
714
 
HAVE_DOSISH_SYSTEM_TRUE
715
 
HAVE_DOSISH_SYSTEM_FALSE
716
 
HAVE_W32_SYSTEM_TRUE
717
 
HAVE_W32_SYSTEM_FALSE
718
 
GREP
719
 
EGREP
720
 
SETCAP
721
 
LIBCAP
722
 
NCURSES_INCLUDE
723
 
LIBNCURSES
724
 
LIBTERMCAP
725
 
LIBCURSES
726
 
BUILD_LIBPINENTRY_CURSES_TRUE
727
 
BUILD_LIBPINENTRY_CURSES_FALSE
728
 
BUILD_PINENTRY_CURSES_TRUE
729
 
BUILD_PINENTRY_CURSES_FALSE
730
 
FALLBACK_CURSES_TRUE
731
 
FALLBACK_CURSES_FALSE
732
 
GLIB_CONFIG
733
 
GLIB_CFLAGS
734
 
GLIB_LIBS
735
 
GTK_CONFIG
736
 
GTK_CFLAGS
737
 
GTK_LIBS
738
 
BUILD_PINENTRY_GTK_TRUE
739
 
BUILD_PINENTRY_GTK_FALSE
740
 
LIBICONV
741
 
LTLIBICONV
742
 
PKG_CONFIG
743
 
GTK2CFLAGS
744
 
GTK2LIBS
745
 
BUILD_PINENTRY_GTK_2_TRUE
746
 
BUILD_PINENTRY_GTK_2_FALSE
747
 
CXXCPP
748
 
XMKMF
749
 
X_CFLAGS
750
 
X_PRE_LIBS
751
 
X_LIBS
752
 
X_EXTRA_LIBS
753
 
QT_CXXFLAGS
754
 
QT_LDFLAGS
755
 
QT_LIBS
756
 
QTE_NORTTI
757
 
LIBPTHREAD
758
 
USE_THREADS
759
 
QT_MT_LDFLAGS
760
 
QT_MT_LIBS
761
 
qt_libraries
762
 
qt_includes
763
 
QT_INCLUDES
764
 
MOC
765
 
LIB_QPE
766
 
x_libraries
767
 
QT_RPATH
768
 
BUILD_PINENTRY_QT_TRUE
769
 
BUILD_PINENTRY_QT_FALSE
770
 
BUILD_PINENTRY_W32_TRUE
771
 
BUILD_PINENTRY_W32_FALSE
772
 
PINENTRY_DEFAULT
773
 
LIBOBJS
774
 
LTLIBOBJS'
775
 
ac_subst_files=''
776
 
      ac_precious_vars='build_alias
777
 
host_alias
778
 
target_alias
779
 
CC
780
 
CFLAGS
781
 
LDFLAGS
782
 
LIBS
783
 
CPPFLAGS
784
 
CPP
785
 
CXX
786
 
CXXFLAGS
787
 
CCC
788
 
CXXCPP
789
 
XMKMF'
790
 
 
791
 
 
792
 
# Initialize some variables set by options.
793
 
ac_init_help=
794
 
ac_init_version=false
795
 
# The variables have the same names as the options, with
796
 
# dashes changed to underlines.
797
 
cache_file=/dev/null
798
 
exec_prefix=NONE
799
 
no_create=
800
 
no_recursion=
801
 
prefix=NONE
802
 
program_prefix=NONE
803
 
program_suffix=NONE
804
 
program_transform_name=s,x,x,
805
 
silent=
806
 
site=
807
 
srcdir=
808
 
verbose=
809
 
x_includes=NONE
810
 
x_libraries=NONE
811
 
 
812
 
# Installation directory options.
813
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
814
 
# and all the variables that are supposed to be based on exec_prefix
815
 
# by default will actually change.
816
 
# Use braces instead of parens because sh, perl, etc. also accept them.
817
 
# (The list follows the same order as the GNU Coding Standards.)
818
 
bindir='${exec_prefix}/bin'
819
 
sbindir='${exec_prefix}/sbin'
820
 
libexecdir='${exec_prefix}/libexec'
821
 
datarootdir='${prefix}/share'
822
 
datadir='${datarootdir}'
823
 
sysconfdir='${prefix}/etc'
824
 
sharedstatedir='${prefix}/com'
825
 
localstatedir='${prefix}/var'
826
 
includedir='${prefix}/include'
827
 
oldincludedir='/usr/include'
828
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829
 
infodir='${datarootdir}/info'
830
 
htmldir='${docdir}'
831
 
dvidir='${docdir}'
832
 
pdfdir='${docdir}'
833
 
psdir='${docdir}'
834
 
libdir='${exec_prefix}/lib'
835
 
localedir='${datarootdir}/locale'
836
 
mandir='${datarootdir}/man'
837
 
 
838
 
ac_prev=
839
 
ac_dashdash=
840
 
for ac_option
841
 
do
842
 
  # If the previous option needs an argument, assign it.
843
 
  if test -n "$ac_prev"; then
844
 
    eval $ac_prev=\$ac_option
845
 
    ac_prev=
846
 
    continue
847
 
  fi
848
 
 
849
 
  case $ac_option in
850
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851
 
  *)    ac_optarg=yes ;;
852
 
  esac
853
 
 
854
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
855
 
 
856
 
  case $ac_dashdash$ac_option in
857
 
  --)
858
 
    ac_dashdash=yes ;;
859
 
 
860
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861
 
    ac_prev=bindir ;;
862
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863
 
    bindir=$ac_optarg ;;
864
 
 
865
 
  -build | --build | --buil | --bui | --bu)
866
 
    ac_prev=build_alias ;;
867
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868
 
    build_alias=$ac_optarg ;;
869
 
 
870
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
871
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872
 
    ac_prev=cache_file ;;
873
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875
 
    cache_file=$ac_optarg ;;
876
 
 
877
 
  --config-cache | -C)
878
 
    cache_file=config.cache ;;
879
 
 
880
 
  -datadir | --datadir | --datadi | --datad)
881
 
    ac_prev=datadir ;;
882
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883
 
    datadir=$ac_optarg ;;
884
 
 
885
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886
 
  | --dataroo | --dataro | --datar)
887
 
    ac_prev=datarootdir ;;
888
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890
 
    datarootdir=$ac_optarg ;;
891
 
 
892
 
  -disable-* | --disable-*)
893
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894
 
    # Reject names that are not valid shell variable names.
895
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897
 
   { (exit 1); exit 1; }; }
898
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899
 
    eval enable_$ac_feature=no ;;
900
 
 
901
 
  -docdir | --docdir | --docdi | --doc | --do)
902
 
    ac_prev=docdir ;;
903
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904
 
    docdir=$ac_optarg ;;
905
 
 
906
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907
 
    ac_prev=dvidir ;;
908
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909
 
    dvidir=$ac_optarg ;;
910
 
 
911
 
  -enable-* | --enable-*)
912
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913
 
    # Reject names that are not valid shell variable names.
914
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916
 
   { (exit 1); exit 1; }; }
917
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918
 
    eval enable_$ac_feature=\$ac_optarg ;;
919
 
 
920
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922
 
  | --exec | --exe | --ex)
923
 
    ac_prev=exec_prefix ;;
924
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926
 
  | --exec=* | --exe=* | --ex=*)
927
 
    exec_prefix=$ac_optarg ;;
928
 
 
929
 
  -gas | --gas | --ga | --g)
930
 
    # Obsolete; use --with-gas.
931
 
    with_gas=yes ;;
932
 
 
933
 
  -help | --help | --hel | --he | -h)
934
 
    ac_init_help=long ;;
935
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936
 
    ac_init_help=recursive ;;
937
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938
 
    ac_init_help=short ;;
939
 
 
940
 
  -host | --host | --hos | --ho)
941
 
    ac_prev=host_alias ;;
942
 
  -host=* | --host=* | --hos=* | --ho=*)
943
 
    host_alias=$ac_optarg ;;
944
 
 
945
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946
 
    ac_prev=htmldir ;;
947
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948
 
  | --ht=*)
949
 
    htmldir=$ac_optarg ;;
950
 
 
951
 
  -includedir | --includedir | --includedi | --included | --include \
952
 
  | --includ | --inclu | --incl | --inc)
953
 
    ac_prev=includedir ;;
954
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
956
 
    includedir=$ac_optarg ;;
957
 
 
958
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
959
 
    ac_prev=infodir ;;
960
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961
 
    infodir=$ac_optarg ;;
962
 
 
963
 
  -libdir | --libdir | --libdi | --libd)
964
 
    ac_prev=libdir ;;
965
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
966
 
    libdir=$ac_optarg ;;
967
 
 
968
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969
 
  | --libexe | --libex | --libe)
970
 
    ac_prev=libexecdir ;;
971
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972
 
  | --libexe=* | --libex=* | --libe=*)
973
 
    libexecdir=$ac_optarg ;;
974
 
 
975
 
  -localedir | --localedir | --localedi | --localed | --locale)
976
 
    ac_prev=localedir ;;
977
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978
 
    localedir=$ac_optarg ;;
979
 
 
980
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
981
 
  | --localstate | --localstat | --localsta | --localst | --locals)
982
 
    ac_prev=localstatedir ;;
983
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985
 
    localstatedir=$ac_optarg ;;
986
 
 
987
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988
 
    ac_prev=mandir ;;
989
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990
 
    mandir=$ac_optarg ;;
991
 
 
992
 
  -nfp | --nfp | --nf)
993
 
    # Obsolete; use --without-fp.
994
 
    with_fp=no ;;
995
 
 
996
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997
 
  | --no-cr | --no-c | -n)
998
 
    no_create=yes ;;
999
 
 
1000
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002
 
    no_recursion=yes ;;
1003
 
 
1004
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006
 
  | --oldin | --oldi | --old | --ol | --o)
1007
 
    ac_prev=oldincludedir ;;
1008
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011
 
    oldincludedir=$ac_optarg ;;
1012
 
 
1013
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014
 
    ac_prev=prefix ;;
1015
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016
 
    prefix=$ac_optarg ;;
1017
 
 
1018
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019
 
  | --program-pre | --program-pr | --program-p)
1020
 
    ac_prev=program_prefix ;;
1021
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023
 
    program_prefix=$ac_optarg ;;
1024
 
 
1025
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026
 
  | --program-suf | --program-su | --program-s)
1027
 
    ac_prev=program_suffix ;;
1028
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030
 
    program_suffix=$ac_optarg ;;
1031
 
 
1032
 
  -program-transform-name | --program-transform-name \
1033
 
  | --program-transform-nam | --program-transform-na \
1034
 
  | --program-transform-n | --program-transform- \
1035
 
  | --program-transform | --program-transfor \
1036
 
  | --program-transfo | --program-transf \
1037
 
  | --program-trans | --program-tran \
1038
 
  | --progr-tra | --program-tr | --program-t)
1039
 
    ac_prev=program_transform_name ;;
1040
 
  -program-transform-name=* | --program-transform-name=* \
1041
 
  | --program-transform-nam=* | --program-transform-na=* \
1042
 
  | --program-transform-n=* | --program-transform-=* \
1043
 
  | --program-transform=* | --program-transfor=* \
1044
 
  | --program-transfo=* | --program-transf=* \
1045
 
  | --program-trans=* | --program-tran=* \
1046
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1047
 
    program_transform_name=$ac_optarg ;;
1048
 
 
1049
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050
 
    ac_prev=pdfdir ;;
1051
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052
 
    pdfdir=$ac_optarg ;;
1053
 
 
1054
 
  -psdir | --psdir | --psdi | --psd | --ps)
1055
 
    ac_prev=psdir ;;
1056
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057
 
    psdir=$ac_optarg ;;
1058
 
 
1059
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060
 
  | -silent | --silent | --silen | --sile | --sil)
1061
 
    silent=yes ;;
1062
 
 
1063
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064
 
    ac_prev=sbindir ;;
1065
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066
 
  | --sbi=* | --sb=*)
1067
 
    sbindir=$ac_optarg ;;
1068
 
 
1069
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071
 
  | --sharedst | --shareds | --shared | --share | --shar \
1072
 
  | --sha | --sh)
1073
 
    ac_prev=sharedstatedir ;;
1074
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077
 
  | --sha=* | --sh=*)
1078
 
    sharedstatedir=$ac_optarg ;;
1079
 
 
1080
 
  -site | --site | --sit)
1081
 
    ac_prev=site ;;
1082
 
  -site=* | --site=* | --sit=*)
1083
 
    site=$ac_optarg ;;
1084
 
 
1085
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086
 
    ac_prev=srcdir ;;
1087
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088
 
    srcdir=$ac_optarg ;;
1089
 
 
1090
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1092
 
    ac_prev=sysconfdir ;;
1093
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095
 
    sysconfdir=$ac_optarg ;;
1096
 
 
1097
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1098
 
    ac_prev=target_alias ;;
1099
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100
 
    target_alias=$ac_optarg ;;
1101
 
 
1102
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103
 
    verbose=yes ;;
1104
 
 
1105
 
  -version | --version | --versio | --versi | --vers | -V)
1106
 
    ac_init_version=: ;;
1107
 
 
1108
 
  -with-* | --with-*)
1109
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110
 
    # Reject names that are not valid shell variable names.
1111
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1113
 
   { (exit 1); exit 1; }; }
1114
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115
 
    eval with_$ac_package=\$ac_optarg ;;
1116
 
 
1117
 
  -without-* | --without-*)
1118
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119
 
    # Reject names that are not valid shell variable names.
1120
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1122
 
   { (exit 1); exit 1; }; }
1123
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124
 
    eval with_$ac_package=no ;;
1125
 
 
1126
 
  --x)
1127
 
    # Obsolete; use --with-x.
1128
 
    with_x=yes ;;
1129
 
 
1130
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131
 
  | --x-incl | --x-inc | --x-in | --x-i)
1132
 
    ac_prev=x_includes ;;
1133
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135
 
    x_includes=$ac_optarg ;;
1136
 
 
1137
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139
 
    ac_prev=x_libraries ;;
1140
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142
 
    x_libraries=$ac_optarg ;;
1143
 
 
1144
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1145
 
Try \`$0 --help' for more information." >&2
1146
 
   { (exit 1); exit 1; }; }
1147
 
    ;;
1148
 
 
1149
 
  *=*)
1150
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151
 
    # Reject names that are not valid shell variable names.
1152
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154
 
   { (exit 1); exit 1; }; }
1155
 
    eval $ac_envvar=\$ac_optarg
1156
 
    export $ac_envvar ;;
1157
 
 
1158
 
  *)
1159
 
    # FIXME: should be removed in autoconf 3.0.
1160
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164
 
    ;;
1165
 
 
1166
 
  esac
1167
 
done
1168
 
 
1169
 
if test -n "$ac_prev"; then
1170
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1172
 
   { (exit 1); exit 1; }; }
1173
 
fi
1174
 
 
1175
 
# Be sure to have absolute directory names.
1176
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1178
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179
 
                libdir localedir mandir
1180
 
do
1181
 
  eval ac_val=\$$ac_var
1182
 
  case $ac_val in
1183
 
    [\\/$]* | ?:[\\/]* )  continue;;
1184
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185
 
  esac
1186
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187
 
   { (exit 1); exit 1; }; }
1188
 
done
1189
 
 
1190
 
# There might be people who depend on the old broken behavior: `$host'
1191
 
# used to hold the argument of --host etc.
1192
 
# FIXME: To remove some day.
1193
 
build=$build_alias
1194
 
host=$host_alias
1195
 
target=$target_alias
1196
 
 
1197
 
# FIXME: To remove some day.
1198
 
if test "x$host_alias" != x; then
1199
 
  if test "x$build_alias" = x; then
1200
 
    cross_compiling=maybe
1201
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1203
 
  elif test "x$build_alias" != "x$host_alias"; then
1204
 
    cross_compiling=yes
1205
 
  fi
1206
 
fi
1207
 
 
1208
 
ac_tool_prefix=
1209
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
 
 
1211
 
test "$silent" = yes && exec 6>/dev/null
1212
 
 
1213
 
 
1214
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215
 
ac_ls_di=`ls -di .` &&
1216
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1218
 
   { (exit 1); exit 1; }; }
1219
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1221
 
   { (exit 1); exit 1; }; }
1222
 
 
1223
 
 
1224
 
# Find the source files, if location was not specified.
1225
 
if test -z "$srcdir"; then
1226
 
  ac_srcdir_defaulted=yes
1227
 
  # Try the directory containing this script, then the parent directory.
1228
 
  ac_confdir=`$as_dirname -- "$0" ||
1229
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230
 
         X"$0" : 'X\(//\)[^/]' \| \
1231
 
         X"$0" : 'X\(//\)$' \| \
1232
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233
 
echo X"$0" |
1234
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235
 
            s//\1/
1236
 
            q
1237
 
          }
1238
 
          /^X\(\/\/\)[^/].*/{
1239
 
            s//\1/
1240
 
            q
1241
 
          }
1242
 
          /^X\(\/\/\)$/{
1243
 
            s//\1/
1244
 
            q
1245
 
          }
1246
 
          /^X\(\/\).*/{
1247
 
            s//\1/
1248
 
            q
1249
 
          }
1250
 
          s/.*/./; q'`
1251
 
  srcdir=$ac_confdir
1252
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1253
 
    srcdir=..
1254
 
  fi
1255
 
else
1256
 
  ac_srcdir_defaulted=no
1257
 
fi
1258
 
if test ! -r "$srcdir/$ac_unique_file"; then
1259
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261
 
   { (exit 1); exit 1; }; }
1262
 
fi
1263
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264
 
ac_abs_confdir=`(
1265
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266
 
   { (exit 1); exit 1; }; }
1267
 
        pwd)`
1268
 
# When building in place, set srcdir=.
1269
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1270
 
  srcdir=.
1271
 
fi
1272
 
# Remove unnecessary trailing slashes from srcdir.
1273
 
# Double slashes in file names in object file debugging info
1274
 
# mess up M-x gdb in Emacs.
1275
 
case $srcdir in
1276
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277
 
esac
1278
 
for ac_var in $ac_precious_vars; do
1279
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1281
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283
 
done
1284
 
 
1285
 
#
1286
 
# Report the --help message.
1287
 
#
1288
 
if test "$ac_init_help" = "long"; then
1289
 
  # Omit some internal or obsolete options to make the list less imposing.
1290
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1291
 
  cat <<_ACEOF
1292
 
\`configure' configures pinentry-x2go 0.7.5.0 to adapt to many kinds of systems.
1293
 
 
1294
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1295
 
 
1296
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
 
 
1299
 
Defaults for the options are specified in brackets.
1300
 
 
1301
 
Configuration:
1302
 
  -h, --help              display this help and exit
1303
 
      --help=short        display options specific to this package
1304
 
      --help=recursive    display the short help of all the included packages
1305
 
  -V, --version           display version information and exit
1306
 
  -q, --quiet, --silent   do not print \`checking...' messages
1307
 
      --cache-file=FILE   cache test results in FILE [disabled]
1308
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1309
 
  -n, --no-create         do not create output files
1310
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
 
 
1312
 
Installation directories:
1313
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1314
 
                          [$ac_default_prefix]
1315
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316
 
                          [PREFIX]
1317
 
 
1318
 
By default, \`make install' will install all the files in
1319
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321
 
for instance \`--prefix=\$HOME'.
1322
 
 
1323
 
For better control, use the options below.
1324
 
 
1325
 
Fine tuning of the installation directories:
1326
 
  --bindir=DIR           user executables [EPREFIX/bin]
1327
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1328
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1329
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1330
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1331
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1332
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1333
 
  --includedir=DIR       C header files [PREFIX/include]
1334
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1335
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1336
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1337
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1338
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1339
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1340
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/pinentry]
1341
 
  --htmldir=DIR          html documentation [DOCDIR]
1342
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1343
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1344
 
  --psdir=DIR            ps documentation [DOCDIR]
1345
 
_ACEOF
1346
 
 
1347
 
  cat <<\_ACEOF
1348
 
 
1349
 
Program names:
1350
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1351
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1352
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1353
 
 
1354
 
X features:
1355
 
  --x-includes=DIR    X include files are in DIR
1356
 
  --x-libraries=DIR   X library files are in DIR
1357
 
 
1358
 
System types:
1359
 
  --build=BUILD     configure for building on BUILD [guessed]
1360
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1361
 
_ACEOF
1362
 
fi
1363
 
 
1364
 
if test -n "$ac_init_help"; then
1365
 
  case $ac_init_help in
1366
 
     short | recursive ) echo "Configuration of pinentry-x2go 0.7.5.0:";;
1367
 
   esac
1368
 
  cat <<\_ACEOF
1369
 
 
1370
 
Optional Features:
1371
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1372
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1373
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1374
 
                          (and sometimes confusing) to the casual installer
1375
 
  --disable-dependency-tracking  speeds up one-time build
1376
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1377
 
  --enable-pinentry-curses
1378
 
                          build curses pinentry
1379
 
  --enable-fallback-curses
1380
 
                          include curses fallback
1381
 
  --disable-ncurses       don't prefer -lncurses over -lcurses
1382
 
  --enable-pinentry-gtk   build GTK+ pinentry
1383
 
  --disable-glibtest       Do not try to compile and run a test GLIB program
1384
 
  --disable-gtktest       Do not try to compile and run a test GTK program
1385
 
  --disable-rpath         do not hardcode runtime library paths
1386
 
  --enable-pinentry-gtk2  build GTK+-2 pinentry
1387
 
  --enable-pinentry-qt    build Qt pinentry
1388
 
  --enable-embedded       link to Qt-embedded, don't use X
1389
 
  --enable-palmtop       link to Qt-embedded, don't use X, link to the Qt Palmtop Environment
1390
 
  --disable-mt            link to non-threaded Qt (deprecated)
1391
 
  --enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
1392
 
  --disable-threading     disables threading even if libpthread found
1393
 
  --disable-rpath         do not use the rpath feature of ld
1394
 
 
1395
 
Optional Packages:
1396
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1397
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1398
 
  --without-libcap        Disable support for capabilities library
1399
 
  --with-ncurses-include-dir=DIR
1400
 
                          Set directory containing the include files for
1401
 
                          use with -lncurses, when it isn't installed as
1402
 
                          the default curses library.  If DIR is "none",
1403
 
                          then no special ncurses include files are used.
1404
 
  --without-ncurses-include-dir
1405
 
                          Equivalent to --with-ncurses-include-dir=none
1406
 
  --with-glib-prefix=PFX   Prefix where GLIB is installed (optional)
1407
 
  --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
1408
 
  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1409
 
  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1410
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1411
 
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1412
 
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1413
 
  --with-x                use the X Window System
1414
 
  --with-qt-dir=DIR       where the root of Qt is installed
1415
 
  --with-qt-includes=DIR  where the Qt includes are.
1416
 
  --with-qt-libraries=DIR where the Qt library is installed.
1417
 
 
1418
 
Some influential environment variables:
1419
 
  CC          C compiler command
1420
 
  CFLAGS      C compiler flags
1421
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1422
 
              nonstandard directory <lib dir>
1423
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1424
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425
 
              you have headers in a nonstandard directory <include dir>
1426
 
  CPP         C preprocessor
1427
 
  CXX         C++ compiler command
1428
 
  CXXFLAGS    C++ compiler flags
1429
 
  CXXCPP      C++ preprocessor
1430
 
  XMKMF       Path to xmkmf, Makefile generator for X Window System
1431
 
 
1432
 
Use these variables to override the choices made by `configure' or to help
1433
 
it to find libraries and programs with nonstandard names/locations.
1434
 
 
1435
 
Report bugs to <bugs@x2go.org>.
1436
 
_ACEOF
1437
 
ac_status=$?
1438
 
fi
1439
 
 
1440
 
if test "$ac_init_help" = "recursive"; then
1441
 
  # If there are subdirs, report their specific --help.
1442
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443
 
    test -d "$ac_dir" || continue
1444
 
    ac_builddir=.
1445
 
 
1446
 
case "$ac_dir" in
1447
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448
 
*)
1449
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1450
 
  # A ".." for each directory in $ac_dir_suffix.
1451
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1452
 
  case $ac_top_builddir_sub in
1453
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455
 
  esac ;;
1456
 
esac
1457
 
ac_abs_top_builddir=$ac_pwd
1458
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459
 
# for backward compatibility:
1460
 
ac_top_builddir=$ac_top_build_prefix
1461
 
 
1462
 
case $srcdir in
1463
 
  .)  # We are building in place.
1464
 
    ac_srcdir=.
1465
 
    ac_top_srcdir=$ac_top_builddir_sub
1466
 
    ac_abs_top_srcdir=$ac_pwd ;;
1467
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1468
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1469
 
    ac_top_srcdir=$srcdir
1470
 
    ac_abs_top_srcdir=$srcdir ;;
1471
 
  *) # Relative name.
1472
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1474
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475
 
esac
1476
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
 
 
1478
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1479
 
    # Check for guested configure.
1480
 
    if test -f "$ac_srcdir/configure.gnu"; then
1481
 
      echo &&
1482
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483
 
    elif test -f "$ac_srcdir/configure"; then
1484
 
      echo &&
1485
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1486
 
    else
1487
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488
 
    fi || ac_status=$?
1489
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1490
 
  done
1491
 
fi
1492
 
 
1493
 
test -n "$ac_init_help" && exit $ac_status
1494
 
if $ac_init_version; then
1495
 
  cat <<\_ACEOF
1496
 
pinentry-x2go configure 0.7.5.0
1497
 
generated by GNU Autoconf 2.61
1498
 
 
1499
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1501
 
This configure script is free software; the Free Software Foundation
1502
 
gives unlimited permission to copy, distribute and modify it.
1503
 
_ACEOF
1504
 
  exit
1505
 
fi
1506
 
cat >config.log <<_ACEOF
1507
 
This file contains any messages produced by compilers while
1508
 
running configure, to aid debugging if configure makes a mistake.
1509
 
 
1510
 
It was created by pinentry-x2go $as_me 0.7.5.0, which was
1511
 
generated by GNU Autoconf 2.61.  Invocation command line was
1512
 
 
1513
 
  $ $0 $@
1514
 
 
1515
 
_ACEOF
1516
 
exec 5>>config.log
1517
 
{
1518
 
cat <<_ASUNAME
1519
 
## --------- ##
1520
 
## Platform. ##
1521
 
## --------- ##
1522
 
 
1523
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1524
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1525
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1526
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1527
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1528
 
 
1529
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1530
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1531
 
 
1532
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1533
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1534
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1535
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1536
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1537
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1538
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1539
 
 
1540
 
_ASUNAME
1541
 
 
1542
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543
 
for as_dir in $PATH
1544
 
do
1545
 
  IFS=$as_save_IFS
1546
 
  test -z "$as_dir" && as_dir=.
1547
 
  echo "PATH: $as_dir"
1548
 
done
1549
 
IFS=$as_save_IFS
1550
 
 
1551
 
} >&5
1552
 
 
1553
 
cat >&5 <<_ACEOF
1554
 
 
1555
 
 
1556
 
## ----------- ##
1557
 
## Core tests. ##
1558
 
## ----------- ##
1559
 
 
1560
 
_ACEOF
1561
 
 
1562
 
 
1563
 
# Keep a trace of the command line.
1564
 
# Strip out --no-create and --no-recursion so they do not pile up.
1565
 
# Strip out --silent because we don't want to record it for future runs.
1566
 
# Also quote any args containing shell meta-characters.
1567
 
# Make two passes to allow for proper duplicate-argument suppression.
1568
 
ac_configure_args=
1569
 
ac_configure_args0=
1570
 
ac_configure_args1=
1571
 
ac_must_keep_next=false
1572
 
for ac_pass in 1 2
1573
 
do
1574
 
  for ac_arg
1575
 
  do
1576
 
    case $ac_arg in
1577
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1578
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579
 
    | -silent | --silent | --silen | --sile | --sil)
1580
 
      continue ;;
1581
 
    *\'*)
1582
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1583
 
    esac
1584
 
    case $ac_pass in
1585
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1586
 
    2)
1587
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1588
 
      if test $ac_must_keep_next = true; then
1589
 
        ac_must_keep_next=false # Got value, back to normal.
1590
 
      else
1591
 
        case $ac_arg in
1592
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1593
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1594
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1595
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1596
 
            case "$ac_configure_args0 " in
1597
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1598
 
            esac
1599
 
            ;;
1600
 
          -* ) ac_must_keep_next=true ;;
1601
 
        esac
1602
 
      fi
1603
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1604
 
      ;;
1605
 
    esac
1606
 
  done
1607
 
done
1608
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1609
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1610
 
 
1611
 
# When interrupted or exit'd, cleanup temporary files, and complete
1612
 
# config.log.  We remove comments because anyway the quotes in there
1613
 
# would cause problems or look ugly.
1614
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1615
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1616
 
trap 'exit_status=$?
1617
 
  # Save into config.log some information that might help in debugging.
1618
 
  {
1619
 
    echo
1620
 
 
1621
 
    cat <<\_ASBOX
1622
 
## ---------------- ##
1623
 
## Cache variables. ##
1624
 
## ---------------- ##
1625
 
_ASBOX
1626
 
    echo
1627
 
    # The following way of writing the cache mishandles newlines in values,
1628
 
(
1629
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1630
 
    eval ac_val=\$$ac_var
1631
 
    case $ac_val in #(
1632
 
    *${as_nl}*)
1633
 
      case $ac_var in #(
1634
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1635
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1636
 
      esac
1637
 
      case $ac_var in #(
1638
 
      _ | IFS | as_nl) ;; #(
1639
 
      *) $as_unset $ac_var ;;
1640
 
      esac ;;
1641
 
    esac
1642
 
  done
1643
 
  (set) 2>&1 |
1644
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1645
 
    *${as_nl}ac_space=\ *)
1646
 
      sed -n \
1647
 
        "s/'\''/'\''\\\\'\'''\''/g;
1648
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1649
 
      ;; #(
1650
 
    *)
1651
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1652
 
      ;;
1653
 
    esac |
1654
 
    sort
1655
 
)
1656
 
    echo
1657
 
 
1658
 
    cat <<\_ASBOX
1659
 
## ----------------- ##
1660
 
## Output variables. ##
1661
 
## ----------------- ##
1662
 
_ASBOX
1663
 
    echo
1664
 
    for ac_var in $ac_subst_vars
1665
 
    do
1666
 
      eval ac_val=\$$ac_var
1667
 
      case $ac_val in
1668
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669
 
      esac
1670
 
      echo "$ac_var='\''$ac_val'\''"
1671
 
    done | sort
1672
 
    echo
1673
 
 
1674
 
    if test -n "$ac_subst_files"; then
1675
 
      cat <<\_ASBOX
1676
 
## ------------------- ##
1677
 
## File substitutions. ##
1678
 
## ------------------- ##
1679
 
_ASBOX
1680
 
      echo
1681
 
      for ac_var in $ac_subst_files
1682
 
      do
1683
 
        eval ac_val=\$$ac_var
1684
 
        case $ac_val in
1685
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686
 
        esac
1687
 
        echo "$ac_var='\''$ac_val'\''"
1688
 
      done | sort
1689
 
      echo
1690
 
    fi
1691
 
 
1692
 
    if test -s confdefs.h; then
1693
 
      cat <<\_ASBOX
1694
 
## ----------- ##
1695
 
## confdefs.h. ##
1696
 
## ----------- ##
1697
 
_ASBOX
1698
 
      echo
1699
 
      cat confdefs.h
1700
 
      echo
1701
 
    fi
1702
 
    test "$ac_signal" != 0 &&
1703
 
      echo "$as_me: caught signal $ac_signal"
1704
 
    echo "$as_me: exit $exit_status"
1705
 
  } >&5
1706
 
  rm -f core *.core core.conftest.* &&
1707
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1708
 
    exit $exit_status
1709
 
' 0
1710
 
for ac_signal in 1 2 13 15; do
1711
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1712
 
done
1713
 
ac_signal=0
1714
 
 
1715
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1716
 
rm -f -r conftest* confdefs.h
1717
 
 
1718
 
# Predefined preprocessor variables.
1719
 
 
1720
 
cat >>confdefs.h <<_ACEOF
1721
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1722
 
_ACEOF
1723
 
 
1724
 
 
1725
 
cat >>confdefs.h <<_ACEOF
1726
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1727
 
_ACEOF
1728
 
 
1729
 
 
1730
 
cat >>confdefs.h <<_ACEOF
1731
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1732
 
_ACEOF
1733
 
 
1734
 
 
1735
 
cat >>confdefs.h <<_ACEOF
1736
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1737
 
_ACEOF
1738
 
 
1739
 
 
1740
 
cat >>confdefs.h <<_ACEOF
1741
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1742
 
_ACEOF
1743
 
 
1744
 
 
1745
 
# Let the site file select an alternate cache file if it wants to.
1746
 
# Prefer explicitly selected file to automatically selected ones.
1747
 
if test -n "$CONFIG_SITE"; then
1748
 
  set x "$CONFIG_SITE"
1749
 
elif test "x$prefix" != xNONE; then
1750
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1751
 
else
1752
 
  set x "$ac_default_prefix/share/config.site" \
1753
 
        "$ac_default_prefix/etc/config.site"
1754
 
fi
1755
 
shift
1756
 
for ac_site_file
1757
 
do
1758
 
  if test -r "$ac_site_file"; then
1759
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1760
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1761
 
    sed 's/^/| /' "$ac_site_file" >&5
1762
 
    . "$ac_site_file"
1763
 
  fi
1764
 
done
1765
 
 
1766
 
if test -r "$cache_file"; then
1767
 
  # Some versions of bash will fail to source /dev/null (special
1768
 
  # files actually), so we avoid doing that.
1769
 
  if test -f "$cache_file"; then
1770
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1771
 
echo "$as_me: loading cache $cache_file" >&6;}
1772
 
    case $cache_file in
1773
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1774
 
      *)                      . "./$cache_file";;
1775
 
    esac
1776
 
  fi
1777
 
else
1778
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1779
 
echo "$as_me: creating cache $cache_file" >&6;}
1780
 
  >$cache_file
1781
 
fi
1782
 
 
1783
 
# Check that the precious variables saved in the cache have kept the same
1784
 
# value.
1785
 
ac_cache_corrupted=false
1786
 
for ac_var in $ac_precious_vars; do
1787
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1788
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1789
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1790
 
  eval ac_new_val=\$ac_env_${ac_var}_value
1791
 
  case $ac_old_set,$ac_new_set in
1792
 
    set,)
1793
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1794
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1795
 
      ac_cache_corrupted=: ;;
1796
 
    ,set)
1797
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1798
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1799
 
      ac_cache_corrupted=: ;;
1800
 
    ,);;
1801
 
    *)
1802
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1803
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1804
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1805
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1806
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1807
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1808
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1809
 
        ac_cache_corrupted=:
1810
 
      fi;;
1811
 
  esac
1812
 
  # Pass precious variables to config.status.
1813
 
  if test "$ac_new_set" = set; then
1814
 
    case $ac_new_val in
1815
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1816
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1817
 
    esac
1818
 
    case " $ac_configure_args " in
1819
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1820
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1821
 
    esac
1822
 
  fi
1823
 
done
1824
 
if $ac_cache_corrupted; then
1825
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1826
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1827
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1828
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1829
 
   { (exit 1); exit 1; }; }
1830
 
fi
1831
 
 
1832
 
 
1833
 
 
1834
 
 
1835
 
 
1836
 
 
1837
 
 
1838
 
 
1839
 
 
1840
 
 
1841
 
 
1842
 
 
1843
 
 
1844
 
 
1845
 
 
1846
 
 
1847
 
 
1848
 
 
1849
 
 
1850
 
 
1851
 
 
1852
 
 
1853
 
 
1854
 
 
1855
 
 
1856
 
ac_ext=c
1857
 
ac_cpp='$CPP $CPPFLAGS'
1858
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861
 
 
1862
 
 
1863
 
ac_config_headers="$ac_config_headers config.h"
1864
 
 
1865
 
 
1866
 
am__api_version='1.10'
1867
 
 
1868
 
ac_aux_dir=
1869
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1870
 
  if test -f "$ac_dir/install-sh"; then
1871
 
    ac_aux_dir=$ac_dir
1872
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1873
 
    break
1874
 
  elif test -f "$ac_dir/install.sh"; then
1875
 
    ac_aux_dir=$ac_dir
1876
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1877
 
    break
1878
 
  elif test -f "$ac_dir/shtool"; then
1879
 
    ac_aux_dir=$ac_dir
1880
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1881
 
    break
1882
 
  fi
1883
 
done
1884
 
if test -z "$ac_aux_dir"; then
1885
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1886
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1887
 
   { (exit 1); exit 1; }; }
1888
 
fi
1889
 
 
1890
 
# These three variables are undocumented and unsupported,
1891
 
# and are intended to be withdrawn in a future Autoconf release.
1892
 
# They can cause serious problems if a builder's source tree is in a directory
1893
 
# whose full name contains unusual characters.
1894
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1895
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1896
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1897
 
 
1898
 
 
1899
 
# Find a good install program.  We prefer a C program (faster),
1900
 
# so one script is as good as another.  But avoid the broken or
1901
 
# incompatible versions:
1902
 
# SysV /etc/install, /usr/sbin/install
1903
 
# SunOS /usr/etc/install
1904
 
# IRIX /sbin/install
1905
 
# AIX /bin/install
1906
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1907
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1908
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1909
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1910
 
# OS/2's system install, which has a completely different semantic
1911
 
# ./install, which can be erroneously created by make from ./install.sh.
1912
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1913
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1914
 
if test -z "$INSTALL"; then
1915
 
if test "${ac_cv_path_install+set}" = set; then
1916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1917
 
else
1918
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919
 
for as_dir in $PATH
1920
 
do
1921
 
  IFS=$as_save_IFS
1922
 
  test -z "$as_dir" && as_dir=.
1923
 
  # Account for people who put trailing slashes in PATH elements.
1924
 
case $as_dir/ in
1925
 
  ./ | .// | /cC/* | \
1926
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1927
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1928
 
  /usr/ucb/* ) ;;
1929
 
  *)
1930
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1931
 
    # Don't use installbsd from OSF since it installs stuff as root
1932
 
    # by default.
1933
 
    for ac_prog in ginstall scoinst install; do
1934
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1935
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1936
 
          if test $ac_prog = install &&
1937
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1938
 
            # AIX install.  It has an incompatible calling convention.
1939
 
            :
1940
 
          elif test $ac_prog = install &&
1941
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1942
 
            # program-specific install script used by HP pwplus--don't use.
1943
 
            :
1944
 
          else
1945
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1946
 
            break 3
1947
 
          fi
1948
 
        fi
1949
 
      done
1950
 
    done
1951
 
    ;;
1952
 
esac
1953
 
done
1954
 
IFS=$as_save_IFS
1955
 
 
1956
 
 
1957
 
fi
1958
 
  if test "${ac_cv_path_install+set}" = set; then
1959
 
    INSTALL=$ac_cv_path_install
1960
 
  else
1961
 
    # As a last resort, use the slow shell script.  Don't cache a
1962
 
    # value for INSTALL within a source directory, because that will
1963
 
    # break other packages using the cache if that directory is
1964
 
    # removed, or if the value is a relative name.
1965
 
    INSTALL=$ac_install_sh
1966
 
  fi
1967
 
fi
1968
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1969
 
echo "${ECHO_T}$INSTALL" >&6; }
1970
 
 
1971
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1972
 
# It thinks the first close brace ends the variable substitution.
1973
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1974
 
 
1975
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1976
 
 
1977
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1978
 
 
1979
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1980
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1981
 
# Just in case
1982
 
sleep 1
1983
 
echo timestamp > conftest.file
1984
 
# Do `set' in a subshell so we don't clobber the current shell's
1985
 
# arguments.  Must try -L first in case configure is actually a
1986
 
# symlink; some systems play weird games with the mod time of symlinks
1987
 
# (eg FreeBSD returns the mod time of the symlink's containing
1988
 
# directory).
1989
 
if (
1990
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1991
 
   if test "$*" = "X"; then
1992
 
      # -L didn't work.
1993
 
      set X `ls -t $srcdir/configure conftest.file`
1994
 
   fi
1995
 
   rm -f conftest.file
1996
 
   if test "$*" != "X $srcdir/configure conftest.file" \
1997
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
1998
 
 
1999
 
      # If neither matched, then we have a broken ls.  This can happen
2000
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2001
 
      # broken ls alias from the environment.  This has actually
2002
 
      # happened.  Such a system could not be considered "sane".
2003
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2004
 
alias in your environment" >&5
2005
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2006
 
alias in your environment" >&2;}
2007
 
   { (exit 1); exit 1; }; }
2008
 
   fi
2009
 
 
2010
 
   test "$2" = conftest.file
2011
 
   )
2012
 
then
2013
 
   # Ok.
2014
 
   :
2015
 
else
2016
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2017
 
Check your system clock" >&5
2018
 
echo "$as_me: error: newly created file is older than distributed files!
2019
 
Check your system clock" >&2;}
2020
 
   { (exit 1); exit 1; }; }
2021
 
fi
2022
 
{ echo "$as_me:$LINENO: result: yes" >&5
2023
 
echo "${ECHO_T}yes" >&6; }
2024
 
test "$program_prefix" != NONE &&
2025
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2026
 
# Use a double $ so make ignores it.
2027
 
test "$program_suffix" != NONE &&
2028
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2029
 
# Double any \ or $.  echo might interpret backslashes.
2030
 
# By default was `s,x,x', remove it if useless.
2031
 
cat <<\_ACEOF >conftest.sed
2032
 
s/[\\$]/&&/g;s/;s,x,x,$//
2033
 
_ACEOF
2034
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2035
 
rm -f conftest.sed
2036
 
 
2037
 
# expand $ac_aux_dir to an absolute path
2038
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2039
 
 
2040
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2041
 
# Use eval to expand $SHELL
2042
 
if eval "$MISSING --run true"; then
2043
 
  am_missing_run="$MISSING --run "
2044
 
else
2045
 
  am_missing_run=
2046
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2047
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2048
 
fi
2049
 
 
2050
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2051
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2052
 
if test -z "$MKDIR_P"; then
2053
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2054
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2055
 
else
2056
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2058
 
do
2059
 
  IFS=$as_save_IFS
2060
 
  test -z "$as_dir" && as_dir=.
2061
 
  for ac_prog in mkdir gmkdir; do
2062
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2063
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2064
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2065
 
             'mkdir (GNU coreutils) '* | \
2066
 
             'mkdir (coreutils) '* | \
2067
 
             'mkdir (fileutils) '4.1*)
2068
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2069
 
               break 3;;
2070
 
           esac
2071
 
         done
2072
 
       done
2073
 
done
2074
 
IFS=$as_save_IFS
2075
 
 
2076
 
fi
2077
 
 
2078
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2079
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2080
 
  else
2081
 
    # As a last resort, use the slow shell script.  Don't cache a
2082
 
    # value for MKDIR_P within a source directory, because that will
2083
 
    # break other packages using the cache if that directory is
2084
 
    # removed, or if the value is a relative name.
2085
 
    test -d ./--version && rmdir ./--version
2086
 
    MKDIR_P="$ac_install_sh -d"
2087
 
  fi
2088
 
fi
2089
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2090
 
echo "${ECHO_T}$MKDIR_P" >&6; }
2091
 
 
2092
 
mkdir_p="$MKDIR_P"
2093
 
case $mkdir_p in
2094
 
  [\\/$]* | ?:[\\/]*) ;;
2095
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2096
 
esac
2097
 
 
2098
 
for ac_prog in gawk mawk nawk awk
2099
 
do
2100
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2101
 
set dummy $ac_prog; ac_word=$2
2102
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2103
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104
 
if test "${ac_cv_prog_AWK+set}" = set; then
2105
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2106
 
else
2107
 
  if test -n "$AWK"; then
2108
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2109
 
else
2110
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111
 
for as_dir in $PATH
2112
 
do
2113
 
  IFS=$as_save_IFS
2114
 
  test -z "$as_dir" && as_dir=.
2115
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2116
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117
 
    ac_cv_prog_AWK="$ac_prog"
2118
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119
 
    break 2
2120
 
  fi
2121
 
done
2122
 
done
2123
 
IFS=$as_save_IFS
2124
 
 
2125
 
fi
2126
 
fi
2127
 
AWK=$ac_cv_prog_AWK
2128
 
if test -n "$AWK"; then
2129
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2130
 
echo "${ECHO_T}$AWK" >&6; }
2131
 
else
2132
 
  { echo "$as_me:$LINENO: result: no" >&5
2133
 
echo "${ECHO_T}no" >&6; }
2134
 
fi
2135
 
 
2136
 
 
2137
 
  test -n "$AWK" && break
2138
 
done
2139
 
 
2140
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2141
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2142
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2143
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2144
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2145
 
else
2146
 
  cat >conftest.make <<\_ACEOF
2147
 
SHELL = /bin/sh
2148
 
all:
2149
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2150
 
_ACEOF
2151
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2152
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2153
 
  *@@@%%%=?*=@@@%%%*)
2154
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2155
 
  *)
2156
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2157
 
esac
2158
 
rm -f conftest.make
2159
 
fi
2160
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2161
 
  { echo "$as_me:$LINENO: result: yes" >&5
2162
 
echo "${ECHO_T}yes" >&6; }
2163
 
  SET_MAKE=
2164
 
else
2165
 
  { echo "$as_me:$LINENO: result: no" >&5
2166
 
echo "${ECHO_T}no" >&6; }
2167
 
  SET_MAKE="MAKE=${MAKE-make}"
2168
 
fi
2169
 
 
2170
 
rm -rf .tst 2>/dev/null
2171
 
mkdir .tst 2>/dev/null
2172
 
if test -d .tst; then
2173
 
  am__leading_dot=.
2174
 
else
2175
 
  am__leading_dot=_
2176
 
fi
2177
 
rmdir .tst 2>/dev/null
2178
 
 
2179
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2180
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2181
 
  # is not polluted with repeated "-I."
2182
 
  am__isrc=' -I$(srcdir)'
2183
 
  # test to see if srcdir already configured
2184
 
  if test -f $srcdir/config.status; then
2185
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2186
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2187
 
   { (exit 1); exit 1; }; }
2188
 
  fi
2189
 
fi
2190
 
 
2191
 
# test whether we have cygpath
2192
 
if test -z "$CYGPATH_W"; then
2193
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2194
 
    CYGPATH_W='cygpath -w'
2195
 
  else
2196
 
    CYGPATH_W=echo
2197
 
  fi
2198
 
fi
2199
 
 
2200
 
 
2201
 
# Define the identity of the package.
2202
 
 PACKAGE=$PACKAGE_NAME
2203
 
 VERSION=$PACKAGE_VERSION
2204
 
 
2205
 
 
2206
 
cat >>confdefs.h <<_ACEOF
2207
 
#define PACKAGE "$PACKAGE"
2208
 
_ACEOF
2209
 
 
2210
 
 
2211
 
cat >>confdefs.h <<_ACEOF
2212
 
#define VERSION "$VERSION"
2213
 
_ACEOF
2214
 
 
2215
 
# Some tools Automake needs.
2216
 
 
2217
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2218
 
 
2219
 
 
2220
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2221
 
 
2222
 
 
2223
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2224
 
 
2225
 
 
2226
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2227
 
 
2228
 
 
2229
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2230
 
 
2231
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2232
 
 
2233
 
# Installed binaries are usually stripped using `strip' when the user
2234
 
# run `make install-strip'.  However `strip' might not be the right
2235
 
# tool to use in cross-compilation environments, therefore Automake
2236
 
# will honor the `STRIP' environment variable to overrule this program.
2237
 
if test "$cross_compiling" != no; then
2238
 
  if test -n "$ac_tool_prefix"; then
2239
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2240
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2241
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2242
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2244
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2245
 
else
2246
 
  if test -n "$STRIP"; then
2247
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2248
 
else
2249
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250
 
for as_dir in $PATH
2251
 
do
2252
 
  IFS=$as_save_IFS
2253
 
  test -z "$as_dir" && as_dir=.
2254
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2255
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2257
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258
 
    break 2
2259
 
  fi
2260
 
done
2261
 
done
2262
 
IFS=$as_save_IFS
2263
 
 
2264
 
fi
2265
 
fi
2266
 
STRIP=$ac_cv_prog_STRIP
2267
 
if test -n "$STRIP"; then
2268
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2269
 
echo "${ECHO_T}$STRIP" >&6; }
2270
 
else
2271
 
  { echo "$as_me:$LINENO: result: no" >&5
2272
 
echo "${ECHO_T}no" >&6; }
2273
 
fi
2274
 
 
2275
 
 
2276
 
fi
2277
 
if test -z "$ac_cv_prog_STRIP"; then
2278
 
  ac_ct_STRIP=$STRIP
2279
 
  # Extract the first word of "strip", so it can be a program name with args.
2280
 
set dummy strip; ac_word=$2
2281
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2282
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2284
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2285
 
else
2286
 
  if test -n "$ac_ct_STRIP"; then
2287
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2288
 
else
2289
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290
 
for as_dir in $PATH
2291
 
do
2292
 
  IFS=$as_save_IFS
2293
 
  test -z "$as_dir" && as_dir=.
2294
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2295
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296
 
    ac_cv_prog_ac_ct_STRIP="strip"
2297
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298
 
    break 2
2299
 
  fi
2300
 
done
2301
 
done
2302
 
IFS=$as_save_IFS
2303
 
 
2304
 
fi
2305
 
fi
2306
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2307
 
if test -n "$ac_ct_STRIP"; then
2308
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2309
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2310
 
else
2311
 
  { echo "$as_me:$LINENO: result: no" >&5
2312
 
echo "${ECHO_T}no" >&6; }
2313
 
fi
2314
 
 
2315
 
  if test "x$ac_ct_STRIP" = x; then
2316
 
    STRIP=":"
2317
 
  else
2318
 
    case $cross_compiling:$ac_tool_warned in
2319
 
yes:)
2320
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321
 
whose name does not start with the host triplet.  If you think this
2322
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2323
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324
 
whose name does not start with the host triplet.  If you think this
2325
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326
 
ac_tool_warned=yes ;;
2327
 
esac
2328
 
    STRIP=$ac_ct_STRIP
2329
 
  fi
2330
 
else
2331
 
  STRIP="$ac_cv_prog_STRIP"
2332
 
fi
2333
 
 
2334
 
fi
2335
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2336
 
 
2337
 
# We need awk for the "check" target.  The system "awk" is bad on
2338
 
# some platforms.
2339
 
# Always define AMTAR for backward compatibility.
2340
 
 
2341
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2342
 
 
2343
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2344
 
 
2345
 
 
2346
 
 
2347
 
 
2348
 
 
2349
 
 
2350
 
 
2351
 
cat >>confdefs.h <<\_ACEOF
2352
 
#define _GNU_SOURCE 1
2353
 
_ACEOF
2354
 
 
2355
 
 
2356
 
 
2357
 
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2358
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2359
 
    # Check whether --enable-maintainer-mode was given.
2360
 
if test "${enable_maintainer_mode+set}" = set; then
2361
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2362
 
else
2363
 
  USE_MAINTAINER_MODE=no
2364
 
fi
2365
 
 
2366
 
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2367
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2368
 
   if test $USE_MAINTAINER_MODE = yes; then
2369
 
  MAINTAINER_MODE_TRUE=
2370
 
  MAINTAINER_MODE_FALSE='#'
2371
 
else
2372
 
  MAINTAINER_MODE_TRUE='#'
2373
 
  MAINTAINER_MODE_FALSE=
2374
 
fi
2375
 
 
2376
 
  MAINT=$MAINTAINER_MODE_TRUE
2377
 
 
2378
 
 
2379
 
 
2380
 
# Make sure we can run config.sub.
2381
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2382
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2383
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2384
 
   { (exit 1); exit 1; }; }
2385
 
 
2386
 
{ echo "$as_me:$LINENO: checking build system type" >&5
2387
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2388
 
if test "${ac_cv_build+set}" = set; then
2389
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2390
 
else
2391
 
  ac_build_alias=$build_alias
2392
 
test "x$ac_build_alias" = x &&
2393
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2394
 
test "x$ac_build_alias" = x &&
2395
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2396
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2397
 
   { (exit 1); exit 1; }; }
2398
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2399
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2400
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2401
 
   { (exit 1); exit 1; }; }
2402
 
 
2403
 
fi
2404
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2405
 
echo "${ECHO_T}$ac_cv_build" >&6; }
2406
 
case $ac_cv_build in
2407
 
*-*-*) ;;
2408
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2409
 
echo "$as_me: error: invalid value of canonical build" >&2;}
2410
 
   { (exit 1); exit 1; }; };;
2411
 
esac
2412
 
build=$ac_cv_build
2413
 
ac_save_IFS=$IFS; IFS='-'
2414
 
set x $ac_cv_build
2415
 
shift
2416
 
build_cpu=$1
2417
 
build_vendor=$2
2418
 
shift; shift
2419
 
# Remember, the first character of IFS is used to create $*,
2420
 
# except with old shells:
2421
 
build_os=$*
2422
 
IFS=$ac_save_IFS
2423
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2424
 
 
2425
 
 
2426
 
{ echo "$as_me:$LINENO: checking host system type" >&5
2427
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2428
 
if test "${ac_cv_host+set}" = set; then
2429
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2430
 
else
2431
 
  if test "x$host_alias" = x; then
2432
 
  ac_cv_host=$ac_cv_build
2433
 
else
2434
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2436
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2437
 
   { (exit 1); exit 1; }; }
2438
 
fi
2439
 
 
2440
 
fi
2441
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2442
 
echo "${ECHO_T}$ac_cv_host" >&6; }
2443
 
case $ac_cv_host in
2444
 
*-*-*) ;;
2445
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2446
 
echo "$as_me: error: invalid value of canonical host" >&2;}
2447
 
   { (exit 1); exit 1; }; };;
2448
 
esac
2449
 
host=$ac_cv_host
2450
 
ac_save_IFS=$IFS; IFS='-'
2451
 
set x $ac_cv_host
2452
 
shift
2453
 
host_cpu=$1
2454
 
host_vendor=$2
2455
 
shift; shift
2456
 
# Remember, the first character of IFS is used to create $*,
2457
 
# except with old shells:
2458
 
host_os=$*
2459
 
IFS=$ac_save_IFS
2460
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2461
 
 
2462
 
 
2463
 
 
2464
 
missing_dir=`cd $ac_aux_dir && pwd`
2465
 
 
2466
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
2467
 
 
2468
 
 
2469
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2470
 
 
2471
 
 
2472
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
2473
 
 
2474
 
 
2475
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2476
 
 
2477
 
 
2478
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2479
 
 
2480
 
ac_ext=c
2481
 
ac_cpp='$CPP $CPPFLAGS'
2482
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
 
if test -n "$ac_tool_prefix"; then
2486
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2487
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2488
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490
 
if test "${ac_cv_prog_CC+set}" = set; then
2491
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2492
 
else
2493
 
  if test -n "$CC"; then
2494
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2495
 
else
2496
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497
 
for as_dir in $PATH
2498
 
do
2499
 
  IFS=$as_save_IFS
2500
 
  test -z "$as_dir" && as_dir=.
2501
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2502
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2504
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505
 
    break 2
2506
 
  fi
2507
 
done
2508
 
done
2509
 
IFS=$as_save_IFS
2510
 
 
2511
 
fi
2512
 
fi
2513
 
CC=$ac_cv_prog_CC
2514
 
if test -n "$CC"; then
2515
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2516
 
echo "${ECHO_T}$CC" >&6; }
2517
 
else
2518
 
  { echo "$as_me:$LINENO: result: no" >&5
2519
 
echo "${ECHO_T}no" >&6; }
2520
 
fi
2521
 
 
2522
 
 
2523
 
fi
2524
 
if test -z "$ac_cv_prog_CC"; then
2525
 
  ac_ct_CC=$CC
2526
 
  # Extract the first word of "gcc", so it can be a program name with args.
2527
 
set dummy gcc; ac_word=$2
2528
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2532
 
else
2533
 
  if test -n "$ac_ct_CC"; then
2534
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535
 
else
2536
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537
 
for as_dir in $PATH
2538
 
do
2539
 
  IFS=$as_save_IFS
2540
 
  test -z "$as_dir" && as_dir=.
2541
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2542
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543
 
    ac_cv_prog_ac_ct_CC="gcc"
2544
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545
 
    break 2
2546
 
  fi
2547
 
done
2548
 
done
2549
 
IFS=$as_save_IFS
2550
 
 
2551
 
fi
2552
 
fi
2553
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554
 
if test -n "$ac_ct_CC"; then
2555
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
2557
 
else
2558
 
  { echo "$as_me:$LINENO: result: no" >&5
2559
 
echo "${ECHO_T}no" >&6; }
2560
 
fi
2561
 
 
2562
 
  if test "x$ac_ct_CC" = x; then
2563
 
    CC=""
2564
 
  else
2565
 
    case $cross_compiling:$ac_tool_warned in
2566
 
yes:)
2567
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2568
 
whose name does not start with the host triplet.  If you think this
2569
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2570
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2571
 
whose name does not start with the host triplet.  If you think this
2572
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2573
 
ac_tool_warned=yes ;;
2574
 
esac
2575
 
    CC=$ac_ct_CC
2576
 
  fi
2577
 
else
2578
 
  CC="$ac_cv_prog_CC"
2579
 
fi
2580
 
 
2581
 
if test -z "$CC"; then
2582
 
          if test -n "$ac_tool_prefix"; then
2583
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2584
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2585
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2586
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587
 
if test "${ac_cv_prog_CC+set}" = set; then
2588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2589
 
else
2590
 
  if test -n "$CC"; then
2591
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2592
 
else
2593
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594
 
for as_dir in $PATH
2595
 
do
2596
 
  IFS=$as_save_IFS
2597
 
  test -z "$as_dir" && as_dir=.
2598
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2599
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2601
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602
 
    break 2
2603
 
  fi
2604
 
done
2605
 
done
2606
 
IFS=$as_save_IFS
2607
 
 
2608
 
fi
2609
 
fi
2610
 
CC=$ac_cv_prog_CC
2611
 
if test -n "$CC"; then
2612
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2613
 
echo "${ECHO_T}$CC" >&6; }
2614
 
else
2615
 
  { echo "$as_me:$LINENO: result: no" >&5
2616
 
echo "${ECHO_T}no" >&6; }
2617
 
fi
2618
 
 
2619
 
 
2620
 
  fi
2621
 
fi
2622
 
if test -z "$CC"; then
2623
 
  # Extract the first word of "cc", so it can be a program name with args.
2624
 
set dummy cc; ac_word=$2
2625
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2626
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627
 
if test "${ac_cv_prog_CC+set}" = set; then
2628
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2629
 
else
2630
 
  if test -n "$CC"; then
2631
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2632
 
else
2633
 
  ac_prog_rejected=no
2634
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635
 
for as_dir in $PATH
2636
 
do
2637
 
  IFS=$as_save_IFS
2638
 
  test -z "$as_dir" && as_dir=.
2639
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2640
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2642
 
       ac_prog_rejected=yes
2643
 
       continue
2644
 
     fi
2645
 
    ac_cv_prog_CC="cc"
2646
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647
 
    break 2
2648
 
  fi
2649
 
done
2650
 
done
2651
 
IFS=$as_save_IFS
2652
 
 
2653
 
if test $ac_prog_rejected = yes; then
2654
 
  # We found a bogon in the path, so make sure we never use it.
2655
 
  set dummy $ac_cv_prog_CC
2656
 
  shift
2657
 
  if test $# != 0; then
2658
 
    # We chose a different compiler from the bogus one.
2659
 
    # However, it has the same basename, so the bogon will be chosen
2660
 
    # first if we set CC to just the basename; use the full file name.
2661
 
    shift
2662
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2663
 
  fi
2664
 
fi
2665
 
fi
2666
 
fi
2667
 
CC=$ac_cv_prog_CC
2668
 
if test -n "$CC"; then
2669
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2670
 
echo "${ECHO_T}$CC" >&6; }
2671
 
else
2672
 
  { echo "$as_me:$LINENO: result: no" >&5
2673
 
echo "${ECHO_T}no" >&6; }
2674
 
fi
2675
 
 
2676
 
 
2677
 
fi
2678
 
if test -z "$CC"; then
2679
 
  if test -n "$ac_tool_prefix"; then
2680
 
  for ac_prog in cl.exe
2681
 
  do
2682
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2683
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2684
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686
 
if test "${ac_cv_prog_CC+set}" = set; then
2687
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2688
 
else
2689
 
  if test -n "$CC"; then
2690
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2691
 
else
2692
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693
 
for as_dir in $PATH
2694
 
do
2695
 
  IFS=$as_save_IFS
2696
 
  test -z "$as_dir" && as_dir=.
2697
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2698
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2700
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701
 
    break 2
2702
 
  fi
2703
 
done
2704
 
done
2705
 
IFS=$as_save_IFS
2706
 
 
2707
 
fi
2708
 
fi
2709
 
CC=$ac_cv_prog_CC
2710
 
if test -n "$CC"; then
2711
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2712
 
echo "${ECHO_T}$CC" >&6; }
2713
 
else
2714
 
  { echo "$as_me:$LINENO: result: no" >&5
2715
 
echo "${ECHO_T}no" >&6; }
2716
 
fi
2717
 
 
2718
 
 
2719
 
    test -n "$CC" && break
2720
 
  done
2721
 
fi
2722
 
if test -z "$CC"; then
2723
 
  ac_ct_CC=$CC
2724
 
  for ac_prog in cl.exe
2725
 
do
2726
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2727
 
set dummy $ac_prog; ac_word=$2
2728
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2732
 
else
2733
 
  if test -n "$ac_ct_CC"; then
2734
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735
 
else
2736
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737
 
for as_dir in $PATH
2738
 
do
2739
 
  IFS=$as_save_IFS
2740
 
  test -z "$as_dir" && as_dir=.
2741
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2742
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2744
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745
 
    break 2
2746
 
  fi
2747
 
done
2748
 
done
2749
 
IFS=$as_save_IFS
2750
 
 
2751
 
fi
2752
 
fi
2753
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754
 
if test -n "$ac_ct_CC"; then
2755
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
2757
 
else
2758
 
  { echo "$as_me:$LINENO: result: no" >&5
2759
 
echo "${ECHO_T}no" >&6; }
2760
 
fi
2761
 
 
2762
 
 
2763
 
  test -n "$ac_ct_CC" && break
2764
 
done
2765
 
 
2766
 
  if test "x$ac_ct_CC" = x; then
2767
 
    CC=""
2768
 
  else
2769
 
    case $cross_compiling:$ac_tool_warned in
2770
 
yes:)
2771
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2772
 
whose name does not start with the host triplet.  If you think this
2773
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2774
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2775
 
whose name does not start with the host triplet.  If you think this
2776
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2777
 
ac_tool_warned=yes ;;
2778
 
esac
2779
 
    CC=$ac_ct_CC
2780
 
  fi
2781
 
fi
2782
 
 
2783
 
fi
2784
 
 
2785
 
 
2786
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2787
 
See \`config.log' for more details." >&5
2788
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2789
 
See \`config.log' for more details." >&2;}
2790
 
   { (exit 1); exit 1; }; }
2791
 
 
2792
 
# Provide some information about the compiler.
2793
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
2794
 
ac_compiler=`set X $ac_compile; echo $2`
2795
 
{ (ac_try="$ac_compiler --version >&5"
2796
 
case "(($ac_try" in
2797
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798
 
  *) ac_try_echo=$ac_try;;
2799
 
esac
2800
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801
 
  (eval "$ac_compiler --version >&5") 2>&5
2802
 
  ac_status=$?
2803
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
 
  (exit $ac_status); }
2805
 
{ (ac_try="$ac_compiler -v >&5"
2806
 
case "(($ac_try" in
2807
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808
 
  *) ac_try_echo=$ac_try;;
2809
 
esac
2810
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811
 
  (eval "$ac_compiler -v >&5") 2>&5
2812
 
  ac_status=$?
2813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
 
  (exit $ac_status); }
2815
 
{ (ac_try="$ac_compiler -V >&5"
2816
 
case "(($ac_try" in
2817
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818
 
  *) ac_try_echo=$ac_try;;
2819
 
esac
2820
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821
 
  (eval "$ac_compiler -V >&5") 2>&5
2822
 
  ac_status=$?
2823
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824
 
  (exit $ac_status); }
2825
 
 
2826
 
cat >conftest.$ac_ext <<_ACEOF
2827
 
/* confdefs.h.  */
2828
 
_ACEOF
2829
 
cat confdefs.h >>conftest.$ac_ext
2830
 
cat >>conftest.$ac_ext <<_ACEOF
2831
 
/* end confdefs.h.  */
2832
 
 
2833
 
int
2834
 
main ()
2835
 
{
2836
 
 
2837
 
  ;
2838
 
  return 0;
2839
 
}
2840
 
_ACEOF
2841
 
ac_clean_files_save=$ac_clean_files
2842
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2843
 
# Try to create an executable without -o first, disregard a.out.
2844
 
# It will help us diagnose broken compilers, and finding out an intuition
2845
 
# of exeext.
2846
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2847
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2848
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2849
 
#
2850
 
# List of possible output files, starting from the most likely.
2851
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2852
 
# only as a last resort.  b.out is created by i960 compilers.
2853
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2854
 
#
2855
 
# The IRIX 6 linker writes into existing files which may not be
2856
 
# executable, retaining their permissions.  Remove them first so a
2857
 
# subsequent execution test works.
2858
 
ac_rmfiles=
2859
 
for ac_file in $ac_files
2860
 
do
2861
 
  case $ac_file in
2862
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2864
 
  esac
2865
 
done
2866
 
rm -f $ac_rmfiles
2867
 
 
2868
 
if { (ac_try="$ac_link_default"
2869
 
case "(($ac_try" in
2870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871
 
  *) ac_try_echo=$ac_try;;
2872
 
esac
2873
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874
 
  (eval "$ac_link_default") 2>&5
2875
 
  ac_status=$?
2876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
 
  (exit $ac_status); }; then
2878
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2881
 
# so that the user can short-circuit this test for compilers unknown to
2882
 
# Autoconf.
2883
 
for ac_file in $ac_files ''
2884
 
do
2885
 
  test -f "$ac_file" || continue
2886
 
  case $ac_file in
2887
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2888
 
        ;;
2889
 
    [ab].out )
2890
 
        # We found the default executable, but exeext='' is most
2891
 
        # certainly right.
2892
 
        break;;
2893
 
    *.* )
2894
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2895
 
        then :; else
2896
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2897
 
        fi
2898
 
        # We set ac_cv_exeext here because the later test for it is not
2899
 
        # safe: cross compilers may not add the suffix if given an `-o'
2900
 
        # argument, so we may need to know it at that point already.
2901
 
        # Even if this section looks crufty: it has the advantage of
2902
 
        # actually working.
2903
 
        break;;
2904
 
    * )
2905
 
        break;;
2906
 
  esac
2907
 
done
2908
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2909
 
 
2910
 
else
2911
 
  ac_file=''
2912
 
fi
2913
 
 
2914
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2915
 
echo "${ECHO_T}$ac_file" >&6; }
2916
 
if test -z "$ac_file"; then
2917
 
  echo "$as_me: failed program was:" >&5
2918
 
sed 's/^/| /' conftest.$ac_ext >&5
2919
 
 
2920
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2921
 
See \`config.log' for more details." >&5
2922
 
echo "$as_me: error: C compiler cannot create executables
2923
 
See \`config.log' for more details." >&2;}
2924
 
   { (exit 77); exit 77; }; }
2925
 
fi
2926
 
 
2927
 
ac_exeext=$ac_cv_exeext
2928
 
 
2929
 
# Check that the compiler produces executables we can run.  If not, either
2930
 
# the compiler is broken, or we cross compile.
2931
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2932
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2933
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2934
 
# If not cross compiling, check that we can run a simple program.
2935
 
if test "$cross_compiling" != yes; then
2936
 
  if { ac_try='./$ac_file'
2937
 
  { (case "(($ac_try" in
2938
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939
 
  *) ac_try_echo=$ac_try;;
2940
 
esac
2941
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942
 
  (eval "$ac_try") 2>&5
2943
 
  ac_status=$?
2944
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945
 
  (exit $ac_status); }; }; then
2946
 
    cross_compiling=no
2947
 
  else
2948
 
    if test "$cross_compiling" = maybe; then
2949
 
        cross_compiling=yes
2950
 
    else
2951
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2952
 
If you meant to cross compile, use \`--host'.
2953
 
See \`config.log' for more details." >&5
2954
 
echo "$as_me: error: cannot run C compiled programs.
2955
 
If you meant to cross compile, use \`--host'.
2956
 
See \`config.log' for more details." >&2;}
2957
 
   { (exit 1); exit 1; }; }
2958
 
    fi
2959
 
  fi
2960
 
fi
2961
 
{ echo "$as_me:$LINENO: result: yes" >&5
2962
 
echo "${ECHO_T}yes" >&6; }
2963
 
 
2964
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2965
 
ac_clean_files=$ac_clean_files_save
2966
 
# Check that the compiler produces executables we can run.  If not, either
2967
 
# the compiler is broken, or we cross compile.
2968
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2969
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2970
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2971
 
echo "${ECHO_T}$cross_compiling" >&6; }
2972
 
 
2973
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2974
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2975
 
if { (ac_try="$ac_link"
2976
 
case "(($ac_try" in
2977
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978
 
  *) ac_try_echo=$ac_try;;
2979
 
esac
2980
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981
 
  (eval "$ac_link") 2>&5
2982
 
  ac_status=$?
2983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
 
  (exit $ac_status); }; then
2985
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2986
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2987
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2988
 
# `rm'.
2989
 
for ac_file in conftest.exe conftest conftest.*; do
2990
 
  test -f "$ac_file" || continue
2991
 
  case $ac_file in
2992
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2993
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994
 
          break;;
2995
 
    * ) break;;
2996
 
  esac
2997
 
done
2998
 
else
2999
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3000
 
See \`config.log' for more details." >&5
3001
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3002
 
See \`config.log' for more details." >&2;}
3003
 
   { (exit 1); exit 1; }; }
3004
 
fi
3005
 
 
3006
 
rm -f conftest$ac_cv_exeext
3007
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3008
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3009
 
 
3010
 
rm -f conftest.$ac_ext
3011
 
EXEEXT=$ac_cv_exeext
3012
 
ac_exeext=$EXEEXT
3013
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3014
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3015
 
if test "${ac_cv_objext+set}" = set; then
3016
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3017
 
else
3018
 
  cat >conftest.$ac_ext <<_ACEOF
3019
 
/* confdefs.h.  */
3020
 
_ACEOF
3021
 
cat confdefs.h >>conftest.$ac_ext
3022
 
cat >>conftest.$ac_ext <<_ACEOF
3023
 
/* end confdefs.h.  */
3024
 
 
3025
 
int
3026
 
main ()
3027
 
{
3028
 
 
3029
 
  ;
3030
 
  return 0;
3031
 
}
3032
 
_ACEOF
3033
 
rm -f conftest.o conftest.obj
3034
 
if { (ac_try="$ac_compile"
3035
 
case "(($ac_try" in
3036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
 
  *) ac_try_echo=$ac_try;;
3038
 
esac
3039
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040
 
  (eval "$ac_compile") 2>&5
3041
 
  ac_status=$?
3042
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043
 
  (exit $ac_status); }; then
3044
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3045
 
  test -f "$ac_file" || continue;
3046
 
  case $ac_file in
3047
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3048
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3049
 
       break;;
3050
 
  esac
3051
 
done
3052
 
else
3053
 
  echo "$as_me: failed program was:" >&5
3054
 
sed 's/^/| /' conftest.$ac_ext >&5
3055
 
 
3056
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3057
 
See \`config.log' for more details." >&5
3058
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3059
 
See \`config.log' for more details." >&2;}
3060
 
   { (exit 1); exit 1; }; }
3061
 
fi
3062
 
 
3063
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3064
 
fi
3065
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3066
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
3067
 
OBJEXT=$ac_cv_objext
3068
 
ac_objext=$OBJEXT
3069
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3070
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3071
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3073
 
else
3074
 
  cat >conftest.$ac_ext <<_ACEOF
3075
 
/* confdefs.h.  */
3076
 
_ACEOF
3077
 
cat confdefs.h >>conftest.$ac_ext
3078
 
cat >>conftest.$ac_ext <<_ACEOF
3079
 
/* end confdefs.h.  */
3080
 
 
3081
 
int
3082
 
main ()
3083
 
{
3084
 
#ifndef __GNUC__
3085
 
       choke me
3086
 
#endif
3087
 
 
3088
 
  ;
3089
 
  return 0;
3090
 
}
3091
 
_ACEOF
3092
 
rm -f conftest.$ac_objext
3093
 
if { (ac_try="$ac_compile"
3094
 
case "(($ac_try" in
3095
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096
 
  *) ac_try_echo=$ac_try;;
3097
 
esac
3098
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099
 
  (eval "$ac_compile") 2>conftest.er1
3100
 
  ac_status=$?
3101
 
  grep -v '^ *+' conftest.er1 >conftest.err
3102
 
  rm -f conftest.er1
3103
 
  cat conftest.err >&5
3104
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105
 
  (exit $ac_status); } && {
3106
 
         test -z "$ac_c_werror_flag" ||
3107
 
         test ! -s conftest.err
3108
 
       } && test -s conftest.$ac_objext; then
3109
 
  ac_compiler_gnu=yes
3110
 
else
3111
 
  echo "$as_me: failed program was:" >&5
3112
 
sed 's/^/| /' conftest.$ac_ext >&5
3113
 
 
3114
 
        ac_compiler_gnu=no
3115
 
fi
3116
 
 
3117
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3119
 
 
3120
 
fi
3121
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3122
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3123
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3124
 
ac_test_CFLAGS=${CFLAGS+set}
3125
 
ac_save_CFLAGS=$CFLAGS
3126
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3127
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3128
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3130
 
else
3131
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3132
 
   ac_c_werror_flag=yes
3133
 
   ac_cv_prog_cc_g=no
3134
 
   CFLAGS="-g"
3135
 
   cat >conftest.$ac_ext <<_ACEOF
3136
 
/* confdefs.h.  */
3137
 
_ACEOF
3138
 
cat confdefs.h >>conftest.$ac_ext
3139
 
cat >>conftest.$ac_ext <<_ACEOF
3140
 
/* end confdefs.h.  */
3141
 
 
3142
 
int
3143
 
main ()
3144
 
{
3145
 
 
3146
 
  ;
3147
 
  return 0;
3148
 
}
3149
 
_ACEOF
3150
 
rm -f conftest.$ac_objext
3151
 
if { (ac_try="$ac_compile"
3152
 
case "(($ac_try" in
3153
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154
 
  *) ac_try_echo=$ac_try;;
3155
 
esac
3156
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157
 
  (eval "$ac_compile") 2>conftest.er1
3158
 
  ac_status=$?
3159
 
  grep -v '^ *+' conftest.er1 >conftest.err
3160
 
  rm -f conftest.er1
3161
 
  cat conftest.err >&5
3162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
 
  (exit $ac_status); } && {
3164
 
         test -z "$ac_c_werror_flag" ||
3165
 
         test ! -s conftest.err
3166
 
       } && test -s conftest.$ac_objext; then
3167
 
  ac_cv_prog_cc_g=yes
3168
 
else
3169
 
  echo "$as_me: failed program was:" >&5
3170
 
sed 's/^/| /' conftest.$ac_ext >&5
3171
 
 
3172
 
        CFLAGS=""
3173
 
      cat >conftest.$ac_ext <<_ACEOF
3174
 
/* confdefs.h.  */
3175
 
_ACEOF
3176
 
cat confdefs.h >>conftest.$ac_ext
3177
 
cat >>conftest.$ac_ext <<_ACEOF
3178
 
/* end confdefs.h.  */
3179
 
 
3180
 
int
3181
 
main ()
3182
 
{
3183
 
 
3184
 
  ;
3185
 
  return 0;
3186
 
}
3187
 
_ACEOF
3188
 
rm -f conftest.$ac_objext
3189
 
if { (ac_try="$ac_compile"
3190
 
case "(($ac_try" in
3191
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192
 
  *) ac_try_echo=$ac_try;;
3193
 
esac
3194
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195
 
  (eval "$ac_compile") 2>conftest.er1
3196
 
  ac_status=$?
3197
 
  grep -v '^ *+' conftest.er1 >conftest.err
3198
 
  rm -f conftest.er1
3199
 
  cat conftest.err >&5
3200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201
 
  (exit $ac_status); } && {
3202
 
         test -z "$ac_c_werror_flag" ||
3203
 
         test ! -s conftest.err
3204
 
       } && test -s conftest.$ac_objext; then
3205
 
  :
3206
 
else
3207
 
  echo "$as_me: failed program was:" >&5
3208
 
sed 's/^/| /' conftest.$ac_ext >&5
3209
 
 
3210
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3211
 
         CFLAGS="-g"
3212
 
         cat >conftest.$ac_ext <<_ACEOF
3213
 
/* confdefs.h.  */
3214
 
_ACEOF
3215
 
cat confdefs.h >>conftest.$ac_ext
3216
 
cat >>conftest.$ac_ext <<_ACEOF
3217
 
/* end confdefs.h.  */
3218
 
 
3219
 
int
3220
 
main ()
3221
 
{
3222
 
 
3223
 
  ;
3224
 
  return 0;
3225
 
}
3226
 
_ACEOF
3227
 
rm -f conftest.$ac_objext
3228
 
if { (ac_try="$ac_compile"
3229
 
case "(($ac_try" in
3230
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231
 
  *) ac_try_echo=$ac_try;;
3232
 
esac
3233
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234
 
  (eval "$ac_compile") 2>conftest.er1
3235
 
  ac_status=$?
3236
 
  grep -v '^ *+' conftest.er1 >conftest.err
3237
 
  rm -f conftest.er1
3238
 
  cat conftest.err >&5
3239
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240
 
  (exit $ac_status); } && {
3241
 
         test -z "$ac_c_werror_flag" ||
3242
 
         test ! -s conftest.err
3243
 
       } && test -s conftest.$ac_objext; then
3244
 
  ac_cv_prog_cc_g=yes
3245
 
else
3246
 
  echo "$as_me: failed program was:" >&5
3247
 
sed 's/^/| /' conftest.$ac_ext >&5
3248
 
 
3249
 
 
3250
 
fi
3251
 
 
3252
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253
 
fi
3254
 
 
3255
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256
 
fi
3257
 
 
3258
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3260
 
fi
3261
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263
 
if test "$ac_test_CFLAGS" = set; then
3264
 
  CFLAGS=$ac_save_CFLAGS
3265
 
elif test $ac_cv_prog_cc_g = yes; then
3266
 
  if test "$GCC" = yes; then
3267
 
    CFLAGS="-g -O2"
3268
 
  else
3269
 
    CFLAGS="-g"
3270
 
  fi
3271
 
else
3272
 
  if test "$GCC" = yes; then
3273
 
    CFLAGS="-O2"
3274
 
  else
3275
 
    CFLAGS=
3276
 
  fi
3277
 
fi
3278
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3281
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3282
 
else
3283
 
  ac_cv_prog_cc_c89=no
3284
 
ac_save_CC=$CC
3285
 
cat >conftest.$ac_ext <<_ACEOF
3286
 
/* confdefs.h.  */
3287
 
_ACEOF
3288
 
cat confdefs.h >>conftest.$ac_ext
3289
 
cat >>conftest.$ac_ext <<_ACEOF
3290
 
/* end confdefs.h.  */
3291
 
#include <stdarg.h>
3292
 
#include <stdio.h>
3293
 
#include <sys/types.h>
3294
 
#include <sys/stat.h>
3295
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3296
 
struct buf { int x; };
3297
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298
 
static char *e (p, i)
3299
 
     char **p;
3300
 
     int i;
3301
 
{
3302
 
  return p[i];
3303
 
}
3304
 
static char *f (char * (*g) (char **, int), char **p, ...)
3305
 
{
3306
 
  char *s;
3307
 
  va_list v;
3308
 
  va_start (v,p);
3309
 
  s = g (p, va_arg (v,int));
3310
 
  va_end (v);
3311
 
  return s;
3312
 
}
3313
 
 
3314
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3315
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3316
 
   These don't provoke an error unfortunately, instead are silently treated
3317
 
   as 'x'.  The following induces an error, until -std is added to get
3318
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3319
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3320
 
   that's true only with -std.  */
3321
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
 
 
3323
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324
 
   inside strings and character constants.  */
3325
 
#define FOO(x) 'x'
3326
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
 
 
3328
 
int test (int i, double x);
3329
 
struct s1 {int (*f) (int a);};
3330
 
struct s2 {int (*f) (double a);};
3331
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332
 
int argc;
3333
 
char **argv;
3334
 
int
3335
 
main ()
3336
 
{
3337
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3338
 
  ;
3339
 
  return 0;
3340
 
}
3341
 
_ACEOF
3342
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3344
 
do
3345
 
  CC="$ac_save_CC $ac_arg"
3346
 
  rm -f conftest.$ac_objext
3347
 
if { (ac_try="$ac_compile"
3348
 
case "(($ac_try" in
3349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350
 
  *) ac_try_echo=$ac_try;;
3351
 
esac
3352
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353
 
  (eval "$ac_compile") 2>conftest.er1
3354
 
  ac_status=$?
3355
 
  grep -v '^ *+' conftest.er1 >conftest.err
3356
 
  rm -f conftest.er1
3357
 
  cat conftest.err >&5
3358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359
 
  (exit $ac_status); } && {
3360
 
         test -z "$ac_c_werror_flag" ||
3361
 
         test ! -s conftest.err
3362
 
       } && test -s conftest.$ac_objext; then
3363
 
  ac_cv_prog_cc_c89=$ac_arg
3364
 
else
3365
 
  echo "$as_me: failed program was:" >&5
3366
 
sed 's/^/| /' conftest.$ac_ext >&5
3367
 
 
3368
 
 
3369
 
fi
3370
 
 
3371
 
rm -f core conftest.err conftest.$ac_objext
3372
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3373
 
done
3374
 
rm -f conftest.$ac_ext
3375
 
CC=$ac_save_CC
3376
 
 
3377
 
fi
3378
 
# AC_CACHE_VAL
3379
 
case "x$ac_cv_prog_cc_c89" in
3380
 
  x)
3381
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3382
 
echo "${ECHO_T}none needed" >&6; } ;;
3383
 
  xno)
3384
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3385
 
echo "${ECHO_T}unsupported" >&6; } ;;
3386
 
  *)
3387
 
    CC="$CC $ac_cv_prog_cc_c89"
3388
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3390
 
esac
3391
 
 
3392
 
 
3393
 
ac_ext=c
3394
 
ac_cpp='$CPP $CPPFLAGS'
3395
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
 
DEPDIR="${am__leading_dot}deps"
3399
 
 
3400
 
ac_config_commands="$ac_config_commands depfiles"
3401
 
 
3402
 
 
3403
 
am_make=${MAKE-make}
3404
 
cat > confinc << 'END'
3405
 
am__doit:
3406
 
        @echo done
3407
 
.PHONY: am__doit
3408
 
END
3409
 
# If we don't find an include directive, just comment out the code.
3410
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3411
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3412
 
am__include="#"
3413
 
am__quote=
3414
 
_am_result=none
3415
 
# First try GNU make style include.
3416
 
echo "include confinc" > confmf
3417
 
# We grep out `Entering directory' and `Leaving directory'
3418
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3419
 
# In particular we don't look at `^make:' because GNU make might
3420
 
# be invoked under some other name (usually "gmake"), in which
3421
 
# case it prints its new name instead of `make'.
3422
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3423
 
   am__include=include
3424
 
   am__quote=
3425
 
   _am_result=GNU
3426
 
fi
3427
 
# Now try BSD make style include.
3428
 
if test "$am__include" = "#"; then
3429
 
   echo '.include "confinc"' > confmf
3430
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3431
 
      am__include=.include
3432
 
      am__quote="\""
3433
 
      _am_result=BSD
3434
 
   fi
3435
 
fi
3436
 
 
3437
 
 
3438
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3439
 
echo "${ECHO_T}$_am_result" >&6; }
3440
 
rm -f confinc confmf
3441
 
 
3442
 
# Check whether --enable-dependency-tracking was given.
3443
 
if test "${enable_dependency_tracking+set}" = set; then
3444
 
  enableval=$enable_dependency_tracking;
3445
 
fi
3446
 
 
3447
 
if test "x$enable_dependency_tracking" != xno; then
3448
 
  am_depcomp="$ac_aux_dir/depcomp"
3449
 
  AMDEPBACKSLASH='\'
3450
 
fi
3451
 
 if test "x$enable_dependency_tracking" != xno; then
3452
 
  AMDEP_TRUE=
3453
 
  AMDEP_FALSE='#'
3454
 
else
3455
 
  AMDEP_TRUE='#'
3456
 
  AMDEP_FALSE=
3457
 
fi
3458
 
 
3459
 
 
3460
 
 
3461
 
depcc="$CC"   am_compiler_list=
3462
 
 
3463
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3464
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3465
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3467
 
else
3468
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3469
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3470
 
  # making bogus files that we don't know about and never remove.  For
3471
 
  # instance it was reported that on HP-UX the gcc test will end up
3472
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3473
 
  # in D'.
3474
 
  mkdir conftest.dir
3475
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3476
 
  # using a relative directory.
3477
 
  cp "$am_depcomp" conftest.dir
3478
 
  cd conftest.dir
3479
 
  # We will build objects and dependencies in a subdirectory because
3480
 
  # it helps to detect inapplicable dependency modes.  For instance
3481
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3482
 
  # side effect of compilation, but ICC will put the dependencies in
3483
 
  # the current directory while Tru64 will put them in the object
3484
 
  # directory.
3485
 
  mkdir sub
3486
 
 
3487
 
  am_cv_CC_dependencies_compiler_type=none
3488
 
  if test "$am_compiler_list" = ""; then
3489
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3490
 
  fi
3491
 
  for depmode in $am_compiler_list; do
3492
 
    # Setup a source with many dependencies, because some compilers
3493
 
    # like to wrap large dependency lists on column 80 (with \), and
3494
 
    # we should not choose a depcomp mode which is confused by this.
3495
 
    #
3496
 
    # We need to recreate these files for each test, as the compiler may
3497
 
    # overwrite some of them when testing with obscure command lines.
3498
 
    # This happens at least with the AIX C compiler.
3499
 
    : > sub/conftest.c
3500
 
    for i in 1 2 3 4 5 6; do
3501
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503
 
      # Solaris 8's {/usr,}/bin/sh.
3504
 
      touch sub/conftst$i.h
3505
 
    done
3506
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3507
 
 
3508
 
    case $depmode in
3509
 
    nosideeffect)
3510
 
      # after this tag, mechanisms are not by side-effect, so they'll
3511
 
      # only be used when explicitly requested
3512
 
      if test "x$enable_dependency_tracking" = xyes; then
3513
 
        continue
3514
 
      else
3515
 
        break
3516
 
      fi
3517
 
      ;;
3518
 
    none) break ;;
3519
 
    esac
3520
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3521
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3522
 
    # handle `-M -o', and we need to detect this.
3523
 
    if depmode=$depmode \
3524
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3525
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3526
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3527
 
         >/dev/null 2>conftest.err &&
3528
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3529
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3530
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3531
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3532
 
      # icc doesn't choke on unknown options, it will just issue warnings
3533
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3534
 
      # that says an option was ignored or not supported.
3535
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3536
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3537
 
      # The diagnosis changed in icc 8.0:
3538
 
      #   icc: Command line remark: option '-MP' not supported
3539
 
      if (grep 'ignoring option' conftest.err ||
3540
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3541
 
        am_cv_CC_dependencies_compiler_type=$depmode
3542
 
        break
3543
 
      fi
3544
 
    fi
3545
 
  done
3546
 
 
3547
 
  cd ..
3548
 
  rm -rf conftest.dir
3549
 
else
3550
 
  am_cv_CC_dependencies_compiler_type=none
3551
 
fi
3552
 
 
3553
 
fi
3554
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3555
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3556
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3557
 
 
3558
 
 if
3559
 
  test "x$enable_dependency_tracking" != xno \
3560
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3561
 
  am__fastdepCC_TRUE=
3562
 
  am__fastdepCC_FALSE='#'
3563
 
else
3564
 
  am__fastdepCC_TRUE='#'
3565
 
  am__fastdepCC_FALSE=
3566
 
fi
3567
 
 
3568
 
 
3569
 
ac_ext=c
3570
 
ac_cpp='$CPP $CPPFLAGS'
3571
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3576
 
# On Suns, sometimes $CPP names a directory.
3577
 
if test -n "$CPP" && test -d "$CPP"; then
3578
 
  CPP=
3579
 
fi
3580
 
if test -z "$CPP"; then
3581
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3582
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3583
 
else
3584
 
      # Double quotes because CPP needs to be expanded
3585
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3586
 
    do
3587
 
      ac_preproc_ok=false
3588
 
for ac_c_preproc_warn_flag in '' yes
3589
 
do
3590
 
  # Use a header file that comes with gcc, so configuring glibc
3591
 
  # with a fresh cross-compiler works.
3592
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593
 
  # <limits.h> exists even on freestanding compilers.
3594
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3595
 
  # not just through cpp. "Syntax error" is here to catch this case.
3596
 
  cat >conftest.$ac_ext <<_ACEOF
3597
 
/* confdefs.h.  */
3598
 
_ACEOF
3599
 
cat confdefs.h >>conftest.$ac_ext
3600
 
cat >>conftest.$ac_ext <<_ACEOF
3601
 
/* end confdefs.h.  */
3602
 
#ifdef __STDC__
3603
 
# include <limits.h>
3604
 
#else
3605
 
# include <assert.h>
3606
 
#endif
3607
 
                     Syntax error
3608
 
_ACEOF
3609
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3610
 
case "(($ac_try" in
3611
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612
 
  *) ac_try_echo=$ac_try;;
3613
 
esac
3614
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616
 
  ac_status=$?
3617
 
  grep -v '^ *+' conftest.er1 >conftest.err
3618
 
  rm -f conftest.er1
3619
 
  cat conftest.err >&5
3620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
 
  (exit $ac_status); } >/dev/null && {
3622
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623
 
         test ! -s conftest.err
3624
 
       }; then
3625
 
  :
3626
 
else
3627
 
  echo "$as_me: failed program was:" >&5
3628
 
sed 's/^/| /' conftest.$ac_ext >&5
3629
 
 
3630
 
  # Broken: fails on valid input.
3631
 
continue
3632
 
fi
3633
 
 
3634
 
rm -f conftest.err conftest.$ac_ext
3635
 
 
3636
 
  # OK, works on sane cases.  Now check whether nonexistent headers
3637
 
  # can be detected and how.
3638
 
  cat >conftest.$ac_ext <<_ACEOF
3639
 
/* confdefs.h.  */
3640
 
_ACEOF
3641
 
cat confdefs.h >>conftest.$ac_ext
3642
 
cat >>conftest.$ac_ext <<_ACEOF
3643
 
/* end confdefs.h.  */
3644
 
#include <ac_nonexistent.h>
3645
 
_ACEOF
3646
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3647
 
case "(($ac_try" in
3648
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649
 
  *) ac_try_echo=$ac_try;;
3650
 
esac
3651
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3653
 
  ac_status=$?
3654
 
  grep -v '^ *+' conftest.er1 >conftest.err
3655
 
  rm -f conftest.er1
3656
 
  cat conftest.err >&5
3657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658
 
  (exit $ac_status); } >/dev/null && {
3659
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3660
 
         test ! -s conftest.err
3661
 
       }; then
3662
 
  # Broken: success on invalid input.
3663
 
continue
3664
 
else
3665
 
  echo "$as_me: failed program was:" >&5
3666
 
sed 's/^/| /' conftest.$ac_ext >&5
3667
 
 
3668
 
  # Passes both tests.
3669
 
ac_preproc_ok=:
3670
 
break
3671
 
fi
3672
 
 
3673
 
rm -f conftest.err conftest.$ac_ext
3674
 
 
3675
 
done
3676
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3677
 
rm -f conftest.err conftest.$ac_ext
3678
 
if $ac_preproc_ok; then
3679
 
  break
3680
 
fi
3681
 
 
3682
 
    done
3683
 
    ac_cv_prog_CPP=$CPP
3684
 
 
3685
 
fi
3686
 
  CPP=$ac_cv_prog_CPP
3687
 
else
3688
 
  ac_cv_prog_CPP=$CPP
3689
 
fi
3690
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
3691
 
echo "${ECHO_T}$CPP" >&6; }
3692
 
ac_preproc_ok=false
3693
 
for ac_c_preproc_warn_flag in '' yes
3694
 
do
3695
 
  # Use a header file that comes with gcc, so configuring glibc
3696
 
  # with a fresh cross-compiler works.
3697
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698
 
  # <limits.h> exists even on freestanding compilers.
3699
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3700
 
  # not just through cpp. "Syntax error" is here to catch this case.
3701
 
  cat >conftest.$ac_ext <<_ACEOF
3702
 
/* confdefs.h.  */
3703
 
_ACEOF
3704
 
cat confdefs.h >>conftest.$ac_ext
3705
 
cat >>conftest.$ac_ext <<_ACEOF
3706
 
/* end confdefs.h.  */
3707
 
#ifdef __STDC__
3708
 
# include <limits.h>
3709
 
#else
3710
 
# include <assert.h>
3711
 
#endif
3712
 
                     Syntax error
3713
 
_ACEOF
3714
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3715
 
case "(($ac_try" in
3716
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717
 
  *) ac_try_echo=$ac_try;;
3718
 
esac
3719
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3721
 
  ac_status=$?
3722
 
  grep -v '^ *+' conftest.er1 >conftest.err
3723
 
  rm -f conftest.er1
3724
 
  cat conftest.err >&5
3725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726
 
  (exit $ac_status); } >/dev/null && {
3727
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3728
 
         test ! -s conftest.err
3729
 
       }; then
3730
 
  :
3731
 
else
3732
 
  echo "$as_me: failed program was:" >&5
3733
 
sed 's/^/| /' conftest.$ac_ext >&5
3734
 
 
3735
 
  # Broken: fails on valid input.
3736
 
continue
3737
 
fi
3738
 
 
3739
 
rm -f conftest.err conftest.$ac_ext
3740
 
 
3741
 
  # OK, works on sane cases.  Now check whether nonexistent headers
3742
 
  # can be detected and how.
3743
 
  cat >conftest.$ac_ext <<_ACEOF
3744
 
/* confdefs.h.  */
3745
 
_ACEOF
3746
 
cat confdefs.h >>conftest.$ac_ext
3747
 
cat >>conftest.$ac_ext <<_ACEOF
3748
 
/* end confdefs.h.  */
3749
 
#include <ac_nonexistent.h>
3750
 
_ACEOF
3751
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3752
 
case "(($ac_try" in
3753
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754
 
  *) ac_try_echo=$ac_try;;
3755
 
esac
3756
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3758
 
  ac_status=$?
3759
 
  grep -v '^ *+' conftest.er1 >conftest.err
3760
 
  rm -f conftest.er1
3761
 
  cat conftest.err >&5
3762
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763
 
  (exit $ac_status); } >/dev/null && {
3764
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3765
 
         test ! -s conftest.err
3766
 
       }; then
3767
 
  # Broken: success on invalid input.
3768
 
continue
3769
 
else
3770
 
  echo "$as_me: failed program was:" >&5
3771
 
sed 's/^/| /' conftest.$ac_ext >&5
3772
 
 
3773
 
  # Passes both tests.
3774
 
ac_preproc_ok=:
3775
 
break
3776
 
fi
3777
 
 
3778
 
rm -f conftest.err conftest.$ac_ext
3779
 
 
3780
 
done
3781
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782
 
rm -f conftest.err conftest.$ac_ext
3783
 
if $ac_preproc_ok; then
3784
 
  :
3785
 
else
3786
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3787
 
See \`config.log' for more details." >&5
3788
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3789
 
See \`config.log' for more details." >&2;}
3790
 
   { (exit 1); exit 1; }; }
3791
 
fi
3792
 
 
3793
 
ac_ext=c
3794
 
ac_cpp='$CPP $CPPFLAGS'
3795
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798
 
 
3799
 
# Find a good install program.  We prefer a C program (faster),
3800
 
# so one script is as good as another.  But avoid the broken or
3801
 
# incompatible versions:
3802
 
# SysV /etc/install, /usr/sbin/install
3803
 
# SunOS /usr/etc/install
3804
 
# IRIX /sbin/install
3805
 
# AIX /bin/install
3806
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
3807
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3808
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3809
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3810
 
# OS/2's system install, which has a completely different semantic
3811
 
# ./install, which can be erroneously created by make from ./install.sh.
3812
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3813
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3814
 
if test -z "$INSTALL"; then
3815
 
if test "${ac_cv_path_install+set}" = set; then
3816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3817
 
else
3818
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819
 
for as_dir in $PATH
3820
 
do
3821
 
  IFS=$as_save_IFS
3822
 
  test -z "$as_dir" && as_dir=.
3823
 
  # Account for people who put trailing slashes in PATH elements.
3824
 
case $as_dir/ in
3825
 
  ./ | .// | /cC/* | \
3826
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3827
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3828
 
  /usr/ucb/* ) ;;
3829
 
  *)
3830
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
3831
 
    # Don't use installbsd from OSF since it installs stuff as root
3832
 
    # by default.
3833
 
    for ac_prog in ginstall scoinst install; do
3834
 
      for ac_exec_ext in '' $ac_executable_extensions; do
3835
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3836
 
          if test $ac_prog = install &&
3837
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838
 
            # AIX install.  It has an incompatible calling convention.
3839
 
            :
3840
 
          elif test $ac_prog = install &&
3841
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842
 
            # program-specific install script used by HP pwplus--don't use.
3843
 
            :
3844
 
          else
3845
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3846
 
            break 3
3847
 
          fi
3848
 
        fi
3849
 
      done
3850
 
    done
3851
 
    ;;
3852
 
esac
3853
 
done
3854
 
IFS=$as_save_IFS
3855
 
 
3856
 
 
3857
 
fi
3858
 
  if test "${ac_cv_path_install+set}" = set; then
3859
 
    INSTALL=$ac_cv_path_install
3860
 
  else
3861
 
    # As a last resort, use the slow shell script.  Don't cache a
3862
 
    # value for INSTALL within a source directory, because that will
3863
 
    # break other packages using the cache if that directory is
3864
 
    # removed, or if the value is a relative name.
3865
 
    INSTALL=$ac_install_sh
3866
 
  fi
3867
 
fi
3868
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3869
 
echo "${ECHO_T}$INSTALL" >&6; }
3870
 
 
3871
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872
 
# It thinks the first close brace ends the variable substitution.
3873
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3874
 
 
3875
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3876
 
 
3877
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3878
 
 
3879
 
if test -n "$ac_tool_prefix"; then
3880
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3881
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3882
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3883
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3884
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
3885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3886
 
else
3887
 
  if test -n "$RANLIB"; then
3888
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3889
 
else
3890
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891
 
for as_dir in $PATH
3892
 
do
3893
 
  IFS=$as_save_IFS
3894
 
  test -z "$as_dir" && as_dir=.
3895
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3896
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3898
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899
 
    break 2
3900
 
  fi
3901
 
done
3902
 
done
3903
 
IFS=$as_save_IFS
3904
 
 
3905
 
fi
3906
 
fi
3907
 
RANLIB=$ac_cv_prog_RANLIB
3908
 
if test -n "$RANLIB"; then
3909
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
3910
 
echo "${ECHO_T}$RANLIB" >&6; }
3911
 
else
3912
 
  { echo "$as_me:$LINENO: result: no" >&5
3913
 
echo "${ECHO_T}no" >&6; }
3914
 
fi
3915
 
 
3916
 
 
3917
 
fi
3918
 
if test -z "$ac_cv_prog_RANLIB"; then
3919
 
  ac_ct_RANLIB=$RANLIB
3920
 
  # Extract the first word of "ranlib", so it can be a program name with args.
3921
 
set dummy ranlib; ac_word=$2
3922
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3923
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3924
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3926
 
else
3927
 
  if test -n "$ac_ct_RANLIB"; then
3928
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3929
 
else
3930
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931
 
for as_dir in $PATH
3932
 
do
3933
 
  IFS=$as_save_IFS
3934
 
  test -z "$as_dir" && as_dir=.
3935
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3936
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3938
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939
 
    break 2
3940
 
  fi
3941
 
done
3942
 
done
3943
 
IFS=$as_save_IFS
3944
 
 
3945
 
fi
3946
 
fi
3947
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3948
 
if test -n "$ac_ct_RANLIB"; then
3949
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3951
 
else
3952
 
  { echo "$as_me:$LINENO: result: no" >&5
3953
 
echo "${ECHO_T}no" >&6; }
3954
 
fi
3955
 
 
3956
 
  if test "x$ac_ct_RANLIB" = x; then
3957
 
    RANLIB=":"
3958
 
  else
3959
 
    case $cross_compiling:$ac_tool_warned in
3960
 
yes:)
3961
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3962
 
whose name does not start with the host triplet.  If you think this
3963
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3964
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3965
 
whose name does not start with the host triplet.  If you think this
3966
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3967
 
ac_tool_warned=yes ;;
3968
 
esac
3969
 
    RANLIB=$ac_ct_RANLIB
3970
 
  fi
3971
 
else
3972
 
  RANLIB="$ac_cv_prog_RANLIB"
3973
 
fi
3974
 
 
3975
 
# We need to check for cplusplus here becuase we may not do the test
3976
 
# for Qt and autoconf does does not allow that.
3977
 
ac_ext=cpp
3978
 
ac_cpp='$CXXCPP $CPPFLAGS'
3979
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3982
 
if test -z "$CXX"; then
3983
 
  if test -n "$CCC"; then
3984
 
    CXX=$CCC
3985
 
  else
3986
 
    if test -n "$ac_tool_prefix"; then
3987
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3988
 
  do
3989
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3990
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3991
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3992
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993
 
if test "${ac_cv_prog_CXX+set}" = set; then
3994
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3995
 
else
3996
 
  if test -n "$CXX"; then
3997
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3998
 
else
3999
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000
 
for as_dir in $PATH
4001
 
do
4002
 
  IFS=$as_save_IFS
4003
 
  test -z "$as_dir" && as_dir=.
4004
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4005
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4007
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008
 
    break 2
4009
 
  fi
4010
 
done
4011
 
done
4012
 
IFS=$as_save_IFS
4013
 
 
4014
 
fi
4015
 
fi
4016
 
CXX=$ac_cv_prog_CXX
4017
 
if test -n "$CXX"; then
4018
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
4019
 
echo "${ECHO_T}$CXX" >&6; }
4020
 
else
4021
 
  { echo "$as_me:$LINENO: result: no" >&5
4022
 
echo "${ECHO_T}no" >&6; }
4023
 
fi
4024
 
 
4025
 
 
4026
 
    test -n "$CXX" && break
4027
 
  done
4028
 
fi
4029
 
if test -z "$CXX"; then
4030
 
  ac_ct_CXX=$CXX
4031
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4032
 
do
4033
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4034
 
set dummy $ac_prog; ac_word=$2
4035
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4036
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4037
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4038
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4039
 
else
4040
 
  if test -n "$ac_ct_CXX"; then
4041
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4042
 
else
4043
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044
 
for as_dir in $PATH
4045
 
do
4046
 
  IFS=$as_save_IFS
4047
 
  test -z "$as_dir" && as_dir=.
4048
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4049
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4051
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4052
 
    break 2
4053
 
  fi
4054
 
done
4055
 
done
4056
 
IFS=$as_save_IFS
4057
 
 
4058
 
fi
4059
 
fi
4060
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4061
 
if test -n "$ac_ct_CXX"; then
4062
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4063
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4064
 
else
4065
 
  { echo "$as_me:$LINENO: result: no" >&5
4066
 
echo "${ECHO_T}no" >&6; }
4067
 
fi
4068
 
 
4069
 
 
4070
 
  test -n "$ac_ct_CXX" && break
4071
 
done
4072
 
 
4073
 
  if test "x$ac_ct_CXX" = x; then
4074
 
    CXX="g++"
4075
 
  else
4076
 
    case $cross_compiling:$ac_tool_warned in
4077
 
yes:)
4078
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4079
 
whose name does not start with the host triplet.  If you think this
4080
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4081
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4082
 
whose name does not start with the host triplet.  If you think this
4083
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4084
 
ac_tool_warned=yes ;;
4085
 
esac
4086
 
    CXX=$ac_ct_CXX
4087
 
  fi
4088
 
fi
4089
 
 
4090
 
  fi
4091
 
fi
4092
 
# Provide some information about the compiler.
4093
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4094
 
ac_compiler=`set X $ac_compile; echo $2`
4095
 
{ (ac_try="$ac_compiler --version >&5"
4096
 
case "(($ac_try" in
4097
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098
 
  *) ac_try_echo=$ac_try;;
4099
 
esac
4100
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101
 
  (eval "$ac_compiler --version >&5") 2>&5
4102
 
  ac_status=$?
4103
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104
 
  (exit $ac_status); }
4105
 
{ (ac_try="$ac_compiler -v >&5"
4106
 
case "(($ac_try" in
4107
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108
 
  *) ac_try_echo=$ac_try;;
4109
 
esac
4110
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111
 
  (eval "$ac_compiler -v >&5") 2>&5
4112
 
  ac_status=$?
4113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
 
  (exit $ac_status); }
4115
 
{ (ac_try="$ac_compiler -V >&5"
4116
 
case "(($ac_try" in
4117
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118
 
  *) ac_try_echo=$ac_try;;
4119
 
esac
4120
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121
 
  (eval "$ac_compiler -V >&5") 2>&5
4122
 
  ac_status=$?
4123
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
 
  (exit $ac_status); }
4125
 
 
4126
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4127
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4128
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4129
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4130
 
else
4131
 
  cat >conftest.$ac_ext <<_ACEOF
4132
 
/* confdefs.h.  */
4133
 
_ACEOF
4134
 
cat confdefs.h >>conftest.$ac_ext
4135
 
cat >>conftest.$ac_ext <<_ACEOF
4136
 
/* end confdefs.h.  */
4137
 
 
4138
 
int
4139
 
main ()
4140
 
{
4141
 
#ifndef __GNUC__
4142
 
       choke me
4143
 
#endif
4144
 
 
4145
 
  ;
4146
 
  return 0;
4147
 
}
4148
 
_ACEOF
4149
 
rm -f conftest.$ac_objext
4150
 
if { (ac_try="$ac_compile"
4151
 
case "(($ac_try" in
4152
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153
 
  *) ac_try_echo=$ac_try;;
4154
 
esac
4155
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156
 
  (eval "$ac_compile") 2>conftest.er1
4157
 
  ac_status=$?
4158
 
  grep -v '^ *+' conftest.er1 >conftest.err
4159
 
  rm -f conftest.er1
4160
 
  cat conftest.err >&5
4161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
 
  (exit $ac_status); } && {
4163
 
         test -z "$ac_cxx_werror_flag" ||
4164
 
         test ! -s conftest.err
4165
 
       } && test -s conftest.$ac_objext; then
4166
 
  ac_compiler_gnu=yes
4167
 
else
4168
 
  echo "$as_me: failed program was:" >&5
4169
 
sed 's/^/| /' conftest.$ac_ext >&5
4170
 
 
4171
 
        ac_compiler_gnu=no
4172
 
fi
4173
 
 
4174
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4176
 
 
4177
 
fi
4178
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4179
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4180
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
4181
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
4182
 
ac_save_CXXFLAGS=$CXXFLAGS
4183
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4184
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4185
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
4186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4187
 
else
4188
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4189
 
   ac_cxx_werror_flag=yes
4190
 
   ac_cv_prog_cxx_g=no
4191
 
   CXXFLAGS="-g"
4192
 
   cat >conftest.$ac_ext <<_ACEOF
4193
 
/* confdefs.h.  */
4194
 
_ACEOF
4195
 
cat confdefs.h >>conftest.$ac_ext
4196
 
cat >>conftest.$ac_ext <<_ACEOF
4197
 
/* end confdefs.h.  */
4198
 
 
4199
 
int
4200
 
main ()
4201
 
{
4202
 
 
4203
 
  ;
4204
 
  return 0;
4205
 
}
4206
 
_ACEOF
4207
 
rm -f conftest.$ac_objext
4208
 
if { (ac_try="$ac_compile"
4209
 
case "(($ac_try" in
4210
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211
 
  *) ac_try_echo=$ac_try;;
4212
 
esac
4213
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214
 
  (eval "$ac_compile") 2>conftest.er1
4215
 
  ac_status=$?
4216
 
  grep -v '^ *+' conftest.er1 >conftest.err
4217
 
  rm -f conftest.er1
4218
 
  cat conftest.err >&5
4219
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220
 
  (exit $ac_status); } && {
4221
 
         test -z "$ac_cxx_werror_flag" ||
4222
 
         test ! -s conftest.err
4223
 
       } && test -s conftest.$ac_objext; then
4224
 
  ac_cv_prog_cxx_g=yes
4225
 
else
4226
 
  echo "$as_me: failed program was:" >&5
4227
 
sed 's/^/| /' conftest.$ac_ext >&5
4228
 
 
4229
 
        CXXFLAGS=""
4230
 
      cat >conftest.$ac_ext <<_ACEOF
4231
 
/* confdefs.h.  */
4232
 
_ACEOF
4233
 
cat confdefs.h >>conftest.$ac_ext
4234
 
cat >>conftest.$ac_ext <<_ACEOF
4235
 
/* end confdefs.h.  */
4236
 
 
4237
 
int
4238
 
main ()
4239
 
{
4240
 
 
4241
 
  ;
4242
 
  return 0;
4243
 
}
4244
 
_ACEOF
4245
 
rm -f conftest.$ac_objext
4246
 
if { (ac_try="$ac_compile"
4247
 
case "(($ac_try" in
4248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249
 
  *) ac_try_echo=$ac_try;;
4250
 
esac
4251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252
 
  (eval "$ac_compile") 2>conftest.er1
4253
 
  ac_status=$?
4254
 
  grep -v '^ *+' conftest.er1 >conftest.err
4255
 
  rm -f conftest.er1
4256
 
  cat conftest.err >&5
4257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
 
  (exit $ac_status); } && {
4259
 
         test -z "$ac_cxx_werror_flag" ||
4260
 
         test ! -s conftest.err
4261
 
       } && test -s conftest.$ac_objext; then
4262
 
  :
4263
 
else
4264
 
  echo "$as_me: failed program was:" >&5
4265
 
sed 's/^/| /' conftest.$ac_ext >&5
4266
 
 
4267
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4268
 
         CXXFLAGS="-g"
4269
 
         cat >conftest.$ac_ext <<_ACEOF
4270
 
/* confdefs.h.  */
4271
 
_ACEOF
4272
 
cat confdefs.h >>conftest.$ac_ext
4273
 
cat >>conftest.$ac_ext <<_ACEOF
4274
 
/* end confdefs.h.  */
4275
 
 
4276
 
int
4277
 
main ()
4278
 
{
4279
 
 
4280
 
  ;
4281
 
  return 0;
4282
 
}
4283
 
_ACEOF
4284
 
rm -f conftest.$ac_objext
4285
 
if { (ac_try="$ac_compile"
4286
 
case "(($ac_try" in
4287
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288
 
  *) ac_try_echo=$ac_try;;
4289
 
esac
4290
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291
 
  (eval "$ac_compile") 2>conftest.er1
4292
 
  ac_status=$?
4293
 
  grep -v '^ *+' conftest.er1 >conftest.err
4294
 
  rm -f conftest.er1
4295
 
  cat conftest.err >&5
4296
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297
 
  (exit $ac_status); } && {
4298
 
         test -z "$ac_cxx_werror_flag" ||
4299
 
         test ! -s conftest.err
4300
 
       } && test -s conftest.$ac_objext; then
4301
 
  ac_cv_prog_cxx_g=yes
4302
 
else
4303
 
  echo "$as_me: failed program was:" >&5
4304
 
sed 's/^/| /' conftest.$ac_ext >&5
4305
 
 
4306
 
 
4307
 
fi
4308
 
 
4309
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4310
 
fi
4311
 
 
4312
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313
 
fi
4314
 
 
4315
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317
 
fi
4318
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4319
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4320
 
if test "$ac_test_CXXFLAGS" = set; then
4321
 
  CXXFLAGS=$ac_save_CXXFLAGS
4322
 
elif test $ac_cv_prog_cxx_g = yes; then
4323
 
  if test "$GXX" = yes; then
4324
 
    CXXFLAGS="-g -O2"
4325
 
  else
4326
 
    CXXFLAGS="-g"
4327
 
  fi
4328
 
else
4329
 
  if test "$GXX" = yes; then
4330
 
    CXXFLAGS="-O2"
4331
 
  else
4332
 
    CXXFLAGS=
4333
 
  fi
4334
 
fi
4335
 
ac_ext=c
4336
 
ac_cpp='$CPP $CPPFLAGS'
4337
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
 
 
4341
 
depcc="$CXX"  am_compiler_list=
4342
 
 
4343
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4344
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4345
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4346
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4347
 
else
4348
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4350
 
  # making bogus files that we don't know about and never remove.  For
4351
 
  # instance it was reported that on HP-UX the gcc test will end up
4352
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4353
 
  # in D'.
4354
 
  mkdir conftest.dir
4355
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4356
 
  # using a relative directory.
4357
 
  cp "$am_depcomp" conftest.dir
4358
 
  cd conftest.dir
4359
 
  # We will build objects and dependencies in a subdirectory because
4360
 
  # it helps to detect inapplicable dependency modes.  For instance
4361
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4362
 
  # side effect of compilation, but ICC will put the dependencies in
4363
 
  # the current directory while Tru64 will put them in the object
4364
 
  # directory.
4365
 
  mkdir sub
4366
 
 
4367
 
  am_cv_CXX_dependencies_compiler_type=none
4368
 
  if test "$am_compiler_list" = ""; then
4369
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370
 
  fi
4371
 
  for depmode in $am_compiler_list; do
4372
 
    # Setup a source with many dependencies, because some compilers
4373
 
    # like to wrap large dependency lists on column 80 (with \), and
4374
 
    # we should not choose a depcomp mode which is confused by this.
4375
 
    #
4376
 
    # We need to recreate these files for each test, as the compiler may
4377
 
    # overwrite some of them when testing with obscure command lines.
4378
 
    # This happens at least with the AIX C compiler.
4379
 
    : > sub/conftest.c
4380
 
    for i in 1 2 3 4 5 6; do
4381
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4382
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4383
 
      # Solaris 8's {/usr,}/bin/sh.
4384
 
      touch sub/conftst$i.h
4385
 
    done
4386
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4387
 
 
4388
 
    case $depmode in
4389
 
    nosideeffect)
4390
 
      # after this tag, mechanisms are not by side-effect, so they'll
4391
 
      # only be used when explicitly requested
4392
 
      if test "x$enable_dependency_tracking" = xyes; then
4393
 
        continue
4394
 
      else
4395
 
        break
4396
 
      fi
4397
 
      ;;
4398
 
    none) break ;;
4399
 
    esac
4400
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4401
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4402
 
    # handle `-M -o', and we need to detect this.
4403
 
    if depmode=$depmode \
4404
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4405
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4407
 
         >/dev/null 2>conftest.err &&
4408
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4409
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4411
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412
 
      # icc doesn't choke on unknown options, it will just issue warnings
4413
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4414
 
      # that says an option was ignored or not supported.
4415
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4416
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4417
 
      # The diagnosis changed in icc 8.0:
4418
 
      #   icc: Command line remark: option '-MP' not supported
4419
 
      if (grep 'ignoring option' conftest.err ||
4420
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421
 
        am_cv_CXX_dependencies_compiler_type=$depmode
4422
 
        break
4423
 
      fi
4424
 
    fi
4425
 
  done
4426
 
 
4427
 
  cd ..
4428
 
  rm -rf conftest.dir
4429
 
else
4430
 
  am_cv_CXX_dependencies_compiler_type=none
4431
 
fi
4432
 
 
4433
 
fi
4434
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4435
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4436
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4437
 
 
4438
 
 if
4439
 
  test "x$enable_dependency_tracking" != xno \
4440
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4441
 
  am__fastdepCXX_TRUE=
4442
 
  am__fastdepCXX_FALSE='#'
4443
 
else
4444
 
  am__fastdepCXX_TRUE='#'
4445
 
  am__fastdepCXX_FALSE=
4446
 
fi
4447
 
 
4448
 
 
4449
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4450
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4451
 
LN_S=$as_ln_s
4452
 
if test "$LN_S" = "ln -s"; then
4453
 
  { echo "$as_me:$LINENO: result: yes" >&5
4454
 
echo "${ECHO_T}yes" >&6; }
4455
 
else
4456
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4457
 
echo "${ECHO_T}no, using $LN_S" >&6; }
4458
 
fi
4459
 
 
4460
 
if test -n "$ac_tool_prefix"; then
4461
 
  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4462
 
set dummy ${ac_tool_prefix}windres; ac_word=$2
4463
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465
 
if test "${ac_cv_prog_WINDRES+set}" = set; then
4466
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4467
 
else
4468
 
  if test -n "$WINDRES"; then
4469
 
  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4470
 
else
4471
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472
 
for as_dir in $PATH
4473
 
do
4474
 
  IFS=$as_save_IFS
4475
 
  test -z "$as_dir" && as_dir=.
4476
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4477
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478
 
    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4479
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480
 
    break 2
4481
 
  fi
4482
 
done
4483
 
done
4484
 
IFS=$as_save_IFS
4485
 
 
4486
 
fi
4487
 
fi
4488
 
WINDRES=$ac_cv_prog_WINDRES
4489
 
if test -n "$WINDRES"; then
4490
 
  { echo "$as_me:$LINENO: result: $WINDRES" >&5
4491
 
echo "${ECHO_T}$WINDRES" >&6; }
4492
 
else
4493
 
  { echo "$as_me:$LINENO: result: no" >&5
4494
 
echo "${ECHO_T}no" >&6; }
4495
 
fi
4496
 
 
4497
 
 
4498
 
fi
4499
 
if test -z "$ac_cv_prog_WINDRES"; then
4500
 
  ac_ct_WINDRES=$WINDRES
4501
 
  # Extract the first word of "windres", so it can be a program name with args.
4502
 
set dummy windres; ac_word=$2
4503
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505
 
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4506
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4507
 
else
4508
 
  if test -n "$ac_ct_WINDRES"; then
4509
 
  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4510
 
else
4511
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512
 
for as_dir in $PATH
4513
 
do
4514
 
  IFS=$as_save_IFS
4515
 
  test -z "$as_dir" && as_dir=.
4516
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4517
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518
 
    ac_cv_prog_ac_ct_WINDRES="windres"
4519
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520
 
    break 2
4521
 
  fi
4522
 
done
4523
 
done
4524
 
IFS=$as_save_IFS
4525
 
 
4526
 
fi
4527
 
fi
4528
 
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4529
 
if test -n "$ac_ct_WINDRES"; then
4530
 
  { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4531
 
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
4532
 
else
4533
 
  { echo "$as_me:$LINENO: result: no" >&5
4534
 
echo "${ECHO_T}no" >&6; }
4535
 
fi
4536
 
 
4537
 
  if test "x$ac_ct_WINDRES" = x; then
4538
 
    WINDRES=":"
4539
 
  else
4540
 
    case $cross_compiling:$ac_tool_warned in
4541
 
yes:)
4542
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4543
 
whose name does not start with the host triplet.  If you think this
4544
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4545
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4546
 
whose name does not start with the host triplet.  If you think this
4547
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4548
 
ac_tool_warned=yes ;;
4549
 
esac
4550
 
    WINDRES=$ac_ct_WINDRES
4551
 
  fi
4552
 
else
4553
 
  WINDRES="$ac_cv_prog_WINDRES"
4554
 
fi
4555
 
 
4556
 
 
4557
 
 
4558
 
have_dosish_system=no
4559
 
have_w32_system=no
4560
 
case "${host}" in
4561
 
    *-mingw32*)
4562
 
 
4563
 
cat >>confdefs.h <<\_ACEOF
4564
 
#define USE_ONLY_8DOT3 1
4565
 
_ACEOF
4566
 
 
4567
 
 
4568
 
cat >>confdefs.h <<\_ACEOF
4569
 
#define HAVE_DRIVE_LETTERS 1
4570
 
_ACEOF
4571
 
 
4572
 
        have_dosish_system=yes
4573
 
        have_w32_system=yes
4574
 
        ;;
4575
 
    i?86-emx-os2 | i?86-*-os2*emx )
4576
 
        # OS/2 with the EMX environment
4577
 
        cat >>confdefs.h <<\_ACEOF
4578
 
#define HAVE_DRIVE_LETTERS 1
4579
 
_ACEOF
4580
 
 
4581
 
        have_dosish_system=yes
4582
 
        ;;
4583
 
 
4584
 
    i?86-*-msdosdjgpp*)
4585
 
        # DOS with the DJGPP environment
4586
 
        cat >>confdefs.h <<\_ACEOF
4587
 
#define HAVE_DRIVE_LETTERS 1
4588
 
_ACEOF
4589
 
 
4590
 
        have_dosish_system=yes
4591
 
        ;;
4592
 
esac
4593
 
 
4594
 
if test "$have_dosish_system" = yes; then
4595
 
 
4596
 
cat >>confdefs.h <<\_ACEOF
4597
 
#define HAVE_DOSISH_SYSTEM 1
4598
 
_ACEOF
4599
 
 
4600
 
fi
4601
 
 if test "$have_dosish_system" = yes; then
4602
 
  HAVE_DOSISH_SYSTEM_TRUE=
4603
 
  HAVE_DOSISH_SYSTEM_FALSE='#'
4604
 
else
4605
 
  HAVE_DOSISH_SYSTEM_TRUE='#'
4606
 
  HAVE_DOSISH_SYSTEM_FALSE=
4607
 
fi
4608
 
 
4609
 
 
4610
 
if test "$have_w32_system" = yes; then
4611
 
 
4612
 
cat >>confdefs.h <<\_ACEOF
4613
 
#define HAVE_W32_SYSTEM 1
4614
 
_ACEOF
4615
 
 
4616
 
fi
4617
 
 if test "$have_w32_system" = yes; then
4618
 
  HAVE_W32_SYSTEM_TRUE=
4619
 
  HAVE_W32_SYSTEM_FALSE='#'
4620
 
else
4621
 
  HAVE_W32_SYSTEM_TRUE='#'
4622
 
  HAVE_W32_SYSTEM_FALSE=
4623
 
fi
4624
 
 
4625
 
 
4626
 
 
4627
 
 
4628
 
 
4629
 
if test "$GCC" = yes; then
4630
 
    CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
4631
 
    CPPFLAGS="$CPPFLAGS -Wall"
4632
 
 
4633
 
    { echo "$as_me:$LINENO: checking if gcc supports -Wno-pointer-sign" >&5
4634
 
echo $ECHO_N "checking if gcc supports -Wno-pointer-sign... $ECHO_C" >&6; }
4635
 
    _gcc_cflags_save=$CFLAGS
4636
 
    CFLAGS="-Wno-pointer-sign"
4637
 
 
4638
 
cat >conftest.$ac_ext <<_ACEOF
4639
 
/* confdefs.h.  */
4640
 
_ACEOF
4641
 
cat confdefs.h >>conftest.$ac_ext
4642
 
cat >>conftest.$ac_ext <<_ACEOF
4643
 
/* end confdefs.h.  */
4644
 
 
4645
 
int
4646
 
main ()
4647
 
{
4648
 
 
4649
 
  ;
4650
 
  return 0;
4651
 
}
4652
 
_ACEOF
4653
 
rm -f conftest.$ac_objext
4654
 
if { (ac_try="$ac_compile"
4655
 
case "(($ac_try" in
4656
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657
 
  *) ac_try_echo=$ac_try;;
4658
 
esac
4659
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660
 
  (eval "$ac_compile") 2>conftest.er1
4661
 
  ac_status=$?
4662
 
  grep -v '^ *+' conftest.er1 >conftest.err
4663
 
  rm -f conftest.er1
4664
 
  cat conftest.err >&5
4665
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666
 
  (exit $ac_status); } && {
4667
 
         test -z "$ac_c_werror_flag" ||
4668
 
         test ! -s conftest.err
4669
 
       } && test -s conftest.$ac_objext; then
4670
 
  _gcc_psign=yes
4671
 
else
4672
 
  echo "$as_me: failed program was:" >&5
4673
 
sed 's/^/| /' conftest.$ac_ext >&5
4674
 
 
4675
 
        _gcc_psign=no
4676
 
fi
4677
 
 
4678
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679
 
    { echo "$as_me:$LINENO: result: $_gcc_psign" >&5
4680
 
echo "${ECHO_T}$_gcc_psign" >&6; }
4681
 
    CFLAGS=$_gcc_cflags_save;
4682
 
    if test x"$_gcc_psign" = xyes ; then
4683
 
       CFLAGS="$CFLAGS -Wno-pointer-sign"
4684
 
    fi
4685
 
fi
4686
 
 
4687
 
 
4688
 
# Checks for header files.
4689
 
 
4690
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4691
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4692
 
if test "${ac_cv_path_GREP+set}" = set; then
4693
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4694
 
else
4695
 
  # Extract the first word of "grep ggrep" to use in msg output
4696
 
if test -z "$GREP"; then
4697
 
set dummy grep ggrep; ac_prog_name=$2
4698
 
if test "${ac_cv_path_GREP+set}" = set; then
4699
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4700
 
else
4701
 
  ac_path_GREP_found=false
4702
 
# Loop through the user's path and test for each of PROGNAME-LIST
4703
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705
 
do
4706
 
  IFS=$as_save_IFS
4707
 
  test -z "$as_dir" && as_dir=.
4708
 
  for ac_prog in grep ggrep; do
4709
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4710
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4711
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4712
 
    # Check for GNU ac_path_GREP and select it if it is found.
4713
 
  # Check for GNU $ac_path_GREP
4714
 
case `"$ac_path_GREP" --version 2>&1` in
4715
 
*GNU*)
4716
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4717
 
*)
4718
 
  ac_count=0
4719
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4720
 
  while :
4721
 
  do
4722
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4723
 
    mv "conftest.tmp" "conftest.in"
4724
 
    cp "conftest.in" "conftest.nl"
4725
 
    echo 'GREP' >> "conftest.nl"
4726
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728
 
    ac_count=`expr $ac_count + 1`
4729
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4730
 
      # Best one so far, save it but keep looking for a better one
4731
 
      ac_cv_path_GREP="$ac_path_GREP"
4732
 
      ac_path_GREP_max=$ac_count
4733
 
    fi
4734
 
    # 10*(2^10) chars as input seems more than enough
4735
 
    test $ac_count -gt 10 && break
4736
 
  done
4737
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738
 
esac
4739
 
 
4740
 
 
4741
 
    $ac_path_GREP_found && break 3
4742
 
  done
4743
 
done
4744
 
 
4745
 
done
4746
 
IFS=$as_save_IFS
4747
 
 
4748
 
 
4749
 
fi
4750
 
 
4751
 
GREP="$ac_cv_path_GREP"
4752
 
if test -z "$GREP"; then
4753
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4754
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4755
 
   { (exit 1); exit 1; }; }
4756
 
fi
4757
 
 
4758
 
else
4759
 
  ac_cv_path_GREP=$GREP
4760
 
fi
4761
 
 
4762
 
 
4763
 
fi
4764
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4765
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4766
 
 GREP="$ac_cv_path_GREP"
4767
 
 
4768
 
 
4769
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4770
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4771
 
if test "${ac_cv_path_EGREP+set}" = set; then
4772
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4773
 
else
4774
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4775
 
   then ac_cv_path_EGREP="$GREP -E"
4776
 
   else
4777
 
     # Extract the first word of "egrep" to use in msg output
4778
 
if test -z "$EGREP"; then
4779
 
set dummy egrep; ac_prog_name=$2
4780
 
if test "${ac_cv_path_EGREP+set}" = set; then
4781
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4782
 
else
4783
 
  ac_path_EGREP_found=false
4784
 
# Loop through the user's path and test for each of PROGNAME-LIST
4785
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4787
 
do
4788
 
  IFS=$as_save_IFS
4789
 
  test -z "$as_dir" && as_dir=.
4790
 
  for ac_prog in egrep; do
4791
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4792
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4793
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4794
 
    # Check for GNU ac_path_EGREP and select it if it is found.
4795
 
  # Check for GNU $ac_path_EGREP
4796
 
case `"$ac_path_EGREP" --version 2>&1` in
4797
 
*GNU*)
4798
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4799
 
*)
4800
 
  ac_count=0
4801
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4802
 
  while :
4803
 
  do
4804
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4805
 
    mv "conftest.tmp" "conftest.in"
4806
 
    cp "conftest.in" "conftest.nl"
4807
 
    echo 'EGREP' >> "conftest.nl"
4808
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810
 
    ac_count=`expr $ac_count + 1`
4811
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4812
 
      # Best one so far, save it but keep looking for a better one
4813
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4814
 
      ac_path_EGREP_max=$ac_count
4815
 
    fi
4816
 
    # 10*(2^10) chars as input seems more than enough
4817
 
    test $ac_count -gt 10 && break
4818
 
  done
4819
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4820
 
esac
4821
 
 
4822
 
 
4823
 
    $ac_path_EGREP_found && break 3
4824
 
  done
4825
 
done
4826
 
 
4827
 
done
4828
 
IFS=$as_save_IFS
4829
 
 
4830
 
 
4831
 
fi
4832
 
 
4833
 
EGREP="$ac_cv_path_EGREP"
4834
 
if test -z "$EGREP"; then
4835
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4836
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4837
 
   { (exit 1); exit 1; }; }
4838
 
fi
4839
 
 
4840
 
else
4841
 
  ac_cv_path_EGREP=$EGREP
4842
 
fi
4843
 
 
4844
 
 
4845
 
   fi
4846
 
fi
4847
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4848
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4849
 
 EGREP="$ac_cv_path_EGREP"
4850
 
 
4851
 
 
4852
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4853
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4854
 
if test "${ac_cv_header_stdc+set}" = set; then
4855
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4856
 
else
4857
 
  cat >conftest.$ac_ext <<_ACEOF
4858
 
/* confdefs.h.  */
4859
 
_ACEOF
4860
 
cat confdefs.h >>conftest.$ac_ext
4861
 
cat >>conftest.$ac_ext <<_ACEOF
4862
 
/* end confdefs.h.  */
4863
 
#include <stdlib.h>
4864
 
#include <stdarg.h>
4865
 
#include <string.h>
4866
 
#include <float.h>
4867
 
 
4868
 
int
4869
 
main ()
4870
 
{
4871
 
 
4872
 
  ;
4873
 
  return 0;
4874
 
}
4875
 
_ACEOF
4876
 
rm -f conftest.$ac_objext
4877
 
if { (ac_try="$ac_compile"
4878
 
case "(($ac_try" in
4879
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880
 
  *) ac_try_echo=$ac_try;;
4881
 
esac
4882
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883
 
  (eval "$ac_compile") 2>conftest.er1
4884
 
  ac_status=$?
4885
 
  grep -v '^ *+' conftest.er1 >conftest.err
4886
 
  rm -f conftest.er1
4887
 
  cat conftest.err >&5
4888
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
 
  (exit $ac_status); } && {
4890
 
         test -z "$ac_c_werror_flag" ||
4891
 
         test ! -s conftest.err
4892
 
       } && test -s conftest.$ac_objext; then
4893
 
  ac_cv_header_stdc=yes
4894
 
else
4895
 
  echo "$as_me: failed program was:" >&5
4896
 
sed 's/^/| /' conftest.$ac_ext >&5
4897
 
 
4898
 
        ac_cv_header_stdc=no
4899
 
fi
4900
 
 
4901
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902
 
 
4903
 
if test $ac_cv_header_stdc = yes; then
4904
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4905
 
  cat >conftest.$ac_ext <<_ACEOF
4906
 
/* confdefs.h.  */
4907
 
_ACEOF
4908
 
cat confdefs.h >>conftest.$ac_ext
4909
 
cat >>conftest.$ac_ext <<_ACEOF
4910
 
/* end confdefs.h.  */
4911
 
#include <string.h>
4912
 
 
4913
 
_ACEOF
4914
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915
 
  $EGREP "memchr" >/dev/null 2>&1; then
4916
 
  :
4917
 
else
4918
 
  ac_cv_header_stdc=no
4919
 
fi
4920
 
rm -f conftest*
4921
 
 
4922
 
fi
4923
 
 
4924
 
if test $ac_cv_header_stdc = yes; then
4925
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4926
 
  cat >conftest.$ac_ext <<_ACEOF
4927
 
/* confdefs.h.  */
4928
 
_ACEOF
4929
 
cat confdefs.h >>conftest.$ac_ext
4930
 
cat >>conftest.$ac_ext <<_ACEOF
4931
 
/* end confdefs.h.  */
4932
 
#include <stdlib.h>
4933
 
 
4934
 
_ACEOF
4935
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936
 
  $EGREP "free" >/dev/null 2>&1; then
4937
 
  :
4938
 
else
4939
 
  ac_cv_header_stdc=no
4940
 
fi
4941
 
rm -f conftest*
4942
 
 
4943
 
fi
4944
 
 
4945
 
if test $ac_cv_header_stdc = yes; then
4946
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4947
 
  if test "$cross_compiling" = yes; then
4948
 
  :
4949
 
else
4950
 
  cat >conftest.$ac_ext <<_ACEOF
4951
 
/* confdefs.h.  */
4952
 
_ACEOF
4953
 
cat confdefs.h >>conftest.$ac_ext
4954
 
cat >>conftest.$ac_ext <<_ACEOF
4955
 
/* end confdefs.h.  */
4956
 
#include <ctype.h>
4957
 
#include <stdlib.h>
4958
 
#if ((' ' & 0x0FF) == 0x020)
4959
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4960
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4961
 
#else
4962
 
# define ISLOWER(c) \
4963
 
                   (('a' <= (c) && (c) <= 'i') \
4964
 
                     || ('j' <= (c) && (c) <= 'r') \
4965
 
                     || ('s' <= (c) && (c) <= 'z'))
4966
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4967
 
#endif
4968
 
 
4969
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4970
 
int
4971
 
main ()
4972
 
{
4973
 
  int i;
4974
 
  for (i = 0; i < 256; i++)
4975
 
    if (XOR (islower (i), ISLOWER (i))
4976
 
        || toupper (i) != TOUPPER (i))
4977
 
      return 2;
4978
 
  return 0;
4979
 
}
4980
 
_ACEOF
4981
 
rm -f conftest$ac_exeext
4982
 
if { (ac_try="$ac_link"
4983
 
case "(($ac_try" in
4984
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985
 
  *) ac_try_echo=$ac_try;;
4986
 
esac
4987
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988
 
  (eval "$ac_link") 2>&5
4989
 
  ac_status=$?
4990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4992
 
  { (case "(($ac_try" in
4993
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994
 
  *) ac_try_echo=$ac_try;;
4995
 
esac
4996
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997
 
  (eval "$ac_try") 2>&5
4998
 
  ac_status=$?
4999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000
 
  (exit $ac_status); }; }; then
5001
 
  :
5002
 
else
5003
 
  echo "$as_me: program exited with status $ac_status" >&5
5004
 
echo "$as_me: failed program was:" >&5
5005
 
sed 's/^/| /' conftest.$ac_ext >&5
5006
 
 
5007
 
( exit $ac_status )
5008
 
ac_cv_header_stdc=no
5009
 
fi
5010
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5011
 
fi
5012
 
 
5013
 
 
5014
 
fi
5015
 
fi
5016
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5017
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5018
 
if test $ac_cv_header_stdc = yes; then
5019
 
 
5020
 
cat >>confdefs.h <<\_ACEOF
5021
 
#define STDC_HEADERS 1
5022
 
_ACEOF
5023
 
 
5024
 
fi
5025
 
 
5026
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5027
 
 
5028
 
 
5029
 
 
5030
 
 
5031
 
 
5032
 
 
5033
 
 
5034
 
 
5035
 
 
5036
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5037
 
                  inttypes.h stdint.h unistd.h
5038
 
do
5039
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5041
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5042
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5043
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5044
 
else
5045
 
  cat >conftest.$ac_ext <<_ACEOF
5046
 
/* confdefs.h.  */
5047
 
_ACEOF
5048
 
cat confdefs.h >>conftest.$ac_ext
5049
 
cat >>conftest.$ac_ext <<_ACEOF
5050
 
/* end confdefs.h.  */
5051
 
$ac_includes_default
5052
 
 
5053
 
#include <$ac_header>
5054
 
_ACEOF
5055
 
rm -f conftest.$ac_objext
5056
 
if { (ac_try="$ac_compile"
5057
 
case "(($ac_try" in
5058
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059
 
  *) ac_try_echo=$ac_try;;
5060
 
esac
5061
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062
 
  (eval "$ac_compile") 2>conftest.er1
5063
 
  ac_status=$?
5064
 
  grep -v '^ *+' conftest.er1 >conftest.err
5065
 
  rm -f conftest.er1
5066
 
  cat conftest.err >&5
5067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068
 
  (exit $ac_status); } && {
5069
 
         test -z "$ac_c_werror_flag" ||
5070
 
         test ! -s conftest.err
5071
 
       } && test -s conftest.$ac_objext; then
5072
 
  eval "$as_ac_Header=yes"
5073
 
else
5074
 
  echo "$as_me: failed program was:" >&5
5075
 
sed 's/^/| /' conftest.$ac_ext >&5
5076
 
 
5077
 
        eval "$as_ac_Header=no"
5078
 
fi
5079
 
 
5080
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081
 
fi
5082
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5083
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5084
 
echo "${ECHO_T}$ac_res" >&6; }
5085
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5086
 
  cat >>confdefs.h <<_ACEOF
5087
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5088
 
_ACEOF
5089
 
 
5090
 
fi
5091
 
 
5092
 
done
5093
 
 
5094
 
 
5095
 
 
5096
 
 
5097
 
 
5098
 
 
5099
 
 
5100
 
 
5101
 
for ac_header in string.h unistd.h langinfo.h termio.h locale.h utime.h
5102
 
do
5103
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5104
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5105
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5106
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5109
 
fi
5110
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5111
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5112
 
echo "${ECHO_T}$ac_res" >&6; }
5113
 
else
5114
 
  # Is the header compilable?
5115
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5116
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5117
 
cat >conftest.$ac_ext <<_ACEOF
5118
 
/* confdefs.h.  */
5119
 
_ACEOF
5120
 
cat confdefs.h >>conftest.$ac_ext
5121
 
cat >>conftest.$ac_ext <<_ACEOF
5122
 
/* end confdefs.h.  */
5123
 
$ac_includes_default
5124
 
#include <$ac_header>
5125
 
_ACEOF
5126
 
rm -f conftest.$ac_objext
5127
 
if { (ac_try="$ac_compile"
5128
 
case "(($ac_try" in
5129
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130
 
  *) ac_try_echo=$ac_try;;
5131
 
esac
5132
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133
 
  (eval "$ac_compile") 2>conftest.er1
5134
 
  ac_status=$?
5135
 
  grep -v '^ *+' conftest.er1 >conftest.err
5136
 
  rm -f conftest.er1
5137
 
  cat conftest.err >&5
5138
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139
 
  (exit $ac_status); } && {
5140
 
         test -z "$ac_c_werror_flag" ||
5141
 
         test ! -s conftest.err
5142
 
       } && test -s conftest.$ac_objext; then
5143
 
  ac_header_compiler=yes
5144
 
else
5145
 
  echo "$as_me: failed program was:" >&5
5146
 
sed 's/^/| /' conftest.$ac_ext >&5
5147
 
 
5148
 
        ac_header_compiler=no
5149
 
fi
5150
 
 
5151
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5153
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5154
 
 
5155
 
# Is the header present?
5156
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5157
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5158
 
cat >conftest.$ac_ext <<_ACEOF
5159
 
/* confdefs.h.  */
5160
 
_ACEOF
5161
 
cat confdefs.h >>conftest.$ac_ext
5162
 
cat >>conftest.$ac_ext <<_ACEOF
5163
 
/* end confdefs.h.  */
5164
 
#include <$ac_header>
5165
 
_ACEOF
5166
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5167
 
case "(($ac_try" in
5168
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169
 
  *) ac_try_echo=$ac_try;;
5170
 
esac
5171
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5173
 
  ac_status=$?
5174
 
  grep -v '^ *+' conftest.er1 >conftest.err
5175
 
  rm -f conftest.er1
5176
 
  cat conftest.err >&5
5177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178
 
  (exit $ac_status); } >/dev/null && {
5179
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5180
 
         test ! -s conftest.err
5181
 
       }; then
5182
 
  ac_header_preproc=yes
5183
 
else
5184
 
  echo "$as_me: failed program was:" >&5
5185
 
sed 's/^/| /' conftest.$ac_ext >&5
5186
 
 
5187
 
  ac_header_preproc=no
5188
 
fi
5189
 
 
5190
 
rm -f conftest.err conftest.$ac_ext
5191
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5193
 
 
5194
 
# So?  What about this header?
5195
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5196
 
  yes:no: )
5197
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5198
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5200
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5201
 
    ac_header_preproc=yes
5202
 
    ;;
5203
 
  no:yes:* )
5204
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5205
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5206
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5207
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5208
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5209
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5210
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5211
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5212
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5213
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5214
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5215
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5216
 
    ( cat <<\_ASBOX
5217
 
## ------------------------------------ ##
5218
 
## Report this to bugs@x2go.org         ##
5219
 
## ------------------------------------ ##
5220
 
_ASBOX
5221
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5222
 
    ;;
5223
 
esac
5224
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5225
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5226
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5227
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5228
 
else
5229
 
  eval "$as_ac_Header=\$ac_header_preproc"
5230
 
fi
5231
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5232
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5233
 
echo "${ECHO_T}$ac_res" >&6; }
5234
 
 
5235
 
fi
5236
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5237
 
  cat >>confdefs.h <<_ACEOF
5238
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5239
 
_ACEOF
5240
 
 
5241
 
fi
5242
 
 
5243
 
done
5244
 
 
5245
 
 
5246
 
 
5247
 
 
5248
 
 
5249
 
for ac_func in seteuid stpcpy mmap
5250
 
do
5251
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5252
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5253
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5254
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5256
 
else
5257
 
  cat >conftest.$ac_ext <<_ACEOF
5258
 
/* confdefs.h.  */
5259
 
_ACEOF
5260
 
cat confdefs.h >>conftest.$ac_ext
5261
 
cat >>conftest.$ac_ext <<_ACEOF
5262
 
/* end confdefs.h.  */
5263
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5264
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5265
 
#define $ac_func innocuous_$ac_func
5266
 
 
5267
 
/* System header to define __stub macros and hopefully few prototypes,
5268
 
    which can conflict with char $ac_func (); below.
5269
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270
 
    <limits.h> exists even on freestanding compilers.  */
5271
 
 
5272
 
#ifdef __STDC__
5273
 
# include <limits.h>
5274
 
#else
5275
 
# include <assert.h>
5276
 
#endif
5277
 
 
5278
 
#undef $ac_func
5279
 
 
5280
 
/* Override any GCC internal prototype to avoid an error.
5281
 
   Use char because int might match the return type of a GCC
5282
 
   builtin and then its argument prototype would still apply.  */
5283
 
#ifdef __cplusplus
5284
 
extern "C"
5285
 
#endif
5286
 
char $ac_func ();
5287
 
/* The GNU C library defines this for functions which it implements
5288
 
    to always fail with ENOSYS.  Some functions are actually named
5289
 
    something starting with __ and the normal name is an alias.  */
5290
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5291
 
choke me
5292
 
#endif
5293
 
 
5294
 
int
5295
 
main ()
5296
 
{
5297
 
return $ac_func ();
5298
 
  ;
5299
 
  return 0;
5300
 
}
5301
 
_ACEOF
5302
 
rm -f conftest.$ac_objext conftest$ac_exeext
5303
 
if { (ac_try="$ac_link"
5304
 
case "(($ac_try" in
5305
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306
 
  *) ac_try_echo=$ac_try;;
5307
 
esac
5308
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309
 
  (eval "$ac_link") 2>conftest.er1
5310
 
  ac_status=$?
5311
 
  grep -v '^ *+' conftest.er1 >conftest.err
5312
 
  rm -f conftest.er1
5313
 
  cat conftest.err >&5
5314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
 
  (exit $ac_status); } && {
5316
 
         test -z "$ac_c_werror_flag" ||
5317
 
         test ! -s conftest.err
5318
 
       } && test -s conftest$ac_exeext &&
5319
 
       $as_test_x conftest$ac_exeext; then
5320
 
  eval "$as_ac_var=yes"
5321
 
else
5322
 
  echo "$as_me: failed program was:" >&5
5323
 
sed 's/^/| /' conftest.$ac_ext >&5
5324
 
 
5325
 
        eval "$as_ac_var=no"
5326
 
fi
5327
 
 
5328
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5329
 
      conftest$ac_exeext conftest.$ac_ext
5330
 
fi
5331
 
ac_res=`eval echo '${'$as_ac_var'}'`
5332
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5333
 
echo "${ECHO_T}$ac_res" >&6; }
5334
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5335
 
  cat >>confdefs.h <<_ACEOF
5336
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5337
 
_ACEOF
5338
 
 
5339
 
fi
5340
 
done
5341
 
 
5342
 
 
5343
 
for ac_func in mlock
5344
 
do
5345
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5346
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5347
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5348
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5349
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5350
 
else
5351
 
  cat >conftest.$ac_ext <<_ACEOF
5352
 
/* confdefs.h.  */
5353
 
_ACEOF
5354
 
cat confdefs.h >>conftest.$ac_ext
5355
 
cat >>conftest.$ac_ext <<_ACEOF
5356
 
/* end confdefs.h.  */
5357
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5358
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5359
 
#define $ac_func innocuous_$ac_func
5360
 
 
5361
 
/* System header to define __stub macros and hopefully few prototypes,
5362
 
    which can conflict with char $ac_func (); below.
5363
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364
 
    <limits.h> exists even on freestanding compilers.  */
5365
 
 
5366
 
#ifdef __STDC__
5367
 
# include <limits.h>
5368
 
#else
5369
 
# include <assert.h>
5370
 
#endif
5371
 
 
5372
 
#undef $ac_func
5373
 
 
5374
 
/* Override any GCC internal prototype to avoid an error.
5375
 
   Use char because int might match the return type of a GCC
5376
 
   builtin and then its argument prototype would still apply.  */
5377
 
#ifdef __cplusplus
5378
 
extern "C"
5379
 
#endif
5380
 
char $ac_func ();
5381
 
/* The GNU C library defines this for functions which it implements
5382
 
    to always fail with ENOSYS.  Some functions are actually named
5383
 
    something starting with __ and the normal name is an alias.  */
5384
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5385
 
choke me
5386
 
#endif
5387
 
 
5388
 
int
5389
 
main ()
5390
 
{
5391
 
return $ac_func ();
5392
 
  ;
5393
 
  return 0;
5394
 
}
5395
 
_ACEOF
5396
 
rm -f conftest.$ac_objext conftest$ac_exeext
5397
 
if { (ac_try="$ac_link"
5398
 
case "(($ac_try" in
5399
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400
 
  *) ac_try_echo=$ac_try;;
5401
 
esac
5402
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403
 
  (eval "$ac_link") 2>conftest.er1
5404
 
  ac_status=$?
5405
 
  grep -v '^ *+' conftest.er1 >conftest.err
5406
 
  rm -f conftest.er1
5407
 
  cat conftest.err >&5
5408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409
 
  (exit $ac_status); } && {
5410
 
         test -z "$ac_c_werror_flag" ||
5411
 
         test ! -s conftest.err
5412
 
       } && test -s conftest$ac_exeext &&
5413
 
       $as_test_x conftest$ac_exeext; then
5414
 
  eval "$as_ac_var=yes"
5415
 
else
5416
 
  echo "$as_me: failed program was:" >&5
5417
 
sed 's/^/| /' conftest.$ac_ext >&5
5418
 
 
5419
 
        eval "$as_ac_var=no"
5420
 
fi
5421
 
 
5422
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5423
 
      conftest$ac_exeext conftest.$ac_ext
5424
 
fi
5425
 
ac_res=`eval echo '${'$as_ac_var'}'`
5426
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5427
 
echo "${ECHO_T}$ac_res" >&6; }
5428
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5429
 
  cat >>confdefs.h <<_ACEOF
5430
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5431
 
_ACEOF
5432
 
 
5433
 
fi
5434
 
done
5435
 
 
5436
 
    if test "$ac_cv_func_mlock" = "no"; then
5437
 
 
5438
 
for ac_header in sys/mman.h
5439
 
do
5440
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5446
 
fi
5447
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5448
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5449
 
echo "${ECHO_T}$ac_res" >&6; }
5450
 
else
5451
 
  # Is the header compilable?
5452
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454
 
cat >conftest.$ac_ext <<_ACEOF
5455
 
/* confdefs.h.  */
5456
 
_ACEOF
5457
 
cat confdefs.h >>conftest.$ac_ext
5458
 
cat >>conftest.$ac_ext <<_ACEOF
5459
 
/* end confdefs.h.  */
5460
 
$ac_includes_default
5461
 
#include <$ac_header>
5462
 
_ACEOF
5463
 
rm -f conftest.$ac_objext
5464
 
if { (ac_try="$ac_compile"
5465
 
case "(($ac_try" in
5466
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
 
  *) ac_try_echo=$ac_try;;
5468
 
esac
5469
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470
 
  (eval "$ac_compile") 2>conftest.er1
5471
 
  ac_status=$?
5472
 
  grep -v '^ *+' conftest.er1 >conftest.err
5473
 
  rm -f conftest.er1
5474
 
  cat conftest.err >&5
5475
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
 
  (exit $ac_status); } && {
5477
 
         test -z "$ac_c_werror_flag" ||
5478
 
         test ! -s conftest.err
5479
 
       } && test -s conftest.$ac_objext; then
5480
 
  ac_header_compiler=yes
5481
 
else
5482
 
  echo "$as_me: failed program was:" >&5
5483
 
sed 's/^/| /' conftest.$ac_ext >&5
5484
 
 
5485
 
        ac_header_compiler=no
5486
 
fi
5487
 
 
5488
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5491
 
 
5492
 
# Is the header present?
5493
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495
 
cat >conftest.$ac_ext <<_ACEOF
5496
 
/* confdefs.h.  */
5497
 
_ACEOF
5498
 
cat confdefs.h >>conftest.$ac_ext
5499
 
cat >>conftest.$ac_ext <<_ACEOF
5500
 
/* end confdefs.h.  */
5501
 
#include <$ac_header>
5502
 
_ACEOF
5503
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5504
 
case "(($ac_try" in
5505
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506
 
  *) ac_try_echo=$ac_try;;
5507
 
esac
5508
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510
 
  ac_status=$?
5511
 
  grep -v '^ *+' conftest.er1 >conftest.err
5512
 
  rm -f conftest.er1
5513
 
  cat conftest.err >&5
5514
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515
 
  (exit $ac_status); } >/dev/null && {
5516
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517
 
         test ! -s conftest.err
5518
 
       }; then
5519
 
  ac_header_preproc=yes
5520
 
else
5521
 
  echo "$as_me: failed program was:" >&5
5522
 
sed 's/^/| /' conftest.$ac_ext >&5
5523
 
 
5524
 
  ac_header_preproc=no
5525
 
fi
5526
 
 
5527
 
rm -f conftest.err conftest.$ac_ext
5528
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5530
 
 
5531
 
# So?  What about this header?
5532
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533
 
  yes:no: )
5534
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538
 
    ac_header_preproc=yes
5539
 
    ;;
5540
 
  no:yes:* )
5541
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5544
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5545
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5548
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5549
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553
 
    ( cat <<\_ASBOX
5554
 
## ------------------------------------ ##
5555
 
## Report this to bugs@x2go.org         ##
5556
 
## ------------------------------------ ##
5557
 
_ASBOX
5558
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5559
 
    ;;
5560
 
esac
5561
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5562
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5563
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5564
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5565
 
else
5566
 
  eval "$as_ac_Header=\$ac_header_preproc"
5567
 
fi
5568
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5569
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5570
 
echo "${ECHO_T}$ac_res" >&6; }
5571
 
 
5572
 
fi
5573
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574
 
  cat >>confdefs.h <<_ACEOF
5575
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576
 
_ACEOF
5577
 
 
5578
 
fi
5579
 
 
5580
 
done
5581
 
 
5582
 
        if test "$ac_cv_header_sys_mman_h" = "yes"; then
5583
 
            # Add librt to LIBS:
5584
 
 
5585
 
{ echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
5586
 
echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6; }
5587
 
if test "${ac_cv_lib_rt_memlk+set}" = set; then
5588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5589
 
else
5590
 
  ac_check_lib_save_LIBS=$LIBS
5591
 
LIBS="-lrt  $LIBS"
5592
 
cat >conftest.$ac_ext <<_ACEOF
5593
 
/* confdefs.h.  */
5594
 
_ACEOF
5595
 
cat confdefs.h >>conftest.$ac_ext
5596
 
cat >>conftest.$ac_ext <<_ACEOF
5597
 
/* end confdefs.h.  */
5598
 
 
5599
 
/* Override any GCC internal prototype to avoid an error.
5600
 
   Use char because int might match the return type of a GCC
5601
 
   builtin and then its argument prototype would still apply.  */
5602
 
#ifdef __cplusplus
5603
 
extern "C"
5604
 
#endif
5605
 
char memlk ();
5606
 
int
5607
 
main ()
5608
 
{
5609
 
return memlk ();
5610
 
  ;
5611
 
  return 0;
5612
 
}
5613
 
_ACEOF
5614
 
rm -f conftest.$ac_objext conftest$ac_exeext
5615
 
if { (ac_try="$ac_link"
5616
 
case "(($ac_try" in
5617
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618
 
  *) ac_try_echo=$ac_try;;
5619
 
esac
5620
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621
 
  (eval "$ac_link") 2>conftest.er1
5622
 
  ac_status=$?
5623
 
  grep -v '^ *+' conftest.er1 >conftest.err
5624
 
  rm -f conftest.er1
5625
 
  cat conftest.err >&5
5626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627
 
  (exit $ac_status); } && {
5628
 
         test -z "$ac_c_werror_flag" ||
5629
 
         test ! -s conftest.err
5630
 
       } && test -s conftest$ac_exeext &&
5631
 
       $as_test_x conftest$ac_exeext; then
5632
 
  ac_cv_lib_rt_memlk=yes
5633
 
else
5634
 
  echo "$as_me: failed program was:" >&5
5635
 
sed 's/^/| /' conftest.$ac_ext >&5
5636
 
 
5637
 
        ac_cv_lib_rt_memlk=no
5638
 
fi
5639
 
 
5640
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5641
 
      conftest$ac_exeext conftest.$ac_ext
5642
 
LIBS=$ac_check_lib_save_LIBS
5643
 
fi
5644
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
5645
 
echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6; }
5646
 
if test $ac_cv_lib_rt_memlk = yes; then
5647
 
  cat >>confdefs.h <<_ACEOF
5648
 
#define HAVE_LIBRT 1
5649
 
_ACEOF
5650
 
 
5651
 
  LIBS="-lrt $LIBS"
5652
 
 
5653
 
fi
5654
 
 
5655
 
            { echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
5656
 
echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6; }
5657
 
if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
5658
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5659
 
else
5660
 
  cat >conftest.$ac_ext <<_ACEOF
5661
 
/* confdefs.h.  */
5662
 
_ACEOF
5663
 
cat confdefs.h >>conftest.$ac_ext
5664
 
cat >>conftest.$ac_ext <<_ACEOF
5665
 
/* end confdefs.h.  */
5666
 
 
5667
 
                    #include <assert.h>
5668
 
                    #ifdef HAVE_SYS_MMAN_H
5669
 
                    #include <sys/mman.h>
5670
 
                    #endif
5671
 
 
5672
 
int
5673
 
main ()
5674
 
{
5675
 
 
5676
 
                    int i;
5677
 
 
5678
 
                    /* glibc defines this for functions which it implements
5679
 
                     * to always fail with ENOSYS.  Some functions are actually
5680
 
                     * named something starting with __ and the normal name
5681
 
                     * is an alias.  */
5682
 
                    #if defined (__stub_mlock) || defined (__stub___mlock)
5683
 
                    choke me
5684
 
                    #else
5685
 
                    mlock(&i, 4);
5686
 
                    #endif
5687
 
                    ; return 0;
5688
 
 
5689
 
  ;
5690
 
  return 0;
5691
 
}
5692
 
_ACEOF
5693
 
rm -f conftest.$ac_objext conftest$ac_exeext
5694
 
if { (ac_try="$ac_link"
5695
 
case "(($ac_try" in
5696
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697
 
  *) ac_try_echo=$ac_try;;
5698
 
esac
5699
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700
 
  (eval "$ac_link") 2>conftest.er1
5701
 
  ac_status=$?
5702
 
  grep -v '^ *+' conftest.er1 >conftest.err
5703
 
  rm -f conftest.er1
5704
 
  cat conftest.err >&5
5705
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706
 
  (exit $ac_status); } && {
5707
 
         test -z "$ac_c_werror_flag" ||
5708
 
         test ! -s conftest.err
5709
 
       } && test -s conftest$ac_exeext &&
5710
 
       $as_test_x conftest$ac_exeext; then
5711
 
  gnupg_cv_mlock_is_in_sys_mman=yes
5712
 
else
5713
 
  echo "$as_me: failed program was:" >&5
5714
 
sed 's/^/| /' conftest.$ac_ext >&5
5715
 
 
5716
 
        gnupg_cv_mlock_is_in_sys_mman=no
5717
 
fi
5718
 
 
5719
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720
 
      conftest$ac_exeext conftest.$ac_ext
5721
 
fi
5722
 
{ echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
5723
 
echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6; }
5724
 
            if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
5725
 
 
5726
 
cat >>confdefs.h <<\_ACEOF
5727
 
#define HAVE_MLOCK 1
5728
 
_ACEOF
5729
 
 
5730
 
            fi
5731
 
        fi
5732
 
    fi
5733
 
    if test "$ac_cv_func_mlock" = "yes"; then
5734
 
        { echo "$as_me:$LINENO: checking whether mlock is broken" >&5
5735
 
echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6; }
5736
 
          if test "${gnupg_cv_have_broken_mlock+set}" = set; then
5737
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5738
 
else
5739
 
  if test "$cross_compiling" = yes; then
5740
 
  gnupg_cv_have_broken_mlock="assume-no"
5741
 
 
5742
 
else
5743
 
  cat >conftest.$ac_ext <<_ACEOF
5744
 
/* confdefs.h.  */
5745
 
_ACEOF
5746
 
cat confdefs.h >>conftest.$ac_ext
5747
 
cat >>conftest.$ac_ext <<_ACEOF
5748
 
/* end confdefs.h.  */
5749
 
 
5750
 
                #include <stdlib.h>
5751
 
                #include <unistd.h>
5752
 
                #include <errno.h>
5753
 
                #include <sys/mman.h>
5754
 
                #include <sys/types.h>
5755
 
                #include <fcntl.h>
5756
 
 
5757
 
                int main()
5758
 
                {
5759
 
                    char *pool;
5760
 
                    int err;
5761
 
                    long int pgsize = getpagesize();
5762
 
 
5763
 
                    pool = malloc( 4096 + pgsize );
5764
 
                    if( !pool )
5765
 
                        return 2;
5766
 
                    pool += (pgsize - ((long int)pool % pgsize));
5767
 
 
5768
 
                    err = mlock( pool, 4096 );
5769
 
                    if( !err || errno == EPERM )
5770
 
                        return 0; /* okay */
5771
 
 
5772
 
                    return 1;  /* hmmm */
5773
 
                }
5774
 
 
5775
 
 
5776
 
_ACEOF
5777
 
rm -f conftest$ac_exeext
5778
 
if { (ac_try="$ac_link"
5779
 
case "(($ac_try" in
5780
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781
 
  *) ac_try_echo=$ac_try;;
5782
 
esac
5783
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784
 
  (eval "$ac_link") 2>&5
5785
 
  ac_status=$?
5786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5788
 
  { (case "(($ac_try" in
5789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790
 
  *) ac_try_echo=$ac_try;;
5791
 
esac
5792
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793
 
  (eval "$ac_try") 2>&5
5794
 
  ac_status=$?
5795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
 
  (exit $ac_status); }; }; then
5797
 
  gnupg_cv_have_broken_mlock="no"
5798
 
else
5799
 
  echo "$as_me: program exited with status $ac_status" >&5
5800
 
echo "$as_me: failed program was:" >&5
5801
 
sed 's/^/| /' conftest.$ac_ext >&5
5802
 
 
5803
 
( exit $ac_status )
5804
 
gnupg_cv_have_broken_mlock="yes"
5805
 
fi
5806
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5807
 
fi
5808
 
 
5809
 
 
5810
 
 
5811
 
fi
5812
 
 
5813
 
         if test "$gnupg_cv_have_broken_mlock" = "yes"; then
5814
 
 
5815
 
cat >>confdefs.h <<\_ACEOF
5816
 
#define HAVE_BROKEN_MLOCK 1
5817
 
_ACEOF
5818
 
 
5819
 
             { echo "$as_me:$LINENO: result: yes" >&5
5820
 
echo "${ECHO_T}yes" >&6; }
5821
 
 
5822
 
for ac_func in plock
5823
 
do
5824
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5825
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5826
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5827
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5828
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5829
 
else
5830
 
  cat >conftest.$ac_ext <<_ACEOF
5831
 
/* confdefs.h.  */
5832
 
_ACEOF
5833
 
cat confdefs.h >>conftest.$ac_ext
5834
 
cat >>conftest.$ac_ext <<_ACEOF
5835
 
/* end confdefs.h.  */
5836
 
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5837
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5838
 
#define $ac_func innocuous_$ac_func
5839
 
 
5840
 
/* System header to define __stub macros and hopefully few prototypes,
5841
 
    which can conflict with char $ac_func (); below.
5842
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843
 
    <limits.h> exists even on freestanding compilers.  */
5844
 
 
5845
 
#ifdef __STDC__
5846
 
# include <limits.h>
5847
 
#else
5848
 
# include <assert.h>
5849
 
#endif
5850
 
 
5851
 
#undef $ac_func
5852
 
 
5853
 
/* Override any GCC internal prototype to avoid an error.
5854
 
   Use char because int might match the return type of a GCC
5855
 
   builtin and then its argument prototype would still apply.  */
5856
 
#ifdef __cplusplus
5857
 
extern "C"
5858
 
#endif
5859
 
char $ac_func ();
5860
 
/* The GNU C library defines this for functions which it implements
5861
 
    to always fail with ENOSYS.  Some functions are actually named
5862
 
    something starting with __ and the normal name is an alias.  */
5863
 
#if defined __stub_$ac_func || defined __stub___$ac_func
5864
 
choke me
5865
 
#endif
5866
 
 
5867
 
int
5868
 
main ()
5869
 
{
5870
 
return $ac_func ();
5871
 
  ;
5872
 
  return 0;
5873
 
}
5874
 
_ACEOF
5875
 
rm -f conftest.$ac_objext conftest$ac_exeext
5876
 
if { (ac_try="$ac_link"
5877
 
case "(($ac_try" in
5878
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879
 
  *) ac_try_echo=$ac_try;;
5880
 
esac
5881
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882
 
  (eval "$ac_link") 2>conftest.er1
5883
 
  ac_status=$?
5884
 
  grep -v '^ *+' conftest.er1 >conftest.err
5885
 
  rm -f conftest.er1
5886
 
  cat conftest.err >&5
5887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888
 
  (exit $ac_status); } && {
5889
 
         test -z "$ac_c_werror_flag" ||
5890
 
         test ! -s conftest.err
5891
 
       } && test -s conftest$ac_exeext &&
5892
 
       $as_test_x conftest$ac_exeext; then
5893
 
  eval "$as_ac_var=yes"
5894
 
else
5895
 
  echo "$as_me: failed program was:" >&5
5896
 
sed 's/^/| /' conftest.$ac_ext >&5
5897
 
 
5898
 
        eval "$as_ac_var=no"
5899
 
fi
5900
 
 
5901
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5902
 
      conftest$ac_exeext conftest.$ac_ext
5903
 
fi
5904
 
ac_res=`eval echo '${'$as_ac_var'}'`
5905
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5906
 
echo "${ECHO_T}$ac_res" >&6; }
5907
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
5908
 
  cat >>confdefs.h <<_ACEOF
5909
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5910
 
_ACEOF
5911
 
 
5912
 
fi
5913
 
done
5914
 
 
5915
 
         else
5916
 
            if test "$gnupg_cv_have_broken_mlock" = "no"; then
5917
 
                { echo "$as_me:$LINENO: result: no" >&5
5918
 
echo "${ECHO_T}no" >&6; }
5919
 
            else
5920
 
                { echo "$as_me:$LINENO: result: assuming no" >&5
5921
 
echo "${ECHO_T}assuming no" >&6; }
5922
 
            fi
5923
 
         fi
5924
 
    fi
5925
 
 
5926
 
 
5927
 
 
5928
 
 
5929
 
 { echo "$as_me:$LINENO: checking for byte typedef" >&5
5930
 
echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6; }
5931
 
    if test "${gnupg_cv_typedef_byte+set}" = set; then
5932
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5933
 
else
5934
 
  cat >conftest.$ac_ext <<_ACEOF
5935
 
/* confdefs.h.  */
5936
 
_ACEOF
5937
 
cat confdefs.h >>conftest.$ac_ext
5938
 
cat >>conftest.$ac_ext <<_ACEOF
5939
 
/* end confdefs.h.  */
5940
 
#define _GNU_SOURCE 1
5941
 
    #include <stdlib.h>
5942
 
    #include <sys/types.h>
5943
 
int
5944
 
main ()
5945
 
{
5946
 
 
5947
 
    #undef byte
5948
 
    int a = sizeof(byte);
5949
 
 
5950
 
  ;
5951
 
  return 0;
5952
 
}
5953
 
_ACEOF
5954
 
rm -f conftest.$ac_objext
5955
 
if { (ac_try="$ac_compile"
5956
 
case "(($ac_try" in
5957
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958
 
  *) ac_try_echo=$ac_try;;
5959
 
esac
5960
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961
 
  (eval "$ac_compile") 2>conftest.er1
5962
 
  ac_status=$?
5963
 
  grep -v '^ *+' conftest.er1 >conftest.err
5964
 
  rm -f conftest.er1
5965
 
  cat conftest.err >&5
5966
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967
 
  (exit $ac_status); } && {
5968
 
         test -z "$ac_c_werror_flag" ||
5969
 
         test ! -s conftest.err
5970
 
       } && test -s conftest.$ac_objext; then
5971
 
  gnupg_cv_typedef_byte=yes
5972
 
else
5973
 
  echo "$as_me: failed program was:" >&5
5974
 
sed 's/^/| /' conftest.$ac_ext >&5
5975
 
 
5976
 
        gnupg_cv_typedef_byte=no
5977
 
fi
5978
 
 
5979
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980
 
fi
5981
 
 
5982
 
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
5983
 
echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6; }
5984
 
    if test "$gnupg_cv_typedef_byte" = yes; then
5985
 
 
5986
 
cat >>confdefs.h <<\_ACEOF
5987
 
#define HAVE_BYTE_TYPEDEF 1
5988
 
_ACEOF
5989
 
 
5990
 
    fi
5991
 
 
5992
 
 { echo "$as_me:$LINENO: checking for ulong typedef" >&5
5993
 
echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6; }
5994
 
    if test "${gnupg_cv_typedef_ulong+set}" = set; then
5995
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5996
 
else
5997
 
  cat >conftest.$ac_ext <<_ACEOF
5998
 
/* confdefs.h.  */
5999
 
_ACEOF
6000
 
cat confdefs.h >>conftest.$ac_ext
6001
 
cat >>conftest.$ac_ext <<_ACEOF
6002
 
/* end confdefs.h.  */
6003
 
#define _GNU_SOURCE 1
6004
 
    #include <stdlib.h>
6005
 
    #include <sys/types.h>
6006
 
int
6007
 
main ()
6008
 
{
6009
 
 
6010
 
    #undef ulong
6011
 
    int a = sizeof(ulong);
6012
 
 
6013
 
  ;
6014
 
  return 0;
6015
 
}
6016
 
_ACEOF
6017
 
rm -f conftest.$ac_objext
6018
 
if { (ac_try="$ac_compile"
6019
 
case "(($ac_try" in
6020
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021
 
  *) ac_try_echo=$ac_try;;
6022
 
esac
6023
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024
 
  (eval "$ac_compile") 2>conftest.er1
6025
 
  ac_status=$?
6026
 
  grep -v '^ *+' conftest.er1 >conftest.err
6027
 
  rm -f conftest.er1
6028
 
  cat conftest.err >&5
6029
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030
 
  (exit $ac_status); } && {
6031
 
         test -z "$ac_c_werror_flag" ||
6032
 
         test ! -s conftest.err
6033
 
       } && test -s conftest.$ac_objext; then
6034
 
  gnupg_cv_typedef_ulong=yes
6035
 
else
6036
 
  echo "$as_me: failed program was:" >&5
6037
 
sed 's/^/| /' conftest.$ac_ext >&5
6038
 
 
6039
 
        gnupg_cv_typedef_ulong=no
6040
 
fi
6041
 
 
6042
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043
 
fi
6044
 
 
6045
 
    { echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
6046
 
echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6; }
6047
 
    if test "$gnupg_cv_typedef_ulong" = yes; then
6048
 
 
6049
 
cat >>confdefs.h <<\_ACEOF
6050
 
#define HAVE_ULONG_TYPEDEF 1
6051
 
_ACEOF
6052
 
 
6053
 
    fi
6054
 
 
6055
 
 
6056
 
 
6057
 
# Check whether --with-libcap was given.
6058
 
if test "${with_libcap+set}" = set; then
6059
 
  withval=$with_libcap;
6060
 
fi
6061
 
 
6062
 
 
6063
 
if test "x$with_libcap" != "xno"; then
6064
 
  # Extract the first word of "setcap", so it can be a program name with args.
6065
 
set dummy setcap; ac_word=$2
6066
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6067
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068
 
if test "${ac_cv_path_SETCAP+set}" = set; then
6069
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6070
 
else
6071
 
  case $SETCAP in
6072
 
  [\\/]* | ?:[\\/]*)
6073
 
  ac_cv_path_SETCAP="$SETCAP" # Let the user override the test with a path.
6074
 
  ;;
6075
 
  *)
6076
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077
 
as_dummy=""$PATH:/sbin:/usr/sbin""
6078
 
for as_dir in $as_dummy
6079
 
do
6080
 
  IFS=$as_save_IFS
6081
 
  test -z "$as_dir" && as_dir=.
6082
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6083
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084
 
    ac_cv_path_SETCAP="$as_dir/$ac_word$ac_exec_ext"
6085
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086
 
    break 2
6087
 
  fi
6088
 
done
6089
 
done
6090
 
IFS=$as_save_IFS
6091
 
 
6092
 
  test -z "$ac_cv_path_SETCAP" && ac_cv_path_SETCAP=":"
6093
 
  ;;
6094
 
esac
6095
 
fi
6096
 
SETCAP=$ac_cv_path_SETCAP
6097
 
if test -n "$SETCAP"; then
6098
 
  { echo "$as_me:$LINENO: result: $SETCAP" >&5
6099
 
echo "${ECHO_T}$SETCAP" >&6; }
6100
 
else
6101
 
  { echo "$as_me:$LINENO: result: no" >&5
6102
 
echo "${ECHO_T}no" >&6; }
6103
 
fi
6104
 
 
6105
 
 
6106
 
  { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
6107
 
echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
6108
 
if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
6109
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6110
 
else
6111
 
  ac_check_lib_save_LIBS=$LIBS
6112
 
LIBS="-lcap  $LIBS"
6113
 
cat >conftest.$ac_ext <<_ACEOF
6114
 
/* confdefs.h.  */
6115
 
_ACEOF
6116
 
cat confdefs.h >>conftest.$ac_ext
6117
 
cat >>conftest.$ac_ext <<_ACEOF
6118
 
/* end confdefs.h.  */
6119
 
 
6120
 
/* Override any GCC internal prototype to avoid an error.
6121
 
   Use char because int might match the return type of a GCC
6122
 
   builtin and then its argument prototype would still apply.  */
6123
 
#ifdef __cplusplus
6124
 
extern "C"
6125
 
#endif
6126
 
char cap_set_proc ();
6127
 
int
6128
 
main ()
6129
 
{
6130
 
return cap_set_proc ();
6131
 
  ;
6132
 
  return 0;
6133
 
}
6134
 
_ACEOF
6135
 
rm -f conftest.$ac_objext conftest$ac_exeext
6136
 
if { (ac_try="$ac_link"
6137
 
case "(($ac_try" in
6138
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139
 
  *) ac_try_echo=$ac_try;;
6140
 
esac
6141
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142
 
  (eval "$ac_link") 2>conftest.er1
6143
 
  ac_status=$?
6144
 
  grep -v '^ *+' conftest.er1 >conftest.err
6145
 
  rm -f conftest.er1
6146
 
  cat conftest.err >&5
6147
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148
 
  (exit $ac_status); } && {
6149
 
         test -z "$ac_c_werror_flag" ||
6150
 
         test ! -s conftest.err
6151
 
       } && test -s conftest$ac_exeext &&
6152
 
       $as_test_x conftest$ac_exeext; then
6153
 
  ac_cv_lib_cap_cap_set_proc=yes
6154
 
else
6155
 
  echo "$as_me: failed program was:" >&5
6156
 
sed 's/^/| /' conftest.$ac_ext >&5
6157
 
 
6158
 
        ac_cv_lib_cap_cap_set_proc=no
6159
 
fi
6160
 
 
6161
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6162
 
      conftest$ac_exeext conftest.$ac_ext
6163
 
LIBS=$ac_check_lib_save_LIBS
6164
 
fi
6165
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
6166
 
echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
6167
 
if test $ac_cv_lib_cap_cap_set_proc = yes; then
6168
 
 
6169
 
 
6170
 
cat >>confdefs.h <<\_ACEOF
6171
 
#define USE_CAPABILITIES 1
6172
 
_ACEOF
6173
 
 
6174
 
    LIBCAP=-lcap
6175
 
 
6176
 
fi
6177
 
 
6178
 
fi
6179
 
 
6180
 
 
6181
 
# Check whether --enable-pinentry-curses was given.
6182
 
if test "${enable_pinentry_curses+set}" = set; then
6183
 
  enableval=$enable_pinentry_curses; pinentry_curses=$enableval
6184
 
else
6185
 
  pinentry_curses=maybe
6186
 
fi
6187
 
 
6188
 
# Check whether --enable-fallback-curses was given.
6189
 
if test "${enable_fallback_curses+set}" = set; then
6190
 
  enableval=$enable_fallback_curses; fallback_curses=$enableval
6191
 
else
6192
 
  fallback_curses=maybe
6193
 
fi
6194
 
 
6195
 
 
6196
 
if test "$pinentry_curses" != "no" -o "$fallback_curses" != "no"; then
6197
 
 
6198
 
  # Check whether --enable-ncurses was given.
6199
 
if test "${enable_ncurses+set}" = set; then
6200
 
  enableval=$enable_ncurses;
6201
 
else
6202
 
  enable_ncurses=yes
6203
 
fi
6204
 
 
6205
 
  if test "$enable_ncurses" = yes; then
6206
 
    { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
6207
 
echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
6208
 
if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
6209
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6210
 
else
6211
 
  ac_check_lib_save_LIBS=$LIBS
6212
 
LIBS="-lncurses  $LIBS"
6213
 
cat >conftest.$ac_ext <<_ACEOF
6214
 
/* confdefs.h.  */
6215
 
_ACEOF
6216
 
cat confdefs.h >>conftest.$ac_ext
6217
 
cat >>conftest.$ac_ext <<_ACEOF
6218
 
/* end confdefs.h.  */
6219
 
 
6220
 
/* Override any GCC internal prototype to avoid an error.
6221
 
   Use char because int might match the return type of a GCC
6222
 
   builtin and then its argument prototype would still apply.  */
6223
 
#ifdef __cplusplus
6224
 
extern "C"
6225
 
#endif
6226
 
char initscr ();
6227
 
int
6228
 
main ()
6229
 
{
6230
 
return initscr ();
6231
 
  ;
6232
 
  return 0;
6233
 
}
6234
 
_ACEOF
6235
 
rm -f conftest.$ac_objext conftest$ac_exeext
6236
 
if { (ac_try="$ac_link"
6237
 
case "(($ac_try" in
6238
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239
 
  *) ac_try_echo=$ac_try;;
6240
 
esac
6241
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242
 
  (eval "$ac_link") 2>conftest.er1
6243
 
  ac_status=$?
6244
 
  grep -v '^ *+' conftest.er1 >conftest.err
6245
 
  rm -f conftest.er1
6246
 
  cat conftest.err >&5
6247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248
 
  (exit $ac_status); } && {
6249
 
         test -z "$ac_c_werror_flag" ||
6250
 
         test ! -s conftest.err
6251
 
       } && test -s conftest$ac_exeext &&
6252
 
       $as_test_x conftest$ac_exeext; then
6253
 
  ac_cv_lib_ncurses_initscr=yes
6254
 
else
6255
 
  echo "$as_me: failed program was:" >&5
6256
 
sed 's/^/| /' conftest.$ac_ext >&5
6257
 
 
6258
 
        ac_cv_lib_ncurses_initscr=no
6259
 
fi
6260
 
 
6261
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6262
 
      conftest$ac_exeext conftest.$ac_ext
6263
 
LIBS=$ac_check_lib_save_LIBS
6264
 
fi
6265
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
6266
 
echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
6267
 
if test $ac_cv_lib_ncurses_initscr = yes; then
6268
 
  LIBNCURSES="-lncurses"
6269
 
fi
6270
 
 
6271
 
    if test "$LIBNCURSES"; then
6272
 
      # Use ncurses header files instead of the ordinary ones, if possible;
6273
 
      # is there a better way of doing this, that avoids looking in specific
6274
 
      # directories?
6275
 
 
6276
 
# Check whether --with-ncurses-include-dir was given.
6277
 
if test "${with_ncurses_include_dir+set}" = set; then
6278
 
  withval=$with_ncurses_include_dir;
6279
 
fi
6280
 
      if test "${with_ncurses_include_dir+set}" = set; then
6281
 
        { echo "$as_me:$LINENO: checking for ncurses include dir" >&5
6282
 
echo $ECHO_N "checking for ncurses include dir... $ECHO_C" >&6; }
6283
 
        case "$with_ncurses_include_dir" in
6284
 
          no|none)
6285
 
            inetutils_cv_includedir_ncurses=none;;
6286
 
          *)
6287
 
            inetutils_cv_includedir_ncurses="$with_ncurses_include_dir";;
6288
 
        esac
6289
 
        { echo "$as_me:$LINENO: result: $inetutils_cv_includedir_ncurses" >&5
6290
 
echo "${ECHO_T}$inetutils_cv_includedir_ncurses" >&6; }
6291
 
      else
6292
 
        { echo "$as_me:$LINENO: checking for ncurses include dir" >&5
6293
 
echo $ECHO_N "checking for ncurses include dir... $ECHO_C" >&6; }
6294
 
if test "${inetutils_cv_includedir_ncurses+set}" = set; then
6295
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6296
 
else
6297
 
  for D in $includedir $prefix/include /local/include /usr/local/include /include /usr/include; do
6298
 
            if test -d $D/ncurses; then
6299
 
              inetutils_cv_includedir_ncurses="$D/ncurses"
6300
 
              break
6301
 
            fi
6302
 
            test "$inetutils_cv_includedir_ncurses" \
6303
 
              || inetutils_cv_includedir_ncurses=none
6304
 
          done
6305
 
fi
6306
 
{ echo "$as_me:$LINENO: result: $inetutils_cv_includedir_ncurses" >&5
6307
 
echo "${ECHO_T}$inetutils_cv_includedir_ncurses" >&6; }
6308
 
      fi
6309
 
      if test "$inetutils_cv_includedir_ncurses" = none; then
6310
 
        NCURSES_INCLUDE=""
6311
 
      else
6312
 
        NCURSES_INCLUDE="-I$inetutils_cv_includedir_ncurses"
6313
 
      fi
6314
 
    fi
6315
 
  fi
6316
 
 
6317
 
 
6318
 
 
6319
 
 
6320
 
  if test "$LIBNCURSES"; then
6321
 
    LIBTERMCAP="$LIBNCURSES"
6322
 
  else
6323
 
    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6324
 
echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
6325
 
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6326
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6327
 
else
6328
 
  ac_check_lib_save_LIBS=$LIBS
6329
 
LIBS="-lcurses  $LIBS"
6330
 
cat >conftest.$ac_ext <<_ACEOF
6331
 
/* confdefs.h.  */
6332
 
_ACEOF
6333
 
cat confdefs.h >>conftest.$ac_ext
6334
 
cat >>conftest.$ac_ext <<_ACEOF
6335
 
/* end confdefs.h.  */
6336
 
 
6337
 
/* Override any GCC internal prototype to avoid an error.
6338
 
   Use char because int might match the return type of a GCC
6339
 
   builtin and then its argument prototype would still apply.  */
6340
 
#ifdef __cplusplus
6341
 
extern "C"
6342
 
#endif
6343
 
char tgetent ();
6344
 
int
6345
 
main ()
6346
 
{
6347
 
return tgetent ();
6348
 
  ;
6349
 
  return 0;
6350
 
}
6351
 
_ACEOF
6352
 
rm -f conftest.$ac_objext conftest$ac_exeext
6353
 
if { (ac_try="$ac_link"
6354
 
case "(($ac_try" in
6355
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356
 
  *) ac_try_echo=$ac_try;;
6357
 
esac
6358
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359
 
  (eval "$ac_link") 2>conftest.er1
6360
 
  ac_status=$?
6361
 
  grep -v '^ *+' conftest.er1 >conftest.err
6362
 
  rm -f conftest.er1
6363
 
  cat conftest.err >&5
6364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365
 
  (exit $ac_status); } && {
6366
 
         test -z "$ac_c_werror_flag" ||
6367
 
         test ! -s conftest.err
6368
 
       } && test -s conftest$ac_exeext &&
6369
 
       $as_test_x conftest$ac_exeext; then
6370
 
  ac_cv_lib_curses_tgetent=yes
6371
 
else
6372
 
  echo "$as_me: failed program was:" >&5
6373
 
sed 's/^/| /' conftest.$ac_ext >&5
6374
 
 
6375
 
        ac_cv_lib_curses_tgetent=no
6376
 
fi
6377
 
 
6378
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6379
 
      conftest$ac_exeext conftest.$ac_ext
6380
 
LIBS=$ac_check_lib_save_LIBS
6381
 
fi
6382
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6383
 
echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
6384
 
if test $ac_cv_lib_curses_tgetent = yes; then
6385
 
  LIBTERMCAP=-lcurses
6386
 
fi
6387
 
 
6388
 
    if test "$ac_cv_lib_curses_tgetent" = no; then
6389
 
      { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
6390
 
echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
6391
 
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
6392
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6393
 
else
6394
 
  ac_check_lib_save_LIBS=$LIBS
6395
 
LIBS="-ltermcap  $LIBS"
6396
 
cat >conftest.$ac_ext <<_ACEOF
6397
 
/* confdefs.h.  */
6398
 
_ACEOF
6399
 
cat confdefs.h >>conftest.$ac_ext
6400
 
cat >>conftest.$ac_ext <<_ACEOF
6401
 
/* end confdefs.h.  */
6402
 
 
6403
 
/* Override any GCC internal prototype to avoid an error.
6404
 
   Use char because int might match the return type of a GCC
6405
 
   builtin and then its argument prototype would still apply.  */
6406
 
#ifdef __cplusplus
6407
 
extern "C"
6408
 
#endif
6409
 
char tgetent ();
6410
 
int
6411
 
main ()
6412
 
{
6413
 
return tgetent ();
6414
 
  ;
6415
 
  return 0;
6416
 
}
6417
 
_ACEOF
6418
 
rm -f conftest.$ac_objext conftest$ac_exeext
6419
 
if { (ac_try="$ac_link"
6420
 
case "(($ac_try" in
6421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422
 
  *) ac_try_echo=$ac_try;;
6423
 
esac
6424
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425
 
  (eval "$ac_link") 2>conftest.er1
6426
 
  ac_status=$?
6427
 
  grep -v '^ *+' conftest.er1 >conftest.err
6428
 
  rm -f conftest.er1
6429
 
  cat conftest.err >&5
6430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431
 
  (exit $ac_status); } && {
6432
 
         test -z "$ac_c_werror_flag" ||
6433
 
         test ! -s conftest.err
6434
 
       } && test -s conftest$ac_exeext &&
6435
 
       $as_test_x conftest$ac_exeext; then
6436
 
  ac_cv_lib_termcap_tgetent=yes
6437
 
else
6438
 
  echo "$as_me: failed program was:" >&5
6439
 
sed 's/^/| /' conftest.$ac_ext >&5
6440
 
 
6441
 
        ac_cv_lib_termcap_tgetent=no
6442
 
fi
6443
 
 
6444
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6445
 
      conftest$ac_exeext conftest.$ac_ext
6446
 
LIBS=$ac_check_lib_save_LIBS
6447
 
fi
6448
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
6449
 
echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
6450
 
if test $ac_cv_lib_termcap_tgetent = yes; then
6451
 
  LIBTERMCAP=-ltermcap
6452
 
fi
6453
 
 
6454
 
    fi
6455
 
    if test "$ac_cv_lib_termcap_tgetent" = no; then
6456
 
      { echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
6457
 
echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6; }
6458
 
if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
6459
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6460
 
else
6461
 
  ac_check_lib_save_LIBS=$LIBS
6462
 
LIBS="-ltermlib  $LIBS"
6463
 
cat >conftest.$ac_ext <<_ACEOF
6464
 
/* confdefs.h.  */
6465
 
_ACEOF
6466
 
cat confdefs.h >>conftest.$ac_ext
6467
 
cat >>conftest.$ac_ext <<_ACEOF
6468
 
/* end confdefs.h.  */
6469
 
 
6470
 
/* Override any GCC internal prototype to avoid an error.
6471
 
   Use char because int might match the return type of a GCC
6472
 
   builtin and then its argument prototype would still apply.  */
6473
 
#ifdef __cplusplus
6474
 
extern "C"
6475
 
#endif
6476
 
char tgetent ();
6477
 
int
6478
 
main ()
6479
 
{
6480
 
return tgetent ();
6481
 
  ;
6482
 
  return 0;
6483
 
}
6484
 
_ACEOF
6485
 
rm -f conftest.$ac_objext conftest$ac_exeext
6486
 
if { (ac_try="$ac_link"
6487
 
case "(($ac_try" in
6488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489
 
  *) ac_try_echo=$ac_try;;
6490
 
esac
6491
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492
 
  (eval "$ac_link") 2>conftest.er1
6493
 
  ac_status=$?
6494
 
  grep -v '^ *+' conftest.er1 >conftest.err
6495
 
  rm -f conftest.er1
6496
 
  cat conftest.err >&5
6497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498
 
  (exit $ac_status); } && {
6499
 
         test -z "$ac_c_werror_flag" ||
6500
 
         test ! -s conftest.err
6501
 
       } && test -s conftest$ac_exeext &&
6502
 
       $as_test_x conftest$ac_exeext; then
6503
 
  ac_cv_lib_termlib_tgetent=yes
6504
 
else
6505
 
  echo "$as_me: failed program was:" >&5
6506
 
sed 's/^/| /' conftest.$ac_ext >&5
6507
 
 
6508
 
        ac_cv_lib_termlib_tgetent=no
6509
 
fi
6510
 
 
6511
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6512
 
      conftest$ac_exeext conftest.$ac_ext
6513
 
LIBS=$ac_check_lib_save_LIBS
6514
 
fi
6515
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
6516
 
echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6; }
6517
 
if test $ac_cv_lib_termlib_tgetent = yes; then
6518
 
  LIBTERMCAP=-ltermlib
6519
 
fi
6520
 
 
6521
 
    fi
6522
 
  fi
6523
 
 
6524
 
 
6525
 
 
6526
 
 
6527
 
  if test "$LIBNCURSES"; then
6528
 
    LIBCURSES="$LIBNCURSES"     # ncurses doesn't require termcap
6529
 
  else
6530
 
    _IU_SAVE_LIBS="$LIBS"
6531
 
    LIBS="$LIBTERMCAP"
6532
 
    { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
6533
 
echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
6534
 
if test "${ac_cv_lib_curses_initscr+set}" = set; then
6535
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6536
 
else
6537
 
  ac_check_lib_save_LIBS=$LIBS
6538
 
LIBS="-lcurses  $LIBS"
6539
 
cat >conftest.$ac_ext <<_ACEOF
6540
 
/* confdefs.h.  */
6541
 
_ACEOF
6542
 
cat confdefs.h >>conftest.$ac_ext
6543
 
cat >>conftest.$ac_ext <<_ACEOF
6544
 
/* end confdefs.h.  */
6545
 
 
6546
 
/* Override any GCC internal prototype to avoid an error.
6547
 
   Use char because int might match the return type of a GCC
6548
 
   builtin and then its argument prototype would still apply.  */
6549
 
#ifdef __cplusplus
6550
 
extern "C"
6551
 
#endif
6552
 
char initscr ();
6553
 
int
6554
 
main ()
6555
 
{
6556
 
return initscr ();
6557
 
  ;
6558
 
  return 0;
6559
 
}
6560
 
_ACEOF
6561
 
rm -f conftest.$ac_objext conftest$ac_exeext
6562
 
if { (ac_try="$ac_link"
6563
 
case "(($ac_try" in
6564
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565
 
  *) ac_try_echo=$ac_try;;
6566
 
esac
6567
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568
 
  (eval "$ac_link") 2>conftest.er1
6569
 
  ac_status=$?
6570
 
  grep -v '^ *+' conftest.er1 >conftest.err
6571
 
  rm -f conftest.er1
6572
 
  cat conftest.err >&5
6573
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574
 
  (exit $ac_status); } && {
6575
 
         test -z "$ac_c_werror_flag" ||
6576
 
         test ! -s conftest.err
6577
 
       } && test -s conftest$ac_exeext &&
6578
 
       $as_test_x conftest$ac_exeext; then
6579
 
  ac_cv_lib_curses_initscr=yes
6580
 
else
6581
 
  echo "$as_me: failed program was:" >&5
6582
 
sed 's/^/| /' conftest.$ac_ext >&5
6583
 
 
6584
 
        ac_cv_lib_curses_initscr=no
6585
 
fi
6586
 
 
6587
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6588
 
      conftest$ac_exeext conftest.$ac_ext
6589
 
LIBS=$ac_check_lib_save_LIBS
6590
 
fi
6591
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
6592
 
echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
6593
 
if test $ac_cv_lib_curses_initscr = yes; then
6594
 
  LIBCURSES="-lcurses"
6595
 
fi
6596
 
 
6597
 
    if test "$LIBCURSES" -a "$LIBTERMCAP" -a "$LIBCURSES" != "$LIBTERMCAP"; then
6598
 
      { echo "$as_me:$LINENO: checking whether curses needs $LIBTERMCAP" >&5
6599
 
echo $ECHO_N "checking whether curses needs $LIBTERMCAP... $ECHO_C" >&6; }
6600
 
if test "${inetutils_cv_curses_needs_termcap+set}" = set; then
6601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6602
 
else
6603
 
  LIBS="$LIBCURSES"
6604
 
        cat >conftest.$ac_ext <<_ACEOF
6605
 
/* confdefs.h.  */
6606
 
_ACEOF
6607
 
cat confdefs.h >>conftest.$ac_ext
6608
 
cat >>conftest.$ac_ext <<_ACEOF
6609
 
/* end confdefs.h.  */
6610
 
#include <curses.h>
6611
 
int
6612
 
main ()
6613
 
{
6614
 
initscr ();
6615
 
  ;
6616
 
  return 0;
6617
 
}
6618
 
_ACEOF
6619
 
rm -f conftest.$ac_objext conftest$ac_exeext
6620
 
if { (ac_try="$ac_link"
6621
 
case "(($ac_try" in
6622
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623
 
  *) ac_try_echo=$ac_try;;
6624
 
esac
6625
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626
 
  (eval "$ac_link") 2>conftest.er1
6627
 
  ac_status=$?
6628
 
  grep -v '^ *+' conftest.er1 >conftest.err
6629
 
  rm -f conftest.er1
6630
 
  cat conftest.err >&5
6631
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632
 
  (exit $ac_status); } && {
6633
 
         test -z "$ac_c_werror_flag" ||
6634
 
         test ! -s conftest.err
6635
 
       } && test -s conftest$ac_exeext &&
6636
 
       $as_test_x conftest$ac_exeext; then
6637
 
  inetutils_cv_curses_needs_termcap=no
6638
 
else
6639
 
  echo "$as_me: failed program was:" >&5
6640
 
sed 's/^/| /' conftest.$ac_ext >&5
6641
 
 
6642
 
        inetutils_cv_curses_needs_termcap=yes
6643
 
fi
6644
 
 
6645
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6646
 
      conftest$ac_exeext conftest.$ac_ext
6647
 
fi
6648
 
{ echo "$as_me:$LINENO: result: $inetutils_cv_curses_needs_termcap" >&5
6649
 
echo "${ECHO_T}$inetutils_cv_curses_needs_termcap" >&6; }
6650
 
      if test $inetutils_cv_curses_needs_termcap = yes; then
6651
 
          LIBCURSES="$LIBCURSES $LIBTERMCAP"
6652
 
      fi
6653
 
    fi
6654
 
    LIBS="$_IU_SAVE_LIBS"
6655
 
  fi
6656
 
 
6657
 
fi
6658
 
if test "$LIBCURSES"; then
6659
 
  if test "$pinentry_curses" != "no"; then
6660
 
    pinentry_curses=yes
6661
 
  fi
6662
 
  if test "$fallback_curses" != "no"; then
6663
 
    fallback_curses=yes
6664
 
 
6665
 
cat >>confdefs.h <<\_ACEOF
6666
 
#define FALLBACK_CURSES 1
6667
 
_ACEOF
6668
 
 
6669
 
  fi
6670
 
else
6671
 
  if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
6672
 
    { { echo "$as_me:$LINENO: error:
6673
 
***
6674
 
*** The curses library is required. The latest version of
6675
 
*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
6676
 
***" >&5
6677
 
echo "$as_me: error:
6678
 
***
6679
 
*** The curses library is required. The latest version of
6680
 
*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
6681
 
***" >&2;}
6682
 
   { (exit 1); exit 1; }; }
6683
 
  fi
6684
 
  pinentry_curses=no
6685
 
  fallback_curses=no
6686
 
fi
6687
 
 if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
6688
 
  BUILD_LIBPINENTRY_CURSES_TRUE=
6689
 
  BUILD_LIBPINENTRY_CURSES_FALSE='#'
6690
 
else
6691
 
  BUILD_LIBPINENTRY_CURSES_TRUE='#'
6692
 
  BUILD_LIBPINENTRY_CURSES_FALSE=
6693
 
fi
6694
 
 
6695
 
 if test "$pinentry_curses" = "yes"; then
6696
 
  BUILD_PINENTRY_CURSES_TRUE=
6697
 
  BUILD_PINENTRY_CURSES_FALSE='#'
6698
 
else
6699
 
  BUILD_PINENTRY_CURSES_TRUE='#'
6700
 
  BUILD_PINENTRY_CURSES_FALSE=
6701
 
fi
6702
 
 
6703
 
 if test "$fallback_curses" = "yes"; then
6704
 
  FALLBACK_CURSES_TRUE=
6705
 
  FALLBACK_CURSES_FALSE='#'
6706
 
else
6707
 
  FALLBACK_CURSES_TRUE='#'
6708
 
  FALLBACK_CURSES_FALSE=
6709
 
fi
6710
 
 
6711
 
 
6712
 
if test "$pinentry_curses" = "yes"; then
6713
 
 
6714
 
cat >>confdefs.h <<\_ACEOF
6715
 
#define PINENTRY_CURSES 1
6716
 
_ACEOF
6717
 
 
6718
 
fi
6719
 
 
6720
 
 
6721
 
# Check whether --enable-pinentry-gtk was given.
6722
 
if test "${enable_pinentry_gtk+set}" = set; then
6723
 
  enableval=$enable_pinentry_gtk; pinentry_gtk=$enableval
6724
 
else
6725
 
  pinentry_gtk=maybe
6726
 
fi
6727
 
 
6728
 
 
6729
 
if test "$pinentry_gtk" != "no"; then
6730
 
 
6731
 
# Check whether --with-glib-prefix was given.
6732
 
if test "${with_glib_prefix+set}" = set; then
6733
 
  withval=$with_glib_prefix; glib_config_prefix="$withval"
6734
 
else
6735
 
  glib_config_prefix=""
6736
 
fi
6737
 
 
6738
 
 
6739
 
# Check whether --with-glib-exec-prefix was given.
6740
 
if test "${with_glib_exec_prefix+set}" = set; then
6741
 
  withval=$with_glib_exec_prefix; glib_config_exec_prefix="$withval"
6742
 
else
6743
 
  glib_config_exec_prefix=""
6744
 
fi
6745
 
 
6746
 
# Check whether --enable-glibtest was given.
6747
 
if test "${enable_glibtest+set}" = set; then
6748
 
  enableval=$enable_glibtest;
6749
 
else
6750
 
  enable_glibtest=yes
6751
 
fi
6752
 
 
6753
 
 
6754
 
  if test x$glib_config_exec_prefix != x ; then
6755
 
     glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
6756
 
     if test x${GLIB_CONFIG+set} != xset ; then
6757
 
        GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
6758
 
     fi
6759
 
  fi
6760
 
  if test x$glib_config_prefix != x ; then
6761
 
     glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
6762
 
     if test x${GLIB_CONFIG+set} != xset ; then
6763
 
        GLIB_CONFIG=$glib_config_prefix/bin/glib-config
6764
 
     fi
6765
 
  fi
6766
 
 
6767
 
  for module in .
6768
 
  do
6769
 
      case "$module" in
6770
 
         gmodule)
6771
 
             glib_config_args="$glib_config_args gmodule"
6772
 
         ;;
6773
 
         gthread)
6774
 
             glib_config_args="$glib_config_args gthread"
6775
 
         ;;
6776
 
      esac
6777
 
  done
6778
 
 
6779
 
  # Extract the first word of "glib-config", so it can be a program name with args.
6780
 
set dummy glib-config; ac_word=$2
6781
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6782
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783
 
if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
6784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6785
 
else
6786
 
  case $GLIB_CONFIG in
6787
 
  [\\/]* | ?:[\\/]*)
6788
 
  ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
6789
 
  ;;
6790
 
  *)
6791
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792
 
for as_dir in $PATH
6793
 
do
6794
 
  IFS=$as_save_IFS
6795
 
  test -z "$as_dir" && as_dir=.
6796
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6797
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798
 
    ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6799
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800
 
    break 2
6801
 
  fi
6802
 
done
6803
 
done
6804
 
IFS=$as_save_IFS
6805
 
 
6806
 
  test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
6807
 
  ;;
6808
 
esac
6809
 
fi
6810
 
GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
6811
 
if test -n "$GLIB_CONFIG"; then
6812
 
  { echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
6813
 
echo "${ECHO_T}$GLIB_CONFIG" >&6; }
6814
 
else
6815
 
  { echo "$as_me:$LINENO: result: no" >&5
6816
 
echo "${ECHO_T}no" >&6; }
6817
 
fi
6818
 
 
6819
 
 
6820
 
  min_glib_version=1.2.0
6821
 
  { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
6822
 
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
6823
 
  no_glib=""
6824
 
  if test "$GLIB_CONFIG" = "no" ; then
6825
 
    no_glib=yes
6826
 
  else
6827
 
    GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
6828
 
    GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
6829
 
    glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
6830
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6831
 
    glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
6832
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6833
 
    glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
6834
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6835
 
    if test "x$enable_glibtest" = "xyes" ; then
6836
 
      ac_save_CFLAGS="$CFLAGS"
6837
 
      ac_save_LIBS="$LIBS"
6838
 
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
6839
 
      LIBS="$GLIB_LIBS $LIBS"
6840
 
      rm -f conf.glibtest
6841
 
      if test "$cross_compiling" = yes; then
6842
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
6843
 
else
6844
 
  cat >conftest.$ac_ext <<_ACEOF
6845
 
/* confdefs.h.  */
6846
 
_ACEOF
6847
 
cat confdefs.h >>conftest.$ac_ext
6848
 
cat >>conftest.$ac_ext <<_ACEOF
6849
 
/* end confdefs.h.  */
6850
 
 
6851
 
#include <glib.h>
6852
 
#include <stdio.h>
6853
 
#include <stdlib.h>
6854
 
 
6855
 
int
6856
 
main ()
6857
 
{
6858
 
  int major, minor, micro;
6859
 
  char *tmp_version;
6860
 
 
6861
 
  system ("touch conf.glibtest");
6862
 
 
6863
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
6864
 
  tmp_version = g_strdup("$min_glib_version");
6865
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
6866
 
     printf("%s, bad version string\n", "$min_glib_version");
6867
 
     exit(1);
6868
 
   }
6869
 
 
6870
 
  if ((glib_major_version != $glib_config_major_version) ||
6871
 
      (glib_minor_version != $glib_config_minor_version) ||
6872
 
      (glib_micro_version != $glib_config_micro_version))
6873
 
    {
6874
 
      printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
6875
 
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
6876
 
             glib_major_version, glib_minor_version, glib_micro_version);
6877
 
      printf ("*** was found! If glib-config was correct, then it is best\n");
6878
 
      printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
6879
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6880
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6881
 
      printf("*** required on your system.\n");
6882
 
      printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
6883
 
      printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
6884
 
      printf("*** before re-running configure\n");
6885
 
    }
6886
 
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
6887
 
           (glib_minor_version != GLIB_MINOR_VERSION) ||
6888
 
           (glib_micro_version != GLIB_MICRO_VERSION))
6889
 
    {
6890
 
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
6891
 
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
6892
 
      printf("*** library (version %d.%d.%d)\n",
6893
 
             glib_major_version, glib_minor_version, glib_micro_version);
6894
 
    }
6895
 
  else
6896
 
    {
6897
 
      if ((glib_major_version > major) ||
6898
 
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
6899
 
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
6900
 
      {
6901
 
        return 0;
6902
 
       }
6903
 
     else
6904
 
      {
6905
 
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
6906
 
               glib_major_version, glib_minor_version, glib_micro_version);
6907
 
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
6908
 
               major, minor, micro);
6909
 
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
6910
 
        printf("***\n");
6911
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
6912
 
        printf("*** probably means that the wrong copy of the glib-config shell script is\n");
6913
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
6914
 
        printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
6915
 
        printf("*** correct copy of glib-config. (In this case, you will have to\n");
6916
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6917
 
        printf("*** so that the correct libraries are found at run-time))\n");
6918
 
      }
6919
 
    }
6920
 
  return 1;
6921
 
}
6922
 
 
6923
 
_ACEOF
6924
 
rm -f conftest$ac_exeext
6925
 
if { (ac_try="$ac_link"
6926
 
case "(($ac_try" in
6927
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928
 
  *) ac_try_echo=$ac_try;;
6929
 
esac
6930
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931
 
  (eval "$ac_link") 2>&5
6932
 
  ac_status=$?
6933
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6935
 
  { (case "(($ac_try" in
6936
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937
 
  *) ac_try_echo=$ac_try;;
6938
 
esac
6939
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940
 
  (eval "$ac_try") 2>&5
6941
 
  ac_status=$?
6942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943
 
  (exit $ac_status); }; }; then
6944
 
  :
6945
 
else
6946
 
  echo "$as_me: program exited with status $ac_status" >&5
6947
 
echo "$as_me: failed program was:" >&5
6948
 
sed 's/^/| /' conftest.$ac_ext >&5
6949
 
 
6950
 
( exit $ac_status )
6951
 
no_glib=yes
6952
 
fi
6953
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6954
 
fi
6955
 
 
6956
 
 
6957
 
       CFLAGS="$ac_save_CFLAGS"
6958
 
       LIBS="$ac_save_LIBS"
6959
 
     fi
6960
 
  fi
6961
 
  if test "x$no_glib" = x ; then
6962
 
     { echo "$as_me:$LINENO: result: yes" >&5
6963
 
echo "${ECHO_T}yes" >&6; }
6964
 
     :
6965
 
  else
6966
 
     { echo "$as_me:$LINENO: result: no" >&5
6967
 
echo "${ECHO_T}no" >&6; }
6968
 
     if test "$GLIB_CONFIG" = "no" ; then
6969
 
       echo "*** The glib-config script installed by GLIB could not be found"
6970
 
       echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
6971
 
       echo "*** your path, or set the GLIB_CONFIG environment variable to the"
6972
 
       echo "*** full path to glib-config."
6973
 
     else
6974
 
       if test -f conf.glibtest ; then
6975
 
        :
6976
 
       else
6977
 
          echo "*** Could not run GLIB test program, checking why..."
6978
 
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
6979
 
          LIBS="$LIBS $GLIB_LIBS"
6980
 
          cat >conftest.$ac_ext <<_ACEOF
6981
 
/* confdefs.h.  */
6982
 
_ACEOF
6983
 
cat confdefs.h >>conftest.$ac_ext
6984
 
cat >>conftest.$ac_ext <<_ACEOF
6985
 
/* end confdefs.h.  */
6986
 
 
6987
 
#include <glib.h>
6988
 
#include <stdio.h>
6989
 
 
6990
 
int
6991
 
main ()
6992
 
{
6993
 
 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
6994
 
  ;
6995
 
  return 0;
6996
 
}
6997
 
_ACEOF
6998
 
rm -f conftest.$ac_objext conftest$ac_exeext
6999
 
if { (ac_try="$ac_link"
7000
 
case "(($ac_try" in
7001
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002
 
  *) ac_try_echo=$ac_try;;
7003
 
esac
7004
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005
 
  (eval "$ac_link") 2>conftest.er1
7006
 
  ac_status=$?
7007
 
  grep -v '^ *+' conftest.er1 >conftest.err
7008
 
  rm -f conftest.er1
7009
 
  cat conftest.err >&5
7010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011
 
  (exit $ac_status); } && {
7012
 
         test -z "$ac_c_werror_flag" ||
7013
 
         test ! -s conftest.err
7014
 
       } && test -s conftest$ac_exeext &&
7015
 
       $as_test_x conftest$ac_exeext; then
7016
 
   echo "*** The test program compiled, but did not run. This usually means"
7017
 
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7018
 
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7019
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7020
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7021
 
          echo "*** is required on your system"
7022
 
          echo "***"
7023
 
          echo "*** If you have an old version installed, it is best to remove it, although"
7024
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7025
 
          echo "***"
7026
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7027
 
          echo "*** came with the system with the command"
7028
 
          echo "***"
7029
 
          echo "***    rpm --erase --nodeps gtk gtk-devel"
7030
 
else
7031
 
  echo "$as_me: failed program was:" >&5
7032
 
sed 's/^/| /' conftest.$ac_ext >&5
7033
 
 
7034
 
         echo "*** The test program failed to compile or link. See the file config.log for the"
7035
 
          echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
7036
 
          echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
7037
 
          echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
7038
 
fi
7039
 
 
7040
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041
 
      conftest$ac_exeext conftest.$ac_ext
7042
 
          CFLAGS="$ac_save_CFLAGS"
7043
 
          LIBS="$ac_save_LIBS"
7044
 
       fi
7045
 
     fi
7046
 
     GLIB_CFLAGS=""
7047
 
     GLIB_LIBS=""
7048
 
     if test "$pinentry_gtk" = "yes"; then
7049
 
    { { echo "$as_me:$LINENO: error:
7050
 
***
7051
 
*** GLIB 1.2.0 or newer is required. The latest version of GLIB
7052
 
*** is always available from ftp://ftp.gtk.org/.
7053
 
***" >&5
7054
 
echo "$as_me: error:
7055
 
***
7056
 
*** GLIB 1.2.0 or newer is required. The latest version of GLIB
7057
 
*** is always available from ftp://ftp.gtk.org/.
7058
 
***" >&2;}
7059
 
   { (exit 1); exit 1; }; }
7060
 
else
7061
 
    pinentry_gtk=no
7062
 
fi
7063
 
  fi
7064
 
 
7065
 
 
7066
 
  rm -f conf.glibtest
7067
 
 
7068
 
fi
7069
 
 
7070
 
if test "$pinentry_gtk" != "no"; then
7071
 
 
7072
 
# Check whether --with-gtk-prefix was given.
7073
 
if test "${with_gtk_prefix+set}" = set; then
7074
 
  withval=$with_gtk_prefix; gtk_config_prefix="$withval"
7075
 
else
7076
 
  gtk_config_prefix=""
7077
 
fi
7078
 
 
7079
 
 
7080
 
# Check whether --with-gtk-exec-prefix was given.
7081
 
if test "${with_gtk_exec_prefix+set}" = set; then
7082
 
  withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
7083
 
else
7084
 
  gtk_config_exec_prefix=""
7085
 
fi
7086
 
 
7087
 
# Check whether --enable-gtktest was given.
7088
 
if test "${enable_gtktest+set}" = set; then
7089
 
  enableval=$enable_gtktest;
7090
 
else
7091
 
  enable_gtktest=yes
7092
 
fi
7093
 
 
7094
 
 
7095
 
  for module in .
7096
 
  do
7097
 
      case "$module" in
7098
 
         gthread)
7099
 
             gtk_config_args="$gtk_config_args gthread"
7100
 
         ;;
7101
 
      esac
7102
 
  done
7103
 
 
7104
 
  if test x$gtk_config_exec_prefix != x ; then
7105
 
     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7106
 
     if test x${GTK_CONFIG+set} != xset ; then
7107
 
        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7108
 
     fi
7109
 
  fi
7110
 
  if test x$gtk_config_prefix != x ; then
7111
 
     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7112
 
     if test x${GTK_CONFIG+set} != xset ; then
7113
 
        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7114
 
     fi
7115
 
  fi
7116
 
 
7117
 
  # Extract the first word of "gtk-config", so it can be a program name with args.
7118
 
set dummy gtk-config; ac_word=$2
7119
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121
 
if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7122
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7123
 
else
7124
 
  case $GTK_CONFIG in
7125
 
  [\\/]* | ?:[\\/]*)
7126
 
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7127
 
  ;;
7128
 
  *)
7129
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130
 
for as_dir in $PATH
7131
 
do
7132
 
  IFS=$as_save_IFS
7133
 
  test -z "$as_dir" && as_dir=.
7134
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7135
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136
 
    ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7137
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138
 
    break 2
7139
 
  fi
7140
 
done
7141
 
done
7142
 
IFS=$as_save_IFS
7143
 
 
7144
 
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7145
 
  ;;
7146
 
esac
7147
 
fi
7148
 
GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7149
 
if test -n "$GTK_CONFIG"; then
7150
 
  { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7151
 
echo "${ECHO_T}$GTK_CONFIG" >&6; }
7152
 
else
7153
 
  { echo "$as_me:$LINENO: result: no" >&5
7154
 
echo "${ECHO_T}no" >&6; }
7155
 
fi
7156
 
 
7157
 
 
7158
 
  min_gtk_version=1.2.0
7159
 
  { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7160
 
echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
7161
 
  no_gtk=""
7162
 
  if test "$GTK_CONFIG" = "no" ; then
7163
 
    no_gtk=yes
7164
 
  else
7165
 
    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7166
 
    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7167
 
    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7168
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7169
 
    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7170
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7171
 
    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7172
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7173
 
    if test "x$enable_gtktest" = "xyes" ; then
7174
 
      ac_save_CFLAGS="$CFLAGS"
7175
 
      ac_save_LIBS="$LIBS"
7176
 
      CFLAGS="$CFLAGS $GTK_CFLAGS"
7177
 
      LIBS="$GTK_LIBS $LIBS"
7178
 
      rm -f conf.gtktest
7179
 
      if test "$cross_compiling" = yes; then
7180
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
7181
 
else
7182
 
  cat >conftest.$ac_ext <<_ACEOF
7183
 
/* confdefs.h.  */
7184
 
_ACEOF
7185
 
cat confdefs.h >>conftest.$ac_ext
7186
 
cat >>conftest.$ac_ext <<_ACEOF
7187
 
/* end confdefs.h.  */
7188
 
 
7189
 
#include <gtk/gtk.h>
7190
 
#include <stdio.h>
7191
 
#include <stdlib.h>
7192
 
 
7193
 
int
7194
 
main ()
7195
 
{
7196
 
  int major, minor, micro;
7197
 
  char *tmp_version;
7198
 
 
7199
 
  system ("touch conf.gtktest");
7200
 
 
7201
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
7202
 
  tmp_version = g_strdup("$min_gtk_version");
7203
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7204
 
     printf("%s, bad version string\n", "$min_gtk_version");
7205
 
     exit(1);
7206
 
   }
7207
 
 
7208
 
  if ((gtk_major_version != $gtk_config_major_version) ||
7209
 
      (gtk_minor_version != $gtk_config_minor_version) ||
7210
 
      (gtk_micro_version != $gtk_config_micro_version))
7211
 
    {
7212
 
      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7213
 
             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7214
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
7215
 
      printf ("*** was found! If gtk-config was correct, then it is best\n");
7216
 
      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7217
 
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7218
 
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7219
 
      printf("*** required on your system.\n");
7220
 
      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
7221
 
      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
7222
 
      printf("*** before re-running configure\n");
7223
 
    }
7224
 
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7225
 
  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7226
 
           (gtk_minor_version != GTK_MINOR_VERSION) ||
7227
 
           (gtk_micro_version != GTK_MICRO_VERSION))
7228
 
    {
7229
 
      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7230
 
             GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7231
 
      printf("*** library (version %d.%d.%d)\n",
7232
 
             gtk_major_version, gtk_minor_version, gtk_micro_version);
7233
 
    }
7234
 
#endif /* defined (GTK_MAJOR_VERSION) ... */
7235
 
  else
7236
 
    {
7237
 
      if ((gtk_major_version > major) ||
7238
 
        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7239
 
        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7240
 
      {
7241
 
        return 0;
7242
 
       }
7243
 
     else
7244
 
      {
7245
 
        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7246
 
               gtk_major_version, gtk_minor_version, gtk_micro_version);
7247
 
        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7248
 
               major, minor, micro);
7249
 
        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7250
 
        printf("***\n");
7251
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
7252
 
        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
7253
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
7254
 
        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
7255
 
        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
7256
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7257
 
        printf("*** so that the correct libraries are found at run-time))\n");
7258
 
      }
7259
 
    }
7260
 
  return 1;
7261
 
}
7262
 
 
7263
 
_ACEOF
7264
 
rm -f conftest$ac_exeext
7265
 
if { (ac_try="$ac_link"
7266
 
case "(($ac_try" in
7267
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268
 
  *) ac_try_echo=$ac_try;;
7269
 
esac
7270
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271
 
  (eval "$ac_link") 2>&5
7272
 
  ac_status=$?
7273
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7275
 
  { (case "(($ac_try" in
7276
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277
 
  *) ac_try_echo=$ac_try;;
7278
 
esac
7279
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280
 
  (eval "$ac_try") 2>&5
7281
 
  ac_status=$?
7282
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283
 
  (exit $ac_status); }; }; then
7284
 
  :
7285
 
else
7286
 
  echo "$as_me: program exited with status $ac_status" >&5
7287
 
echo "$as_me: failed program was:" >&5
7288
 
sed 's/^/| /' conftest.$ac_ext >&5
7289
 
 
7290
 
( exit $ac_status )
7291
 
no_gtk=yes
7292
 
fi
7293
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7294
 
fi
7295
 
 
7296
 
 
7297
 
       CFLAGS="$ac_save_CFLAGS"
7298
 
       LIBS="$ac_save_LIBS"
7299
 
     fi
7300
 
  fi
7301
 
  if test "x$no_gtk" = x ; then
7302
 
     { echo "$as_me:$LINENO: result: yes" >&5
7303
 
echo "${ECHO_T}yes" >&6; }
7304
 
 
7305
 
cat >>confdefs.h <<\_ACEOF
7306
 
#define HAVE_GTK 1
7307
 
_ACEOF
7308
 
 
7309
 
  else
7310
 
     { echo "$as_me:$LINENO: result: no" >&5
7311
 
echo "${ECHO_T}no" >&6; }
7312
 
     if test "$GTK_CONFIG" = "no" ; then
7313
 
       echo "*** The gtk-config script installed by GTK could not be found"
7314
 
       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7315
 
       echo "*** your path, or set the GTK_CONFIG environment variable to the"
7316
 
       echo "*** full path to gtk-config."
7317
 
     else
7318
 
       if test -f conf.gtktest ; then
7319
 
        :
7320
 
       else
7321
 
          echo "*** Could not run GTK test program, checking why..."
7322
 
          CFLAGS="$CFLAGS $GTK_CFLAGS"
7323
 
          LIBS="$LIBS $GTK_LIBS"
7324
 
          cat >conftest.$ac_ext <<_ACEOF
7325
 
/* confdefs.h.  */
7326
 
_ACEOF
7327
 
cat confdefs.h >>conftest.$ac_ext
7328
 
cat >>conftest.$ac_ext <<_ACEOF
7329
 
/* end confdefs.h.  */
7330
 
 
7331
 
#include <gtk/gtk.h>
7332
 
#include <stdio.h>
7333
 
 
7334
 
int
7335
 
main ()
7336
 
{
7337
 
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7338
 
  ;
7339
 
  return 0;
7340
 
}
7341
 
_ACEOF
7342
 
rm -f conftest.$ac_objext conftest$ac_exeext
7343
 
if { (ac_try="$ac_link"
7344
 
case "(($ac_try" in
7345
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346
 
  *) ac_try_echo=$ac_try;;
7347
 
esac
7348
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349
 
  (eval "$ac_link") 2>conftest.er1
7350
 
  ac_status=$?
7351
 
  grep -v '^ *+' conftest.er1 >conftest.err
7352
 
  rm -f conftest.er1
7353
 
  cat conftest.err >&5
7354
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355
 
  (exit $ac_status); } && {
7356
 
         test -z "$ac_c_werror_flag" ||
7357
 
         test ! -s conftest.err
7358
 
       } && test -s conftest$ac_exeext &&
7359
 
       $as_test_x conftest$ac_exeext; then
7360
 
   echo "*** The test program compiled, but did not run. This usually means"
7361
 
          echo "*** that the run-time linker is not finding GTK or finding the wrong"
7362
 
          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7363
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7364
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7365
 
          echo "*** is required on your system"
7366
 
          echo "***"
7367
 
          echo "*** If you have an old version installed, it is best to remove it, although"
7368
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7369
 
          echo "***"
7370
 
          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7371
 
          echo "*** came with the system with the command"
7372
 
          echo "***"
7373
 
          echo "***    rpm --erase --nodeps gtk gtk-devel"
7374
 
else
7375
 
  echo "$as_me: failed program was:" >&5
7376
 
sed 's/^/| /' conftest.$ac_ext >&5
7377
 
 
7378
 
         echo "*** The test program failed to compile or link. See the file config.log for the"
7379
 
          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7380
 
          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7381
 
          echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
7382
 
fi
7383
 
 
7384
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7385
 
      conftest$ac_exeext conftest.$ac_ext
7386
 
          CFLAGS="$ac_save_CFLAGS"
7387
 
          LIBS="$ac_save_LIBS"
7388
 
       fi
7389
 
     fi
7390
 
     GTK_CFLAGS=""
7391
 
     GTK_LIBS=""
7392
 
     if test "$pinentry_gtk" = "yes"; then
7393
 
    { { echo "$as_me:$LINENO: error:
7394
 
***
7395
 
*** GTK+ 1.2.0 or newer is required. The latest version of GTK+
7396
 
*** is always available form ftp://ftp.gtk.org/.
7397
 
***" >&5
7398
 
echo "$as_me: error:
7399
 
***
7400
 
*** GTK+ 1.2.0 or newer is required. The latest version of GTK+
7401
 
*** is always available form ftp://ftp.gtk.org/.
7402
 
***" >&2;}
7403
 
   { (exit 1); exit 1; }; }
7404
 
else
7405
 
    pinentry_gtk=no
7406
 
fi
7407
 
  fi
7408
 
 
7409
 
 
7410
 
  rm -f conf.gtktest
7411
 
 
7412
 
fi
7413
 
 
7414
 
if test "$pinentry_gtk" != "no"; then
7415
 
    pinentry_gtk=yes
7416
 
fi
7417
 
 if test "$pinentry_gtk" = "yes"; then
7418
 
  BUILD_PINENTRY_GTK_TRUE=
7419
 
  BUILD_PINENTRY_GTK_FALSE='#'
7420
 
else
7421
 
  BUILD_PINENTRY_GTK_TRUE='#'
7422
 
  BUILD_PINENTRY_GTK_FALSE=
7423
 
fi
7424
 
 
7425
 
if test "$pinentry_gtk" = "yes"; then
7426
 
 
7427
 
cat >>confdefs.h <<\_ACEOF
7428
 
#define PINENTRY_GTK 1
7429
 
_ACEOF
7430
 
 
7431
 
fi
7432
 
 
7433
 
if test "$pinentry_curses" = "yes" \
7434
 
        -o "$fallback_curses" = "yes" \
7435
 
        -o "$pinentry_gtk" = "yes"; then
7436
 
 
7437
 
      if test "X$prefix" = "XNONE"; then
7438
 
    acl_final_prefix="$ac_default_prefix"
7439
 
  else
7440
 
    acl_final_prefix="$prefix"
7441
 
  fi
7442
 
  if test "X$exec_prefix" = "XNONE"; then
7443
 
    acl_final_exec_prefix='${prefix}'
7444
 
  else
7445
 
    acl_final_exec_prefix="$exec_prefix"
7446
 
  fi
7447
 
  acl_save_prefix="$prefix"
7448
 
  prefix="$acl_final_prefix"
7449
 
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7450
 
  prefix="$acl_save_prefix"
7451
 
 
7452
 
 
7453
 
# Check whether --with-gnu-ld was given.
7454
 
if test "${with_gnu_ld+set}" = set; then
7455
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7456
 
else
7457
 
  with_gnu_ld=no
7458
 
fi
7459
 
 
7460
 
# Prepare PATH_SEPARATOR.
7461
 
# The user is always right.
7462
 
if test "${PATH_SEPARATOR+set}" != set; then
7463
 
  echo "#! /bin/sh" >conf$$.sh
7464
 
  echo  "exit 0"   >>conf$$.sh
7465
 
  chmod +x conf$$.sh
7466
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7467
 
    PATH_SEPARATOR=';'
7468
 
  else
7469
 
    PATH_SEPARATOR=:
7470
 
  fi
7471
 
  rm -f conf$$.sh
7472
 
fi
7473
 
ac_prog=ld
7474
 
if test "$GCC" = yes; then
7475
 
  # Check if gcc -print-prog-name=ld gives a path.
7476
 
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7477
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
7478
 
  case $host in
7479
 
  *-*-mingw*)
7480
 
    # gcc leaves a trailing carriage return which upsets mingw
7481
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7482
 
  *)
7483
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7484
 
  esac
7485
 
  case $ac_prog in
7486
 
    # Accept absolute paths.
7487
 
    [\\/]* | [A-Za-z]:[\\/]*)
7488
 
      re_direlt='/[^/][^/]*/\.\./'
7489
 
      # Canonicalize the path of ld
7490
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7491
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7492
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7493
 
      done
7494
 
      test -z "$LD" && LD="$ac_prog"
7495
 
      ;;
7496
 
  "")
7497
 
    # If it fails, then pretend we aren't using GCC.
7498
 
    ac_prog=ld
7499
 
    ;;
7500
 
  *)
7501
 
    # If it is relative, then search for the first ld in PATH.
7502
 
    with_gnu_ld=unknown
7503
 
    ;;
7504
 
  esac
7505
 
elif test "$with_gnu_ld" = yes; then
7506
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
7507
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7508
 
else
7509
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7510
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7511
 
fi
7512
 
if test "${acl_cv_path_LD+set}" = set; then
7513
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7514
 
else
7515
 
  if test -z "$LD"; then
7516
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7517
 
  for ac_dir in $PATH; do
7518
 
    test -z "$ac_dir" && ac_dir=.
7519
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7520
 
      acl_cv_path_LD="$ac_dir/$ac_prog"
7521
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
7522
 
      # but apparently some GNU ld's only accept -v.
7523
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
7524
 
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7525
 
      *GNU* | *'with BFD'*)
7526
 
        test "$with_gnu_ld" != no && break ;;
7527
 
      *)
7528
 
        test "$with_gnu_ld" != yes && break ;;
7529
 
      esac
7530
 
    fi
7531
 
  done
7532
 
  IFS="$ac_save_ifs"
7533
 
else
7534
 
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
7535
 
fi
7536
 
fi
7537
 
 
7538
 
LD="$acl_cv_path_LD"
7539
 
if test -n "$LD"; then
7540
 
  { echo "$as_me:$LINENO: result: $LD" >&5
7541
 
echo "${ECHO_T}$LD" >&6; }
7542
 
else
7543
 
  { echo "$as_me:$LINENO: result: no" >&5
7544
 
echo "${ECHO_T}no" >&6; }
7545
 
fi
7546
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7547
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7548
 
   { (exit 1); exit 1; }; }
7549
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7550
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7551
 
if test "${acl_cv_prog_gnu_ld+set}" = set; then
7552
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7553
 
else
7554
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7555
 
case `$LD -v 2>&1 </dev/null` in
7556
 
*GNU* | *'with BFD'*)
7557
 
  acl_cv_prog_gnu_ld=yes ;;
7558
 
*)
7559
 
  acl_cv_prog_gnu_ld=no ;;
7560
 
esac
7561
 
fi
7562
 
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7563
 
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
7564
 
with_gnu_ld=$acl_cv_prog_gnu_ld
7565
 
 
7566
 
 
7567
 
 
7568
 
 
7569
 
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7570
 
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
7571
 
if test "${acl_cv_rpath+set}" = set; then
7572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7573
 
else
7574
 
 
7575
 
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7576
 
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7577
 
    . ./conftest.sh
7578
 
    rm -f ./conftest.sh
7579
 
    acl_cv_rpath=done
7580
 
 
7581
 
fi
7582
 
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7583
 
echo "${ECHO_T}$acl_cv_rpath" >&6; }
7584
 
  wl="$acl_cv_wl"
7585
 
  acl_libext="$acl_cv_libext"
7586
 
  acl_shlibext="$acl_cv_shlibext"
7587
 
  acl_libname_spec="$acl_cv_libname_spec"
7588
 
  acl_library_names_spec="$acl_cv_library_names_spec"
7589
 
  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7590
 
  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7591
 
  acl_hardcode_direct="$acl_cv_hardcode_direct"
7592
 
  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7593
 
    # Check whether --enable-rpath was given.
7594
 
if test "${enable_rpath+set}" = set; then
7595
 
  enableval=$enable_rpath; :
7596
 
else
7597
 
  enable_rpath=yes
7598
 
fi
7599
 
 
7600
 
 
7601
 
 
7602
 
                  acl_libdirstem=lib
7603
 
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7604
 
  if test -n "$searchpath"; then
7605
 
    acl_save_IFS="${IFS=        }"; IFS=":"
7606
 
    for searchdir in $searchpath; do
7607
 
      if test -d "$searchdir"; then
7608
 
        case "$searchdir" in
7609
 
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7610
 
          *) searchdir=`cd "$searchdir" && pwd`
7611
 
             case "$searchdir" in
7612
 
               */lib64 ) acl_libdirstem=lib64 ;;
7613
 
             esac ;;
7614
 
        esac
7615
 
      fi
7616
 
    done
7617
 
    IFS="$acl_save_IFS"
7618
 
  fi
7619
 
 
7620
 
 
7621
 
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
 
 
7627
 
 
7628
 
    use_additional=yes
7629
 
 
7630
 
  acl_save_prefix="$prefix"
7631
 
  prefix="$acl_final_prefix"
7632
 
  acl_save_exec_prefix="$exec_prefix"
7633
 
  exec_prefix="$acl_final_exec_prefix"
7634
 
 
7635
 
    eval additional_includedir=\"$includedir\"
7636
 
    eval additional_libdir=\"$libdir\"
7637
 
 
7638
 
  exec_prefix="$acl_save_exec_prefix"
7639
 
  prefix="$acl_save_prefix"
7640
 
 
7641
 
 
7642
 
# Check whether --with-libiconv-prefix was given.
7643
 
if test "${with_libiconv_prefix+set}" = set; then
7644
 
  withval=$with_libiconv_prefix;
7645
 
    if test "X$withval" = "Xno"; then
7646
 
      use_additional=no
7647
 
    else
7648
 
      if test "X$withval" = "X"; then
7649
 
 
7650
 
  acl_save_prefix="$prefix"
7651
 
  prefix="$acl_final_prefix"
7652
 
  acl_save_exec_prefix="$exec_prefix"
7653
 
  exec_prefix="$acl_final_exec_prefix"
7654
 
 
7655
 
          eval additional_includedir=\"$includedir\"
7656
 
          eval additional_libdir=\"$libdir\"
7657
 
 
7658
 
  exec_prefix="$acl_save_exec_prefix"
7659
 
  prefix="$acl_save_prefix"
7660
 
 
7661
 
      else
7662
 
        additional_includedir="$withval/include"
7663
 
        additional_libdir="$withval/$acl_libdirstem"
7664
 
      fi
7665
 
    fi
7666
 
 
7667
 
fi
7668
 
 
7669
 
      LIBICONV=
7670
 
  LTLIBICONV=
7671
 
  INCICONV=
7672
 
  LIBICONV_PREFIX=
7673
 
  rpathdirs=
7674
 
  ltrpathdirs=
7675
 
  names_already_handled=
7676
 
  names_next_round='iconv '
7677
 
  while test -n "$names_next_round"; do
7678
 
    names_this_round="$names_next_round"
7679
 
    names_next_round=
7680
 
    for name in $names_this_round; do
7681
 
      already_handled=
7682
 
      for n in $names_already_handled; do
7683
 
        if test "$n" = "$name"; then
7684
 
          already_handled=yes
7685
 
          break
7686
 
        fi
7687
 
      done
7688
 
      if test -z "$already_handled"; then
7689
 
        names_already_handled="$names_already_handled $name"
7690
 
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7691
 
        eval value=\"\$HAVE_LIB$uppername\"
7692
 
        if test -n "$value"; then
7693
 
          if test "$value" = yes; then
7694
 
            eval value=\"\$LIB$uppername\"
7695
 
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7696
 
            eval value=\"\$LTLIB$uppername\"
7697
 
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7698
 
          else
7699
 
                                    :
7700
 
          fi
7701
 
        else
7702
 
                              found_dir=
7703
 
          found_la=
7704
 
          found_so=
7705
 
          found_a=
7706
 
          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7707
 
          if test -n "$acl_shlibext"; then
7708
 
            shrext=".$acl_shlibext"             # typically: shrext=.so
7709
 
          else
7710
 
            shrext=
7711
 
          fi
7712
 
          if test $use_additional = yes; then
7713
 
            dir="$additional_libdir"
7714
 
                                    if test -n "$acl_shlibext"; then
7715
 
              if test -f "$dir/$libname$shrext"; then
7716
 
                found_dir="$dir"
7717
 
                found_so="$dir/$libname$shrext"
7718
 
              else
7719
 
                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7720
 
                  ver=`(cd "$dir" && \
7721
 
                        for f in "$libname$shrext".*; do echo "$f"; done \
7722
 
                        | sed -e "s,^$libname$shrext\\\\.,," \
7723
 
                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7724
 
                        | sed 1q ) 2>/dev/null`
7725
 
                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7726
 
                    found_dir="$dir"
7727
 
                    found_so="$dir/$libname$shrext.$ver"
7728
 
                  fi
7729
 
                else
7730
 
                  eval library_names=\"$acl_library_names_spec\"
7731
 
                  for f in $library_names; do
7732
 
                    if test -f "$dir/$f"; then
7733
 
                      found_dir="$dir"
7734
 
                      found_so="$dir/$f"
7735
 
                      break
7736
 
                    fi
7737
 
                  done
7738
 
                fi
7739
 
              fi
7740
 
            fi
7741
 
                        if test "X$found_dir" = "X"; then
7742
 
              if test -f "$dir/$libname.$acl_libext"; then
7743
 
                found_dir="$dir"
7744
 
                found_a="$dir/$libname.$acl_libext"
7745
 
              fi
7746
 
            fi
7747
 
            if test "X$found_dir" != "X"; then
7748
 
              if test -f "$dir/$libname.la"; then
7749
 
                found_la="$dir/$libname.la"
7750
 
              fi
7751
 
            fi
7752
 
          fi
7753
 
          if test "X$found_dir" = "X"; then
7754
 
            for x in $LDFLAGS $LTLIBICONV; do
7755
 
 
7756
 
  acl_save_prefix="$prefix"
7757
 
  prefix="$acl_final_prefix"
7758
 
  acl_save_exec_prefix="$exec_prefix"
7759
 
  exec_prefix="$acl_final_exec_prefix"
7760
 
  eval x=\"$x\"
7761
 
  exec_prefix="$acl_save_exec_prefix"
7762
 
  prefix="$acl_save_prefix"
7763
 
 
7764
 
              case "$x" in
7765
 
                -L*)
7766
 
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7767
 
                                    if test -n "$acl_shlibext"; then
7768
 
                    if test -f "$dir/$libname$shrext"; then
7769
 
                      found_dir="$dir"
7770
 
                      found_so="$dir/$libname$shrext"
7771
 
                    else
7772
 
                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7773
 
                        ver=`(cd "$dir" && \
7774
 
                              for f in "$libname$shrext".*; do echo "$f"; done \
7775
 
                              | sed -e "s,^$libname$shrext\\\\.,," \
7776
 
                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7777
 
                              | sed 1q ) 2>/dev/null`
7778
 
                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7779
 
                          found_dir="$dir"
7780
 
                          found_so="$dir/$libname$shrext.$ver"
7781
 
                        fi
7782
 
                      else
7783
 
                        eval library_names=\"$acl_library_names_spec\"
7784
 
                        for f in $library_names; do
7785
 
                          if test -f "$dir/$f"; then
7786
 
                            found_dir="$dir"
7787
 
                            found_so="$dir/$f"
7788
 
                            break
7789
 
                          fi
7790
 
                        done
7791
 
                      fi
7792
 
                    fi
7793
 
                  fi
7794
 
                                    if test "X$found_dir" = "X"; then
7795
 
                    if test -f "$dir/$libname.$acl_libext"; then
7796
 
                      found_dir="$dir"
7797
 
                      found_a="$dir/$libname.$acl_libext"
7798
 
                    fi
7799
 
                  fi
7800
 
                  if test "X$found_dir" != "X"; then
7801
 
                    if test -f "$dir/$libname.la"; then
7802
 
                      found_la="$dir/$libname.la"
7803
 
                    fi
7804
 
                  fi
7805
 
                  ;;
7806
 
              esac
7807
 
              if test "X$found_dir" != "X"; then
7808
 
                break
7809
 
              fi
7810
 
            done
7811
 
          fi
7812
 
          if test "X$found_dir" != "X"; then
7813
 
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7814
 
            if test "X$found_so" != "X"; then
7815
 
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7816
 
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7817
 
              else
7818
 
                                                                                haveit=
7819
 
                for x in $ltrpathdirs; do
7820
 
                  if test "X$x" = "X$found_dir"; then
7821
 
                    haveit=yes
7822
 
                    break
7823
 
                  fi
7824
 
                done
7825
 
                if test -z "$haveit"; then
7826
 
                  ltrpathdirs="$ltrpathdirs $found_dir"
7827
 
                fi
7828
 
                                if test "$acl_hardcode_direct" = yes; then
7829
 
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7830
 
                else
7831
 
                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7832
 
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7833
 
                                                            haveit=
7834
 
                    for x in $rpathdirs; do
7835
 
                      if test "X$x" = "X$found_dir"; then
7836
 
                        haveit=yes
7837
 
                        break
7838
 
                      fi
7839
 
                    done
7840
 
                    if test -z "$haveit"; then
7841
 
                      rpathdirs="$rpathdirs $found_dir"
7842
 
                    fi
7843
 
                  else
7844
 
                                                                                haveit=
7845
 
                    for x in $LDFLAGS $LIBICONV; do
7846
 
 
7847
 
  acl_save_prefix="$prefix"
7848
 
  prefix="$acl_final_prefix"
7849
 
  acl_save_exec_prefix="$exec_prefix"
7850
 
  exec_prefix="$acl_final_exec_prefix"
7851
 
  eval x=\"$x\"
7852
 
  exec_prefix="$acl_save_exec_prefix"
7853
 
  prefix="$acl_save_prefix"
7854
 
 
7855
 
                      if test "X$x" = "X-L$found_dir"; then
7856
 
                        haveit=yes
7857
 
                        break
7858
 
                      fi
7859
 
                    done
7860
 
                    if test -z "$haveit"; then
7861
 
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7862
 
                    fi
7863
 
                    if test "$acl_hardcode_minus_L" != no; then
7864
 
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7865
 
                    else
7866
 
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7867
 
                    fi
7868
 
                  fi
7869
 
                fi
7870
 
              fi
7871
 
            else
7872
 
              if test "X$found_a" != "X"; then
7873
 
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7874
 
              else
7875
 
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7876
 
              fi
7877
 
            fi
7878
 
                        additional_includedir=
7879
 
            case "$found_dir" in
7880
 
              */$acl_libdirstem | */$acl_libdirstem/)
7881
 
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7882
 
                LIBICONV_PREFIX="$basedir"
7883
 
                additional_includedir="$basedir/include"
7884
 
                ;;
7885
 
            esac
7886
 
            if test "X$additional_includedir" != "X"; then
7887
 
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7888
 
                haveit=
7889
 
                if test "X$additional_includedir" = "X/usr/local/include"; then
7890
 
                  if test -n "$GCC"; then
7891
 
                    case $host_os in
7892
 
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7893
 
                    esac
7894
 
                  fi
7895
 
                fi
7896
 
                if test -z "$haveit"; then
7897
 
                  for x in $CPPFLAGS $INCICONV; do
7898
 
 
7899
 
  acl_save_prefix="$prefix"
7900
 
  prefix="$acl_final_prefix"
7901
 
  acl_save_exec_prefix="$exec_prefix"
7902
 
  exec_prefix="$acl_final_exec_prefix"
7903
 
  eval x=\"$x\"
7904
 
  exec_prefix="$acl_save_exec_prefix"
7905
 
  prefix="$acl_save_prefix"
7906
 
 
7907
 
                    if test "X$x" = "X-I$additional_includedir"; then
7908
 
                      haveit=yes
7909
 
                      break
7910
 
                    fi
7911
 
                  done
7912
 
                  if test -z "$haveit"; then
7913
 
                    if test -d "$additional_includedir"; then
7914
 
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7915
 
                    fi
7916
 
                  fi
7917
 
                fi
7918
 
              fi
7919
 
            fi
7920
 
                        if test -n "$found_la"; then
7921
 
                                                        save_libdir="$libdir"
7922
 
              case "$found_la" in
7923
 
                */* | *\\*) . "$found_la" ;;
7924
 
                *) . "./$found_la" ;;
7925
 
              esac
7926
 
              libdir="$save_libdir"
7927
 
                            for dep in $dependency_libs; do
7928
 
                case "$dep" in
7929
 
                  -L*)
7930
 
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7931
 
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7932
 
                      haveit=
7933
 
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7934
 
                        if test -n "$GCC"; then
7935
 
                          case $host_os in
7936
 
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7937
 
                          esac
7938
 
                        fi
7939
 
                      fi
7940
 
                      if test -z "$haveit"; then
7941
 
                        haveit=
7942
 
                        for x in $LDFLAGS $LIBICONV; do
7943
 
 
7944
 
  acl_save_prefix="$prefix"
7945
 
  prefix="$acl_final_prefix"
7946
 
  acl_save_exec_prefix="$exec_prefix"
7947
 
  exec_prefix="$acl_final_exec_prefix"
7948
 
  eval x=\"$x\"
7949
 
  exec_prefix="$acl_save_exec_prefix"
7950
 
  prefix="$acl_save_prefix"
7951
 
 
7952
 
                          if test "X$x" = "X-L$additional_libdir"; then
7953
 
                            haveit=yes
7954
 
                            break
7955
 
                          fi
7956
 
                        done
7957
 
                        if test -z "$haveit"; then
7958
 
                          if test -d "$additional_libdir"; then
7959
 
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7960
 
                          fi
7961
 
                        fi
7962
 
                        haveit=
7963
 
                        for x in $LDFLAGS $LTLIBICONV; do
7964
 
 
7965
 
  acl_save_prefix="$prefix"
7966
 
  prefix="$acl_final_prefix"
7967
 
  acl_save_exec_prefix="$exec_prefix"
7968
 
  exec_prefix="$acl_final_exec_prefix"
7969
 
  eval x=\"$x\"
7970
 
  exec_prefix="$acl_save_exec_prefix"
7971
 
  prefix="$acl_save_prefix"
7972
 
 
7973
 
                          if test "X$x" = "X-L$additional_libdir"; then
7974
 
                            haveit=yes
7975
 
                            break
7976
 
                          fi
7977
 
                        done
7978
 
                        if test -z "$haveit"; then
7979
 
                          if test -d "$additional_libdir"; then
7980
 
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7981
 
                          fi
7982
 
                        fi
7983
 
                      fi
7984
 
                    fi
7985
 
                    ;;
7986
 
                  -R*)
7987
 
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7988
 
                    if test "$enable_rpath" != no; then
7989
 
                                                                  haveit=
7990
 
                      for x in $rpathdirs; do
7991
 
                        if test "X$x" = "X$dir"; then
7992
 
                          haveit=yes
7993
 
                          break
7994
 
                        fi
7995
 
                      done
7996
 
                      if test -z "$haveit"; then
7997
 
                        rpathdirs="$rpathdirs $dir"
7998
 
                      fi
7999
 
                                                                  haveit=
8000
 
                      for x in $ltrpathdirs; do
8001
 
                        if test "X$x" = "X$dir"; then
8002
 
                          haveit=yes
8003
 
                          break
8004
 
                        fi
8005
 
                      done
8006
 
                      if test -z "$haveit"; then
8007
 
                        ltrpathdirs="$ltrpathdirs $dir"
8008
 
                      fi
8009
 
                    fi
8010
 
                    ;;
8011
 
                  -l*)
8012
 
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8013
 
                    ;;
8014
 
                  *.la)
8015
 
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8016
 
                    ;;
8017
 
                  *)
8018
 
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8019
 
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8020
 
                    ;;
8021
 
                esac
8022
 
              done
8023
 
            fi
8024
 
          else
8025
 
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8026
 
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8027
 
          fi
8028
 
        fi
8029
 
      fi
8030
 
    done
8031
 
  done
8032
 
  if test "X$rpathdirs" != "X"; then
8033
 
    if test -n "$acl_hardcode_libdir_separator"; then
8034
 
                        alldirs=
8035
 
      for found_dir in $rpathdirs; do
8036
 
        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8037
 
      done
8038
 
            acl_save_libdir="$libdir"
8039
 
      libdir="$alldirs"
8040
 
      eval flag=\"$acl_hardcode_libdir_flag_spec\"
8041
 
      libdir="$acl_save_libdir"
8042
 
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8043
 
    else
8044
 
            for found_dir in $rpathdirs; do
8045
 
        acl_save_libdir="$libdir"
8046
 
        libdir="$found_dir"
8047
 
        eval flag=\"$acl_hardcode_libdir_flag_spec\"
8048
 
        libdir="$acl_save_libdir"
8049
 
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8050
 
      done
8051
 
    fi
8052
 
  fi
8053
 
  if test "X$ltrpathdirs" != "X"; then
8054
 
            for found_dir in $ltrpathdirs; do
8055
 
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8056
 
    done
8057
 
  fi
8058
 
 
8059
 
 
8060
 
 
8061
 
 
8062
 
 
8063
 
 
8064
 
 
8065
 
          am_save_CPPFLAGS="$CPPFLAGS"
8066
 
 
8067
 
  for element in $INCICONV; do
8068
 
    haveit=
8069
 
    for x in $CPPFLAGS; do
8070
 
 
8071
 
  acl_save_prefix="$prefix"
8072
 
  prefix="$acl_final_prefix"
8073
 
  acl_save_exec_prefix="$exec_prefix"
8074
 
  exec_prefix="$acl_final_exec_prefix"
8075
 
  eval x=\"$x\"
8076
 
  exec_prefix="$acl_save_exec_prefix"
8077
 
  prefix="$acl_save_prefix"
8078
 
 
8079
 
      if test "X$x" = "X$element"; then
8080
 
        haveit=yes
8081
 
        break
8082
 
      fi
8083
 
    done
8084
 
    if test -z "$haveit"; then
8085
 
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8086
 
    fi
8087
 
  done
8088
 
 
8089
 
 
8090
 
  { echo "$as_me:$LINENO: checking for iconv" >&5
8091
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8092
 
if test "${am_cv_func_iconv+set}" = set; then
8093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8094
 
else
8095
 
 
8096
 
    am_cv_func_iconv="no, consider installing GNU libiconv"
8097
 
    am_cv_lib_iconv=no
8098
 
    cat >conftest.$ac_ext <<_ACEOF
8099
 
/* confdefs.h.  */
8100
 
_ACEOF
8101
 
cat confdefs.h >>conftest.$ac_ext
8102
 
cat >>conftest.$ac_ext <<_ACEOF
8103
 
/* end confdefs.h.  */
8104
 
#include <stdlib.h>
8105
 
#include <iconv.h>
8106
 
int
8107
 
main ()
8108
 
{
8109
 
iconv_t cd = iconv_open("","");
8110
 
       iconv(cd,NULL,NULL,NULL,NULL);
8111
 
       iconv_close(cd);
8112
 
  ;
8113
 
  return 0;
8114
 
}
8115
 
_ACEOF
8116
 
rm -f conftest.$ac_objext conftest$ac_exeext
8117
 
if { (ac_try="$ac_link"
8118
 
case "(($ac_try" in
8119
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120
 
  *) ac_try_echo=$ac_try;;
8121
 
esac
8122
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123
 
  (eval "$ac_link") 2>conftest.er1
8124
 
  ac_status=$?
8125
 
  grep -v '^ *+' conftest.er1 >conftest.err
8126
 
  rm -f conftest.er1
8127
 
  cat conftest.err >&5
8128
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129
 
  (exit $ac_status); } && {
8130
 
         test -z "$ac_c_werror_flag" ||
8131
 
         test ! -s conftest.err
8132
 
       } && test -s conftest$ac_exeext &&
8133
 
       $as_test_x conftest$ac_exeext; then
8134
 
  am_cv_func_iconv=yes
8135
 
else
8136
 
  echo "$as_me: failed program was:" >&5
8137
 
sed 's/^/| /' conftest.$ac_ext >&5
8138
 
 
8139
 
 
8140
 
fi
8141
 
 
8142
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8143
 
      conftest$ac_exeext conftest.$ac_ext
8144
 
    if test "$am_cv_func_iconv" != yes; then
8145
 
      am_save_LIBS="$LIBS"
8146
 
      LIBS="$LIBS $LIBICONV"
8147
 
      cat >conftest.$ac_ext <<_ACEOF
8148
 
/* confdefs.h.  */
8149
 
_ACEOF
8150
 
cat confdefs.h >>conftest.$ac_ext
8151
 
cat >>conftest.$ac_ext <<_ACEOF
8152
 
/* end confdefs.h.  */
8153
 
#include <stdlib.h>
8154
 
#include <iconv.h>
8155
 
int
8156
 
main ()
8157
 
{
8158
 
iconv_t cd = iconv_open("","");
8159
 
         iconv(cd,NULL,NULL,NULL,NULL);
8160
 
         iconv_close(cd);
8161
 
  ;
8162
 
  return 0;
8163
 
}
8164
 
_ACEOF
8165
 
rm -f conftest.$ac_objext conftest$ac_exeext
8166
 
if { (ac_try="$ac_link"
8167
 
case "(($ac_try" in
8168
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169
 
  *) ac_try_echo=$ac_try;;
8170
 
esac
8171
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172
 
  (eval "$ac_link") 2>conftest.er1
8173
 
  ac_status=$?
8174
 
  grep -v '^ *+' conftest.er1 >conftest.err
8175
 
  rm -f conftest.er1
8176
 
  cat conftest.err >&5
8177
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178
 
  (exit $ac_status); } && {
8179
 
         test -z "$ac_c_werror_flag" ||
8180
 
         test ! -s conftest.err
8181
 
       } && test -s conftest$ac_exeext &&
8182
 
       $as_test_x conftest$ac_exeext; then
8183
 
  am_cv_lib_iconv=yes
8184
 
        am_cv_func_iconv=yes
8185
 
else
8186
 
  echo "$as_me: failed program was:" >&5
8187
 
sed 's/^/| /' conftest.$ac_ext >&5
8188
 
 
8189
 
 
8190
 
fi
8191
 
 
8192
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8193
 
      conftest$ac_exeext conftest.$ac_ext
8194
 
      LIBS="$am_save_LIBS"
8195
 
    fi
8196
 
 
8197
 
fi
8198
 
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8199
 
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8200
 
  if test "$am_cv_func_iconv" = yes; then
8201
 
 
8202
 
cat >>confdefs.h <<\_ACEOF
8203
 
#define HAVE_ICONV 1
8204
 
_ACEOF
8205
 
 
8206
 
  fi
8207
 
  if test "$am_cv_lib_iconv" = yes; then
8208
 
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8209
 
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8210
 
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8211
 
echo "${ECHO_T}$LIBICONV" >&6; }
8212
 
  else
8213
 
            CPPFLAGS="$am_save_CPPFLAGS"
8214
 
    LIBICONV=
8215
 
    LTLIBICONV=
8216
 
  fi
8217
 
 
8218
 
 
8219
 
 
8220
 
  if test "$am_cv_func_iconv" = yes; then
8221
 
    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8222
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8223
 
    if test "${am_cv_proto_iconv+set}" = set; then
8224
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8225
 
else
8226
 
 
8227
 
      cat >conftest.$ac_ext <<_ACEOF
8228
 
/* confdefs.h.  */
8229
 
_ACEOF
8230
 
cat confdefs.h >>conftest.$ac_ext
8231
 
cat >>conftest.$ac_ext <<_ACEOF
8232
 
/* end confdefs.h.  */
8233
 
 
8234
 
#include <stdlib.h>
8235
 
#include <iconv.h>
8236
 
extern
8237
 
#ifdef __cplusplus
8238
 
"C"
8239
 
#endif
8240
 
#if defined(__STDC__) || defined(__cplusplus)
8241
 
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8242
 
#else
8243
 
size_t iconv();
8244
 
#endif
8245
 
 
8246
 
int
8247
 
main ()
8248
 
{
8249
 
 
8250
 
  ;
8251
 
  return 0;
8252
 
}
8253
 
_ACEOF
8254
 
rm -f conftest.$ac_objext
8255
 
if { (ac_try="$ac_compile"
8256
 
case "(($ac_try" in
8257
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258
 
  *) ac_try_echo=$ac_try;;
8259
 
esac
8260
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261
 
  (eval "$ac_compile") 2>conftest.er1
8262
 
  ac_status=$?
8263
 
  grep -v '^ *+' conftest.er1 >conftest.err
8264
 
  rm -f conftest.er1
8265
 
  cat conftest.err >&5
8266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267
 
  (exit $ac_status); } && {
8268
 
         test -z "$ac_c_werror_flag" ||
8269
 
         test ! -s conftest.err
8270
 
       } && test -s conftest.$ac_objext; then
8271
 
  am_cv_proto_iconv_arg1=""
8272
 
else
8273
 
  echo "$as_me: failed program was:" >&5
8274
 
sed 's/^/| /' conftest.$ac_ext >&5
8275
 
 
8276
 
        am_cv_proto_iconv_arg1="const"
8277
 
fi
8278
 
 
8279
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280
 
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8281
 
fi
8282
 
 
8283
 
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8284
 
    { echo "$as_me:$LINENO: result: ${ac_t:-
8285
 
         }$am_cv_proto_iconv" >&5
8286
 
echo "${ECHO_T}${ac_t:-
8287
 
         }$am_cv_proto_iconv" >&6; }
8288
 
 
8289
 
cat >>confdefs.h <<_ACEOF
8290
 
#define ICONV_CONST $am_cv_proto_iconv_arg1
8291
 
_ACEOF
8292
 
 
8293
 
  fi
8294
 
 
8295
 
  if test "$am_cv_func_iconv" != "yes"; then
8296
 
    { { echo "$as_me:$LINENO: error:
8297
 
***
8298
 
*** The iconv function is required.  You can specify its location
8299
 
*** using the --with-libiconv-prefix=PREFIX option to configure.
8300
 
***" >&5
8301
 
echo "$as_me: error:
8302
 
***
8303
 
*** The iconv function is required.  You can specify its location
8304
 
*** using the --with-libiconv-prefix=PREFIX option to configure.
8305
 
***" >&2;}
8306
 
   { (exit 1); exit 1; }; }
8307
 
  fi
8308
 
fi
8309
 
 
8310
 
 
8311
 
 
8312
 
# Check whether --enable-pinentry-gtk2 was given.
8313
 
if test "${enable_pinentry_gtk2+set}" = set; then
8314
 
  enableval=$enable_pinentry_gtk2; pinentry_gtk_2=$enableval
8315
 
else
8316
 
  pinentry_gtk_2=maybe
8317
 
fi
8318
 
 
8319
 
 
8320
 
if test "$pinentry_gtk_2" != "no"; then
8321
 
        # Extract the first word of "pkg-config", so it can be a program name with args.
8322
 
set dummy pkg-config; ac_word=$2
8323
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8324
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8325
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8326
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8327
 
else
8328
 
  case $PKG_CONFIG in
8329
 
  [\\/]* | ?:[\\/]*)
8330
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8331
 
  ;;
8332
 
  *)
8333
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334
 
for as_dir in $PATH
8335
 
do
8336
 
  IFS=$as_save_IFS
8337
 
  test -z "$as_dir" && as_dir=.
8338
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8339
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8340
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8341
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8342
 
    break 2
8343
 
  fi
8344
 
done
8345
 
done
8346
 
IFS=$as_save_IFS
8347
 
 
8348
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8349
 
  ;;
8350
 
esac
8351
 
fi
8352
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8353
 
if test -n "$PKG_CONFIG"; then
8354
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8355
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
8356
 
else
8357
 
  { echo "$as_me:$LINENO: result: no" >&5
8358
 
echo "${ECHO_T}no" >&6; }
8359
 
fi
8360
 
 
8361
 
 
8362
 
        if test x"${PKG_CONFIG}" = xno ; then
8363
 
                pinentry_gtk_2=no
8364
 
        fi
8365
 
fi
8366
 
 
8367
 
if test "$pinentry_gtk_2" != "no"; then
8368
 
        { echo "$as_me:$LINENO: checking for gtk+-2" >&5
8369
 
echo $ECHO_N "checking for gtk+-2... $ECHO_C" >&6; }
8370
 
        "${PKG_CONFIG}" --exists gtk+-2.0
8371
 
        if test $? -ne 0 ; then
8372
 
                { echo "$as_me:$LINENO: result: no" >&5
8373
 
echo "${ECHO_T}no" >&6; }
8374
 
                { echo "$as_me:$LINENO: WARNING: pkg-config could not find the module gtk+-2.0" >&5
8375
 
echo "$as_me: WARNING: pkg-config could not find the module gtk+-2.0" >&2;}
8376
 
                pinentry_gtk_2=no
8377
 
        else
8378
 
                { echo "$as_me:$LINENO: result: yes" >&5
8379
 
echo "${ECHO_T}yes" >&6; }
8380
 
                { echo "$as_me:$LINENO: checking gtk+-2 version >= 2.4.0" >&5
8381
 
echo $ECHO_N "checking gtk+-2 version >= 2.4.0... $ECHO_C" >&6; }
8382
 
                modvers=`"${PKG_CONFIG}" --modversion gtk+-2.0`
8383
 
                { echo "$as_me:$LINENO: result: $modvers" >&5
8384
 
echo "${ECHO_T}$modvers" >&6; }
8385
 
                "${PKG_CONFIG}" --atleast-version=2.4.0 gtk+-2.0
8386
 
                if test $? -ne 0 ; then
8387
 
                        { echo "$as_me:$LINENO: WARNING: building GTK+-2 pinentry disabled" >&5
8388
 
echo "$as_me: WARNING: building GTK+-2 pinentry disabled" >&2;}
8389
 
                        pinentry_gtk_2=no
8390
 
                else
8391
 
                        GTK2CFLAGS=`"${PKG_CONFIG}" --cflags gtk+-2.0`
8392
 
                        GTK2LIBS=`"${PKG_CONFIG}" --libs gtk+-2.0`
8393
 
 
8394
 
 
8395
 
                        pinentry_gtk_2=yes
8396
 
                fi
8397
 
        fi
8398
 
fi
8399
 
 if test "$pinentry_gtk_2" = "yes"; then
8400
 
  BUILD_PINENTRY_GTK_2_TRUE=
8401
 
  BUILD_PINENTRY_GTK_2_FALSE='#'
8402
 
else
8403
 
  BUILD_PINENTRY_GTK_2_TRUE='#'
8404
 
  BUILD_PINENTRY_GTK_2_FALSE=
8405
 
fi
8406
 
 
8407
 
 
8408
 
 
8409
 
# Check whether --enable-pinentry-qt was given.
8410
 
if test "${enable_pinentry_qt+set}" = set; then
8411
 
  enableval=$enable_pinentry_qt; pinentry_qt=$enableval
8412
 
else
8413
 
  pinentry_qt=maybe
8414
 
fi
8415
 
 
8416
 
if test "$pinentry_qt" != "no"; then
8417
 
 
8418
 
 
8419
 
  ac_ext=cpp
8420
 
ac_cpp='$CXXCPP $CPPFLAGS'
8421
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8424
 
if test -z "$CXX"; then
8425
 
  if test -n "$CCC"; then
8426
 
    CXX=$CCC
8427
 
  else
8428
 
    if test -n "$ac_tool_prefix"; then
8429
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8430
 
  do
8431
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8432
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8433
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8434
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8435
 
if test "${ac_cv_prog_CXX+set}" = set; then
8436
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8437
 
else
8438
 
  if test -n "$CXX"; then
8439
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8440
 
else
8441
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442
 
for as_dir in $PATH
8443
 
do
8444
 
  IFS=$as_save_IFS
8445
 
  test -z "$as_dir" && as_dir=.
8446
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8447
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8449
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8450
 
    break 2
8451
 
  fi
8452
 
done
8453
 
done
8454
 
IFS=$as_save_IFS
8455
 
 
8456
 
fi
8457
 
fi
8458
 
CXX=$ac_cv_prog_CXX
8459
 
if test -n "$CXX"; then
8460
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
8461
 
echo "${ECHO_T}$CXX" >&6; }
8462
 
else
8463
 
  { echo "$as_me:$LINENO: result: no" >&5
8464
 
echo "${ECHO_T}no" >&6; }
8465
 
fi
8466
 
 
8467
 
 
8468
 
    test -n "$CXX" && break
8469
 
  done
8470
 
fi
8471
 
if test -z "$CXX"; then
8472
 
  ac_ct_CXX=$CXX
8473
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8474
 
do
8475
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
8476
 
set dummy $ac_prog; ac_word=$2
8477
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8478
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8480
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8481
 
else
8482
 
  if test -n "$ac_ct_CXX"; then
8483
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8484
 
else
8485
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486
 
for as_dir in $PATH
8487
 
do
8488
 
  IFS=$as_save_IFS
8489
 
  test -z "$as_dir" && as_dir=.
8490
 
  for ac_exec_ext in '' $ac_executable_extensions; do
8491
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
8493
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494
 
    break 2
8495
 
  fi
8496
 
done
8497
 
done
8498
 
IFS=$as_save_IFS
8499
 
 
8500
 
fi
8501
 
fi
8502
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8503
 
if test -n "$ac_ct_CXX"; then
8504
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8505
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
8506
 
else
8507
 
  { echo "$as_me:$LINENO: result: no" >&5
8508
 
echo "${ECHO_T}no" >&6; }
8509
 
fi
8510
 
 
8511
 
 
8512
 
  test -n "$ac_ct_CXX" && break
8513
 
done
8514
 
 
8515
 
  if test "x$ac_ct_CXX" = x; then
8516
 
    CXX="g++"
8517
 
  else
8518
 
    case $cross_compiling:$ac_tool_warned in
8519
 
yes:)
8520
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8521
 
whose name does not start with the host triplet.  If you think this
8522
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
8523
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8524
 
whose name does not start with the host triplet.  If you think this
8525
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8526
 
ac_tool_warned=yes ;;
8527
 
esac
8528
 
    CXX=$ac_ct_CXX
8529
 
  fi
8530
 
fi
8531
 
 
8532
 
  fi
8533
 
fi
8534
 
# Provide some information about the compiler.
8535
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8536
 
ac_compiler=`set X $ac_compile; echo $2`
8537
 
{ (ac_try="$ac_compiler --version >&5"
8538
 
case "(($ac_try" in
8539
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540
 
  *) ac_try_echo=$ac_try;;
8541
 
esac
8542
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543
 
  (eval "$ac_compiler --version >&5") 2>&5
8544
 
  ac_status=$?
8545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
 
  (exit $ac_status); }
8547
 
{ (ac_try="$ac_compiler -v >&5"
8548
 
case "(($ac_try" in
8549
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550
 
  *) ac_try_echo=$ac_try;;
8551
 
esac
8552
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553
 
  (eval "$ac_compiler -v >&5") 2>&5
8554
 
  ac_status=$?
8555
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556
 
  (exit $ac_status); }
8557
 
{ (ac_try="$ac_compiler -V >&5"
8558
 
case "(($ac_try" in
8559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560
 
  *) ac_try_echo=$ac_try;;
8561
 
esac
8562
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563
 
  (eval "$ac_compiler -V >&5") 2>&5
8564
 
  ac_status=$?
8565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566
 
  (exit $ac_status); }
8567
 
 
8568
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8569
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8570
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8571
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8572
 
else
8573
 
  cat >conftest.$ac_ext <<_ACEOF
8574
 
/* confdefs.h.  */
8575
 
_ACEOF
8576
 
cat confdefs.h >>conftest.$ac_ext
8577
 
cat >>conftest.$ac_ext <<_ACEOF
8578
 
/* end confdefs.h.  */
8579
 
 
8580
 
int
8581
 
main ()
8582
 
{
8583
 
#ifndef __GNUC__
8584
 
       choke me
8585
 
#endif
8586
 
 
8587
 
  ;
8588
 
  return 0;
8589
 
}
8590
 
_ACEOF
8591
 
rm -f conftest.$ac_objext
8592
 
if { (ac_try="$ac_compile"
8593
 
case "(($ac_try" in
8594
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595
 
  *) ac_try_echo=$ac_try;;
8596
 
esac
8597
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598
 
  (eval "$ac_compile") 2>conftest.er1
8599
 
  ac_status=$?
8600
 
  grep -v '^ *+' conftest.er1 >conftest.err
8601
 
  rm -f conftest.er1
8602
 
  cat conftest.err >&5
8603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604
 
  (exit $ac_status); } && {
8605
 
         test -z "$ac_cxx_werror_flag" ||
8606
 
         test ! -s conftest.err
8607
 
       } && test -s conftest.$ac_objext; then
8608
 
  ac_compiler_gnu=yes
8609
 
else
8610
 
  echo "$as_me: failed program was:" >&5
8611
 
sed 's/^/| /' conftest.$ac_ext >&5
8612
 
 
8613
 
        ac_compiler_gnu=no
8614
 
fi
8615
 
 
8616
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8618
 
 
8619
 
fi
8620
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8621
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8622
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
8623
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
8624
 
ac_save_CXXFLAGS=$CXXFLAGS
8625
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8626
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8627
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
8628
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8629
 
else
8630
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8631
 
   ac_cxx_werror_flag=yes
8632
 
   ac_cv_prog_cxx_g=no
8633
 
   CXXFLAGS="-g"
8634
 
   cat >conftest.$ac_ext <<_ACEOF
8635
 
/* confdefs.h.  */
8636
 
_ACEOF
8637
 
cat confdefs.h >>conftest.$ac_ext
8638
 
cat >>conftest.$ac_ext <<_ACEOF
8639
 
/* end confdefs.h.  */
8640
 
 
8641
 
int
8642
 
main ()
8643
 
{
8644
 
 
8645
 
  ;
8646
 
  return 0;
8647
 
}
8648
 
_ACEOF
8649
 
rm -f conftest.$ac_objext
8650
 
if { (ac_try="$ac_compile"
8651
 
case "(($ac_try" in
8652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653
 
  *) ac_try_echo=$ac_try;;
8654
 
esac
8655
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656
 
  (eval "$ac_compile") 2>conftest.er1
8657
 
  ac_status=$?
8658
 
  grep -v '^ *+' conftest.er1 >conftest.err
8659
 
  rm -f conftest.er1
8660
 
  cat conftest.err >&5
8661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662
 
  (exit $ac_status); } && {
8663
 
         test -z "$ac_cxx_werror_flag" ||
8664
 
         test ! -s conftest.err
8665
 
       } && test -s conftest.$ac_objext; then
8666
 
  ac_cv_prog_cxx_g=yes
8667
 
else
8668
 
  echo "$as_me: failed program was:" >&5
8669
 
sed 's/^/| /' conftest.$ac_ext >&5
8670
 
 
8671
 
        CXXFLAGS=""
8672
 
      cat >conftest.$ac_ext <<_ACEOF
8673
 
/* confdefs.h.  */
8674
 
_ACEOF
8675
 
cat confdefs.h >>conftest.$ac_ext
8676
 
cat >>conftest.$ac_ext <<_ACEOF
8677
 
/* end confdefs.h.  */
8678
 
 
8679
 
int
8680
 
main ()
8681
 
{
8682
 
 
8683
 
  ;
8684
 
  return 0;
8685
 
}
8686
 
_ACEOF
8687
 
rm -f conftest.$ac_objext
8688
 
if { (ac_try="$ac_compile"
8689
 
case "(($ac_try" in
8690
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691
 
  *) ac_try_echo=$ac_try;;
8692
 
esac
8693
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694
 
  (eval "$ac_compile") 2>conftest.er1
8695
 
  ac_status=$?
8696
 
  grep -v '^ *+' conftest.er1 >conftest.err
8697
 
  rm -f conftest.er1
8698
 
  cat conftest.err >&5
8699
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700
 
  (exit $ac_status); } && {
8701
 
         test -z "$ac_cxx_werror_flag" ||
8702
 
         test ! -s conftest.err
8703
 
       } && test -s conftest.$ac_objext; then
8704
 
  :
8705
 
else
8706
 
  echo "$as_me: failed program was:" >&5
8707
 
sed 's/^/| /' conftest.$ac_ext >&5
8708
 
 
8709
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8710
 
         CXXFLAGS="-g"
8711
 
         cat >conftest.$ac_ext <<_ACEOF
8712
 
/* confdefs.h.  */
8713
 
_ACEOF
8714
 
cat confdefs.h >>conftest.$ac_ext
8715
 
cat >>conftest.$ac_ext <<_ACEOF
8716
 
/* end confdefs.h.  */
8717
 
 
8718
 
int
8719
 
main ()
8720
 
{
8721
 
 
8722
 
  ;
8723
 
  return 0;
8724
 
}
8725
 
_ACEOF
8726
 
rm -f conftest.$ac_objext
8727
 
if { (ac_try="$ac_compile"
8728
 
case "(($ac_try" in
8729
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730
 
  *) ac_try_echo=$ac_try;;
8731
 
esac
8732
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733
 
  (eval "$ac_compile") 2>conftest.er1
8734
 
  ac_status=$?
8735
 
  grep -v '^ *+' conftest.er1 >conftest.err
8736
 
  rm -f conftest.er1
8737
 
  cat conftest.err >&5
8738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739
 
  (exit $ac_status); } && {
8740
 
         test -z "$ac_cxx_werror_flag" ||
8741
 
         test ! -s conftest.err
8742
 
       } && test -s conftest.$ac_objext; then
8743
 
  ac_cv_prog_cxx_g=yes
8744
 
else
8745
 
  echo "$as_me: failed program was:" >&5
8746
 
sed 's/^/| /' conftest.$ac_ext >&5
8747
 
 
8748
 
 
8749
 
fi
8750
 
 
8751
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752
 
fi
8753
 
 
8754
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755
 
fi
8756
 
 
8757
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8759
 
fi
8760
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8761
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8762
 
if test "$ac_test_CXXFLAGS" = set; then
8763
 
  CXXFLAGS=$ac_save_CXXFLAGS
8764
 
elif test $ac_cv_prog_cxx_g = yes; then
8765
 
  if test "$GXX" = yes; then
8766
 
    CXXFLAGS="-g -O2"
8767
 
  else
8768
 
    CXXFLAGS="-g"
8769
 
  fi
8770
 
else
8771
 
  if test "$GXX" = yes; then
8772
 
    CXXFLAGS="-O2"
8773
 
  else
8774
 
    CXXFLAGS=
8775
 
  fi
8776
 
fi
8777
 
ac_ext=c
8778
 
ac_cpp='$CPP $CPPFLAGS'
8779
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8782
 
 
8783
 
depcc="$CXX"  am_compiler_list=
8784
 
 
8785
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8786
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8787
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8789
 
else
8790
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8791
 
  # We make a subdir and do the tests there.  Otherwise we can end up
8792
 
  # making bogus files that we don't know about and never remove.  For
8793
 
  # instance it was reported that on HP-UX the gcc test will end up
8794
 
  # making a dummy file named `D' -- because `-MD' means `put the output
8795
 
  # in D'.
8796
 
  mkdir conftest.dir
8797
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
8798
 
  # using a relative directory.
8799
 
  cp "$am_depcomp" conftest.dir
8800
 
  cd conftest.dir
8801
 
  # We will build objects and dependencies in a subdirectory because
8802
 
  # it helps to detect inapplicable dependency modes.  For instance
8803
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
8804
 
  # side effect of compilation, but ICC will put the dependencies in
8805
 
  # the current directory while Tru64 will put them in the object
8806
 
  # directory.
8807
 
  mkdir sub
8808
 
 
8809
 
  am_cv_CXX_dependencies_compiler_type=none
8810
 
  if test "$am_compiler_list" = ""; then
8811
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8812
 
  fi
8813
 
  for depmode in $am_compiler_list; do
8814
 
    # Setup a source with many dependencies, because some compilers
8815
 
    # like to wrap large dependency lists on column 80 (with \), and
8816
 
    # we should not choose a depcomp mode which is confused by this.
8817
 
    #
8818
 
    # We need to recreate these files for each test, as the compiler may
8819
 
    # overwrite some of them when testing with obscure command lines.
8820
 
    # This happens at least with the AIX C compiler.
8821
 
    : > sub/conftest.c
8822
 
    for i in 1 2 3 4 5 6; do
8823
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8824
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8825
 
      # Solaris 8's {/usr,}/bin/sh.
8826
 
      touch sub/conftst$i.h
8827
 
    done
8828
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8829
 
 
8830
 
    case $depmode in
8831
 
    nosideeffect)
8832
 
      # after this tag, mechanisms are not by side-effect, so they'll
8833
 
      # only be used when explicitly requested
8834
 
      if test "x$enable_dependency_tracking" = xyes; then
8835
 
        continue
8836
 
      else
8837
 
        break
8838
 
      fi
8839
 
      ;;
8840
 
    none) break ;;
8841
 
    esac
8842
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8843
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
8844
 
    # handle `-M -o', and we need to detect this.
8845
 
    if depmode=$depmode \
8846
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8847
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8848
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8849
 
         >/dev/null 2>conftest.err &&
8850
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8851
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8852
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8853
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8854
 
      # icc doesn't choke on unknown options, it will just issue warnings
8855
 
      # or remarks (even with -Werror).  So we grep stderr for any message
8856
 
      # that says an option was ignored or not supported.
8857
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
8858
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
8859
 
      # The diagnosis changed in icc 8.0:
8860
 
      #   icc: Command line remark: option '-MP' not supported
8861
 
      if (grep 'ignoring option' conftest.err ||
8862
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8863
 
        am_cv_CXX_dependencies_compiler_type=$depmode
8864
 
        break
8865
 
      fi
8866
 
    fi
8867
 
  done
8868
 
 
8869
 
  cd ..
8870
 
  rm -rf conftest.dir
8871
 
else
8872
 
  am_cv_CXX_dependencies_compiler_type=none
8873
 
fi
8874
 
 
8875
 
fi
8876
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8877
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
8878
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8879
 
 
8880
 
 if
8881
 
  test "x$enable_dependency_tracking" != xno \
8882
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8883
 
  am__fastdepCXX_TRUE=
8884
 
  am__fastdepCXX_FALSE='#'
8885
 
else
8886
 
  am__fastdepCXX_TRUE='#'
8887
 
  am__fastdepCXX_FALSE=
8888
 
fi
8889
 
 
8890
 
 
8891
 
 
8892
 
 
8893
 
{ echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
8894
 
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
8895
 
kde_cache=`echo fexceptions | sed 'y% .=/+-%____p_%'`
8896
 
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
8897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8898
 
else
8899
 
 
8900
 
  ac_ext=cpp
8901
 
ac_cpp='$CXXCPP $CPPFLAGS'
8902
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8903
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8904
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8905
 
 
8906
 
  save_CXXFLAGS="$CXXFLAGS"
8907
 
  CXXFLAGS="$CXXFLAGS -fexceptions"
8908
 
  cat >conftest.$ac_ext <<_ACEOF
8909
 
/* confdefs.h.  */
8910
 
_ACEOF
8911
 
cat confdefs.h >>conftest.$ac_ext
8912
 
cat >>conftest.$ac_ext <<_ACEOF
8913
 
/* end confdefs.h.  */
8914
 
 
8915
 
int
8916
 
main ()
8917
 
{
8918
 
 return 0;
8919
 
  ;
8920
 
  return 0;
8921
 
}
8922
 
_ACEOF
8923
 
rm -f conftest.$ac_objext conftest$ac_exeext
8924
 
if { (ac_try="$ac_link"
8925
 
case "(($ac_try" in
8926
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927
 
  *) ac_try_echo=$ac_try;;
8928
 
esac
8929
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930
 
  (eval "$ac_link") 2>conftest.er1
8931
 
  ac_status=$?
8932
 
  grep -v '^ *+' conftest.er1 >conftest.err
8933
 
  rm -f conftest.er1
8934
 
  cat conftest.err >&5
8935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936
 
  (exit $ac_status); } && {
8937
 
         test -z "$ac_cxx_werror_flag" ||
8938
 
         test ! -s conftest.err
8939
 
       } && test -s conftest$ac_exeext &&
8940
 
       $as_test_x conftest$ac_exeext; then
8941
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
8942
 
else
8943
 
  echo "$as_me: failed program was:" >&5
8944
 
sed 's/^/| /' conftest.$ac_ext >&5
8945
 
 
8946
 
 
8947
 
fi
8948
 
 
8949
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8950
 
      conftest$ac_exeext conftest.$ac_ext
8951
 
  CXXFLAGS="$save_CXXFLAGS"
8952
 
  ac_ext=c
8953
 
ac_cpp='$CPP $CPPFLAGS'
8954
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957
 
 
8958
 
 
8959
 
fi
8960
 
 
8961
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
8962
 
 { echo "$as_me:$LINENO: result: yes" >&5
8963
 
echo "${ECHO_T}yes" >&6; }
8964
 
 :
8965
 
 QT_CXXFLAGS="$QT_CXXFLAGS -fexceptions"
8966
 
else
8967
 
 { echo "$as_me:$LINENO: result: no" >&5
8968
 
echo "${ECHO_T}no" >&6; }
8969
 
 :
8970
 
 
8971
 
fi
8972
 
 
8973
 
 
8974
 
  case "$host" in
8975
 
      *-*-irix*)  test "$GXX" = yes && QT_CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $QT_CXXFLAGS" ;;
8976
 
      *-*-sysv4.2uw*) QT_CXXFLAGS="-D_UNIXWARE $QT_CXXFLAGS";;
8977
 
      *-*-sysv5uw7*) QT_CXXFLAGS="-D_UNIXWARE7 $QT_CXXFLAGS";;
8978
 
      *-*-solaris*)
8979
 
        if test "$GXX" = yes; then
8980
 
          libstdcpp=`$CXX -print-file-name=libstdc++.so`
8981
 
          if test ! -f $libstdcpp; then
8982
 
             { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with the Qt pinentry. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
8983
 
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with the Qt pinentry. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
8984
 
   { (exit 1); exit 1; }; }
8985
 
          fi
8986
 
        fi
8987
 
        ;;
8988
 
  esac
8989
 
 
8990
 
  if test "x$qt_use_emb" != "xyes"; then
8991
 
  __val=$CXX
8992
 
  __forbid=" -fno-rtti -rpath "
8993
 
  if test -n "$__val"; then
8994
 
    __new=""
8995
 
    ac_save_IFS=$IFS
8996
 
    IFS="       "
8997
 
    for i in $__val; do
8998
 
      case "$__forbid" in
8999
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
9000
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
9001
 
        *) # Careful to not add spaces, where there were none, because otherwise
9002
 
           # libtool gets confused, if we change e.g. CXX
9003
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9004
 
      esac
9005
 
    done
9006
 
    IFS=$ac_save_IFS
9007
 
    CXX=$__new
9008
 
  fi
9009
 
 
9010
 
  __val=$CXXFLAGS
9011
 
  __forbid=" -fno-rtti -rpath "
9012
 
  if test -n "$__val"; then
9013
 
    __new=""
9014
 
    ac_save_IFS=$IFS
9015
 
    IFS="       "
9016
 
    for i in $__val; do
9017
 
      case "$__forbid" in
9018
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
9019
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
9020
 
        *) # Careful to not add spaces, where there were none, because otherwise
9021
 
           # libtool gets confused, if we change e.g. CXX
9022
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9023
 
      esac
9024
 
    done
9025
 
    IFS=$ac_save_IFS
9026
 
    CXXFLAGS=$__new
9027
 
  fi
9028
 
 
9029
 
else
9030
 
  __val=$CXX
9031
 
  __forbid=" -rpath "
9032
 
  if test -n "$__val"; then
9033
 
    __new=""
9034
 
    ac_save_IFS=$IFS
9035
 
    IFS="       "
9036
 
    for i in $__val; do
9037
 
      case "$__forbid" in
9038
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
9039
 
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
9040
 
        *) # Careful to not add spaces, where there were none, because otherwise
9041
 
           # libtool gets confused, if we change e.g. CXX
9042
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9043
 
      esac
9044
 
    done
9045
 
    IFS=$ac_save_IFS
9046
 
    CXX=$__new
9047
 
  fi
9048
 
 
9049
 
  __val=$CXXFLAGS
9050
 
  __forbid=" -rpath "
9051
 
  if test -n "$__val"; then
9052
 
    __new=""
9053
 
    ac_save_IFS=$IFS
9054
 
    IFS="       "
9055
 
    for i in $__val; do
9056
 
      case "$__forbid" in
9057
 
        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
9058
 
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
9059
 
        *) # Careful to not add spaces, where there were none, because otherwise
9060
 
           # libtool gets confused, if we change e.g. CXX
9061
 
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9062
 
      esac
9063
 
    done
9064
 
    IFS=$ac_save_IFS
9065
 
    CXXFLAGS=$__new
9066
 
  fi
9067
 
 
9068
 
fi
9069
 
 
9070
 
 
9071
 
  ac_ext=cpp
9072
 
ac_cpp='$CXXCPP $CPPFLAGS'
9073
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9074
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9075
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9076
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9077
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
9078
 
if test -z "$CXXCPP"; then
9079
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9080
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9081
 
else
9082
 
      # Double quotes because CXXCPP needs to be expanded
9083
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
9084
 
    do
9085
 
      ac_preproc_ok=false
9086
 
for ac_cxx_preproc_warn_flag in '' yes
9087
 
do
9088
 
  # Use a header file that comes with gcc, so configuring glibc
9089
 
  # with a fresh cross-compiler works.
9090
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9091
 
  # <limits.h> exists even on freestanding compilers.
9092
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
9093
 
  # not just through cpp. "Syntax error" is here to catch this case.
9094
 
  cat >conftest.$ac_ext <<_ACEOF
9095
 
/* confdefs.h.  */
9096
 
_ACEOF
9097
 
cat confdefs.h >>conftest.$ac_ext
9098
 
cat >>conftest.$ac_ext <<_ACEOF
9099
 
/* end confdefs.h.  */
9100
 
#ifdef __STDC__
9101
 
# include <limits.h>
9102
 
#else
9103
 
# include <assert.h>
9104
 
#endif
9105
 
                     Syntax error
9106
 
_ACEOF
9107
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9108
 
case "(($ac_try" in
9109
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110
 
  *) ac_try_echo=$ac_try;;
9111
 
esac
9112
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9114
 
  ac_status=$?
9115
 
  grep -v '^ *+' conftest.er1 >conftest.err
9116
 
  rm -f conftest.er1
9117
 
  cat conftest.err >&5
9118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119
 
  (exit $ac_status); } >/dev/null && {
9120
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9121
 
         test ! -s conftest.err
9122
 
       }; then
9123
 
  :
9124
 
else
9125
 
  echo "$as_me: failed program was:" >&5
9126
 
sed 's/^/| /' conftest.$ac_ext >&5
9127
 
 
9128
 
  # Broken: fails on valid input.
9129
 
continue
9130
 
fi
9131
 
 
9132
 
rm -f conftest.err conftest.$ac_ext
9133
 
 
9134
 
  # OK, works on sane cases.  Now check whether nonexistent headers
9135
 
  # can be detected and how.
9136
 
  cat >conftest.$ac_ext <<_ACEOF
9137
 
/* confdefs.h.  */
9138
 
_ACEOF
9139
 
cat confdefs.h >>conftest.$ac_ext
9140
 
cat >>conftest.$ac_ext <<_ACEOF
9141
 
/* end confdefs.h.  */
9142
 
#include <ac_nonexistent.h>
9143
 
_ACEOF
9144
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9145
 
case "(($ac_try" in
9146
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147
 
  *) ac_try_echo=$ac_try;;
9148
 
esac
9149
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9151
 
  ac_status=$?
9152
 
  grep -v '^ *+' conftest.er1 >conftest.err
9153
 
  rm -f conftest.er1
9154
 
  cat conftest.err >&5
9155
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156
 
  (exit $ac_status); } >/dev/null && {
9157
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9158
 
         test ! -s conftest.err
9159
 
       }; then
9160
 
  # Broken: success on invalid input.
9161
 
continue
9162
 
else
9163
 
  echo "$as_me: failed program was:" >&5
9164
 
sed 's/^/| /' conftest.$ac_ext >&5
9165
 
 
9166
 
  # Passes both tests.
9167
 
ac_preproc_ok=:
9168
 
break
9169
 
fi
9170
 
 
9171
 
rm -f conftest.err conftest.$ac_ext
9172
 
 
9173
 
done
9174
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9175
 
rm -f conftest.err conftest.$ac_ext
9176
 
if $ac_preproc_ok; then
9177
 
  break
9178
 
fi
9179
 
 
9180
 
    done
9181
 
    ac_cv_prog_CXXCPP=$CXXCPP
9182
 
 
9183
 
fi
9184
 
  CXXCPP=$ac_cv_prog_CXXCPP
9185
 
else
9186
 
  ac_cv_prog_CXXCPP=$CXXCPP
9187
 
fi
9188
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
9189
 
echo "${ECHO_T}$CXXCPP" >&6; }
9190
 
ac_preproc_ok=false
9191
 
for ac_cxx_preproc_warn_flag in '' yes
9192
 
do
9193
 
  # Use a header file that comes with gcc, so configuring glibc
9194
 
  # with a fresh cross-compiler works.
9195
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9196
 
  # <limits.h> exists even on freestanding compilers.
9197
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
9198
 
  # not just through cpp. "Syntax error" is here to catch this case.
9199
 
  cat >conftest.$ac_ext <<_ACEOF
9200
 
/* confdefs.h.  */
9201
 
_ACEOF
9202
 
cat confdefs.h >>conftest.$ac_ext
9203
 
cat >>conftest.$ac_ext <<_ACEOF
9204
 
/* end confdefs.h.  */
9205
 
#ifdef __STDC__
9206
 
# include <limits.h>
9207
 
#else
9208
 
# include <assert.h>
9209
 
#endif
9210
 
                     Syntax error
9211
 
_ACEOF
9212
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9213
 
case "(($ac_try" in
9214
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215
 
  *) ac_try_echo=$ac_try;;
9216
 
esac
9217
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9219
 
  ac_status=$?
9220
 
  grep -v '^ *+' conftest.er1 >conftest.err
9221
 
  rm -f conftest.er1
9222
 
  cat conftest.err >&5
9223
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224
 
  (exit $ac_status); } >/dev/null && {
9225
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9226
 
         test ! -s conftest.err
9227
 
       }; then
9228
 
  :
9229
 
else
9230
 
  echo "$as_me: failed program was:" >&5
9231
 
sed 's/^/| /' conftest.$ac_ext >&5
9232
 
 
9233
 
  # Broken: fails on valid input.
9234
 
continue
9235
 
fi
9236
 
 
9237
 
rm -f conftest.err conftest.$ac_ext
9238
 
 
9239
 
  # OK, works on sane cases.  Now check whether nonexistent headers
9240
 
  # can be detected and how.
9241
 
  cat >conftest.$ac_ext <<_ACEOF
9242
 
/* confdefs.h.  */
9243
 
_ACEOF
9244
 
cat confdefs.h >>conftest.$ac_ext
9245
 
cat >>conftest.$ac_ext <<_ACEOF
9246
 
/* end confdefs.h.  */
9247
 
#include <ac_nonexistent.h>
9248
 
_ACEOF
9249
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9250
 
case "(($ac_try" in
9251
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252
 
  *) ac_try_echo=$ac_try;;
9253
 
esac
9254
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9256
 
  ac_status=$?
9257
 
  grep -v '^ *+' conftest.er1 >conftest.err
9258
 
  rm -f conftest.er1
9259
 
  cat conftest.err >&5
9260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261
 
  (exit $ac_status); } >/dev/null && {
9262
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9263
 
         test ! -s conftest.err
9264
 
       }; then
9265
 
  # Broken: success on invalid input.
9266
 
continue
9267
 
else
9268
 
  echo "$as_me: failed program was:" >&5
9269
 
sed 's/^/| /' conftest.$ac_ext >&5
9270
 
 
9271
 
  # Passes both tests.
9272
 
ac_preproc_ok=:
9273
 
break
9274
 
fi
9275
 
 
9276
 
rm -f conftest.err conftest.$ac_ext
9277
 
 
9278
 
done
9279
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9280
 
rm -f conftest.err conftest.$ac_ext
9281
 
if $ac_preproc_ok; then
9282
 
  :
9283
 
else
9284
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9285
 
See \`config.log' for more details." >&5
9286
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9287
 
See \`config.log' for more details." >&2;}
9288
 
   { (exit 1); exit 1; }; }
9289
 
fi
9290
 
 
9291
 
ac_ext=c
9292
 
ac_cpp='$CPP $CPPFLAGS'
9293
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9296
 
 
9297
 
 
9298
 
 
9299
 
# Check whether --enable-embedded was given.
9300
 
if test "${enable_embedded+set}" = set; then
9301
 
  enableval=$enable_embedded; qt_use_emb=$enableval
9302
 
else
9303
 
  qt_use_emb=no
9304
 
 
9305
 
fi
9306
 
 
9307
 
 
9308
 
# Check whether --enable-palmtop was given.
9309
 
if test "${enable_palmtop+set}" = set; then
9310
 
  enableval=$enable_palmtop; qt_use_emb_palm=$enableval
9311
 
else
9312
 
  qt_use_emb_palm=no
9313
 
 
9314
 
fi
9315
 
 
9316
 
 
9317
 
if test "$qt_use_emb" = "no"; then
9318
 
  { echo "$as_me:$LINENO: checking for X" >&5
9319
 
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9320
 
 
9321
 
 
9322
 
# Check whether --with-x was given.
9323
 
if test "${with_x+set}" = set; then
9324
 
  withval=$with_x;
9325
 
fi
9326
 
 
9327
 
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9328
 
if test "x$with_x" = xno; then
9329
 
  # The user explicitly disabled X.
9330
 
  have_x=disabled
9331
 
else
9332
 
  case $x_includes,$x_libraries in #(
9333
 
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9334
 
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9335
 
   { (exit 1); exit 1; }; };; #(
9336
 
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9337
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9338
 
else
9339
 
  # One or both of the vars are not set, and there is no cached value.
9340
 
ac_x_includes=no ac_x_libraries=no
9341
 
rm -f -r conftest.dir
9342
 
if mkdir conftest.dir; then
9343
 
  cd conftest.dir
9344
 
  cat >Imakefile <<'_ACEOF'
9345
 
incroot:
9346
 
        @echo incroot='${INCROOT}'
9347
 
usrlibdir:
9348
 
        @echo usrlibdir='${USRLIBDIR}'
9349
 
libdir:
9350
 
        @echo libdir='${LIBDIR}'
9351
 
_ACEOF
9352
 
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9353
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9354
 
    for ac_var in incroot usrlibdir libdir; do
9355
 
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9356
 
    done
9357
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9358
 
    for ac_extension in a so sl; do
9359
 
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9360
 
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
9361
 
        ac_im_usrlibdir=$ac_im_libdir; break
9362
 
      fi
9363
 
    done
9364
 
    # Screen out bogus values from the imake configuration.  They are
9365
 
    # bogus both because they are the default anyway, and because
9366
 
    # using them would break gcc on systems where it needs fixed includes.
9367
 
    case $ac_im_incroot in
9368
 
        /usr/include) ac_x_includes= ;;
9369
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9370
 
    esac
9371
 
    case $ac_im_usrlibdir in
9372
 
        /usr/lib | /lib) ;;
9373
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9374
 
    esac
9375
 
  fi
9376
 
  cd ..
9377
 
  rm -f -r conftest.dir
9378
 
fi
9379
 
 
9380
 
# Standard set of common directories for X headers.
9381
 
# Check X11 before X11Rn because it is often a symlink to the current release.
9382
 
ac_x_header_dirs='
9383
 
/usr/X11/include
9384
 
/usr/X11R6/include
9385
 
/usr/X11R5/include
9386
 
/usr/X11R4/include
9387
 
 
9388
 
/usr/include/X11
9389
 
/usr/include/X11R6
9390
 
/usr/include/X11R5
9391
 
/usr/include/X11R4
9392
 
 
9393
 
/usr/local/X11/include
9394
 
/usr/local/X11R6/include
9395
 
/usr/local/X11R5/include
9396
 
/usr/local/X11R4/include
9397
 
 
9398
 
/usr/local/include/X11
9399
 
/usr/local/include/X11R6
9400
 
/usr/local/include/X11R5
9401
 
/usr/local/include/X11R4
9402
 
 
9403
 
/usr/X386/include
9404
 
/usr/x386/include
9405
 
/usr/XFree86/include/X11
9406
 
 
9407
 
/usr/include
9408
 
/usr/local/include
9409
 
/usr/unsupported/include
9410
 
/usr/athena/include
9411
 
/usr/local/x11r5/include
9412
 
/usr/lpp/Xamples/include
9413
 
 
9414
 
/usr/openwin/include
9415
 
/usr/openwin/share/include'
9416
 
 
9417
 
if test "$ac_x_includes" = no; then
9418
 
  # Guess where to find include files, by looking for Xlib.h.
9419
 
  # First, try using that file with no special directory specified.
9420
 
  cat >conftest.$ac_ext <<_ACEOF
9421
 
/* confdefs.h.  */
9422
 
_ACEOF
9423
 
cat confdefs.h >>conftest.$ac_ext
9424
 
cat >>conftest.$ac_ext <<_ACEOF
9425
 
/* end confdefs.h.  */
9426
 
#include <X11/Xlib.h>
9427
 
_ACEOF
9428
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
9429
 
case "(($ac_try" in
9430
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431
 
  *) ac_try_echo=$ac_try;;
9432
 
esac
9433
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9435
 
  ac_status=$?
9436
 
  grep -v '^ *+' conftest.er1 >conftest.err
9437
 
  rm -f conftest.er1
9438
 
  cat conftest.err >&5
9439
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440
 
  (exit $ac_status); } >/dev/null && {
9441
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9442
 
         test ! -s conftest.err
9443
 
       }; then
9444
 
  # We can compile using X headers with no special include directory.
9445
 
ac_x_includes=
9446
 
else
9447
 
  echo "$as_me: failed program was:" >&5
9448
 
sed 's/^/| /' conftest.$ac_ext >&5
9449
 
 
9450
 
  for ac_dir in $ac_x_header_dirs; do
9451
 
  if test -r "$ac_dir/X11/Xlib.h"; then
9452
 
    ac_x_includes=$ac_dir
9453
 
    break
9454
 
  fi
9455
 
done
9456
 
fi
9457
 
 
9458
 
rm -f conftest.err conftest.$ac_ext
9459
 
fi # $ac_x_includes = no
9460
 
 
9461
 
if test "$ac_x_libraries" = no; then
9462
 
  # Check for the libraries.
9463
 
  # See if we find them without any special options.
9464
 
  # Don't add to $LIBS permanently.
9465
 
  ac_save_LIBS=$LIBS
9466
 
  LIBS="-lX11 $LIBS"
9467
 
  cat >conftest.$ac_ext <<_ACEOF
9468
 
/* confdefs.h.  */
9469
 
_ACEOF
9470
 
cat confdefs.h >>conftest.$ac_ext
9471
 
cat >>conftest.$ac_ext <<_ACEOF
9472
 
/* end confdefs.h.  */
9473
 
#include <X11/Xlib.h>
9474
 
int
9475
 
main ()
9476
 
{
9477
 
XrmInitialize ()
9478
 
  ;
9479
 
  return 0;
9480
 
}
9481
 
_ACEOF
9482
 
rm -f conftest.$ac_objext conftest$ac_exeext
9483
 
if { (ac_try="$ac_link"
9484
 
case "(($ac_try" in
9485
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486
 
  *) ac_try_echo=$ac_try;;
9487
 
esac
9488
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489
 
  (eval "$ac_link") 2>conftest.er1
9490
 
  ac_status=$?
9491
 
  grep -v '^ *+' conftest.er1 >conftest.err
9492
 
  rm -f conftest.er1
9493
 
  cat conftest.err >&5
9494
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495
 
  (exit $ac_status); } && {
9496
 
         test -z "$ac_c_werror_flag" ||
9497
 
         test ! -s conftest.err
9498
 
       } && test -s conftest$ac_exeext &&
9499
 
       $as_test_x conftest$ac_exeext; then
9500
 
  LIBS=$ac_save_LIBS
9501
 
# We can link X programs with no special library path.
9502
 
ac_x_libraries=
9503
 
else
9504
 
  echo "$as_me: failed program was:" >&5
9505
 
sed 's/^/| /' conftest.$ac_ext >&5
9506
 
 
9507
 
        LIBS=$ac_save_LIBS
9508
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9509
 
do
9510
 
  # Don't even attempt the hair of trying to link an X program!
9511
 
  for ac_extension in a so sl; do
9512
 
    if test -r "$ac_dir/libX11.$ac_extension"; then
9513
 
      ac_x_libraries=$ac_dir
9514
 
      break 2
9515
 
    fi
9516
 
  done
9517
 
done
9518
 
fi
9519
 
 
9520
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521
 
      conftest$ac_exeext conftest.$ac_ext
9522
 
fi # $ac_x_libraries = no
9523
 
 
9524
 
case $ac_x_includes,$ac_x_libraries in #(
9525
 
  no,* | *,no | *\'*)
9526
 
    # Didn't find X, or a directory has "'" in its name.
9527
 
    ac_cv_have_x="have_x=no";; #(
9528
 
  *)
9529
 
    # Record where we found X for the cache.
9530
 
    ac_cv_have_x="have_x=yes\
9531
 
        ac_x_includes='$ac_x_includes'\
9532
 
        ac_x_libraries='$ac_x_libraries'"
9533
 
esac
9534
 
fi
9535
 
;; #(
9536
 
    *) have_x=yes;;
9537
 
  esac
9538
 
  eval "$ac_cv_have_x"
9539
 
fi # $with_x != no
9540
 
 
9541
 
if test "$have_x" != yes; then
9542
 
  { echo "$as_me:$LINENO: result: $have_x" >&5
9543
 
echo "${ECHO_T}$have_x" >&6; }
9544
 
  no_x=yes
9545
 
else
9546
 
  # If each of the values was on the command line, it overrides each guess.
9547
 
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9548
 
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9549
 
  # Update the cache value to reflect the command line values.
9550
 
  ac_cv_have_x="have_x=yes\
9551
 
        ac_x_includes='$x_includes'\
9552
 
        ac_x_libraries='$x_libraries'"
9553
 
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9554
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9555
 
fi
9556
 
 
9557
 
  if test "$no_x" = yes; then
9558
 
  # Not all programs may use this symbol, but it does not hurt to define it.
9559
 
 
9560
 
cat >>confdefs.h <<\_ACEOF
9561
 
#define X_DISPLAY_MISSING 1
9562
 
_ACEOF
9563
 
 
9564
 
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9565
 
else
9566
 
  if test -n "$x_includes"; then
9567
 
    X_CFLAGS="$X_CFLAGS -I$x_includes"
9568
 
  fi
9569
 
 
9570
 
  # It would also be nice to do this for all -L options, not just this one.
9571
 
  if test -n "$x_libraries"; then
9572
 
    X_LIBS="$X_LIBS -L$x_libraries"
9573
 
    # For Solaris; some versions of Sun CC require a space after -R and
9574
 
    # others require no space.  Words are not sufficient . . . .
9575
 
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9576
 
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
9577
 
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9578
 
    ac_xsave_c_werror_flag=$ac_c_werror_flag
9579
 
    ac_c_werror_flag=yes
9580
 
    cat >conftest.$ac_ext <<_ACEOF
9581
 
/* confdefs.h.  */
9582
 
_ACEOF
9583
 
cat confdefs.h >>conftest.$ac_ext
9584
 
cat >>conftest.$ac_ext <<_ACEOF
9585
 
/* end confdefs.h.  */
9586
 
 
9587
 
int
9588
 
main ()
9589
 
{
9590
 
 
9591
 
  ;
9592
 
  return 0;
9593
 
}
9594
 
_ACEOF
9595
 
rm -f conftest.$ac_objext conftest$ac_exeext
9596
 
if { (ac_try="$ac_link"
9597
 
case "(($ac_try" in
9598
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599
 
  *) ac_try_echo=$ac_try;;
9600
 
esac
9601
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602
 
  (eval "$ac_link") 2>conftest.er1
9603
 
  ac_status=$?
9604
 
  grep -v '^ *+' conftest.er1 >conftest.err
9605
 
  rm -f conftest.er1
9606
 
  cat conftest.err >&5
9607
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608
 
  (exit $ac_status); } && {
9609
 
         test -z "$ac_c_werror_flag" ||
9610
 
         test ! -s conftest.err
9611
 
       } && test -s conftest$ac_exeext &&
9612
 
       $as_test_x conftest$ac_exeext; then
9613
 
  { echo "$as_me:$LINENO: result: no" >&5
9614
 
echo "${ECHO_T}no" >&6; }
9615
 
       X_LIBS="$X_LIBS -R$x_libraries"
9616
 
else
9617
 
  echo "$as_me: failed program was:" >&5
9618
 
sed 's/^/| /' conftest.$ac_ext >&5
9619
 
 
9620
 
        LIBS="$ac_xsave_LIBS -R $x_libraries"
9621
 
       cat >conftest.$ac_ext <<_ACEOF
9622
 
/* confdefs.h.  */
9623
 
_ACEOF
9624
 
cat confdefs.h >>conftest.$ac_ext
9625
 
cat >>conftest.$ac_ext <<_ACEOF
9626
 
/* end confdefs.h.  */
9627
 
 
9628
 
int
9629
 
main ()
9630
 
{
9631
 
 
9632
 
  ;
9633
 
  return 0;
9634
 
}
9635
 
_ACEOF
9636
 
rm -f conftest.$ac_objext conftest$ac_exeext
9637
 
if { (ac_try="$ac_link"
9638
 
case "(($ac_try" in
9639
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640
 
  *) ac_try_echo=$ac_try;;
9641
 
esac
9642
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643
 
  (eval "$ac_link") 2>conftest.er1
9644
 
  ac_status=$?
9645
 
  grep -v '^ *+' conftest.er1 >conftest.err
9646
 
  rm -f conftest.er1
9647
 
  cat conftest.err >&5
9648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649
 
  (exit $ac_status); } && {
9650
 
         test -z "$ac_c_werror_flag" ||
9651
 
         test ! -s conftest.err
9652
 
       } && test -s conftest$ac_exeext &&
9653
 
       $as_test_x conftest$ac_exeext; then
9654
 
  { echo "$as_me:$LINENO: result: yes" >&5
9655
 
echo "${ECHO_T}yes" >&6; }
9656
 
          X_LIBS="$X_LIBS -R $x_libraries"
9657
 
else
9658
 
  echo "$as_me: failed program was:" >&5
9659
 
sed 's/^/| /' conftest.$ac_ext >&5
9660
 
 
9661
 
        { echo "$as_me:$LINENO: result: neither works" >&5
9662
 
echo "${ECHO_T}neither works" >&6; }
9663
 
fi
9664
 
 
9665
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666
 
      conftest$ac_exeext conftest.$ac_ext
9667
 
fi
9668
 
 
9669
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9670
 
      conftest$ac_exeext conftest.$ac_ext
9671
 
    ac_c_werror_flag=$ac_xsave_c_werror_flag
9672
 
    LIBS=$ac_xsave_LIBS
9673
 
  fi
9674
 
 
9675
 
  # Check for system-dependent libraries X programs must link with.
9676
 
  # Do this before checking for the system-independent R6 libraries
9677
 
  # (-lICE), since we may need -lsocket or whatever for X linking.
9678
 
 
9679
 
  if test "$ISC" = yes; then
9680
 
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9681
 
  else
9682
 
    # Martyn Johnson says this is needed for Ultrix, if the X
9683
 
    # libraries were built with DECnet support.  And Karl Berry says
9684
 
    # the Alpha needs dnet_stub (dnet does not exist).
9685
 
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9686
 
    cat >conftest.$ac_ext <<_ACEOF
9687
 
/* confdefs.h.  */
9688
 
_ACEOF
9689
 
cat confdefs.h >>conftest.$ac_ext
9690
 
cat >>conftest.$ac_ext <<_ACEOF
9691
 
/* end confdefs.h.  */
9692
 
 
9693
 
/* Override any GCC internal prototype to avoid an error.
9694
 
   Use char because int might match the return type of a GCC
9695
 
   builtin and then its argument prototype would still apply.  */
9696
 
#ifdef __cplusplus
9697
 
extern "C"
9698
 
#endif
9699
 
char XOpenDisplay ();
9700
 
int
9701
 
main ()
9702
 
{
9703
 
return XOpenDisplay ();
9704
 
  ;
9705
 
  return 0;
9706
 
}
9707
 
_ACEOF
9708
 
rm -f conftest.$ac_objext conftest$ac_exeext
9709
 
if { (ac_try="$ac_link"
9710
 
case "(($ac_try" in
9711
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712
 
  *) ac_try_echo=$ac_try;;
9713
 
esac
9714
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715
 
  (eval "$ac_link") 2>conftest.er1
9716
 
  ac_status=$?
9717
 
  grep -v '^ *+' conftest.er1 >conftest.err
9718
 
  rm -f conftest.er1
9719
 
  cat conftest.err >&5
9720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
 
  (exit $ac_status); } && {
9722
 
         test -z "$ac_c_werror_flag" ||
9723
 
         test ! -s conftest.err
9724
 
       } && test -s conftest$ac_exeext &&
9725
 
       $as_test_x conftest$ac_exeext; then
9726
 
  :
9727
 
else
9728
 
  echo "$as_me: failed program was:" >&5
9729
 
sed 's/^/| /' conftest.$ac_ext >&5
9730
 
 
9731
 
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9732
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
9733
 
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9734
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9735
 
else
9736
 
  ac_check_lib_save_LIBS=$LIBS
9737
 
LIBS="-ldnet  $LIBS"
9738
 
cat >conftest.$ac_ext <<_ACEOF
9739
 
/* confdefs.h.  */
9740
 
_ACEOF
9741
 
cat confdefs.h >>conftest.$ac_ext
9742
 
cat >>conftest.$ac_ext <<_ACEOF
9743
 
/* end confdefs.h.  */
9744
 
 
9745
 
/* Override any GCC internal prototype to avoid an error.
9746
 
   Use char because int might match the return type of a GCC
9747
 
   builtin and then its argument prototype would still apply.  */
9748
 
#ifdef __cplusplus
9749
 
extern "C"
9750
 
#endif
9751
 
char dnet_ntoa ();
9752
 
int
9753
 
main ()
9754
 
{
9755
 
return dnet_ntoa ();
9756
 
  ;
9757
 
  return 0;
9758
 
}
9759
 
_ACEOF
9760
 
rm -f conftest.$ac_objext conftest$ac_exeext
9761
 
if { (ac_try="$ac_link"
9762
 
case "(($ac_try" in
9763
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764
 
  *) ac_try_echo=$ac_try;;
9765
 
esac
9766
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767
 
  (eval "$ac_link") 2>conftest.er1
9768
 
  ac_status=$?
9769
 
  grep -v '^ *+' conftest.er1 >conftest.err
9770
 
  rm -f conftest.er1
9771
 
  cat conftest.err >&5
9772
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773
 
  (exit $ac_status); } && {
9774
 
         test -z "$ac_c_werror_flag" ||
9775
 
         test ! -s conftest.err
9776
 
       } && test -s conftest$ac_exeext &&
9777
 
       $as_test_x conftest$ac_exeext; then
9778
 
  ac_cv_lib_dnet_dnet_ntoa=yes
9779
 
else
9780
 
  echo "$as_me: failed program was:" >&5
9781
 
sed 's/^/| /' conftest.$ac_ext >&5
9782
 
 
9783
 
        ac_cv_lib_dnet_dnet_ntoa=no
9784
 
fi
9785
 
 
9786
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787
 
      conftest$ac_exeext conftest.$ac_ext
9788
 
LIBS=$ac_check_lib_save_LIBS
9789
 
fi
9790
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9791
 
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9792
 
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9793
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9794
 
fi
9795
 
 
9796
 
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9797
 
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9798
 
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
9799
 
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9801
 
else
9802
 
  ac_check_lib_save_LIBS=$LIBS
9803
 
LIBS="-ldnet_stub  $LIBS"
9804
 
cat >conftest.$ac_ext <<_ACEOF
9805
 
/* confdefs.h.  */
9806
 
_ACEOF
9807
 
cat confdefs.h >>conftest.$ac_ext
9808
 
cat >>conftest.$ac_ext <<_ACEOF
9809
 
/* end confdefs.h.  */
9810
 
 
9811
 
/* Override any GCC internal prototype to avoid an error.
9812
 
   Use char because int might match the return type of a GCC
9813
 
   builtin and then its argument prototype would still apply.  */
9814
 
#ifdef __cplusplus
9815
 
extern "C"
9816
 
#endif
9817
 
char dnet_ntoa ();
9818
 
int
9819
 
main ()
9820
 
{
9821
 
return dnet_ntoa ();
9822
 
  ;
9823
 
  return 0;
9824
 
}
9825
 
_ACEOF
9826
 
rm -f conftest.$ac_objext conftest$ac_exeext
9827
 
if { (ac_try="$ac_link"
9828
 
case "(($ac_try" in
9829
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830
 
  *) ac_try_echo=$ac_try;;
9831
 
esac
9832
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833
 
  (eval "$ac_link") 2>conftest.er1
9834
 
  ac_status=$?
9835
 
  grep -v '^ *+' conftest.er1 >conftest.err
9836
 
  rm -f conftest.er1
9837
 
  cat conftest.err >&5
9838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
 
  (exit $ac_status); } && {
9840
 
         test -z "$ac_c_werror_flag" ||
9841
 
         test ! -s conftest.err
9842
 
       } && test -s conftest$ac_exeext &&
9843
 
       $as_test_x conftest$ac_exeext; then
9844
 
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
9845
 
else
9846
 
  echo "$as_me: failed program was:" >&5
9847
 
sed 's/^/| /' conftest.$ac_ext >&5
9848
 
 
9849
 
        ac_cv_lib_dnet_stub_dnet_ntoa=no
9850
 
fi
9851
 
 
9852
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853
 
      conftest$ac_exeext conftest.$ac_ext
9854
 
LIBS=$ac_check_lib_save_LIBS
9855
 
fi
9856
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9857
 
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9858
 
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9859
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9860
 
fi
9861
 
 
9862
 
    fi
9863
 
fi
9864
 
 
9865
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866
 
      conftest$ac_exeext conftest.$ac_ext
9867
 
    LIBS="$ac_xsave_LIBS"
9868
 
 
9869
 
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9870
 
    # to get the SysV transport functions.
9871
 
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9872
 
    # needs -lnsl.
9873
 
    # The nsl library prevents programs from opening the X display
9874
 
    # on Irix 5.2, according to T.E. Dickey.
9875
 
    # The functions gethostbyname, getservbyname, and inet_addr are
9876
 
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9877
 
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
9878
 
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
9879
 
if test "${ac_cv_func_gethostbyname+set}" = set; then
9880
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9881
 
else
9882
 
  cat >conftest.$ac_ext <<_ACEOF
9883
 
/* confdefs.h.  */
9884
 
_ACEOF
9885
 
cat confdefs.h >>conftest.$ac_ext
9886
 
cat >>conftest.$ac_ext <<_ACEOF
9887
 
/* end confdefs.h.  */
9888
 
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9889
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9890
 
#define gethostbyname innocuous_gethostbyname
9891
 
 
9892
 
/* System header to define __stub macros and hopefully few prototypes,
9893
 
    which can conflict with char gethostbyname (); below.
9894
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895
 
    <limits.h> exists even on freestanding compilers.  */
9896
 
 
9897
 
#ifdef __STDC__
9898
 
# include <limits.h>
9899
 
#else
9900
 
# include <assert.h>
9901
 
#endif
9902
 
 
9903
 
#undef gethostbyname
9904
 
 
9905
 
/* Override any GCC internal prototype to avoid an error.
9906
 
   Use char because int might match the return type of a GCC
9907
 
   builtin and then its argument prototype would still apply.  */
9908
 
#ifdef __cplusplus
9909
 
extern "C"
9910
 
#endif
9911
 
char gethostbyname ();
9912
 
/* The GNU C library defines this for functions which it implements
9913
 
    to always fail with ENOSYS.  Some functions are actually named
9914
 
    something starting with __ and the normal name is an alias.  */
9915
 
#if defined __stub_gethostbyname || defined __stub___gethostbyname
9916
 
choke me
9917
 
#endif
9918
 
 
9919
 
int
9920
 
main ()
9921
 
{
9922
 
return gethostbyname ();
9923
 
  ;
9924
 
  return 0;
9925
 
}
9926
 
_ACEOF
9927
 
rm -f conftest.$ac_objext conftest$ac_exeext
9928
 
if { (ac_try="$ac_link"
9929
 
case "(($ac_try" in
9930
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931
 
  *) ac_try_echo=$ac_try;;
9932
 
esac
9933
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934
 
  (eval "$ac_link") 2>conftest.er1
9935
 
  ac_status=$?
9936
 
  grep -v '^ *+' conftest.er1 >conftest.err
9937
 
  rm -f conftest.er1
9938
 
  cat conftest.err >&5
9939
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940
 
  (exit $ac_status); } && {
9941
 
         test -z "$ac_c_werror_flag" ||
9942
 
         test ! -s conftest.err
9943
 
       } && test -s conftest$ac_exeext &&
9944
 
       $as_test_x conftest$ac_exeext; then
9945
 
  ac_cv_func_gethostbyname=yes
9946
 
else
9947
 
  echo "$as_me: failed program was:" >&5
9948
 
sed 's/^/| /' conftest.$ac_ext >&5
9949
 
 
9950
 
        ac_cv_func_gethostbyname=no
9951
 
fi
9952
 
 
9953
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954
 
      conftest$ac_exeext conftest.$ac_ext
9955
 
fi
9956
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9957
 
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
9958
 
 
9959
 
    if test $ac_cv_func_gethostbyname = no; then
9960
 
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9961
 
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
9962
 
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9963
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9964
 
else
9965
 
  ac_check_lib_save_LIBS=$LIBS
9966
 
LIBS="-lnsl  $LIBS"
9967
 
cat >conftest.$ac_ext <<_ACEOF
9968
 
/* confdefs.h.  */
9969
 
_ACEOF
9970
 
cat confdefs.h >>conftest.$ac_ext
9971
 
cat >>conftest.$ac_ext <<_ACEOF
9972
 
/* end confdefs.h.  */
9973
 
 
9974
 
/* Override any GCC internal prototype to avoid an error.
9975
 
   Use char because int might match the return type of a GCC
9976
 
   builtin and then its argument prototype would still apply.  */
9977
 
#ifdef __cplusplus
9978
 
extern "C"
9979
 
#endif
9980
 
char gethostbyname ();
9981
 
int
9982
 
main ()
9983
 
{
9984
 
return gethostbyname ();
9985
 
  ;
9986
 
  return 0;
9987
 
}
9988
 
_ACEOF
9989
 
rm -f conftest.$ac_objext conftest$ac_exeext
9990
 
if { (ac_try="$ac_link"
9991
 
case "(($ac_try" in
9992
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993
 
  *) ac_try_echo=$ac_try;;
9994
 
esac
9995
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996
 
  (eval "$ac_link") 2>conftest.er1
9997
 
  ac_status=$?
9998
 
  grep -v '^ *+' conftest.er1 >conftest.err
9999
 
  rm -f conftest.er1
10000
 
  cat conftest.err >&5
10001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002
 
  (exit $ac_status); } && {
10003
 
         test -z "$ac_c_werror_flag" ||
10004
 
         test ! -s conftest.err
10005
 
       } && test -s conftest$ac_exeext &&
10006
 
       $as_test_x conftest$ac_exeext; then
10007
 
  ac_cv_lib_nsl_gethostbyname=yes
10008
 
else
10009
 
  echo "$as_me: failed program was:" >&5
10010
 
sed 's/^/| /' conftest.$ac_ext >&5
10011
 
 
10012
 
        ac_cv_lib_nsl_gethostbyname=no
10013
 
fi
10014
 
 
10015
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016
 
      conftest$ac_exeext conftest.$ac_ext
10017
 
LIBS=$ac_check_lib_save_LIBS
10018
 
fi
10019
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10020
 
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
10021
 
if test $ac_cv_lib_nsl_gethostbyname = yes; then
10022
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10023
 
fi
10024
 
 
10025
 
      if test $ac_cv_lib_nsl_gethostbyname = no; then
10026
 
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10027
 
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
10028
 
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10029
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10030
 
else
10031
 
  ac_check_lib_save_LIBS=$LIBS
10032
 
LIBS="-lbsd  $LIBS"
10033
 
cat >conftest.$ac_ext <<_ACEOF
10034
 
/* confdefs.h.  */
10035
 
_ACEOF
10036
 
cat confdefs.h >>conftest.$ac_ext
10037
 
cat >>conftest.$ac_ext <<_ACEOF
10038
 
/* end confdefs.h.  */
10039
 
 
10040
 
/* Override any GCC internal prototype to avoid an error.
10041
 
   Use char because int might match the return type of a GCC
10042
 
   builtin and then its argument prototype would still apply.  */
10043
 
#ifdef __cplusplus
10044
 
extern "C"
10045
 
#endif
10046
 
char gethostbyname ();
10047
 
int
10048
 
main ()
10049
 
{
10050
 
return gethostbyname ();
10051
 
  ;
10052
 
  return 0;
10053
 
}
10054
 
_ACEOF
10055
 
rm -f conftest.$ac_objext conftest$ac_exeext
10056
 
if { (ac_try="$ac_link"
10057
 
case "(($ac_try" in
10058
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059
 
  *) ac_try_echo=$ac_try;;
10060
 
esac
10061
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062
 
  (eval "$ac_link") 2>conftest.er1
10063
 
  ac_status=$?
10064
 
  grep -v '^ *+' conftest.er1 >conftest.err
10065
 
  rm -f conftest.er1
10066
 
  cat conftest.err >&5
10067
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068
 
  (exit $ac_status); } && {
10069
 
         test -z "$ac_c_werror_flag" ||
10070
 
         test ! -s conftest.err
10071
 
       } && test -s conftest$ac_exeext &&
10072
 
       $as_test_x conftest$ac_exeext; then
10073
 
  ac_cv_lib_bsd_gethostbyname=yes
10074
 
else
10075
 
  echo "$as_me: failed program was:" >&5
10076
 
sed 's/^/| /' conftest.$ac_ext >&5
10077
 
 
10078
 
        ac_cv_lib_bsd_gethostbyname=no
10079
 
fi
10080
 
 
10081
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082
 
      conftest$ac_exeext conftest.$ac_ext
10083
 
LIBS=$ac_check_lib_save_LIBS
10084
 
fi
10085
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10086
 
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
10087
 
if test $ac_cv_lib_bsd_gethostbyname = yes; then
10088
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10089
 
fi
10090
 
 
10091
 
      fi
10092
 
    fi
10093
 
 
10094
 
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
10095
 
    # socket/setsockopt and other routines are undefined under SCO ODT
10096
 
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10097
 
    # on later versions), says Simon Leinen: it contains gethostby*
10098
 
    # variants that don't use the name server (or something).  -lsocket
10099
 
    # must be given before -lnsl if both are needed.  We assume that
10100
 
    # if connect needs -lnsl, so does gethostbyname.
10101
 
    { echo "$as_me:$LINENO: checking for connect" >&5
10102
 
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
10103
 
if test "${ac_cv_func_connect+set}" = set; then
10104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10105
 
else
10106
 
  cat >conftest.$ac_ext <<_ACEOF
10107
 
/* confdefs.h.  */
10108
 
_ACEOF
10109
 
cat confdefs.h >>conftest.$ac_ext
10110
 
cat >>conftest.$ac_ext <<_ACEOF
10111
 
/* end confdefs.h.  */
10112
 
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
10113
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10114
 
#define connect innocuous_connect
10115
 
 
10116
 
/* System header to define __stub macros and hopefully few prototypes,
10117
 
    which can conflict with char connect (); below.
10118
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119
 
    <limits.h> exists even on freestanding compilers.  */
10120
 
 
10121
 
#ifdef __STDC__
10122
 
# include <limits.h>
10123
 
#else
10124
 
# include <assert.h>
10125
 
#endif
10126
 
 
10127
 
#undef connect
10128
 
 
10129
 
/* Override any GCC internal prototype to avoid an error.
10130
 
   Use char because int might match the return type of a GCC
10131
 
   builtin and then its argument prototype would still apply.  */
10132
 
#ifdef __cplusplus
10133
 
extern "C"
10134
 
#endif
10135
 
char connect ();
10136
 
/* The GNU C library defines this for functions which it implements
10137
 
    to always fail with ENOSYS.  Some functions are actually named
10138
 
    something starting with __ and the normal name is an alias.  */
10139
 
#if defined __stub_connect || defined __stub___connect
10140
 
choke me
10141
 
#endif
10142
 
 
10143
 
int
10144
 
main ()
10145
 
{
10146
 
return connect ();
10147
 
  ;
10148
 
  return 0;
10149
 
}
10150
 
_ACEOF
10151
 
rm -f conftest.$ac_objext conftest$ac_exeext
10152
 
if { (ac_try="$ac_link"
10153
 
case "(($ac_try" in
10154
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155
 
  *) ac_try_echo=$ac_try;;
10156
 
esac
10157
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158
 
  (eval "$ac_link") 2>conftest.er1
10159
 
  ac_status=$?
10160
 
  grep -v '^ *+' conftest.er1 >conftest.err
10161
 
  rm -f conftest.er1
10162
 
  cat conftest.err >&5
10163
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
 
  (exit $ac_status); } && {
10165
 
         test -z "$ac_c_werror_flag" ||
10166
 
         test ! -s conftest.err
10167
 
       } && test -s conftest$ac_exeext &&
10168
 
       $as_test_x conftest$ac_exeext; then
10169
 
  ac_cv_func_connect=yes
10170
 
else
10171
 
  echo "$as_me: failed program was:" >&5
10172
 
sed 's/^/| /' conftest.$ac_ext >&5
10173
 
 
10174
 
        ac_cv_func_connect=no
10175
 
fi
10176
 
 
10177
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178
 
      conftest$ac_exeext conftest.$ac_ext
10179
 
fi
10180
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10181
 
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
10182
 
 
10183
 
    if test $ac_cv_func_connect = no; then
10184
 
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10185
 
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
10186
 
if test "${ac_cv_lib_socket_connect+set}" = set; then
10187
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10188
 
else
10189
 
  ac_check_lib_save_LIBS=$LIBS
10190
 
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10191
 
cat >conftest.$ac_ext <<_ACEOF
10192
 
/* confdefs.h.  */
10193
 
_ACEOF
10194
 
cat confdefs.h >>conftest.$ac_ext
10195
 
cat >>conftest.$ac_ext <<_ACEOF
10196
 
/* end confdefs.h.  */
10197
 
 
10198
 
/* Override any GCC internal prototype to avoid an error.
10199
 
   Use char because int might match the return type of a GCC
10200
 
   builtin and then its argument prototype would still apply.  */
10201
 
#ifdef __cplusplus
10202
 
extern "C"
10203
 
#endif
10204
 
char connect ();
10205
 
int
10206
 
main ()
10207
 
{
10208
 
return connect ();
10209
 
  ;
10210
 
  return 0;
10211
 
}
10212
 
_ACEOF
10213
 
rm -f conftest.$ac_objext conftest$ac_exeext
10214
 
if { (ac_try="$ac_link"
10215
 
case "(($ac_try" in
10216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217
 
  *) ac_try_echo=$ac_try;;
10218
 
esac
10219
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220
 
  (eval "$ac_link") 2>conftest.er1
10221
 
  ac_status=$?
10222
 
  grep -v '^ *+' conftest.er1 >conftest.err
10223
 
  rm -f conftest.er1
10224
 
  cat conftest.err >&5
10225
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226
 
  (exit $ac_status); } && {
10227
 
         test -z "$ac_c_werror_flag" ||
10228
 
         test ! -s conftest.err
10229
 
       } && test -s conftest$ac_exeext &&
10230
 
       $as_test_x conftest$ac_exeext; then
10231
 
  ac_cv_lib_socket_connect=yes
10232
 
else
10233
 
  echo "$as_me: failed program was:" >&5
10234
 
sed 's/^/| /' conftest.$ac_ext >&5
10235
 
 
10236
 
        ac_cv_lib_socket_connect=no
10237
 
fi
10238
 
 
10239
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10240
 
      conftest$ac_exeext conftest.$ac_ext
10241
 
LIBS=$ac_check_lib_save_LIBS
10242
 
fi
10243
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10244
 
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
10245
 
if test $ac_cv_lib_socket_connect = yes; then
10246
 
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10247
 
fi
10248
 
 
10249
 
    fi
10250
 
 
10251
 
    # Guillermo Gomez says -lposix is necessary on A/UX.
10252
 
    { echo "$as_me:$LINENO: checking for remove" >&5
10253
 
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
10254
 
if test "${ac_cv_func_remove+set}" = set; then
10255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10256
 
else
10257
 
  cat >conftest.$ac_ext <<_ACEOF
10258
 
/* confdefs.h.  */
10259
 
_ACEOF
10260
 
cat confdefs.h >>conftest.$ac_ext
10261
 
cat >>conftest.$ac_ext <<_ACEOF
10262
 
/* end confdefs.h.  */
10263
 
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
10264
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10265
 
#define remove innocuous_remove
10266
 
 
10267
 
/* System header to define __stub macros and hopefully few prototypes,
10268
 
    which can conflict with char remove (); below.
10269
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10270
 
    <limits.h> exists even on freestanding compilers.  */
10271
 
 
10272
 
#ifdef __STDC__
10273
 
# include <limits.h>
10274
 
#else
10275
 
# include <assert.h>
10276
 
#endif
10277
 
 
10278
 
#undef remove
10279
 
 
10280
 
/* Override any GCC internal prototype to avoid an error.
10281
 
   Use char because int might match the return type of a GCC
10282
 
   builtin and then its argument prototype would still apply.  */
10283
 
#ifdef __cplusplus
10284
 
extern "C"
10285
 
#endif
10286
 
char remove ();
10287
 
/* The GNU C library defines this for functions which it implements
10288
 
    to always fail with ENOSYS.  Some functions are actually named
10289
 
    something starting with __ and the normal name is an alias.  */
10290
 
#if defined __stub_remove || defined __stub___remove
10291
 
choke me
10292
 
#endif
10293
 
 
10294
 
int
10295
 
main ()
10296
 
{
10297
 
return remove ();
10298
 
  ;
10299
 
  return 0;
10300
 
}
10301
 
_ACEOF
10302
 
rm -f conftest.$ac_objext conftest$ac_exeext
10303
 
if { (ac_try="$ac_link"
10304
 
case "(($ac_try" in
10305
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306
 
  *) ac_try_echo=$ac_try;;
10307
 
esac
10308
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309
 
  (eval "$ac_link") 2>conftest.er1
10310
 
  ac_status=$?
10311
 
  grep -v '^ *+' conftest.er1 >conftest.err
10312
 
  rm -f conftest.er1
10313
 
  cat conftest.err >&5
10314
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315
 
  (exit $ac_status); } && {
10316
 
         test -z "$ac_c_werror_flag" ||
10317
 
         test ! -s conftest.err
10318
 
       } && test -s conftest$ac_exeext &&
10319
 
       $as_test_x conftest$ac_exeext; then
10320
 
  ac_cv_func_remove=yes
10321
 
else
10322
 
  echo "$as_me: failed program was:" >&5
10323
 
sed 's/^/| /' conftest.$ac_ext >&5
10324
 
 
10325
 
        ac_cv_func_remove=no
10326
 
fi
10327
 
 
10328
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329
 
      conftest$ac_exeext conftest.$ac_ext
10330
 
fi
10331
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10332
 
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
10333
 
 
10334
 
    if test $ac_cv_func_remove = no; then
10335
 
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10336
 
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
10337
 
if test "${ac_cv_lib_posix_remove+set}" = set; then
10338
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10339
 
else
10340
 
  ac_check_lib_save_LIBS=$LIBS
10341
 
LIBS="-lposix  $LIBS"
10342
 
cat >conftest.$ac_ext <<_ACEOF
10343
 
/* confdefs.h.  */
10344
 
_ACEOF
10345
 
cat confdefs.h >>conftest.$ac_ext
10346
 
cat >>conftest.$ac_ext <<_ACEOF
10347
 
/* end confdefs.h.  */
10348
 
 
10349
 
/* Override any GCC internal prototype to avoid an error.
10350
 
   Use char because int might match the return type of a GCC
10351
 
   builtin and then its argument prototype would still apply.  */
10352
 
#ifdef __cplusplus
10353
 
extern "C"
10354
 
#endif
10355
 
char remove ();
10356
 
int
10357
 
main ()
10358
 
{
10359
 
return remove ();
10360
 
  ;
10361
 
  return 0;
10362
 
}
10363
 
_ACEOF
10364
 
rm -f conftest.$ac_objext conftest$ac_exeext
10365
 
if { (ac_try="$ac_link"
10366
 
case "(($ac_try" in
10367
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368
 
  *) ac_try_echo=$ac_try;;
10369
 
esac
10370
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371
 
  (eval "$ac_link") 2>conftest.er1
10372
 
  ac_status=$?
10373
 
  grep -v '^ *+' conftest.er1 >conftest.err
10374
 
  rm -f conftest.er1
10375
 
  cat conftest.err >&5
10376
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377
 
  (exit $ac_status); } && {
10378
 
         test -z "$ac_c_werror_flag" ||
10379
 
         test ! -s conftest.err
10380
 
       } && test -s conftest$ac_exeext &&
10381
 
       $as_test_x conftest$ac_exeext; then
10382
 
  ac_cv_lib_posix_remove=yes
10383
 
else
10384
 
  echo "$as_me: failed program was:" >&5
10385
 
sed 's/^/| /' conftest.$ac_ext >&5
10386
 
 
10387
 
        ac_cv_lib_posix_remove=no
10388
 
fi
10389
 
 
10390
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10391
 
      conftest$ac_exeext conftest.$ac_ext
10392
 
LIBS=$ac_check_lib_save_LIBS
10393
 
fi
10394
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10395
 
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
10396
 
if test $ac_cv_lib_posix_remove = yes; then
10397
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10398
 
fi
10399
 
 
10400
 
    fi
10401
 
 
10402
 
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10403
 
    { echo "$as_me:$LINENO: checking for shmat" >&5
10404
 
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
10405
 
if test "${ac_cv_func_shmat+set}" = set; then
10406
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10407
 
else
10408
 
  cat >conftest.$ac_ext <<_ACEOF
10409
 
/* confdefs.h.  */
10410
 
_ACEOF
10411
 
cat confdefs.h >>conftest.$ac_ext
10412
 
cat >>conftest.$ac_ext <<_ACEOF
10413
 
/* end confdefs.h.  */
10414
 
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10415
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10416
 
#define shmat innocuous_shmat
10417
 
 
10418
 
/* System header to define __stub macros and hopefully few prototypes,
10419
 
    which can conflict with char shmat (); below.
10420
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10421
 
    <limits.h> exists even on freestanding compilers.  */
10422
 
 
10423
 
#ifdef __STDC__
10424
 
# include <limits.h>
10425
 
#else
10426
 
# include <assert.h>
10427
 
#endif
10428
 
 
10429
 
#undef shmat
10430
 
 
10431
 
/* Override any GCC internal prototype to avoid an error.
10432
 
   Use char because int might match the return type of a GCC
10433
 
   builtin and then its argument prototype would still apply.  */
10434
 
#ifdef __cplusplus
10435
 
extern "C"
10436
 
#endif
10437
 
char shmat ();
10438
 
/* The GNU C library defines this for functions which it implements
10439
 
    to always fail with ENOSYS.  Some functions are actually named
10440
 
    something starting with __ and the normal name is an alias.  */
10441
 
#if defined __stub_shmat || defined __stub___shmat
10442
 
choke me
10443
 
#endif
10444
 
 
10445
 
int
10446
 
main ()
10447
 
{
10448
 
return shmat ();
10449
 
  ;
10450
 
  return 0;
10451
 
}
10452
 
_ACEOF
10453
 
rm -f conftest.$ac_objext conftest$ac_exeext
10454
 
if { (ac_try="$ac_link"
10455
 
case "(($ac_try" in
10456
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457
 
  *) ac_try_echo=$ac_try;;
10458
 
esac
10459
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460
 
  (eval "$ac_link") 2>conftest.er1
10461
 
  ac_status=$?
10462
 
  grep -v '^ *+' conftest.er1 >conftest.err
10463
 
  rm -f conftest.er1
10464
 
  cat conftest.err >&5
10465
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466
 
  (exit $ac_status); } && {
10467
 
         test -z "$ac_c_werror_flag" ||
10468
 
         test ! -s conftest.err
10469
 
       } && test -s conftest$ac_exeext &&
10470
 
       $as_test_x conftest$ac_exeext; then
10471
 
  ac_cv_func_shmat=yes
10472
 
else
10473
 
  echo "$as_me: failed program was:" >&5
10474
 
sed 's/^/| /' conftest.$ac_ext >&5
10475
 
 
10476
 
        ac_cv_func_shmat=no
10477
 
fi
10478
 
 
10479
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480
 
      conftest$ac_exeext conftest.$ac_ext
10481
 
fi
10482
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10483
 
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
10484
 
 
10485
 
    if test $ac_cv_func_shmat = no; then
10486
 
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10487
 
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
10488
 
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10489
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10490
 
else
10491
 
  ac_check_lib_save_LIBS=$LIBS
10492
 
LIBS="-lipc  $LIBS"
10493
 
cat >conftest.$ac_ext <<_ACEOF
10494
 
/* confdefs.h.  */
10495
 
_ACEOF
10496
 
cat confdefs.h >>conftest.$ac_ext
10497
 
cat >>conftest.$ac_ext <<_ACEOF
10498
 
/* end confdefs.h.  */
10499
 
 
10500
 
/* Override any GCC internal prototype to avoid an error.
10501
 
   Use char because int might match the return type of a GCC
10502
 
   builtin and then its argument prototype would still apply.  */
10503
 
#ifdef __cplusplus
10504
 
extern "C"
10505
 
#endif
10506
 
char shmat ();
10507
 
int
10508
 
main ()
10509
 
{
10510
 
return shmat ();
10511
 
  ;
10512
 
  return 0;
10513
 
}
10514
 
_ACEOF
10515
 
rm -f conftest.$ac_objext conftest$ac_exeext
10516
 
if { (ac_try="$ac_link"
10517
 
case "(($ac_try" in
10518
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519
 
  *) ac_try_echo=$ac_try;;
10520
 
esac
10521
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522
 
  (eval "$ac_link") 2>conftest.er1
10523
 
  ac_status=$?
10524
 
  grep -v '^ *+' conftest.er1 >conftest.err
10525
 
  rm -f conftest.er1
10526
 
  cat conftest.err >&5
10527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528
 
  (exit $ac_status); } && {
10529
 
         test -z "$ac_c_werror_flag" ||
10530
 
         test ! -s conftest.err
10531
 
       } && test -s conftest$ac_exeext &&
10532
 
       $as_test_x conftest$ac_exeext; then
10533
 
  ac_cv_lib_ipc_shmat=yes
10534
 
else
10535
 
  echo "$as_me: failed program was:" >&5
10536
 
sed 's/^/| /' conftest.$ac_ext >&5
10537
 
 
10538
 
        ac_cv_lib_ipc_shmat=no
10539
 
fi
10540
 
 
10541
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10542
 
      conftest$ac_exeext conftest.$ac_ext
10543
 
LIBS=$ac_check_lib_save_LIBS
10544
 
fi
10545
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10546
 
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
10547
 
if test $ac_cv_lib_ipc_shmat = yes; then
10548
 
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10549
 
fi
10550
 
 
10551
 
    fi
10552
 
  fi
10553
 
 
10554
 
  # Check for libraries that X11R6 Xt/Xaw programs need.
10555
 
  ac_save_LDFLAGS=$LDFLAGS
10556
 
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10557
 
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10558
 
  # check for ICE first), but we must link in the order -lSM -lICE or
10559
 
  # we get undefined symbols.  So assume we have SM if we have ICE.
10560
 
  # These have to be linked with before -lX11, unlike the other
10561
 
  # libraries we check for below, so use a different variable.
10562
 
  # John Interrante, Karl Berry
10563
 
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10564
 
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
10565
 
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10567
 
else
10568
 
  ac_check_lib_save_LIBS=$LIBS
10569
 
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10570
 
cat >conftest.$ac_ext <<_ACEOF
10571
 
/* confdefs.h.  */
10572
 
_ACEOF
10573
 
cat confdefs.h >>conftest.$ac_ext
10574
 
cat >>conftest.$ac_ext <<_ACEOF
10575
 
/* end confdefs.h.  */
10576
 
 
10577
 
/* Override any GCC internal prototype to avoid an error.
10578
 
   Use char because int might match the return type of a GCC
10579
 
   builtin and then its argument prototype would still apply.  */
10580
 
#ifdef __cplusplus
10581
 
extern "C"
10582
 
#endif
10583
 
char IceConnectionNumber ();
10584
 
int
10585
 
main ()
10586
 
{
10587
 
return IceConnectionNumber ();
10588
 
  ;
10589
 
  return 0;
10590
 
}
10591
 
_ACEOF
10592
 
rm -f conftest.$ac_objext conftest$ac_exeext
10593
 
if { (ac_try="$ac_link"
10594
 
case "(($ac_try" in
10595
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596
 
  *) ac_try_echo=$ac_try;;
10597
 
esac
10598
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599
 
  (eval "$ac_link") 2>conftest.er1
10600
 
  ac_status=$?
10601
 
  grep -v '^ *+' conftest.er1 >conftest.err
10602
 
  rm -f conftest.er1
10603
 
  cat conftest.err >&5
10604
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605
 
  (exit $ac_status); } && {
10606
 
         test -z "$ac_c_werror_flag" ||
10607
 
         test ! -s conftest.err
10608
 
       } && test -s conftest$ac_exeext &&
10609
 
       $as_test_x conftest$ac_exeext; then
10610
 
  ac_cv_lib_ICE_IceConnectionNumber=yes
10611
 
else
10612
 
  echo "$as_me: failed program was:" >&5
10613
 
sed 's/^/| /' conftest.$ac_ext >&5
10614
 
 
10615
 
        ac_cv_lib_ICE_IceConnectionNumber=no
10616
 
fi
10617
 
 
10618
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619
 
      conftest$ac_exeext conftest.$ac_ext
10620
 
LIBS=$ac_check_lib_save_LIBS
10621
 
fi
10622
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10623
 
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
10624
 
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10625
 
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10626
 
fi
10627
 
 
10628
 
  LDFLAGS=$ac_save_LDFLAGS
10629
 
 
10630
 
fi
10631
 
 
10632
 
  if test "$no_x" = yes; then
10633
 
    { { echo "$as_me:$LINENO: error: Can't find X. Please check your installation and add the correct paths!" >&5
10634
 
echo "$as_me: error: Can't find X. Please check your installation and add the correct paths!" >&2;}
10635
 
   { (exit 1); exit 1; }; }
10636
 
  fi
10637
 
  QT_CXXFLAGS="$X_CFLAGS"
10638
 
  QT_LDFLAGS="$X_LIBS"
10639
 
  QT_LIBS="$X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10640
 
  QTE_NORTTI=""
10641
 
else
10642
 
    QT_CXXFLAGS="-fno-rtti -DQWS"
10643
 
  QT_LDFLAGS="-DQWS"
10644
 
  QT_LIBS=""
10645
 
  QTE_NORTTI="-fno-rtti -DQWS"
10646
 
fi
10647
 
 
10648
 
 
10649
 
 
10650
 
 
10651
 
 
10652
 
 
10653
 
if test -z ""; then
10654
 
  qt_ver=3
10655
 
  qt_subver=1
10656
 
else
10657
 
  qt_subver=`echo "" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
10658
 
  # following is the check if subversion isn�t found in passed argument
10659
 
  if test "$qt_subver" = ""; then
10660
 
    qt_subver=1
10661
 
  fi
10662
 
  qt_ver=`echo "" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
10663
 
  if test "$qt_ver" = "1"; then
10664
 
    qt_subver=42
10665
 
  fi
10666
 
fi
10667
 
 
10668
 
if test -z ""; then
10669
 
  if test "$qt_ver" = "2"; then
10670
 
    if test $qt_subver -gt 0; then
10671
 
      qt_minversion=">= Qt 2.2.2"
10672
 
    else
10673
 
      qt_minversion=">= Qt 2.0.2"
10674
 
    fi
10675
 
  fi
10676
 
  if test "$qt_ver" = "3"; then
10677
 
    qt_minversion=">= Qt 3.0.1"
10678
 
  fi
10679
 
  if test "$qt_ver" = "1"; then
10680
 
    qt_minversion=">= 1.42 and < 2.0"
10681
 
  fi
10682
 
else
10683
 
   qt_minversion=
10684
 
fi
10685
 
 
10686
 
if test -z ""; then
10687
 
   if test $qt_ver = 3; then
10688
 
     qt_verstring="QT_VERSION >= 301"
10689
 
   fi
10690
 
   if test $qt_ver = 2; then
10691
 
     if test $qt_subver -gt 0; then
10692
 
       qt_verstring="QT_VERSION >= 222"
10693
 
     else
10694
 
       qt_verstring="QT_VERSION >= 200"
10695
 
     fi
10696
 
   fi
10697
 
   if test $qt_ver = 1; then
10698
 
    qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
10699
 
   fi
10700
 
else
10701
 
   qt_verstring=
10702
 
fi
10703
 
 
10704
 
if test $qt_ver = 3; then
10705
 
  qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt"
10706
 
fi
10707
 
if test $qt_ver = 2; then
10708
 
  qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
10709
 
fi
10710
 
if test $qt_ver = 1; then
10711
 
  qt_dirs="$QTDIR /usr/lib/qt"
10712
 
fi
10713
 
 
10714
 
 
10715
 
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10716
 
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
10717
 
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
10718
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10719
 
else
10720
 
  ac_check_lib_save_LIBS=$LIBS
10721
 
LIBS="-lpthread  $LIBS"
10722
 
cat >conftest.$ac_ext <<_ACEOF
10723
 
/* confdefs.h.  */
10724
 
_ACEOF
10725
 
cat confdefs.h >>conftest.$ac_ext
10726
 
cat >>conftest.$ac_ext <<_ACEOF
10727
 
/* end confdefs.h.  */
10728
 
 
10729
 
/* Override any GCC internal prototype to avoid an error.
10730
 
   Use char because int might match the return type of a GCC
10731
 
   builtin and then its argument prototype would still apply.  */
10732
 
#ifdef __cplusplus
10733
 
extern "C"
10734
 
#endif
10735
 
char pthread_create ();
10736
 
int
10737
 
main ()
10738
 
{
10739
 
return pthread_create ();
10740
 
  ;
10741
 
  return 0;
10742
 
}
10743
 
_ACEOF
10744
 
rm -f conftest.$ac_objext conftest$ac_exeext
10745
 
if { (ac_try="$ac_link"
10746
 
case "(($ac_try" in
10747
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748
 
  *) ac_try_echo=$ac_try;;
10749
 
esac
10750
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751
 
  (eval "$ac_link") 2>conftest.er1
10752
 
  ac_status=$?
10753
 
  grep -v '^ *+' conftest.er1 >conftest.err
10754
 
  rm -f conftest.er1
10755
 
  cat conftest.err >&5
10756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757
 
  (exit $ac_status); } && {
10758
 
         test -z "$ac_c_werror_flag" ||
10759
 
         test ! -s conftest.err
10760
 
       } && test -s conftest$ac_exeext &&
10761
 
       $as_test_x conftest$ac_exeext; then
10762
 
  ac_cv_lib_pthread_pthread_create=yes
10763
 
else
10764
 
  echo "$as_me: failed program was:" >&5
10765
 
sed 's/^/| /' conftest.$ac_ext >&5
10766
 
 
10767
 
        ac_cv_lib_pthread_pthread_create=no
10768
 
fi
10769
 
 
10770
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10771
 
      conftest$ac_exeext conftest.$ac_ext
10772
 
LIBS=$ac_check_lib_save_LIBS
10773
 
fi
10774
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
10775
 
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
10776
 
if test $ac_cv_lib_pthread_pthread_create = yes; then
10777
 
  LIBPTHREAD="-lpthread"
10778
 
fi
10779
 
 
10780
 
 
10781
 
 
10782
 
 
10783
 
    # Check whether --enable-kernel-threads was given.
10784
 
if test "${enable_kernel_threads+set}" = set; then
10785
 
  enableval=$enable_kernel_threads; kde_use_kernthreads=$enableval
10786
 
else
10787
 
  kde_use_kernthreads=no
10788
 
fi
10789
 
 
10790
 
 
10791
 
    if test "$kde_use_kernthreads" = "yes"; then
10792
 
      ac_save_CXXFLAGS="$CXXFLAGS"
10793
 
      ac_save_CFLAGS="$CXXFLAGS"
10794
 
      CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
10795
 
      CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
10796
 
 
10797
 
for ac_header in pthread/linuxthreads/pthread.h
10798
 
do
10799
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10802
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10803
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10805
 
fi
10806
 
ac_res=`eval echo '${'$as_ac_Header'}'`
10807
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
10808
 
echo "${ECHO_T}$ac_res" >&6; }
10809
 
else
10810
 
  # Is the header compilable?
10811
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10813
 
cat >conftest.$ac_ext <<_ACEOF
10814
 
/* confdefs.h.  */
10815
 
_ACEOF
10816
 
cat confdefs.h >>conftest.$ac_ext
10817
 
cat >>conftest.$ac_ext <<_ACEOF
10818
 
/* end confdefs.h.  */
10819
 
$ac_includes_default
10820
 
#include <$ac_header>
10821
 
_ACEOF
10822
 
rm -f conftest.$ac_objext
10823
 
if { (ac_try="$ac_compile"
10824
 
case "(($ac_try" in
10825
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826
 
  *) ac_try_echo=$ac_try;;
10827
 
esac
10828
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829
 
  (eval "$ac_compile") 2>conftest.er1
10830
 
  ac_status=$?
10831
 
  grep -v '^ *+' conftest.er1 >conftest.err
10832
 
  rm -f conftest.er1
10833
 
  cat conftest.err >&5
10834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835
 
  (exit $ac_status); } && {
10836
 
         test -z "$ac_c_werror_flag" ||
10837
 
         test ! -s conftest.err
10838
 
       } && test -s conftest.$ac_objext; then
10839
 
  ac_header_compiler=yes
10840
 
else
10841
 
  echo "$as_me: failed program was:" >&5
10842
 
sed 's/^/| /' conftest.$ac_ext >&5
10843
 
 
10844
 
        ac_header_compiler=no
10845
 
fi
10846
 
 
10847
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10849
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
10850
 
 
10851
 
# Is the header present?
10852
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10853
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10854
 
cat >conftest.$ac_ext <<_ACEOF
10855
 
/* confdefs.h.  */
10856
 
_ACEOF
10857
 
cat confdefs.h >>conftest.$ac_ext
10858
 
cat >>conftest.$ac_ext <<_ACEOF
10859
 
/* end confdefs.h.  */
10860
 
#include <$ac_header>
10861
 
_ACEOF
10862
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
10863
 
case "(($ac_try" in
10864
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865
 
  *) ac_try_echo=$ac_try;;
10866
 
esac
10867
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10869
 
  ac_status=$?
10870
 
  grep -v '^ *+' conftest.er1 >conftest.err
10871
 
  rm -f conftest.er1
10872
 
  cat conftest.err >&5
10873
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874
 
  (exit $ac_status); } >/dev/null && {
10875
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10876
 
         test ! -s conftest.err
10877
 
       }; then
10878
 
  ac_header_preproc=yes
10879
 
else
10880
 
  echo "$as_me: failed program was:" >&5
10881
 
sed 's/^/| /' conftest.$ac_ext >&5
10882
 
 
10883
 
  ac_header_preproc=no
10884
 
fi
10885
 
 
10886
 
rm -f conftest.err conftest.$ac_ext
10887
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10888
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
10889
 
 
10890
 
# So?  What about this header?
10891
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10892
 
  yes:no: )
10893
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10894
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10895
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10896
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10897
 
    ac_header_preproc=yes
10898
 
    ;;
10899
 
  no:yes:* )
10900
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10901
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10902
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10903
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10904
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10905
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10906
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10907
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10908
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10909
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10910
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10911
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10912
 
    ( cat <<\_ASBOX
10913
 
## ------------------------------------ ##
10914
 
## Report this to bugs@x2go.org         ##
10915
 
## ------------------------------------ ##
10916
 
_ASBOX
10917
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
10918
 
    ;;
10919
 
esac
10920
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10921
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10922
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10923
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10924
 
else
10925
 
  eval "$as_ac_Header=\$ac_header_preproc"
10926
 
fi
10927
 
ac_res=`eval echo '${'$as_ac_Header'}'`
10928
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
10929
 
echo "${ECHO_T}$ac_res" >&6; }
10930
 
 
10931
 
fi
10932
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933
 
  cat >>confdefs.h <<_ACEOF
10934
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10935
 
_ACEOF
10936
 
 
10937
 
fi
10938
 
 
10939
 
done
10940
 
 
10941
 
      CXXFLAGS="$ac_save_CXXFLAGS"
10942
 
      CFLAGS="$ac_save_CFLAGS"
10943
 
      if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
10944
 
        kde_use_kernthreads=no
10945
 
      else
10946
 
                { echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
10947
 
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6; }
10948
 
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
10949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10950
 
else
10951
 
  ac_check_lib_save_LIBS=$LIBS
10952
 
LIBS="-llthread  $LIBS"
10953
 
cat >conftest.$ac_ext <<_ACEOF
10954
 
/* confdefs.h.  */
10955
 
_ACEOF
10956
 
cat confdefs.h >>conftest.$ac_ext
10957
 
cat >>conftest.$ac_ext <<_ACEOF
10958
 
/* end confdefs.h.  */
10959
 
 
10960
 
/* Override any GCC internal prototype to avoid an error.
10961
 
   Use char because int might match the return type of a GCC
10962
 
   builtin and then its argument prototype would still apply.  */
10963
 
#ifdef __cplusplus
10964
 
extern "C"
10965
 
#endif
10966
 
char pthread_join ();
10967
 
int
10968
 
main ()
10969
 
{
10970
 
return pthread_join ();
10971
 
  ;
10972
 
  return 0;
10973
 
}
10974
 
_ACEOF
10975
 
rm -f conftest.$ac_objext conftest$ac_exeext
10976
 
if { (ac_try="$ac_link"
10977
 
case "(($ac_try" in
10978
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979
 
  *) ac_try_echo=$ac_try;;
10980
 
esac
10981
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982
 
  (eval "$ac_link") 2>conftest.er1
10983
 
  ac_status=$?
10984
 
  grep -v '^ *+' conftest.er1 >conftest.err
10985
 
  rm -f conftest.er1
10986
 
  cat conftest.err >&5
10987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988
 
  (exit $ac_status); } && {
10989
 
         test -z "$ac_c_werror_flag" ||
10990
 
         test ! -s conftest.err
10991
 
       } && test -s conftest$ac_exeext &&
10992
 
       $as_test_x conftest$ac_exeext; then
10993
 
  ac_cv_lib_lthread_pthread_join=yes
10994
 
else
10995
 
  echo "$as_me: failed program was:" >&5
10996
 
sed 's/^/| /' conftest.$ac_ext >&5
10997
 
 
10998
 
        ac_cv_lib_lthread_pthread_join=no
10999
 
fi
11000
 
 
11001
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002
 
      conftest$ac_exeext conftest.$ac_ext
11003
 
LIBS=$ac_check_lib_save_LIBS
11004
 
fi
11005
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
11006
 
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6; }
11007
 
if test $ac_cv_lib_lthread_pthread_join = yes; then
11008
 
  LIBPTHREAD="-llthread -llgcc_r"
11009
 
fi
11010
 
         if test "x$LIBPTHREAD" = "x"; then
11011
 
          kde_use_kernthreads=no
11012
 
        else
11013
 
          USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
11014
 
        fi
11015
 
      fi
11016
 
    else
11017
 
      USE_THREADS=""
11018
 
      if test -z "$LIBPTHREAD"; then
11019
 
 
11020
 
{ echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
11021
 
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
11022
 
kde_cache=`echo pthread | sed 'y% .=/+-%____p_%'`
11023
 
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
11024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11025
 
else
11026
 
 
11027
 
  ac_ext=cpp
11028
 
ac_cpp='$CXXCPP $CPPFLAGS'
11029
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11030
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11031
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11032
 
 
11033
 
  save_CXXFLAGS="$CXXFLAGS"
11034
 
  CXXFLAGS="$CXXFLAGS -pthread"
11035
 
  cat >conftest.$ac_ext <<_ACEOF
11036
 
/* confdefs.h.  */
11037
 
_ACEOF
11038
 
cat confdefs.h >>conftest.$ac_ext
11039
 
cat >>conftest.$ac_ext <<_ACEOF
11040
 
/* end confdefs.h.  */
11041
 
 
11042
 
int
11043
 
main ()
11044
 
{
11045
 
 return 0;
11046
 
  ;
11047
 
  return 0;
11048
 
}
11049
 
_ACEOF
11050
 
rm -f conftest.$ac_objext conftest$ac_exeext
11051
 
if { (ac_try="$ac_link"
11052
 
case "(($ac_try" in
11053
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054
 
  *) ac_try_echo=$ac_try;;
11055
 
esac
11056
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057
 
  (eval "$ac_link") 2>conftest.er1
11058
 
  ac_status=$?
11059
 
  grep -v '^ *+' conftest.er1 >conftest.err
11060
 
  rm -f conftest.er1
11061
 
  cat conftest.err >&5
11062
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063
 
  (exit $ac_status); } && {
11064
 
         test -z "$ac_cxx_werror_flag" ||
11065
 
         test ! -s conftest.err
11066
 
       } && test -s conftest$ac_exeext &&
11067
 
       $as_test_x conftest$ac_exeext; then
11068
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
11069
 
else
11070
 
  echo "$as_me: failed program was:" >&5
11071
 
sed 's/^/| /' conftest.$ac_ext >&5
11072
 
 
11073
 
 
11074
 
fi
11075
 
 
11076
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11077
 
      conftest$ac_exeext conftest.$ac_ext
11078
 
  CXXFLAGS="$save_CXXFLAGS"
11079
 
  ac_ext=c
11080
 
ac_cpp='$CPP $CPPFLAGS'
11081
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11082
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11083
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11084
 
 
11085
 
 
11086
 
fi
11087
 
 
11088
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
11089
 
 { echo "$as_me:$LINENO: result: yes" >&5
11090
 
echo "${ECHO_T}yes" >&6; }
11091
 
 :
11092
 
 USE_THREADS="-pthread"
11093
 
else
11094
 
 { echo "$as_me:$LINENO: result: no" >&5
11095
 
echo "${ECHO_T}no" >&6; }
11096
 
 :
11097
 
 
11098
 
fi
11099
 
 
11100
 
      fi
11101
 
    fi
11102
 
 
11103
 
    case $host_os in
11104
 
        solaris*)
11105
 
 
11106
 
{ echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
11107
 
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
11108
 
kde_cache=`echo mt | sed 'y% .=/+-%____p_%'`
11109
 
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
11110
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11111
 
else
11112
 
 
11113
 
  ac_ext=cpp
11114
 
ac_cpp='$CXXCPP $CPPFLAGS'
11115
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11118
 
 
11119
 
  save_CXXFLAGS="$CXXFLAGS"
11120
 
  CXXFLAGS="$CXXFLAGS -mt"
11121
 
  cat >conftest.$ac_ext <<_ACEOF
11122
 
/* confdefs.h.  */
11123
 
_ACEOF
11124
 
cat confdefs.h >>conftest.$ac_ext
11125
 
cat >>conftest.$ac_ext <<_ACEOF
11126
 
/* end confdefs.h.  */
11127
 
 
11128
 
int
11129
 
main ()
11130
 
{
11131
 
 return 0;
11132
 
  ;
11133
 
  return 0;
11134
 
}
11135
 
_ACEOF
11136
 
rm -f conftest.$ac_objext conftest$ac_exeext
11137
 
if { (ac_try="$ac_link"
11138
 
case "(($ac_try" in
11139
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140
 
  *) ac_try_echo=$ac_try;;
11141
 
esac
11142
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143
 
  (eval "$ac_link") 2>conftest.er1
11144
 
  ac_status=$?
11145
 
  grep -v '^ *+' conftest.er1 >conftest.err
11146
 
  rm -f conftest.er1
11147
 
  cat conftest.err >&5
11148
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
 
  (exit $ac_status); } && {
11150
 
         test -z "$ac_cxx_werror_flag" ||
11151
 
         test ! -s conftest.err
11152
 
       } && test -s conftest$ac_exeext &&
11153
 
       $as_test_x conftest$ac_exeext; then
11154
 
  eval "kde_cv_prog_cxx_$kde_cache=yes"
11155
 
else
11156
 
  echo "$as_me: failed program was:" >&5
11157
 
sed 's/^/| /' conftest.$ac_ext >&5
11158
 
 
11159
 
 
11160
 
fi
11161
 
 
11162
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163
 
      conftest$ac_exeext conftest.$ac_ext
11164
 
  CXXFLAGS="$save_CXXFLAGS"
11165
 
  ac_ext=c
11166
 
ac_cpp='$CPP $CPPFLAGS'
11167
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11170
 
 
11171
 
 
11172
 
fi
11173
 
 
11174
 
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
11175
 
 { echo "$as_me:$LINENO: result: yes" >&5
11176
 
echo "${ECHO_T}yes" >&6; }
11177
 
 :
11178
 
 USE_THREADS="-mt"
11179
 
else
11180
 
 { echo "$as_me:$LINENO: result: no" >&5
11181
 
echo "${ECHO_T}no" >&6; }
11182
 
 :
11183
 
 
11184
 
fi
11185
 
 
11186
 
                QT_CXXFLAGS="$QT_CXXFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
11187
 
                ;;
11188
 
        freebsd*)
11189
 
                QT_CXXFLAGS="$QT_CXXFLAGS -D_THREAD_SAFE"
11190
 
                ;;
11191
 
        aix*)
11192
 
                QT_CXXFLAGS="$QT_CXXFLAGS -D_THREAD_SAFE"
11193
 
                LIBPTHREAD="$LIBPTHREAD -lc_r"
11194
 
                ;;
11195
 
        linux*) QT_CXXFLAGS="$QT_CXXFLAGS -D_REENTRANT"
11196
 
                if test "$CXX" = "KCC"; then
11197
 
                  QT_CXXFLAGS="$QT_CXXFLAGS --thread_safe"
11198
 
                fi
11199
 
                ;;
11200
 
        *)
11201
 
                ;;
11202
 
    esac
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
# Check whether --enable-mt was given.
11213
 
if test "${enable_mt+set}" = set; then
11214
 
  enableval=$enable_mt; qt_use_mt=$enableval
11215
 
else
11216
 
 
11217
 
    if test $qt_ver = 3; then
11218
 
      qt_use_mt=yes
11219
 
    else
11220
 
      qt_use_mt=no
11221
 
    fi
11222
 
 
11223
 
 
11224
 
fi
11225
 
 
11226
 
 
11227
 
USING_QT_MT=""
11228
 
 
11229
 
 
11230
 
QT_MT_LDFLAGS=
11231
 
QT_MT_LIBS=
11232
 
if test "x$qt_use_mt" = "xyes"; then
11233
 
 
11234
 
 
11235
 
 
11236
 
    if test -z "$LIBPTHREAD"; then
11237
 
    if test -z "$USE_THREADS"; then
11238
 
      kde_check_threading_default=no
11239
 
    else
11240
 
      kde_check_threading_default=yes
11241
 
    fi
11242
 
  else
11243
 
    kde_check_threading_default=yes
11244
 
  fi
11245
 
  # Check whether --enable-threading was given.
11246
 
if test "${enable_threading+set}" = set; then
11247
 
  enableval=$enable_threading; qt_use_threading=$enableval
11248
 
else
11249
 
  qt_use_threading=$kde_check_threading_default
11250
 
fi
11251
 
 
11252
 
  if test "x$qt_use_threading" = "xyes"; then
11253
 
 
11254
 
cat >>confdefs.h <<\_ACEOF
11255
 
#define HAVE_LIBPTHREAD 1
11256
 
_ACEOF
11257
 
 
11258
 
  fi
11259
 
 
11260
 
  if test "x$qt_use_threading" = "xyes"; then
11261
 
    QT_CXXFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $QT_CXXFLAGS"
11262
 
    QT_MT_LDFLAGS="$USE_THREADS"
11263
 
    QT_MT_LIBS="$LIBPTHREAD"
11264
 
  else
11265
 
    qt_use_mt=no
11266
 
  fi
11267
 
fi
11268
 
 
11269
 
 
11270
 
 
11271
 
if test -z "$LIBQT_GLOB"; then
11272
 
  if test "x$qt_use_emb" = "xyes"; then
11273
 
    LIBQT_GLOB="libqte.*"
11274
 
  else
11275
 
    LIBQT_GLOB="libqt.*"
11276
 
  fi
11277
 
fi
11278
 
 
11279
 
if test -z "$LIBQT"; then
11280
 
  if test "x$qt_use_emb" = "xyes"; then
11281
 
    qtlib="qte"
11282
 
  else
11283
 
    qtlib="qt"
11284
 
  fi
11285
 
fi
11286
 
 
11287
 
if test -z "$LIBQPE"; then
11288
 
  if test "x$qt_use_emb" = "xyes"; then
11289
 
    if test "x$qt_use_emb_palm" = "xyes"; then
11290
 
      LIB_QPE="-lqpe"
11291
 
    else
11292
 
      LIB_QPE=""
11293
 
    fi
11294
 
  else
11295
 
    LIB_QPE=""
11296
 
  fi
11297
 
fi
11298
 
 
11299
 
 
11300
 
if test "x$qt_use_mt" = "xyes"; then
11301
 
  if test -z "$LIBQT"; then
11302
 
    LIBQT="-l$qtlib-mt"
11303
 
  else
11304
 
    LIBQT="$qtlib-mt"
11305
 
  fi
11306
 
  LIBQT_GLOB="lib$qtlib-mt.*"
11307
 
  USING_QT_MT="using -mt"
11308
 
else
11309
 
  LIBQT="-l$qtlib"
11310
 
fi
11311
 
 
11312
 
{ echo "$as_me:$LINENO: checking for Qt" >&5
11313
 
echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
11314
 
 
11315
 
QT_LIBS="$LIBQT $QT_LIBS"
11316
 
test -z "$QT_MT_LIBS" || QT_LIBS="$QT_LIBS $QT_MT_LIBS"
11317
 
 
11318
 
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
11319
 
qt_libraries=""
11320
 
qt_includes=""
11321
 
 
11322
 
# Check whether --with-qt-dir was given.
11323
 
if test "${with_qt_dir+set}" = set; then
11324
 
  withval=$with_qt_dir;   ac_qt_includes="$withval"/include
11325
 
       ac_qt_libraries="$withval"/lib
11326
 
       ac_qt_bindir="$withval"/bin
11327
 
 
11328
 
fi
11329
 
 
11330
 
 
11331
 
 
11332
 
# Check whether --with-qt-includes was given.
11333
 
if test "${with_qt_includes+set}" = set; then
11334
 
  withval=$with_qt_includes;
11335
 
       ac_qt_includes="$withval"
11336
 
 
11337
 
fi
11338
 
 
11339
 
 
11340
 
kde_qt_libs_given=no
11341
 
 
11342
 
 
11343
 
# Check whether --with-qt-libraries was given.
11344
 
if test "${with_qt_libraries+set}" = set; then
11345
 
  withval=$with_qt_libraries;   ac_qt_libraries="$withval"
11346
 
       kde_qt_libs_given=yes
11347
 
 
11348
 
fi
11349
 
 
11350
 
 
11351
 
if test "${ac_cv_have_qt+set}" = set; then
11352
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11353
 
else
11354
 
  #try to guess Qt locations
11355
 
 
11356
 
qt_incdirs=""
11357
 
for dir in $qt_dirs; do
11358
 
   qt_incdirs="$qt_incdirs $dir/include $dir"
11359
 
done
11360
 
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include  /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
11361
 
if test ! "$ac_qt_includes" = "NO"; then
11362
 
   qt_incdirs="$ac_qt_includes $qt_incdirs"
11363
 
fi
11364
 
 
11365
 
if test "$qt_ver" != "1"; then
11366
 
  kde_qt_header=qstyle.h
11367
 
else
11368
 
  kde_qt_header=qglobal.h
11369
 
fi
11370
 
 
11371
 
 
11372
 
qt_incdir=NO
11373
 
for i in $qt_incdirs;
11374
 
do
11375
 
  for j in $kde_qt_header;
11376
 
  do
11377
 
    echo "configure: 11377: $i/$j" >&5
11378
 
    if test -r "$i/$j"; then
11379
 
      echo "taking that" >&5
11380
 
      qt_incdir=$i
11381
 
      break 2
11382
 
    fi
11383
 
  done
11384
 
done
11385
 
 
11386
 
ac_qt_includes="$qt_incdir"
11387
 
 
11388
 
qt_libdirs=""
11389
 
for dir in $qt_dirs; do
11390
 
   qt_libdirs="$qt_libdirs $dir/lib $dir"
11391
 
done
11392
 
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
11393
 
if test ! "$ac_qt_libraries" = "NO"; then
11394
 
  qt_libdir=$ac_qt_libraries
11395
 
else
11396
 
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
11397
 
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
11398
 
  qt_libdir=NONE
11399
 
  for dir in $qt_libdirs; do
11400
 
    try="ls -1 $dir/${LIBQT_GLOB}"
11401
 
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5; fi
11402
 
  done
11403
 
fi
11404
 
 
11405
 
ac_qt_libraries="$qt_libdir"
11406
 
 
11407
 
ac_ext=cpp
11408
 
ac_cpp='$CXXCPP $CPPFLAGS'
11409
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11412
 
 
11413
 
 
11414
 
ac_cxxflags_safe="$CXXFLAGS"
11415
 
ac_ldflags_safe="$LDFLAGS"
11416
 
ac_libs_safe="$LIBS"
11417
 
 
11418
 
CXXFLAGS="$CXXFLAGS -I$qt_incdir $QT_CXXFLAGS"
11419
 
LDFLAGS="$LDFLAGS -L$qt_libdir $QT_LDFLAGS"
11420
 
LIBS="$LIBS $QT_LIBS"
11421
 
 
11422
 
 
11423
 
 
11424
 
cat > conftest.$ac_ext <<EOF
11425
 
#include "confdefs.h"
11426
 
#include <qglobal.h>
11427
 
#include <qapplication.h>
11428
 
EOF
11429
 
if test "$qt_ver" = "2"; then
11430
 
cat >> conftest.$ac_ext <<EOF
11431
 
#include <qevent.h>
11432
 
#include <qstring.h>
11433
 
#include <qstyle.h>
11434
 
EOF
11435
 
 
11436
 
if test $qt_subver -gt 0; then
11437
 
cat >> conftest.$ac_ext <<EOF
11438
 
#include <qiconview.h>
11439
 
EOF
11440
 
fi
11441
 
fi
11442
 
 
11443
 
if test "$qt_ver" = "3"; then
11444
 
cat >> conftest.$ac_ext <<EOF
11445
 
#include <qcursor.h>
11446
 
#include <qstylefactory.h>
11447
 
#include <private/qucomextra_p.h>
11448
 
EOF
11449
 
fi
11450
 
 
11451
 
echo "#if ! ($qt_verstring)" >> conftest.$ac_ext
11452
 
cat >> conftest.$ac_ext <<EOF
11453
 
#error 1
11454
 
#endif
11455
 
 
11456
 
int main() {
11457
 
EOF
11458
 
if test "$qt_ver" = "2"; then
11459
 
cat >> conftest.$ac_ext <<EOF
11460
 
    QStringList *t = new QStringList();
11461
 
    Q_UNUSED(t);
11462
 
EOF
11463
 
if test $qt_subver -gt 0; then
11464
 
cat >> conftest.$ac_ext <<EOF
11465
 
    QIconView iv(0);
11466
 
    iv.setWordWrapIconText(false);
11467
 
    QString s;
11468
 
    s.setLatin1("Elvis is alive", 14);
11469
 
EOF
11470
 
fi
11471
 
fi
11472
 
if test "$qt_ver" = "3"; then
11473
 
cat >> conftest.$ac_ext <<EOF
11474
 
    (void)QStyleFactory::create(QString::null);
11475
 
    QCursor c(Qt::WhatsThisCursor);
11476
 
EOF
11477
 
fi
11478
 
cat >> conftest.$ac_ext <<EOF
11479
 
    return 0;
11480
 
}
11481
 
EOF
11482
 
 
11483
 
 
11484
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485
 
  (eval $ac_link) 2>&5
11486
 
  ac_status=$?
11487
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488
 
  (exit $ac_status); } && test -s conftest; then
11489
 
  rm -f conftest*
11490
 
else
11491
 
  echo "configure: failed program was:" >&5
11492
 
  cat conftest.$ac_ext >&5
11493
 
  ac_qt_libraries="NO"
11494
 
fi
11495
 
rm -f conftest*
11496
 
CXXFLAGS="$ac_cxxflags_safe"
11497
 
LDFLAGS="$ac_ldflags_safe"
11498
 
LIBS="$ac_libs_safe"
11499
 
 
11500
 
ac_ext=c
11501
 
ac_cpp='$CPP $CPPFLAGS'
11502
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505
 
 
11506
 
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
11507
 
  ac_cv_have_qt="have_qt=no"
11508
 
  ac_qt_notfound=""
11509
 
  missing_qt_mt=""
11510
 
  if test "$ac_qt_includes" = NO; then
11511
 
    if test "$ac_qt_libraries" = NO; then
11512
 
      ac_qt_notfound="(headers and libraries)";
11513
 
    else
11514
 
      ac_qt_notfound="(headers)";
11515
 
    fi
11516
 
  else
11517
 
    if test "x$qt_use_mt" = "xyes"; then
11518
 
       missing_qt_mt="
11519
 
Make sure that you have compiled Qt with thread support!"
11520
 
       ac_qt_notfound="(library $qtlib-mt)";
11521
 
    else
11522
 
       ac_qt_notfound="(library $qtlib)";
11523
 
    fi
11524
 
  fi
11525
 
 
11526
 
  #AC_MSG_ERROR([Qt ($qt_minversion) $ac_qt_notfound not found. Please check your installation!
11527
 
  #For more details about this problem, look at the end of config.log.$missing_qt_mt])
11528
 
  have_qt="no"
11529
 
else
11530
 
  have_qt="yes"
11531
 
fi
11532
 
 
11533
 
fi
11534
 
 
11535
 
 
11536
 
eval "$ac_cv_have_qt"
11537
 
 
11538
 
if test "$have_qt" != yes; then
11539
 
  { echo "$as_me:$LINENO: result: $have_qt" >&5
11540
 
echo "${ECHO_T}$have_qt" >&6; };
11541
 
else
11542
 
  ac_cv_have_qt="have_qt=yes \
11543
 
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
11544
 
  { echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
11545
 
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
11546
 
 
11547
 
  qt_libraries="$ac_qt_libraries"
11548
 
  qt_includes="$ac_qt_includes"
11549
 
fi
11550
 
 
11551
 
 
11552
 
 
11553
 
 
11554
 
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
11555
 
 QT_INCLUDES=""
11556
 
else
11557
 
 QT_INCLUDES="-I$qt_includes"
11558
 
fi
11559
 
 
11560
 
if test "$qt_libraries" != "$x_libraries" && test -n "$qt_libraries"; then
11561
 
 QT_LDFLAGS="$QT_LDFLAGS -L$qt_libraries"
11562
 
fi
11563
 
test -z "$QT_MT_LDFLAGS" || QT_LDFLAGS="$QT_LDFLAGS $QT_MT_LDFLAGS"
11564
 
 
11565
 
 
11566
 
 
11567
 
   qt_bindirs=""
11568
 
   for dir in $qt_dirs; do
11569
 
      qt_bindirs="$qt_bindirs:$dir/bin:$dir/src/moc"
11570
 
   done
11571
 
   qt_bindirs="$qt_bindirs:/usr/bin:/usr/X11R6/bin:/usr/local/qt/bin"
11572
 
   if test ! "$ac_qt_bindir" = "NO"; then
11573
 
      qt_bindirs="$ac_qt_bindir:$qt_bindirs"
11574
 
   fi
11575
 
 
11576
 
   # Extract the first word of "moc", so it can be a program name with args.
11577
 
set dummy moc; ac_word=$2
11578
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11579
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11580
 
if test "${ac_cv_path_MOC+set}" = set; then
11581
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11582
 
else
11583
 
  case $MOC in
11584
 
  [\\/]* | ?:[\\/]*)
11585
 
  ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
11586
 
  ;;
11587
 
  *)
11588
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589
 
for as_dir in $qt_bindirs
11590
 
do
11591
 
  IFS=$as_save_IFS
11592
 
  test -z "$as_dir" && as_dir=.
11593
 
  for ac_exec_ext in '' $ac_executable_extensions; do
11594
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11595
 
    ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
11596
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11597
 
    break 2
11598
 
  fi
11599
 
done
11600
 
done
11601
 
IFS=$as_save_IFS
11602
 
 
11603
 
  test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
11604
 
  ;;
11605
 
esac
11606
 
fi
11607
 
MOC=$ac_cv_path_MOC
11608
 
if test -n "$MOC"; then
11609
 
  { echo "$as_me:$LINENO: result: $MOC" >&5
11610
 
echo "${ECHO_T}$MOC" >&6; }
11611
 
else
11612
 
  { echo "$as_me:$LINENO: result: no" >&5
11613
 
echo "${ECHO_T}no" >&6; }
11614
 
fi
11615
 
 
11616
 
 
11617
 
   if test "$MOC" = no; then
11618
 
    #AC_MSG_ERROR([No Qt meta object compiler (moc) found!
11619
 
    #Please check whether you installed Qt correctly.
11620
 
    #You need to have a running moc binary.
11621
 
    #configure tried to run $ac_cv_path_moc and the test didn't
11622
 
    #succeed. If configure shouldn't have tried this one, set
11623
 
    #the environment variable MOC to the right one before running
11624
 
    #configure.
11625
 
    #])
11626
 
    have_moc="no"
11627
 
   else
11628
 
    have_moc="yes"
11629
 
 
11630
 
   fi
11631
 
 
11632
 
 
11633
 
 
11634
 
 
11635
 
 
11636
 
 
11637
 
{ echo "$as_me:$LINENO: checking for rpath" >&5
11638
 
echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
11639
 
# Check whether --enable-rpath was given.
11640
 
if test "${enable_rpath+set}" = set; then
11641
 
  enableval=$enable_rpath; USE_RPATH=$enableval
11642
 
else
11643
 
  USE_RPATH=yes
11644
 
fi
11645
 
 
11646
 
 
11647
 
if test -z "$QT_RPATH" && test "$USE_RPATH" = "yes"; then
11648
 
 
11649
 
  QT_RPATH=""
11650
 
  if test -n "$qt_libraries"; then
11651
 
    QT_RPATH="$QT_RPATH -Wl,--rpath -Wl,\$(qt_libraries)"
11652
 
  fi
11653
 
    if test -n "$X_LIBS"; then
11654
 
    QT_RPATH="$QT_RPATH -Wl,--rpath -Wl,\$(x_libraries)"
11655
 
  fi
11656
 
fi
11657
 
 
11658
 
 
11659
 
{ echo "$as_me:$LINENO: result: $USE_RPATH" >&5
11660
 
echo "${ECHO_T}$USE_RPATH" >&6; }
11661
 
 
11662
 
 
11663
 
if test $have_qt = "no"; then
11664
 
        if test $pinentry_qt = "yes"; then
11665
 
          { { echo "$as_me:$LINENO: error:
11666
 
***
11667
 
*** Qt ($qt_minversion) $ac_qt_notfound not found. Please check your
11668
 
*** installation!  For more details about this problem, look at the
11669
 
*** end of config.log.$missing_qt_mt
11670
 
***" >&5
11671
 
echo "$as_me: error:
11672
 
***
11673
 
*** Qt ($qt_minversion) $ac_qt_notfound not found. Please check your
11674
 
*** installation!  For more details about this problem, look at the
11675
 
*** end of config.log.$missing_qt_mt
11676
 
***" >&2;}
11677
 
   { (exit 1); exit 1; }; }
11678
 
        else
11679
 
          pinentry_qt="no"
11680
 
        fi
11681
 
fi
11682
 
if test $have_moc = "no"; then
11683
 
        if test $pinentry_qt = "yes"; then
11684
 
        { { echo "$as_me:$LINENO: error:
11685
 
***
11686
 
*** No Qt meta object compiler (moc) found!
11687
 
*** Please check whether you installed Qt correctly.
11688
 
*** You need to have a running moc binary.
11689
 
*** configure tried to run $ac_cv_path_moc and the test didn't
11690
 
*** succeed. If configure shouldn't have tried this one, set
11691
 
*** the environment variable MOC to the right one before running
11692
 
*** configure.
11693
 
***" >&5
11694
 
echo "$as_me: error:
11695
 
***
11696
 
*** No Qt meta object compiler (moc) found!
11697
 
*** Please check whether you installed Qt correctly.
11698
 
*** You need to have a running moc binary.
11699
 
*** configure tried to run $ac_cv_path_moc and the test didn't
11700
 
*** succeed. If configure shouldn't have tried this one, set
11701
 
*** the environment variable MOC to the right one before running
11702
 
*** configure.
11703
 
***" >&2;}
11704
 
   { (exit 1); exit 1; }; }
11705
 
        else
11706
 
          pinentry_qt="no"
11707
 
        fi
11708
 
fi
11709
 
fi
11710
 
 
11711
 
if test "$pinentry_qt" != "no"; then
11712
 
    pinentry_qt=yes
11713
 
fi
11714
 
 if test "$pinentry_qt" = "yes"; then
11715
 
  BUILD_PINENTRY_QT_TRUE=
11716
 
  BUILD_PINENTRY_QT_FALSE='#'
11717
 
else
11718
 
  BUILD_PINENTRY_QT_TRUE='#'
11719
 
  BUILD_PINENTRY_QT_FALSE=
11720
 
fi
11721
 
 
11722
 
 
11723
 
if test "$pinentry_qt" = "yes"; then
11724
 
 
11725
 
cat >>confdefs.h <<\_ACEOF
11726
 
#define PINENTRY_QT 1
11727
 
_ACEOF
11728
 
 
11729
 
fi
11730
 
 
11731
 
 
11732
 
 
11733
 
#
11734
 
# Check whether we should build the W32 pinentry.  This is actually
11735
 
# the simplest check as we do this only for that platform.
11736
 
#
11737
 
pinentry_w32=no
11738
 
test $have_w32_system = yes && pinentry_w32=yes
11739
 
 if test "$pinentry_w32" = "yes"; then
11740
 
  BUILD_PINENTRY_W32_TRUE=
11741
 
  BUILD_PINENTRY_W32_FALSE='#'
11742
 
else
11743
 
  BUILD_PINENTRY_W32_TRUE='#'
11744
 
  BUILD_PINENTRY_W32_FALSE=
11745
 
fi
11746
 
 
11747
 
 
11748
 
 
11749
 
#
11750
 
# Figure out the default pinentry
11751
 
#
11752
 
if test "$pinentry_gtk" = "yes"; then
11753
 
   PINENTRY_DEFAULT=pinentry-gtk
11754
 
else
11755
 
  if test "$pinentry_gtk_2" = "yes"; then
11756
 
    PINENTRY_DEFAULT=pinentry-gtk-2
11757
 
  else
11758
 
    if test "$pinentry_qt" = "yes"; then
11759
 
      PINENTRY_DEFAULT=pinentry-qt
11760
 
    else
11761
 
      if test "$pinentry_curses" = "yes"; then
11762
 
        PINENTRY_DEFAULT=pinentry-curses
11763
 
      else
11764
 
        if test "$pinentry_w32" = "yes"; then
11765
 
          PINENTRY_DEFAULT=pinentry-w32
11766
 
        else
11767
 
          { { echo "$as_me:$LINENO: error: No pinentry enabled." >&5
11768
 
echo "$as_me: error: No pinentry enabled." >&2;}
11769
 
   { (exit 1); exit 1; }; }
11770
 
        fi
11771
 
      fi
11772
 
    fi
11773
 
  fi
11774
 
fi
11775
 
 
11776
 
 
11777
 
 
11778
 
ac_config_files="$ac_config_files assuan/Makefile secmem/Makefile pinentry/Makefile curses/Makefile gtk/Makefile gtk+-2/Makefile qt/Makefile w32/Makefile doc/Makefile Makefile"
11779
 
 
11780
 
 
11781
 
cat >confcache <<\_ACEOF
11782
 
# This file is a shell script that caches the results of configure
11783
 
# tests run on this system so they can be shared between configure
11784
 
# scripts and configure runs, see configure's option --config-cache.
11785
 
# It is not useful on other systems.  If it contains results you don't
11786
 
# want to keep, you may remove or edit it.
11787
 
#
11788
 
# config.status only pays attention to the cache file if you give it
11789
 
# the --recheck option to rerun configure.
11790
 
#
11791
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11792
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11793
 
# following values.
11794
 
 
11795
 
_ACEOF
11796
 
 
11797
 
# The following way of writing the cache mishandles newlines in values,
11798
 
# but we know of no workaround that is simple, portable, and efficient.
11799
 
# So, we kill variables containing newlines.
11800
 
# Ultrix sh set writes to stderr and can't be redirected directly,
11801
 
# and sets the high bit in the cache file unless we assign to the vars.
11802
 
(
11803
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11804
 
    eval ac_val=\$$ac_var
11805
 
    case $ac_val in #(
11806
 
    *${as_nl}*)
11807
 
      case $ac_var in #(
11808
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11809
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11810
 
      esac
11811
 
      case $ac_var in #(
11812
 
      _ | IFS | as_nl) ;; #(
11813
 
      *) $as_unset $ac_var ;;
11814
 
      esac ;;
11815
 
    esac
11816
 
  done
11817
 
 
11818
 
  (set) 2>&1 |
11819
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11820
 
    *${as_nl}ac_space=\ *)
11821
 
      # `set' does not quote correctly, so add quotes (double-quote
11822
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11823
 
      sed -n \
11824
 
        "s/'/'\\\\''/g;
11825
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11826
 
      ;; #(
11827
 
    *)
11828
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11829
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11830
 
      ;;
11831
 
    esac |
11832
 
    sort
11833
 
) |
11834
 
  sed '
11835
 
     /^ac_cv_env_/b end
11836
 
     t clear
11837
 
     :clear
11838
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11839
 
     t end
11840
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11841
 
     :end' >>confcache
11842
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11843
 
  if test -w "$cache_file"; then
11844
 
    test "x$cache_file" != "x/dev/null" &&
11845
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11846
 
echo "$as_me: updating cache $cache_file" >&6;}
11847
 
    cat confcache >$cache_file
11848
 
  else
11849
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11850
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11851
 
  fi
11852
 
fi
11853
 
rm -f confcache
11854
 
 
11855
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11856
 
# Let make expand exec_prefix.
11857
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11858
 
 
11859
 
DEFS=-DHAVE_CONFIG_H
11860
 
 
11861
 
ac_libobjs=
11862
 
ac_ltlibobjs=
11863
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11864
 
  # 1. Remove the extension, and $U if already installed.
11865
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11866
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
11867
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11868
 
  #    will be set to the directory where LIBOBJS objects are built.
11869
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11870
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11871
 
done
11872
 
LIBOBJS=$ac_libobjs
11873
 
 
11874
 
LTLIBOBJS=$ac_ltlibobjs
11875
 
 
11876
 
 
11877
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11878
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11879
 
Usually this means the macro was only invoked conditionally." >&5
11880
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11881
 
Usually this means the macro was only invoked conditionally." >&2;}
11882
 
   { (exit 1); exit 1; }; }
11883
 
fi
11884
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11885
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11886
 
Usually this means the macro was only invoked conditionally." >&5
11887
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11888
 
Usually this means the macro was only invoked conditionally." >&2;}
11889
 
   { (exit 1); exit 1; }; }
11890
 
fi
11891
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11892
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11893
 
Usually this means the macro was only invoked conditionally." >&5
11894
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11895
 
Usually this means the macro was only invoked conditionally." >&2;}
11896
 
   { (exit 1); exit 1; }; }
11897
 
fi
11898
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11899
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11900
 
Usually this means the macro was only invoked conditionally." >&5
11901
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11902
 
Usually this means the macro was only invoked conditionally." >&2;}
11903
 
   { (exit 1); exit 1; }; }
11904
 
fi
11905
 
if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
11906
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
11907
 
Usually this means the macro was only invoked conditionally." >&5
11908
 
echo "$as_me: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
11909
 
Usually this means the macro was only invoked conditionally." >&2;}
11910
 
   { (exit 1); exit 1; }; }
11911
 
fi
11912
 
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
11913
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
11914
 
Usually this means the macro was only invoked conditionally." >&5
11915
 
echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
11916
 
Usually this means the macro was only invoked conditionally." >&2;}
11917
 
   { (exit 1); exit 1; }; }
11918
 
fi
11919
 
if test -z "${BUILD_LIBPINENTRY_CURSES_TRUE}" && test -z "${BUILD_LIBPINENTRY_CURSES_FALSE}"; then
11920
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBPINENTRY_CURSES\" was never defined.
11921
 
Usually this means the macro was only invoked conditionally." >&5
11922
 
echo "$as_me: error: conditional \"BUILD_LIBPINENTRY_CURSES\" was never defined.
11923
 
Usually this means the macro was only invoked conditionally." >&2;}
11924
 
   { (exit 1); exit 1; }; }
11925
 
fi
11926
 
if test -z "${BUILD_PINENTRY_CURSES_TRUE}" && test -z "${BUILD_PINENTRY_CURSES_FALSE}"; then
11927
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_CURSES\" was never defined.
11928
 
Usually this means the macro was only invoked conditionally." >&5
11929
 
echo "$as_me: error: conditional \"BUILD_PINENTRY_CURSES\" was never defined.
11930
 
Usually this means the macro was only invoked conditionally." >&2;}
11931
 
   { (exit 1); exit 1; }; }
11932
 
fi
11933
 
if test -z "${FALLBACK_CURSES_TRUE}" && test -z "${FALLBACK_CURSES_FALSE}"; then
11934
 
  { { echo "$as_me:$LINENO: error: conditional \"FALLBACK_CURSES\" was never defined.
11935
 
Usually this means the macro was only invoked conditionally." >&5
11936
 
echo "$as_me: error: conditional \"FALLBACK_CURSES\" was never defined.
11937
 
Usually this means the macro was only invoked conditionally." >&2;}
11938
 
   { (exit 1); exit 1; }; }
11939
 
fi
11940
 
if test -z "${BUILD_PINENTRY_GTK_TRUE}" && test -z "${BUILD_PINENTRY_GTK_FALSE}"; then
11941
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_GTK\" was never defined.
11942
 
Usually this means the macro was only invoked conditionally." >&5
11943
 
echo "$as_me: error: conditional \"BUILD_PINENTRY_GTK\" was never defined.
11944
 
Usually this means the macro was only invoked conditionally." >&2;}
11945
 
   { (exit 1); exit 1; }; }
11946
 
fi
11947
 
if test -z "${BUILD_PINENTRY_GTK_2_TRUE}" && test -z "${BUILD_PINENTRY_GTK_2_FALSE}"; then
11948
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
11949
 
Usually this means the macro was only invoked conditionally." >&5
11950
 
echo "$as_me: error: conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
11951
 
Usually this means the macro was only invoked conditionally." >&2;}
11952
 
   { (exit 1); exit 1; }; }
11953
 
fi
11954
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11955
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11956
 
Usually this means the macro was only invoked conditionally." >&5
11957
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11958
 
Usually this means the macro was only invoked conditionally." >&2;}
11959
 
   { (exit 1); exit 1; }; }
11960
 
fi
11961
 
if test -z "${BUILD_PINENTRY_QT_TRUE}" && test -z "${BUILD_PINENTRY_QT_FALSE}"; then
11962
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_QT\" was never defined.
11963
 
Usually this means the macro was only invoked conditionally." >&5
11964
 
echo "$as_me: error: conditional \"BUILD_PINENTRY_QT\" was never defined.
11965
 
Usually this means the macro was only invoked conditionally." >&2;}
11966
 
   { (exit 1); exit 1; }; }
11967
 
fi
11968
 
if test -z "${BUILD_PINENTRY_W32_TRUE}" && test -z "${BUILD_PINENTRY_W32_FALSE}"; then
11969
 
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_W32\" was never defined.
11970
 
Usually this means the macro was only invoked conditionally." >&5
11971
 
echo "$as_me: error: conditional \"BUILD_PINENTRY_W32\" was never defined.
11972
 
Usually this means the macro was only invoked conditionally." >&2;}
11973
 
   { (exit 1); exit 1; }; }
11974
 
fi
11975
 
 
11976
 
: ${CONFIG_STATUS=./config.status}
11977
 
ac_clean_files_save=$ac_clean_files
11978
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11979
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11980
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11981
 
cat >$CONFIG_STATUS <<_ACEOF
11982
 
#! $SHELL
11983
 
# Generated by $as_me.
11984
 
# Run this file to recreate the current configuration.
11985
 
# Compiler output produced by configure, useful for debugging
11986
 
# configure, is in config.log if it exists.
11987
 
 
11988
 
debug=false
11989
 
ac_cs_recheck=false
11990
 
ac_cs_silent=false
11991
 
SHELL=\${CONFIG_SHELL-$SHELL}
11992
 
_ACEOF
11993
 
 
11994
 
cat >>$CONFIG_STATUS <<\_ACEOF
11995
 
## --------------------- ##
11996
 
## M4sh Initialization.  ##
11997
 
## --------------------- ##
11998
 
 
11999
 
# Be more Bourne compatible
12000
 
DUALCASE=1; export DUALCASE # for MKS sh
12001
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12002
 
  emulate sh
12003
 
  NULLCMD=:
12004
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12005
 
  # is contrary to our usage.  Disable this feature.
12006
 
  alias -g '${1+"$@"}'='"$@"'
12007
 
  setopt NO_GLOB_SUBST
12008
 
else
12009
 
  case `(set -o) 2>/dev/null` in
12010
 
  *posix*) set -o posix ;;
12011
 
esac
12012
 
 
12013
 
fi
12014
 
 
12015
 
 
12016
 
 
12017
 
 
12018
 
# PATH needs CR
12019
 
# Avoid depending upon Character Ranges.
12020
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12021
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12022
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12023
 
as_cr_digits='0123456789'
12024
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
12025
 
 
12026
 
# The user is always right.
12027
 
if test "${PATH_SEPARATOR+set}" != set; then
12028
 
  echo "#! /bin/sh" >conf$$.sh
12029
 
  echo  "exit 0"   >>conf$$.sh
12030
 
  chmod +x conf$$.sh
12031
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12032
 
    PATH_SEPARATOR=';'
12033
 
  else
12034
 
    PATH_SEPARATOR=:
12035
 
  fi
12036
 
  rm -f conf$$.sh
12037
 
fi
12038
 
 
12039
 
# Support unset when possible.
12040
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12041
 
  as_unset=unset
12042
 
else
12043
 
  as_unset=false
12044
 
fi
12045
 
 
12046
 
 
12047
 
# IFS
12048
 
# We need space, tab and new line, in precisely that order.  Quoting is
12049
 
# there to prevent editors from complaining about space-tab.
12050
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12051
 
# splitting by setting IFS to empty value.)
12052
 
as_nl='
12053
 
'
12054
 
IFS=" ""        $as_nl"
12055
 
 
12056
 
# Find who we are.  Look in the path if we contain no directory separator.
12057
 
case $0 in
12058
 
  *[\\/]* ) as_myself=$0 ;;
12059
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060
 
for as_dir in $PATH
12061
 
do
12062
 
  IFS=$as_save_IFS
12063
 
  test -z "$as_dir" && as_dir=.
12064
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12065
 
done
12066
 
IFS=$as_save_IFS
12067
 
 
12068
 
     ;;
12069
 
esac
12070
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
12071
 
# in which case we are not to be found in the path.
12072
 
if test "x$as_myself" = x; then
12073
 
  as_myself=$0
12074
 
fi
12075
 
if test ! -f "$as_myself"; then
12076
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12077
 
  { (exit 1); exit 1; }
12078
 
fi
12079
 
 
12080
 
# Work around bugs in pre-3.0 UWIN ksh.
12081
 
for as_var in ENV MAIL MAILPATH
12082
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12083
 
done
12084
 
PS1='$ '
12085
 
PS2='> '
12086
 
PS4='+ '
12087
 
 
12088
 
# NLS nuisances.
12089
 
for as_var in \
12090
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12091
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12092
 
  LC_TELEPHONE LC_TIME
12093
 
do
12094
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12095
 
    eval $as_var=C; export $as_var
12096
 
  else
12097
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12098
 
  fi
12099
 
done
12100
 
 
12101
 
# Required to use basename.
12102
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
12103
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12104
 
  as_expr=expr
12105
 
else
12106
 
  as_expr=false
12107
 
fi
12108
 
 
12109
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12110
 
  as_basename=basename
12111
 
else
12112
 
  as_basename=false
12113
 
fi
12114
 
 
12115
 
 
12116
 
# Name of the executable.
12117
 
as_me=`$as_basename -- "$0" ||
12118
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12119
 
         X"$0" : 'X\(//\)$' \| \
12120
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12121
 
echo X/"$0" |
12122
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
12123
 
            s//\1/
12124
 
            q
12125
 
          }
12126
 
          /^X\/\(\/\/\)$/{
12127
 
            s//\1/
12128
 
            q
12129
 
          }
12130
 
          /^X\/\(\/\).*/{
12131
 
            s//\1/
12132
 
            q
12133
 
          }
12134
 
          s/.*/./; q'`
12135
 
 
12136
 
# CDPATH.
12137
 
$as_unset CDPATH
12138
 
 
12139
 
 
12140
 
 
12141
 
  as_lineno_1=$LINENO
12142
 
  as_lineno_2=$LINENO
12143
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
12144
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12145
 
 
12146
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12147
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
12148
 
  # line-number line after each line using $LINENO; the second 'sed'
12149
 
  # does the real work.  The second script uses 'N' to pair each
12150
 
  # line-number line with the line containing $LINENO, and appends
12151
 
  # trailing '-' during substitution so that $LINENO is not a special
12152
 
  # case at line end.
12153
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12154
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
12155
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
12156
 
  sed -n '
12157
 
    p
12158
 
    /[$]LINENO/=
12159
 
  ' <$as_myself |
12160
 
    sed '
12161
 
      s/[$]LINENO.*/&-/
12162
 
      t lineno
12163
 
      b
12164
 
      :lineno
12165
 
      N
12166
 
      :loop
12167
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12168
 
      t loop
12169
 
      s/-\n.*//
12170
 
    ' >$as_me.lineno &&
12171
 
  chmod +x "$as_me.lineno" ||
12172
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12173
 
   { (exit 1); exit 1; }; }
12174
 
 
12175
 
  # Don't try to exec as it changes $[0], causing all sort of problems
12176
 
  # (the dirname of $[0] is not the place where we might find the
12177
 
  # original and so on.  Autoconf is especially sensitive to this).
12178
 
  . "./$as_me.lineno"
12179
 
  # Exit status is that of the last command.
12180
 
  exit
12181
 
}
12182
 
 
12183
 
 
12184
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12185
 
  as_dirname=dirname
12186
 
else
12187
 
  as_dirname=false
12188
 
fi
12189
 
 
12190
 
ECHO_C= ECHO_N= ECHO_T=
12191
 
case `echo -n x` in
12192
 
-n*)
12193
 
  case `echo 'x\c'` in
12194
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12195
 
  *)   ECHO_C='\c';;
12196
 
  esac;;
12197
 
*)
12198
 
  ECHO_N='-n';;
12199
 
esac
12200
 
 
12201
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
12202
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12203
 
  as_expr=expr
12204
 
else
12205
 
  as_expr=false
12206
 
fi
12207
 
 
12208
 
rm -f conf$$ conf$$.exe conf$$.file
12209
 
if test -d conf$$.dir; then
12210
 
  rm -f conf$$.dir/conf$$.file
12211
 
else
12212
 
  rm -f conf$$.dir
12213
 
  mkdir conf$$.dir
12214
 
fi
12215
 
echo >conf$$.file
12216
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
12217
 
  as_ln_s='ln -s'
12218
 
  # ... but there are two gotchas:
12219
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12220
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12221
 
  # In both cases, we have to default to `cp -p'.
12222
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12223
 
    as_ln_s='cp -p'
12224
 
elif ln conf$$.file conf$$ 2>/dev/null; then
12225
 
  as_ln_s=ln
12226
 
else
12227
 
  as_ln_s='cp -p'
12228
 
fi
12229
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12230
 
rmdir conf$$.dir 2>/dev/null
12231
 
 
12232
 
if mkdir -p . 2>/dev/null; then
12233
 
  as_mkdir_p=:
12234
 
else
12235
 
  test -d ./-p && rmdir ./-p
12236
 
  as_mkdir_p=false
12237
 
fi
12238
 
 
12239
 
if test -x / >/dev/null 2>&1; then
12240
 
  as_test_x='test -x'
12241
 
else
12242
 
  if ls -dL / >/dev/null 2>&1; then
12243
 
    as_ls_L_option=L
12244
 
  else
12245
 
    as_ls_L_option=
12246
 
  fi
12247
 
  as_test_x='
12248
 
    eval sh -c '\''
12249
 
      if test -d "$1"; then
12250
 
        test -d "$1/.";
12251
 
      else
12252
 
        case $1 in
12253
 
        -*)set "./$1";;
12254
 
        esac;
12255
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12256
 
        ???[sx]*):;;*)false;;esac;fi
12257
 
    '\'' sh
12258
 
  '
12259
 
fi
12260
 
as_executable_p=$as_test_x
12261
 
 
12262
 
# Sed expression to map a string onto a valid CPP name.
12263
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12264
 
 
12265
 
# Sed expression to map a string onto a valid variable name.
12266
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12267
 
 
12268
 
 
12269
 
exec 6>&1
12270
 
 
12271
 
# Save the log message, to keep $[0] and so on meaningful, and to
12272
 
# report actual input values of CONFIG_FILES etc. instead of their
12273
 
# values after options handling.
12274
 
ac_log="
12275
 
This file was extended by pinentry-x2go $as_me 0.7.5.0, which was
12276
 
generated by GNU Autoconf 2.61.  Invocation command line was
12277
 
 
12278
 
  CONFIG_FILES    = $CONFIG_FILES
12279
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
12280
 
  CONFIG_LINKS    = $CONFIG_LINKS
12281
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
12282
 
  $ $0 $@
12283
 
 
12284
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12285
 
"
12286
 
 
12287
 
_ACEOF
12288
 
 
12289
 
cat >>$CONFIG_STATUS <<_ACEOF
12290
 
# Files that config.status was made for.
12291
 
config_files="$ac_config_files"
12292
 
config_headers="$ac_config_headers"
12293
 
config_commands="$ac_config_commands"
12294
 
 
12295
 
_ACEOF
12296
 
 
12297
 
cat >>$CONFIG_STATUS <<\_ACEOF
12298
 
ac_cs_usage="\
12299
 
\`$as_me' instantiates files from templates according to the
12300
 
current configuration.
12301
 
 
12302
 
Usage: $0 [OPTIONS] [FILE]...
12303
 
 
12304
 
  -h, --help       print this help, then exit
12305
 
  -V, --version    print version number and configuration settings, then exit
12306
 
  -q, --quiet      do not print progress messages
12307
 
  -d, --debug      don't remove temporary files
12308
 
      --recheck    update $as_me by reconfiguring in the same conditions
12309
 
  --file=FILE[:TEMPLATE]
12310
 
                   instantiate the configuration file FILE
12311
 
  --header=FILE[:TEMPLATE]
12312
 
                   instantiate the configuration header FILE
12313
 
 
12314
 
Configuration files:
12315
 
$config_files
12316
 
 
12317
 
Configuration headers:
12318
 
$config_headers
12319
 
 
12320
 
Configuration commands:
12321
 
$config_commands
12322
 
 
12323
 
Report bugs to <bug-autoconf@gnu.org>."
12324
 
 
12325
 
_ACEOF
12326
 
cat >>$CONFIG_STATUS <<_ACEOF
12327
 
ac_cs_version="\\
12328
 
pinentry-x2go config.status 0.7.5.0
12329
 
configured by $0, generated by GNU Autoconf 2.61,
12330
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12331
 
 
12332
 
Copyright (C) 2006 Free Software Foundation, Inc.
12333
 
This config.status script is free software; the Free Software Foundation
12334
 
gives unlimited permission to copy, distribute and modify it."
12335
 
 
12336
 
ac_pwd='$ac_pwd'
12337
 
srcdir='$srcdir'
12338
 
INSTALL='$INSTALL'
12339
 
MKDIR_P='$MKDIR_P'
12340
 
_ACEOF
12341
 
 
12342
 
cat >>$CONFIG_STATUS <<\_ACEOF
12343
 
# If no file are specified by the user, then we need to provide default
12344
 
# value.  By we need to know if files were specified by the user.
12345
 
ac_need_defaults=:
12346
 
while test $# != 0
12347
 
do
12348
 
  case $1 in
12349
 
  --*=*)
12350
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12351
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12352
 
    ac_shift=:
12353
 
    ;;
12354
 
  *)
12355
 
    ac_option=$1
12356
 
    ac_optarg=$2
12357
 
    ac_shift=shift
12358
 
    ;;
12359
 
  esac
12360
 
 
12361
 
  case $ac_option in
12362
 
  # Handling of the options.
12363
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12364
 
    ac_cs_recheck=: ;;
12365
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12366
 
    echo "$ac_cs_version"; exit ;;
12367
 
  --debug | --debu | --deb | --de | --d | -d )
12368
 
    debug=: ;;
12369
 
  --file | --fil | --fi | --f )
12370
 
    $ac_shift
12371
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12372
 
    ac_need_defaults=false;;
12373
 
  --header | --heade | --head | --hea )
12374
 
    $ac_shift
12375
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12376
 
    ac_need_defaults=false;;
12377
 
  --he | --h)
12378
 
    # Conflict between --help and --header
12379
 
    { echo "$as_me: error: ambiguous option: $1
12380
 
Try \`$0 --help' for more information." >&2
12381
 
   { (exit 1); exit 1; }; };;
12382
 
  --help | --hel | -h )
12383
 
    echo "$ac_cs_usage"; exit ;;
12384
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12385
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12386
 
    ac_cs_silent=: ;;
12387
 
 
12388
 
  # This is an error.
12389
 
  -*) { echo "$as_me: error: unrecognized option: $1
12390
 
Try \`$0 --help' for more information." >&2
12391
 
   { (exit 1); exit 1; }; } ;;
12392
 
 
12393
 
  *) ac_config_targets="$ac_config_targets $1"
12394
 
     ac_need_defaults=false ;;
12395
 
 
12396
 
  esac
12397
 
  shift
12398
 
done
12399
 
 
12400
 
ac_configure_extra_args=
12401
 
 
12402
 
if $ac_cs_silent; then
12403
 
  exec 6>/dev/null
12404
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
12405
 
fi
12406
 
 
12407
 
_ACEOF
12408
 
cat >>$CONFIG_STATUS <<_ACEOF
12409
 
if \$ac_cs_recheck; then
12410
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12411
 
  CONFIG_SHELL=$SHELL
12412
 
  export CONFIG_SHELL
12413
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12414
 
fi
12415
 
 
12416
 
_ACEOF
12417
 
cat >>$CONFIG_STATUS <<\_ACEOF
12418
 
exec 5>>config.log
12419
 
{
12420
 
  echo
12421
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12422
 
## Running $as_me. ##
12423
 
_ASBOX
12424
 
  echo "$ac_log"
12425
 
} >&5
12426
 
 
12427
 
_ACEOF
12428
 
cat >>$CONFIG_STATUS <<_ACEOF
12429
 
#
12430
 
# INIT-COMMANDS
12431
 
#
12432
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12433
 
 
12434
 
_ACEOF
12435
 
 
12436
 
cat >>$CONFIG_STATUS <<\_ACEOF
12437
 
 
12438
 
# Handling of arguments.
12439
 
for ac_config_target in $ac_config_targets
12440
 
do
12441
 
  case $ac_config_target in
12442
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12443
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12444
 
    "assuan/Makefile") CONFIG_FILES="$CONFIG_FILES assuan/Makefile" ;;
12445
 
    "secmem/Makefile") CONFIG_FILES="$CONFIG_FILES secmem/Makefile" ;;
12446
 
    "pinentry/Makefile") CONFIG_FILES="$CONFIG_FILES pinentry/Makefile" ;;
12447
 
    "curses/Makefile") CONFIG_FILES="$CONFIG_FILES curses/Makefile" ;;
12448
 
    "gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
12449
 
    "gtk+-2/Makefile") CONFIG_FILES="$CONFIG_FILES gtk+-2/Makefile" ;;
12450
 
    "qt/Makefile") CONFIG_FILES="$CONFIG_FILES qt/Makefile" ;;
12451
 
    "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12452
 
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12453
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12454
 
 
12455
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12456
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12457
 
   { (exit 1); exit 1; }; };;
12458
 
  esac
12459
 
done
12460
 
 
12461
 
 
12462
 
# If the user did not use the arguments to specify the items to instantiate,
12463
 
# then the envvar interface is used.  Set only those that are not.
12464
 
# We use the long form for the default assignment because of an extremely
12465
 
# bizarre bug on SunOS 4.1.3.
12466
 
if $ac_need_defaults; then
12467
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12468
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12469
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12470
 
fi
12471
 
 
12472
 
# Have a temporary directory for convenience.  Make it in the build tree
12473
 
# simply because there is no reason against having it here, and in addition,
12474
 
# creating and moving files from /tmp can sometimes cause problems.
12475
 
# Hook for its removal unless debugging.
12476
 
# Note that there is a small window in which the directory will not be cleaned:
12477
 
# after its creation but before its name has been assigned to `$tmp'.
12478
 
$debug ||
12479
 
{
12480
 
  tmp=
12481
 
  trap 'exit_status=$?
12482
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12483
 
' 0
12484
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12485
 
}
12486
 
# Create a (secure) tmp directory for tmp files.
12487
 
 
12488
 
{
12489
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12490
 
  test -n "$tmp" && test -d "$tmp"
12491
 
}  ||
12492
 
{
12493
 
  tmp=./conf$$-$RANDOM
12494
 
  (umask 077 && mkdir "$tmp")
12495
 
} ||
12496
 
{
12497
 
   echo "$me: cannot create a temporary directory in ." >&2
12498
 
   { (exit 1); exit 1; }
12499
 
}
12500
 
 
12501
 
#
12502
 
# Set up the sed scripts for CONFIG_FILES section.
12503
 
#
12504
 
 
12505
 
# No need to generate the scripts if there are no CONFIG_FILES.
12506
 
# This happens for instance when ./config.status config.h
12507
 
if test -n "$CONFIG_FILES"; then
12508
 
 
12509
 
_ACEOF
12510
 
 
12511
 
 
12512
 
 
12513
 
ac_delim='%!_!# '
12514
 
for ac_last_try in false false false false false :; do
12515
 
  cat >conf$$subs.sed <<_ACEOF
12516
 
SHELL!$SHELL$ac_delim
12517
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12518
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12519
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12520
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12521
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12522
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12523
 
exec_prefix!$exec_prefix$ac_delim
12524
 
prefix!$prefix$ac_delim
12525
 
program_transform_name!$program_transform_name$ac_delim
12526
 
bindir!$bindir$ac_delim
12527
 
sbindir!$sbindir$ac_delim
12528
 
libexecdir!$libexecdir$ac_delim
12529
 
datarootdir!$datarootdir$ac_delim
12530
 
datadir!$datadir$ac_delim
12531
 
sysconfdir!$sysconfdir$ac_delim
12532
 
sharedstatedir!$sharedstatedir$ac_delim
12533
 
localstatedir!$localstatedir$ac_delim
12534
 
includedir!$includedir$ac_delim
12535
 
oldincludedir!$oldincludedir$ac_delim
12536
 
docdir!$docdir$ac_delim
12537
 
infodir!$infodir$ac_delim
12538
 
htmldir!$htmldir$ac_delim
12539
 
dvidir!$dvidir$ac_delim
12540
 
pdfdir!$pdfdir$ac_delim
12541
 
psdir!$psdir$ac_delim
12542
 
libdir!$libdir$ac_delim
12543
 
localedir!$localedir$ac_delim
12544
 
mandir!$mandir$ac_delim
12545
 
DEFS!$DEFS$ac_delim
12546
 
ECHO_C!$ECHO_C$ac_delim
12547
 
ECHO_N!$ECHO_N$ac_delim
12548
 
ECHO_T!$ECHO_T$ac_delim
12549
 
LIBS!$LIBS$ac_delim
12550
 
build_alias!$build_alias$ac_delim
12551
 
host_alias!$host_alias$ac_delim
12552
 
target_alias!$target_alias$ac_delim
12553
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12554
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12555
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
12556
 
am__isrc!$am__isrc$ac_delim
12557
 
CYGPATH_W!$CYGPATH_W$ac_delim
12558
 
PACKAGE!$PACKAGE$ac_delim
12559
 
VERSION!$VERSION$ac_delim
12560
 
ACLOCAL!$ACLOCAL$ac_delim
12561
 
AUTOCONF!$AUTOCONF$ac_delim
12562
 
AUTOMAKE!$AUTOMAKE$ac_delim
12563
 
AUTOHEADER!$AUTOHEADER$ac_delim
12564
 
MAKEINFO!$MAKEINFO$ac_delim
12565
 
install_sh!$install_sh$ac_delim
12566
 
STRIP!$STRIP$ac_delim
12567
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12568
 
mkdir_p!$mkdir_p$ac_delim
12569
 
AWK!$AWK$ac_delim
12570
 
SET_MAKE!$SET_MAKE$ac_delim
12571
 
am__leading_dot!$am__leading_dot$ac_delim
12572
 
AMTAR!$AMTAR$ac_delim
12573
 
am__tar!$am__tar$ac_delim
12574
 
am__untar!$am__untar$ac_delim
12575
 
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12576
 
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12577
 
MAINT!$MAINT$ac_delim
12578
 
build!$build$ac_delim
12579
 
build_cpu!$build_cpu$ac_delim
12580
 
build_vendor!$build_vendor$ac_delim
12581
 
build_os!$build_os$ac_delim
12582
 
host!$host$ac_delim
12583
 
host_cpu!$host_cpu$ac_delim
12584
 
host_vendor!$host_vendor$ac_delim
12585
 
host_os!$host_os$ac_delim
12586
 
CC!$CC$ac_delim
12587
 
CFLAGS!$CFLAGS$ac_delim
12588
 
LDFLAGS!$LDFLAGS$ac_delim
12589
 
CPPFLAGS!$CPPFLAGS$ac_delim
12590
 
ac_ct_CC!$ac_ct_CC$ac_delim
12591
 
EXEEXT!$EXEEXT$ac_delim
12592
 
OBJEXT!$OBJEXT$ac_delim
12593
 
DEPDIR!$DEPDIR$ac_delim
12594
 
am__include!$am__include$ac_delim
12595
 
am__quote!$am__quote$ac_delim
12596
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12597
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12598
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12599
 
CCDEPMODE!$CCDEPMODE$ac_delim
12600
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12601
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12602
 
CPP!$CPP$ac_delim
12603
 
RANLIB!$RANLIB$ac_delim
12604
 
CXX!$CXX$ac_delim
12605
 
CXXFLAGS!$CXXFLAGS$ac_delim
12606
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
12607
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
12608
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12609
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12610
 
LN_S!$LN_S$ac_delim
12611
 
WINDRES!$WINDRES$ac_delim
12612
 
HAVE_DOSISH_SYSTEM_TRUE!$HAVE_DOSISH_SYSTEM_TRUE$ac_delim
12613
 
_ACEOF
12614
 
 
12615
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12616
 
    break
12617
 
  elif $ac_last_try; then
12618
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12619
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12620
 
   { (exit 1); exit 1; }; }
12621
 
  else
12622
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12623
 
  fi
12624
 
done
12625
 
 
12626
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12627
 
if test -n "$ac_eof"; then
12628
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12629
 
  ac_eof=`expr $ac_eof + 1`
12630
 
fi
12631
 
 
12632
 
cat >>$CONFIG_STATUS <<_ACEOF
12633
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12634
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12635
 
_ACEOF
12636
 
sed '
12637
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12638
 
s/^/s,@/; s/!/@,|#_!!_#|/
12639
 
:n
12640
 
t n
12641
 
s/'"$ac_delim"'$/,g/; t
12642
 
s/$/\\/; p
12643
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12644
 
' >>$CONFIG_STATUS <conf$$subs.sed
12645
 
rm -f conf$$subs.sed
12646
 
cat >>$CONFIG_STATUS <<_ACEOF
12647
 
CEOF$ac_eof
12648
 
_ACEOF
12649
 
 
12650
 
 
12651
 
ac_delim='%!_!# '
12652
 
for ac_last_try in false false false false false :; do
12653
 
  cat >conf$$subs.sed <<_ACEOF
12654
 
HAVE_DOSISH_SYSTEM_FALSE!$HAVE_DOSISH_SYSTEM_FALSE$ac_delim
12655
 
HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
12656
 
HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
12657
 
GREP!$GREP$ac_delim
12658
 
EGREP!$EGREP$ac_delim
12659
 
SETCAP!$SETCAP$ac_delim
12660
 
LIBCAP!$LIBCAP$ac_delim
12661
 
NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
12662
 
LIBNCURSES!$LIBNCURSES$ac_delim
12663
 
LIBTERMCAP!$LIBTERMCAP$ac_delim
12664
 
LIBCURSES!$LIBCURSES$ac_delim
12665
 
BUILD_LIBPINENTRY_CURSES_TRUE!$BUILD_LIBPINENTRY_CURSES_TRUE$ac_delim
12666
 
BUILD_LIBPINENTRY_CURSES_FALSE!$BUILD_LIBPINENTRY_CURSES_FALSE$ac_delim
12667
 
BUILD_PINENTRY_CURSES_TRUE!$BUILD_PINENTRY_CURSES_TRUE$ac_delim
12668
 
BUILD_PINENTRY_CURSES_FALSE!$BUILD_PINENTRY_CURSES_FALSE$ac_delim
12669
 
FALLBACK_CURSES_TRUE!$FALLBACK_CURSES_TRUE$ac_delim
12670
 
FALLBACK_CURSES_FALSE!$FALLBACK_CURSES_FALSE$ac_delim
12671
 
GLIB_CONFIG!$GLIB_CONFIG$ac_delim
12672
 
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
12673
 
GLIB_LIBS!$GLIB_LIBS$ac_delim
12674
 
GTK_CONFIG!$GTK_CONFIG$ac_delim
12675
 
GTK_CFLAGS!$GTK_CFLAGS$ac_delim
12676
 
GTK_LIBS!$GTK_LIBS$ac_delim
12677
 
BUILD_PINENTRY_GTK_TRUE!$BUILD_PINENTRY_GTK_TRUE$ac_delim
12678
 
BUILD_PINENTRY_GTK_FALSE!$BUILD_PINENTRY_GTK_FALSE$ac_delim
12679
 
LIBICONV!$LIBICONV$ac_delim
12680
 
LTLIBICONV!$LTLIBICONV$ac_delim
12681
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
12682
 
GTK2CFLAGS!$GTK2CFLAGS$ac_delim
12683
 
GTK2LIBS!$GTK2LIBS$ac_delim
12684
 
BUILD_PINENTRY_GTK_2_TRUE!$BUILD_PINENTRY_GTK_2_TRUE$ac_delim
12685
 
BUILD_PINENTRY_GTK_2_FALSE!$BUILD_PINENTRY_GTK_2_FALSE$ac_delim
12686
 
CXXCPP!$CXXCPP$ac_delim
12687
 
XMKMF!$XMKMF$ac_delim
12688
 
X_CFLAGS!$X_CFLAGS$ac_delim
12689
 
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12690
 
X_LIBS!$X_LIBS$ac_delim
12691
 
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12692
 
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
12693
 
QT_LDFLAGS!$QT_LDFLAGS$ac_delim
12694
 
QT_LIBS!$QT_LIBS$ac_delim
12695
 
QTE_NORTTI!$QTE_NORTTI$ac_delim
12696
 
LIBPTHREAD!$LIBPTHREAD$ac_delim
12697
 
USE_THREADS!$USE_THREADS$ac_delim
12698
 
QT_MT_LDFLAGS!$QT_MT_LDFLAGS$ac_delim
12699
 
QT_MT_LIBS!$QT_MT_LIBS$ac_delim
12700
 
qt_libraries!$qt_libraries$ac_delim
12701
 
qt_includes!$qt_includes$ac_delim
12702
 
QT_INCLUDES!$QT_INCLUDES$ac_delim
12703
 
MOC!$MOC$ac_delim
12704
 
LIB_QPE!$LIB_QPE$ac_delim
12705
 
x_libraries!$x_libraries$ac_delim
12706
 
QT_RPATH!$QT_RPATH$ac_delim
12707
 
BUILD_PINENTRY_QT_TRUE!$BUILD_PINENTRY_QT_TRUE$ac_delim
12708
 
BUILD_PINENTRY_QT_FALSE!$BUILD_PINENTRY_QT_FALSE$ac_delim
12709
 
BUILD_PINENTRY_W32_TRUE!$BUILD_PINENTRY_W32_TRUE$ac_delim
12710
 
BUILD_PINENTRY_W32_FALSE!$BUILD_PINENTRY_W32_FALSE$ac_delim
12711
 
PINENTRY_DEFAULT!$PINENTRY_DEFAULT$ac_delim
12712
 
LIBOBJS!$LIBOBJS$ac_delim
12713
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
12714
 
_ACEOF
12715
 
 
12716
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
12717
 
    break
12718
 
  elif $ac_last_try; then
12719
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12720
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12721
 
   { (exit 1); exit 1; }; }
12722
 
  else
12723
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12724
 
  fi
12725
 
done
12726
 
 
12727
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12728
 
if test -n "$ac_eof"; then
12729
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12730
 
  ac_eof=`expr $ac_eof + 1`
12731
 
fi
12732
 
 
12733
 
cat >>$CONFIG_STATUS <<_ACEOF
12734
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12735
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12736
 
_ACEOF
12737
 
sed '
12738
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12739
 
s/^/s,@/; s/!/@,|#_!!_#|/
12740
 
:n
12741
 
t n
12742
 
s/'"$ac_delim"'$/,g/; t
12743
 
s/$/\\/; p
12744
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12745
 
' >>$CONFIG_STATUS <conf$$subs.sed
12746
 
rm -f conf$$subs.sed
12747
 
cat >>$CONFIG_STATUS <<_ACEOF
12748
 
:end
12749
 
s/|#_!!_#|//g
12750
 
CEOF$ac_eof
12751
 
_ACEOF
12752
 
 
12753
 
 
12754
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12755
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12756
 
# trailing colons and then remove the whole line if VPATH becomes empty
12757
 
# (actually we leave an empty line to preserve line numbers).
12758
 
if test "x$srcdir" = x.; then
12759
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
12760
 
s/:*\$(srcdir):*/:/
12761
 
s/:*\${srcdir}:*/:/
12762
 
s/:*@srcdir@:*/:/
12763
 
s/^\([^=]*=[     ]*\):*/\1/
12764
 
s/:*$//
12765
 
s/^[^=]*=[       ]*$//
12766
 
}'
12767
 
fi
12768
 
 
12769
 
cat >>$CONFIG_STATUS <<\_ACEOF
12770
 
fi # test -n "$CONFIG_FILES"
12771
 
 
12772
 
 
12773
 
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
12774
 
do
12775
 
  case $ac_tag in
12776
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
12777
 
  esac
12778
 
  case $ac_mode$ac_tag in
12779
 
  :[FHL]*:*);;
12780
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12781
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12782
 
   { (exit 1); exit 1; }; };;
12783
 
  :[FH]-) ac_tag=-:-;;
12784
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12785
 
  esac
12786
 
  ac_save_IFS=$IFS
12787
 
  IFS=:
12788
 
  set x $ac_tag
12789
 
  IFS=$ac_save_IFS
12790
 
  shift
12791
 
  ac_file=$1
12792
 
  shift
12793
 
 
12794
 
  case $ac_mode in
12795
 
  :L) ac_source=$1;;
12796
 
  :[FH])
12797
 
    ac_file_inputs=
12798
 
    for ac_f
12799
 
    do
12800
 
      case $ac_f in
12801
 
      -) ac_f="$tmp/stdin";;
12802
 
      *) # Look for the file first in the build tree, then in the source tree
12803
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
12804
 
         # because $ac_f cannot contain `:'.
12805
 
         test -f "$ac_f" ||
12806
 
           case $ac_f in
12807
 
           [\\/$]*) false;;
12808
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12809
 
           esac ||
12810
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12811
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12812
 
   { (exit 1); exit 1; }; };;
12813
 
      esac
12814
 
      ac_file_inputs="$ac_file_inputs $ac_f"
12815
 
    done
12816
 
 
12817
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
12818
 
    # use $as_me), people would be surprised to read:
12819
 
    #    /* config.h.  Generated by config.status.  */
12820
 
    configure_input="Generated from "`IFS=:
12821
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12822
 
    if test x"$ac_file" != x-; then
12823
 
      configure_input="$ac_file.  $configure_input"
12824
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
12825
 
echo "$as_me: creating $ac_file" >&6;}
12826
 
    fi
12827
 
 
12828
 
    case $ac_tag in
12829
 
    *:-:* | *:-) cat >"$tmp/stdin";;
12830
 
    esac
12831
 
    ;;
12832
 
  esac
12833
 
 
12834
 
  ac_dir=`$as_dirname -- "$ac_file" ||
12835
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12836
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
12837
 
         X"$ac_file" : 'X\(//\)$' \| \
12838
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12839
 
echo X"$ac_file" |
12840
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12841
 
            s//\1/
12842
 
            q
12843
 
          }
12844
 
          /^X\(\/\/\)[^/].*/{
12845
 
            s//\1/
12846
 
            q
12847
 
          }
12848
 
          /^X\(\/\/\)$/{
12849
 
            s//\1/
12850
 
            q
12851
 
          }
12852
 
          /^X\(\/\).*/{
12853
 
            s//\1/
12854
 
            q
12855
 
          }
12856
 
          s/.*/./; q'`
12857
 
  { as_dir="$ac_dir"
12858
 
  case $as_dir in #(
12859
 
  -*) as_dir=./$as_dir;;
12860
 
  esac
12861
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12862
 
    as_dirs=
12863
 
    while :; do
12864
 
      case $as_dir in #(
12865
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12866
 
      *) as_qdir=$as_dir;;
12867
 
      esac
12868
 
      as_dirs="'$as_qdir' $as_dirs"
12869
 
      as_dir=`$as_dirname -- "$as_dir" ||
12870
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
12872
 
         X"$as_dir" : 'X\(//\)$' \| \
12873
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12874
 
echo X"$as_dir" |
12875
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12876
 
            s//\1/
12877
 
            q
12878
 
          }
12879
 
          /^X\(\/\/\)[^/].*/{
12880
 
            s//\1/
12881
 
            q
12882
 
          }
12883
 
          /^X\(\/\/\)$/{
12884
 
            s//\1/
12885
 
            q
12886
 
          }
12887
 
          /^X\(\/\).*/{
12888
 
            s//\1/
12889
 
            q
12890
 
          }
12891
 
          s/.*/./; q'`
12892
 
      test -d "$as_dir" && break
12893
 
    done
12894
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
12895
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12896
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
12897
 
   { (exit 1); exit 1; }; }; }
12898
 
  ac_builddir=.
12899
 
 
12900
 
case "$ac_dir" in
12901
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12902
 
*)
12903
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12904
 
  # A ".." for each directory in $ac_dir_suffix.
12905
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12906
 
  case $ac_top_builddir_sub in
12907
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12908
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12909
 
  esac ;;
12910
 
esac
12911
 
ac_abs_top_builddir=$ac_pwd
12912
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12913
 
# for backward compatibility:
12914
 
ac_top_builddir=$ac_top_build_prefix
12915
 
 
12916
 
case $srcdir in
12917
 
  .)  # We are building in place.
12918
 
    ac_srcdir=.
12919
 
    ac_top_srcdir=$ac_top_builddir_sub
12920
 
    ac_abs_top_srcdir=$ac_pwd ;;
12921
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
12922
 
    ac_srcdir=$srcdir$ac_dir_suffix;
12923
 
    ac_top_srcdir=$srcdir
12924
 
    ac_abs_top_srcdir=$srcdir ;;
12925
 
  *) # Relative name.
12926
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12927
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
12928
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12929
 
esac
12930
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12931
 
 
12932
 
 
12933
 
  case $ac_mode in
12934
 
  :F)
12935
 
  #
12936
 
  # CONFIG_FILE
12937
 
  #
12938
 
 
12939
 
  case $INSTALL in
12940
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12941
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12942
 
  esac
12943
 
  ac_MKDIR_P=$MKDIR_P
12944
 
  case $MKDIR_P in
12945
 
  [\\/$]* | ?:[\\/]* ) ;;
12946
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12947
 
  esac
12948
 
_ACEOF
12949
 
 
12950
 
cat >>$CONFIG_STATUS <<\_ACEOF
12951
 
# If the template does not know about datarootdir, expand it.
12952
 
# FIXME: This hack should be removed a few years after 2.60.
12953
 
ac_datarootdir_hack=; ac_datarootdir_seen=
12954
 
 
12955
 
case `sed -n '/datarootdir/ {
12956
 
  p
12957
 
  q
12958
 
}
12959
 
/@datadir@/p
12960
 
/@docdir@/p
12961
 
/@infodir@/p
12962
 
/@localedir@/p
12963
 
/@mandir@/p
12964
 
' $ac_file_inputs` in
12965
 
*datarootdir*) ac_datarootdir_seen=yes;;
12966
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12967
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12968
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12969
 
_ACEOF
12970
 
cat >>$CONFIG_STATUS <<_ACEOF
12971
 
  ac_datarootdir_hack='
12972
 
  s&@datadir@&$datadir&g
12973
 
  s&@docdir@&$docdir&g
12974
 
  s&@infodir@&$infodir&g
12975
 
  s&@localedir@&$localedir&g
12976
 
  s&@mandir@&$mandir&g
12977
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
12978
 
esac
12979
 
_ACEOF
12980
 
 
12981
 
# Neutralize VPATH when `$srcdir' = `.'.
12982
 
# Shell code in configure.ac might set extrasub.
12983
 
# FIXME: do we really want to maintain this feature?
12984
 
cat >>$CONFIG_STATUS <<_ACEOF
12985
 
  sed "$ac_vpsub
12986
 
$extrasub
12987
 
_ACEOF
12988
 
cat >>$CONFIG_STATUS <<\_ACEOF
12989
 
:t
12990
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12991
 
s&@configure_input@&$configure_input&;t t
12992
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
12993
 
s&@srcdir@&$ac_srcdir&;t t
12994
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12995
 
s&@top_srcdir@&$ac_top_srcdir&;t t
12996
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12997
 
s&@builddir@&$ac_builddir&;t t
12998
 
s&@abs_builddir@&$ac_abs_builddir&;t t
12999
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13000
 
s&@INSTALL@&$ac_INSTALL&;t t
13001
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13002
 
$ac_datarootdir_hack
13003
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13004
 
 
13005
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13006
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13007
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13008
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13009
 
which seems to be undefined.  Please make sure it is defined." >&5
13010
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011
 
which seems to be undefined.  Please make sure it is defined." >&2;}
13012
 
 
13013
 
  rm -f "$tmp/stdin"
13014
 
  case $ac_file in
13015
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
13016
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13017
 
  esac
13018
 
 ;;
13019
 
  :H)
13020
 
  #
13021
 
  # CONFIG_HEADER
13022
 
  #
13023
 
_ACEOF
13024
 
 
13025
 
# Transform confdefs.h into a sed script `conftest.defines', that
13026
 
# substitutes the proper values into config.h.in to produce config.h.
13027
 
rm -f conftest.defines conftest.tail
13028
 
# First, append a space to every undef/define line, to ease matching.
13029
 
echo 's/$/ /' >conftest.defines
13030
 
# Then, protect against being on the right side of a sed subst, or in
13031
 
# an unquoted here document, in config.status.  If some macros were
13032
 
# called several times there might be several #defines for the same
13033
 
# symbol, which is useless.  But do not sort them, since the last
13034
 
# AC_DEFINE must be honored.
13035
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13036
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13037
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
13038
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
13039
 
# just an empty string.
13040
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
13041
 
ac_dB='\\)[      (].*,\\1define\\2'
13042
 
ac_dC=' '
13043
 
ac_dD=' ,'
13044
 
 
13045
 
uniq confdefs.h |
13046
 
  sed -n '
13047
 
        t rset
13048
 
        :rset
13049
 
        s/^[     ]*#[    ]*define[       ][      ]*//
13050
 
        t ok
13051
 
        d
13052
 
        :ok
13053
 
        s/[\\&,]/\\&/g
13054
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13055
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13056
 
  ' >>conftest.defines
13057
 
 
13058
 
# Remove the space that was appended to ease matching.
13059
 
# Then replace #undef with comments.  This is necessary, for
13060
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
13061
 
# on some systems where configure will not decide to define it.
13062
 
# (The regexp can be short, since the line contains either #define or #undef.)
13063
 
echo 's/ $//
13064
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
13065
 
 
13066
 
# Break up conftest.defines:
13067
 
ac_max_sed_lines=50
13068
 
 
13069
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13070
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13071
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13072
 
# et cetera.
13073
 
ac_in='$ac_file_inputs'
13074
 
ac_out='"$tmp/out1"'
13075
 
ac_nxt='"$tmp/out2"'
13076
 
 
13077
 
while :
13078
 
do
13079
 
  # Write a here document:
13080
 
    cat >>$CONFIG_STATUS <<_ACEOF
13081
 
    # First, check the format of the line:
13082
 
    cat >"\$tmp/defines.sed" <<\\CEOF
13083
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
13084
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
13085
 
b
13086
 
:def
13087
 
_ACEOF
13088
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13089
 
  echo 'CEOF
13090
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13091
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13092
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13093
 
  grep . conftest.tail >/dev/null || break
13094
 
  rm -f conftest.defines
13095
 
  mv conftest.tail conftest.defines
13096
 
done
13097
 
rm -f conftest.defines conftest.tail
13098
 
 
13099
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
13100
 
cat >>$CONFIG_STATUS <<\_ACEOF
13101
 
  if test x"$ac_file" != x-; then
13102
 
    echo "/* $configure_input  */" >"$tmp/config.h"
13103
 
    cat "$ac_result" >>"$tmp/config.h"
13104
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13105
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13106
 
echo "$as_me: $ac_file is unchanged" >&6;}
13107
 
    else
13108
 
      rm -f $ac_file
13109
 
      mv "$tmp/config.h" $ac_file
13110
 
    fi
13111
 
  else
13112
 
    echo "/* $configure_input  */"
13113
 
    cat "$ac_result"
13114
 
  fi
13115
 
  rm -f "$tmp/out12"
13116
 
# Compute $ac_file's index in $config_headers.
13117
 
_am_stamp_count=1
13118
 
for _am_header in $config_headers :; do
13119
 
  case $_am_header in
13120
 
    $ac_file | $ac_file:* )
13121
 
      break ;;
13122
 
    * )
13123
 
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13124
 
  esac
13125
 
done
13126
 
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
13127
 
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13128
 
         X$ac_file : 'X\(//\)[^/]' \| \
13129
 
         X$ac_file : 'X\(//\)$' \| \
13130
 
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
13131
 
echo X$ac_file |
13132
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13133
 
            s//\1/
13134
 
            q
13135
 
          }
13136
 
          /^X\(\/\/\)[^/].*/{
13137
 
            s//\1/
13138
 
            q
13139
 
          }
13140
 
          /^X\(\/\/\)$/{
13141
 
            s//\1/
13142
 
            q
13143
 
          }
13144
 
          /^X\(\/\).*/{
13145
 
            s//\1/
13146
 
            q
13147
 
          }
13148
 
          s/.*/./; q'`/stamp-h$_am_stamp_count
13149
 
 ;;
13150
 
 
13151
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13152
 
echo "$as_me: executing $ac_file commands" >&6;}
13153
 
 ;;
13154
 
  esac
13155
 
 
13156
 
 
13157
 
  case $ac_file$ac_mode in
13158
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13159
 
  # Strip MF so we end up with the name of the file.
13160
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
13161
 
  # Check whether this is an Automake generated Makefile or not.
13162
 
  # We used to match only the files named `Makefile.in', but
13163
 
  # some people rename them; so instead we look at the file content.
13164
 
  # Grep'ing the first line is not enough: some people post-process
13165
 
  # each Makefile.in and add a new line on top of each file to say so.
13166
 
  # Grep'ing the whole file is not good either: AIX grep has a line
13167
 
  # limit of 2048, but all sed's we know have understand at least 4000.
13168
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
13169
 
    dirpart=`$as_dirname -- "$mf" ||
13170
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13171
 
         X"$mf" : 'X\(//\)[^/]' \| \
13172
 
         X"$mf" : 'X\(//\)$' \| \
13173
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13174
 
echo X"$mf" |
13175
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13176
 
            s//\1/
13177
 
            q
13178
 
          }
13179
 
          /^X\(\/\/\)[^/].*/{
13180
 
            s//\1/
13181
 
            q
13182
 
          }
13183
 
          /^X\(\/\/\)$/{
13184
 
            s//\1/
13185
 
            q
13186
 
          }
13187
 
          /^X\(\/\).*/{
13188
 
            s//\1/
13189
 
            q
13190
 
          }
13191
 
          s/.*/./; q'`
13192
 
  else
13193
 
    continue
13194
 
  fi
13195
 
  # Extract the definition of DEPDIR, am__include, and am__quote
13196
 
  # from the Makefile without running `make'.
13197
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13198
 
  test -z "$DEPDIR" && continue
13199
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
13200
 
  test -z "am__include" && continue
13201
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13202
 
  # When using ansi2knr, U may be empty or an underscore; expand it
13203
 
  U=`sed -n 's/^U = //p' < "$mf"`
13204
 
  # Find all dependency output files, they are included files with
13205
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
13206
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
13207
 
  # expansion.
13208
 
  for file in `sed -n "
13209
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13210
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13211
 
    # Make sure the directory exists.
13212
 
    test -f "$dirpart/$file" && continue
13213
 
    fdir=`$as_dirname -- "$file" ||
13214
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13215
 
         X"$file" : 'X\(//\)[^/]' \| \
13216
 
         X"$file" : 'X\(//\)$' \| \
13217
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13218
 
echo X"$file" |
13219
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13220
 
            s//\1/
13221
 
            q
13222
 
          }
13223
 
          /^X\(\/\/\)[^/].*/{
13224
 
            s//\1/
13225
 
            q
13226
 
          }
13227
 
          /^X\(\/\/\)$/{
13228
 
            s//\1/
13229
 
            q
13230
 
          }
13231
 
          /^X\(\/\).*/{
13232
 
            s//\1/
13233
 
            q
13234
 
          }
13235
 
          s/.*/./; q'`
13236
 
    { as_dir=$dirpart/$fdir
13237
 
  case $as_dir in #(
13238
 
  -*) as_dir=./$as_dir;;
13239
 
  esac
13240
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13241
 
    as_dirs=
13242
 
    while :; do
13243
 
      case $as_dir in #(
13244
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13245
 
      *) as_qdir=$as_dir;;
13246
 
      esac
13247
 
      as_dirs="'$as_qdir' $as_dirs"
13248
 
      as_dir=`$as_dirname -- "$as_dir" ||
13249
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13250
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
13251
 
         X"$as_dir" : 'X\(//\)$' \| \
13252
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13253
 
echo X"$as_dir" |
13254
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13255
 
            s//\1/
13256
 
            q
13257
 
          }
13258
 
          /^X\(\/\/\)[^/].*/{
13259
 
            s//\1/
13260
 
            q
13261
 
          }
13262
 
          /^X\(\/\/\)$/{
13263
 
            s//\1/
13264
 
            q
13265
 
          }
13266
 
          /^X\(\/\).*/{
13267
 
            s//\1/
13268
 
            q
13269
 
          }
13270
 
          s/.*/./; q'`
13271
 
      test -d "$as_dir" && break
13272
 
    done
13273
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13274
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13275
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
13276
 
   { (exit 1); exit 1; }; }; }
13277
 
    # echo "creating $dirpart/$file"
13278
 
    echo '# dummy' > "$dirpart/$file"
13279
 
  done
13280
 
done
13281
 
 ;;
13282
 
 
13283
 
  esac
13284
 
done # for ac_tag
13285
 
 
13286
 
 
13287
 
{ (exit 0); exit 0; }
13288
 
_ACEOF
13289
 
chmod +x $CONFIG_STATUS
13290
 
ac_clean_files=$ac_clean_files_save
13291
 
 
13292
 
 
13293
 
# configure is writing to config.log, and then calls config.status.
13294
 
# config.status does its own redirection, appending to config.log.
13295
 
# Unfortunately, on DOS this fails, as config.log is still kept open
13296
 
# by configure, so config.status won't be able to write to it; its
13297
 
# output is simply discarded.  So we exec the FD to /dev/null,
13298
 
# effectively closing config.log, so it can be properly (re)opened and
13299
 
# appended to by config.status.  When coming back to configure, we
13300
 
# need to make the FD available again.
13301
 
if test "$no_create" != yes; then
13302
 
  ac_cs_success=:
13303
 
  ac_config_status_args=
13304
 
  test "$silent" = yes &&
13305
 
    ac_config_status_args="$ac_config_status_args --quiet"
13306
 
  exec 5>/dev/null
13307
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13308
 
  exec 5>>config.log
13309
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13310
 
  # would make configure fail if this is the last instruction.
13311
 
  $ac_cs_success || { (exit 1); exit 1; }
13312
 
fi
13313
 
 
13314
 
 
13315
 
{ echo "$as_me:$LINENO:
13316
 
        Pinentry v${VERSION} has been configured as follows:
13317
 
 
13318
 
        Curses Pinentry: $pinentry_curses
13319
 
        GTK+ Pinentry: $pinentry_gtk
13320
 
        GTK+-2 Pinentry: $pinentry_gtk_2
13321
 
        Qt Pinentry: $pinentry_qt
13322
 
        W32 Pinentry: $pinentry_w32
13323
 
 
13324
 
        Fallback to Curses: $fallback_curses
13325
 
 
13326
 
        Default Pinentry: $PINENTRY_DEFAULT
13327
 
" >&5
13328
 
echo "$as_me:
13329
 
        BPinentry v${VERSION} has been configured as follows:
13330
 
 
13331
 
        Curses Pinentry: $pinentry_curses
13332
 
        GTK+ Pinentry: $pinentry_gtk
13333
 
        GTK+-2 Pinentry: $pinentry_gtk_2
13334
 
        Qt Pinentry: $pinentry_qt
13335
 
        W32 Pinentry: $pinentry_w32
13336
 
 
13337
 
        Fallback to Curses: $fallback_curses
13338
 
 
13339
 
        Default Pinentry: $PINENTRY_DEFAULT
13340
 
" >&6;}