~ubuntu-branches/ubuntu/trusty/libguess/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Andrew O. Shadoura
  • Date: 2011-05-01 19:38:35 UTC
  • Revision ID: james.westby@ubuntu.com-20110501193835-lvxd5c7uzgt8dudo
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

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.64 for libguess 1.0.
 
4
#
 
5
# Report bugs to <bugs+libguess@atheme.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
 
9
# Foundation, Inc.
 
10
#
 
11
# This configure script is free software; the Free Software Foundation
 
12
# gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in #(
 
28
  *posix*) :
 
29
    set -o posix ;; #(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in #(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
case $0 in #((
 
93
  *[\\/]* ) as_myself=$0 ;;
 
94
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
95
for as_dir in $PATH
 
96
do
 
97
  IFS=$as_save_IFS
 
98
  test -z "$as_dir" && as_dir=.
 
99
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
100
  done
 
101
IFS=$as_save_IFS
 
102
 
 
103
     ;;
 
104
esac
 
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
106
# in which case we are not to be found in the path.
 
107
if test "x$as_myself" = x; then
 
108
  as_myself=$0
 
109
fi
 
110
if test ! -f "$as_myself"; then
 
111
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
112
  exit 1
 
113
fi
 
114
 
 
115
# Unset variables that we do not need and which cause bugs (e.g. in
 
116
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
117
# suppresses any "Segmentation fault" message there.  '((' could
 
118
# trigger a bug in pdksh 5.2.14.
 
119
for as_var in BASH_ENV ENV MAIL MAILPATH
 
120
do eval test x\${$as_var+set} = xset \
 
121
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
122
done
 
123
PS1='$ '
 
124
PS2='> '
 
125
PS4='+ '
 
126
 
 
127
# NLS nuisances.
 
128
LC_ALL=C
 
129
export LC_ALL
 
130
LANGUAGE=C
 
131
export LANGUAGE
 
132
 
 
133
# CDPATH.
 
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
135
 
 
136
if test "x$CONFIG_SHELL" = x; then
 
137
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
138
  emulate sh
 
139
  NULLCMD=:
 
140
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
141
  # is contrary to our usage.  Disable this feature.
 
142
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
143
  setopt NO_GLOB_SUBST
 
144
else
 
145
  case \`(set -o) 2>/dev/null\` in #(
 
146
  *posix*) :
 
147
    set -o posix ;; #(
 
148
  *) :
 
149
     ;;
 
150
esac
 
151
fi
 
152
"
 
153
  as_required="as_fn_return () { (exit \$1); }
 
154
as_fn_success () { as_fn_return 0; }
 
155
as_fn_failure () { as_fn_return 1; }
 
156
as_fn_ret_success () { return 0; }
 
157
as_fn_ret_failure () { return 1; }
 
158
 
 
159
exitcode=0
 
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
165
 
 
166
else
 
167
  exitcode=1; echo positional parameters were not saved.
 
168
fi
 
169
test x\$exitcode = x0 || exit 1"
 
170
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
171
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
172
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
173
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
174
test \$(( 1 + 1 )) = 2 || exit 1"
 
175
  if (eval "$as_required") 2>/dev/null; then :
 
176
  as_have_required=yes
 
177
else
 
178
  as_have_required=no
 
179
fi
 
180
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
181
 
 
182
else
 
183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
184
as_found=false
 
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
186
do
 
187
  IFS=$as_save_IFS
 
188
  test -z "$as_dir" && as_dir=.
 
189
  as_found=:
 
190
  case $as_dir in #(
 
191
         /*)
 
192
           for as_base in sh bash ksh sh5; do
 
193
             # Try only shells that exist, to save several forks.
 
194
             as_shell=$as_dir/$as_base
 
195
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
196
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
197
  CONFIG_SHELL=$as_shell as_have_required=yes
 
198
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
199
  break 2
 
200
fi
 
201
fi
 
202
           done;;
 
203
       esac
 
204
  as_found=false
 
205
done
 
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
207
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
208
  CONFIG_SHELL=$SHELL as_have_required=yes
 
209
fi; }
 
210
IFS=$as_save_IFS
 
211
 
 
212
 
 
213
      if test "x$CONFIG_SHELL" != x; then :
 
214
  # We cannot yet assume a decent shell, so we have to provide a
 
215
        # neutralization value for shells without unset; and this also
 
216
        # works around shells that cannot unset nonexistent variables.
 
217
        BASH_ENV=/dev/null
 
218
        ENV=/dev/null
 
219
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
220
        export CONFIG_SHELL
 
221
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
222
fi
 
223
 
 
224
    if test x$as_have_required = xno; then :
 
225
  $as_echo "$0: This script requires a shell more modern than all"
 
226
  $as_echo "$0: the shells that I found on your system."
 
227
  if test x${ZSH_VERSION+set} = xset ; then
 
228
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
229
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
230
  else
 
231
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
232
$0: bugs+libguess@atheme.org about your system, including
 
233
$0: any error possibly output before this message. Then
 
234
$0: install a modern shell, or manually run the script
 
235
$0: under such a shell if you do have one."
 
236
  fi
 
237
  exit 1
 
238
fi
 
239
fi
 
240
fi
 
241
SHELL=${CONFIG_SHELL-/bin/sh}
 
242
export SHELL
 
243
# Unset more variables known to interfere with behavior of common tools.
 
244
CLICOLOR_FORCE= GREP_OPTIONS=
 
245
unset CLICOLOR_FORCE GREP_OPTIONS
 
246
 
 
247
## --------------------- ##
 
248
## M4sh Shell Functions. ##
 
249
## --------------------- ##
 
250
# as_fn_unset VAR
 
251
# ---------------
 
252
# Portably unset VAR.
 
253
as_fn_unset ()
 
254
{
 
255
  { eval $1=; unset $1;}
 
256
}
 
257
as_unset=as_fn_unset
 
258
 
 
259
# as_fn_set_status STATUS
 
260
# -----------------------
 
261
# Set $? to STATUS, without forking.
 
262
as_fn_set_status ()
 
263
{
 
264
  return $1
 
265
} # as_fn_set_status
 
266
 
 
267
# as_fn_exit STATUS
 
268
# -----------------
 
269
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
270
as_fn_exit ()
 
271
{
 
272
  set +e
 
273
  as_fn_set_status $1
 
274
  exit $1
 
275
} # as_fn_exit
 
276
 
 
277
# as_fn_mkdir_p
 
278
# -------------
 
279
# Create "$as_dir" as a directory, including parents if necessary.
 
280
as_fn_mkdir_p ()
 
281
{
 
282
 
 
283
  case $as_dir in #(
 
284
  -*) as_dir=./$as_dir;;
 
285
  esac
 
286
  test -d "$as_dir" || eval $as_mkdir_p || {
 
287
    as_dirs=
 
288
    while :; do
 
289
      case $as_dir in #(
 
290
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
291
      *) as_qdir=$as_dir;;
 
292
      esac
 
293
      as_dirs="'$as_qdir' $as_dirs"
 
294
      as_dir=`$as_dirname -- "$as_dir" ||
 
295
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
296
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
297
         X"$as_dir" : 'X\(//\)$' \| \
 
298
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
299
$as_echo X"$as_dir" |
 
300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
301
            s//\1/
 
302
            q
 
303
          }
 
304
          /^X\(\/\/\)[^/].*/{
 
305
            s//\1/
 
306
            q
 
307
          }
 
308
          /^X\(\/\/\)$/{
 
309
            s//\1/
 
310
            q
 
311
          }
 
312
          /^X\(\/\).*/{
 
313
            s//\1/
 
314
            q
 
315
          }
 
316
          s/.*/./; q'`
 
317
      test -d "$as_dir" && break
 
318
    done
 
319
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
320
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
321
 
 
322
 
 
323
} # as_fn_mkdir_p
 
324
# as_fn_append VAR VALUE
 
325
# ----------------------
 
326
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
327
# advantage of any shell optimizations that allow amortized linear growth over
 
328
# repeated appends, instead of the typical quadratic growth present in naive
 
329
# implementations.
 
330
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
331
  eval 'as_fn_append ()
 
332
  {
 
333
    eval $1+=\$2
 
334
  }'
 
335
else
 
336
  as_fn_append ()
 
337
  {
 
338
    eval $1=\$$1\$2
 
339
  }
 
340
fi # as_fn_append
 
341
 
 
342
# as_fn_arith ARG...
 
343
# ------------------
 
344
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
345
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
346
# must be portable across $(()) and expr.
 
347
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
348
  eval 'as_fn_arith ()
 
349
  {
 
350
    as_val=$(( $* ))
 
351
  }'
 
352
else
 
353
  as_fn_arith ()
 
354
  {
 
355
    as_val=`expr "$@" || test $? -eq 1`
 
356
  }
 
357
fi # as_fn_arith
 
358
 
 
359
 
 
360
# as_fn_error ERROR [LINENO LOG_FD]
 
361
# ---------------------------------
 
362
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
363
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
364
# script with status $?, using 1 if that was 0.
 
365
as_fn_error ()
 
366
{
 
367
  as_status=$?; test $as_status -eq 0 && as_status=1
 
368
  if test "$3"; then
 
369
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
370
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
371
  fi
 
372
  $as_echo "$as_me: error: $1" >&2
 
373
  as_fn_exit $as_status
 
374
} # as_fn_error
 
375
 
 
376
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
377
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
378
  as_expr=expr
 
379
else
 
380
  as_expr=false
 
381
fi
 
382
 
 
383
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
384
  as_basename=basename
 
385
else
 
386
  as_basename=false
 
387
fi
 
388
 
 
389
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
390
  as_dirname=dirname
 
391
else
 
392
  as_dirname=false
 
393
fi
 
394
 
 
395
as_me=`$as_basename -- "$0" ||
 
396
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
397
         X"$0" : 'X\(//\)$' \| \
 
398
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
399
$as_echo X/"$0" |
 
400
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
401
            s//\1/
 
402
            q
 
403
          }
 
404
          /^X\/\(\/\/\)$/{
 
405
            s//\1/
 
406
            q
 
407
          }
 
408
          /^X\/\(\/\).*/{
 
409
            s//\1/
 
410
            q
 
411
          }
 
412
          s/.*/./; q'`
 
413
 
 
414
# Avoid depending upon Character Ranges.
 
415
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
416
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
417
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
418
as_cr_digits='0123456789'
 
419
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
420
 
 
421
 
 
422
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
423
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
424
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
425
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
426
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
427
  sed -n '
 
428
    p
 
429
    /[$]LINENO/=
 
430
  ' <$as_myself |
 
431
    sed '
 
432
      s/[$]LINENO.*/&-/
 
433
      t lineno
 
434
      b
 
435
      :lineno
 
436
      N
 
437
      :loop
 
438
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
439
      t loop
 
440
      s/-\n.*//
 
441
    ' >$as_me.lineno &&
 
442
  chmod +x "$as_me.lineno" ||
 
443
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
444
 
 
445
  # Don't try to exec as it changes $[0], causing all sort of problems
 
446
  # (the dirname of $[0] is not the place where we might find the
 
447
  # original and so on.  Autoconf is especially sensitive to this).
 
448
  . "./$as_me.lineno"
 
449
  # Exit status is that of the last command.
 
450
  exit
 
451
}
 
452
 
 
453
ECHO_C= ECHO_N= ECHO_T=
 
454
case `echo -n x` in #(((((
 
455
-n*)
 
456
  case `echo 'xy\c'` in
 
457
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
458
  xy)  ECHO_C='\c';;
 
459
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
460
       ECHO_T=' ';;
 
461
  esac;;
 
462
*)
 
463
  ECHO_N='-n';;
 
464
esac
 
465
 
 
466
rm -f conf$$ conf$$.exe conf$$.file
 
467
if test -d conf$$.dir; then
 
468
  rm -f conf$$.dir/conf$$.file
 
469
else
 
470
  rm -f conf$$.dir
 
471
  mkdir conf$$.dir 2>/dev/null
 
472
fi
 
473
if (echo >conf$$.file) 2>/dev/null; then
 
474
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
475
    as_ln_s='ln -s'
 
476
    # ... but there are two gotchas:
 
477
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
478
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
479
    # In both cases, we have to default to `cp -p'.
 
480
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
481
      as_ln_s='cp -p'
 
482
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
483
    as_ln_s=ln
 
484
  else
 
485
    as_ln_s='cp -p'
 
486
  fi
 
487
else
 
488
  as_ln_s='cp -p'
 
489
fi
 
490
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
491
rmdir conf$$.dir 2>/dev/null
 
492
 
 
493
if mkdir -p . 2>/dev/null; then
 
494
  as_mkdir_p='mkdir -p "$as_dir"'
 
495
else
 
496
  test -d ./-p && rmdir ./-p
 
497
  as_mkdir_p=false
 
498
fi
 
499
 
 
500
if test -x / >/dev/null 2>&1; then
 
501
  as_test_x='test -x'
 
502
else
 
503
  if ls -dL / >/dev/null 2>&1; then
 
504
    as_ls_L_option=L
 
505
  else
 
506
    as_ls_L_option=
 
507
  fi
 
508
  as_test_x='
 
509
    eval sh -c '\''
 
510
      if test -d "$1"; then
 
511
        test -d "$1/.";
 
512
      else
 
513
        case $1 in #(
 
514
        -*)set "./$1";;
 
515
        esac;
 
516
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
517
        ???[sx]*):;;*)false;;esac;fi
 
518
    '\'' sh
 
519
  '
 
520
fi
 
521
as_executable_p=$as_test_x
 
522
 
 
523
# Sed expression to map a string onto a valid CPP name.
 
524
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
525
 
 
526
# Sed expression to map a string onto a valid variable name.
 
527
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
528
 
 
529
 
 
530
exec 7<&0 </dev/null 6>&1
 
531
 
 
532
# Name of the host.
 
533
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
534
# so uname gets run too.
 
535
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
536
 
 
537
#
 
538
# Initializations.
 
539
#
 
540
ac_default_prefix=/usr/local
 
541
ac_clean_files=
 
542
ac_config_libobj_dir=.
 
543
LIBOBJS=
 
544
cross_compiling=no
 
545
subdirs=
 
546
MFLAGS=
 
547
MAKEFLAGS=
 
548
 
 
549
# Identity of this package.
 
550
PACKAGE_NAME='libguess'
 
551
PACKAGE_TARNAME='libguess'
 
552
PACKAGE_VERSION='1.0'
 
553
PACKAGE_STRING='libguess 1.0'
 
554
PACKAGE_BUGREPORT='bugs+libguess@atheme.org'
 
555
PACKAGE_URL=''
 
556
 
 
557
ac_unique_file="src/libguess/guess.c"
 
558
# Factoring default headers for most tests.
 
559
ac_includes_default="\
 
560
#include <stdio.h>
 
561
#ifdef HAVE_SYS_TYPES_H
 
562
# include <sys/types.h>
 
563
#endif
 
564
#ifdef HAVE_SYS_STAT_H
 
565
# include <sys/stat.h>
 
566
#endif
 
567
#ifdef STDC_HEADERS
 
568
# include <stdlib.h>
 
569
# include <stddef.h>
 
570
#else
 
571
# ifdef HAVE_STDLIB_H
 
572
#  include <stdlib.h>
 
573
# endif
 
574
#endif
 
575
#ifdef HAVE_STRING_H
 
576
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
577
#  include <memory.h>
 
578
# endif
 
579
# include <string.h>
 
580
#endif
 
581
#ifdef HAVE_STRINGS_H
 
582
# include <strings.h>
 
583
#endif
 
584
#ifdef HAVE_INTTYPES_H
 
585
# include <inttypes.h>
 
586
#endif
 
587
#ifdef HAVE_STDINT_H
 
588
# include <stdint.h>
 
589
#endif
 
590
#ifdef HAVE_UNISTD_H
 
591
# include <unistd.h>
 
592
#endif"
 
593
 
 
594
ac_subst_vars='LTLIBOBJS
 
595
EXAMPLES_BUILD
 
596
MOWGLI_LIBS
 
597
MOWGLI_CFLAGS
 
598
PKG_CONFIG
 
599
LIBOBJS
 
600
EGREP
 
601
GREP
 
602
CPP
 
603
CLEAN_LIB
 
604
UNINSTALL_LIB
 
605
INSTALL_LIB
 
606
PLUGIN_SUFFIX
 
607
PLUGIN_LDFLAGS
 
608
PLUGIN_CFLAGS
 
609
PLUGIN_CPPFLAGS
 
610
LDFLAGS_RPATH
 
611
LIB_SUFFIX
 
612
LIB_PREFIX
 
613
LIB_LDFLAGS
 
614
LIB_CFLAGS
 
615
LIB_CPPFLAGS
 
616
PACKAGE
 
617
SET_MAKE
 
618
INSTALL_DATA
 
619
INSTALL_SCRIPT
 
620
INSTALL_PROGRAM
 
621
LN_S
 
622
OBJEXT
 
623
EXEEXT
 
624
ac_ct_CC
 
625
CPPFLAGS
 
626
LDFLAGS
 
627
CFLAGS
 
628
CC
 
629
target_os
 
630
target_vendor
 
631
target_cpu
 
632
target
 
633
host_os
 
634
host_vendor
 
635
host_cpu
 
636
host
 
637
build_os
 
638
build_vendor
 
639
build_cpu
 
640
build
 
641
target_alias
 
642
host_alias
 
643
build_alias
 
644
LIBS
 
645
ECHO_T
 
646
ECHO_N
 
647
ECHO_C
 
648
DEFS
 
649
mandir
 
650
localedir
 
651
libdir
 
652
psdir
 
653
pdfdir
 
654
dvidir
 
655
htmldir
 
656
infodir
 
657
docdir
 
658
oldincludedir
 
659
includedir
 
660
localstatedir
 
661
sharedstatedir
 
662
sysconfdir
 
663
datadir
 
664
datarootdir
 
665
libexecdir
 
666
sbindir
 
667
bindir
 
668
program_transform_name
 
669
prefix
 
670
exec_prefix
 
671
PACKAGE_URL
 
672
PACKAGE_BUGREPORT
 
673
PACKAGE_STRING
 
674
PACKAGE_VERSION
 
675
PACKAGE_TARNAME
 
676
PACKAGE_NAME
 
677
PATH_SEPARATOR
 
678
SHELL'
 
679
ac_subst_files=''
 
680
ac_user_opts='
 
681
enable_option_checking
 
682
enable_examples
 
683
'
 
684
      ac_precious_vars='build_alias
 
685
host_alias
 
686
target_alias
 
687
CC
 
688
CFLAGS
 
689
LDFLAGS
 
690
LIBS
 
691
CPPFLAGS
 
692
CPP'
 
693
 
 
694
 
 
695
# Initialize some variables set by options.
 
696
ac_init_help=
 
697
ac_init_version=false
 
698
ac_unrecognized_opts=
 
699
ac_unrecognized_sep=
 
700
# The variables have the same names as the options, with
 
701
# dashes changed to underlines.
 
702
cache_file=/dev/null
 
703
exec_prefix=NONE
 
704
no_create=
 
705
no_recursion=
 
706
prefix=NONE
 
707
program_prefix=NONE
 
708
program_suffix=NONE
 
709
program_transform_name=s,x,x,
 
710
silent=
 
711
site=
 
712
srcdir=
 
713
verbose=
 
714
x_includes=NONE
 
715
x_libraries=NONE
 
716
 
 
717
# Installation directory options.
 
718
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
719
# and all the variables that are supposed to be based on exec_prefix
 
720
# by default will actually change.
 
721
# Use braces instead of parens because sh, perl, etc. also accept them.
 
722
# (The list follows the same order as the GNU Coding Standards.)
 
723
bindir='${exec_prefix}/bin'
 
724
sbindir='${exec_prefix}/sbin'
 
725
libexecdir='${exec_prefix}/libexec'
 
726
datarootdir='${prefix}/share'
 
727
datadir='${datarootdir}'
 
728
sysconfdir='${prefix}/etc'
 
729
sharedstatedir='${prefix}/com'
 
730
localstatedir='${prefix}/var'
 
731
includedir='${prefix}/include'
 
732
oldincludedir='/usr/include'
 
733
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
734
infodir='${datarootdir}/info'
 
735
htmldir='${docdir}'
 
736
dvidir='${docdir}'
 
737
pdfdir='${docdir}'
 
738
psdir='${docdir}'
 
739
libdir='${exec_prefix}/lib'
 
740
localedir='${datarootdir}/locale'
 
741
mandir='${datarootdir}/man'
 
742
 
 
743
ac_prev=
 
744
ac_dashdash=
 
745
for ac_option
 
746
do
 
747
  # If the previous option needs an argument, assign it.
 
748
  if test -n "$ac_prev"; then
 
749
    eval $ac_prev=\$ac_option
 
750
    ac_prev=
 
751
    continue
 
752
  fi
 
753
 
 
754
  case $ac_option in
 
755
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
756
  *)    ac_optarg=yes ;;
 
757
  esac
 
758
 
 
759
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
760
 
 
761
  case $ac_dashdash$ac_option in
 
762
  --)
 
763
    ac_dashdash=yes ;;
 
764
 
 
765
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
766
    ac_prev=bindir ;;
 
767
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
768
    bindir=$ac_optarg ;;
 
769
 
 
770
  -build | --build | --buil | --bui | --bu)
 
771
    ac_prev=build_alias ;;
 
772
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
773
    build_alias=$ac_optarg ;;
 
774
 
 
775
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
776
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
777
    ac_prev=cache_file ;;
 
778
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
779
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
780
    cache_file=$ac_optarg ;;
 
781
 
 
782
  --config-cache | -C)
 
783
    cache_file=config.cache ;;
 
784
 
 
785
  -datadir | --datadir | --datadi | --datad)
 
786
    ac_prev=datadir ;;
 
787
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
788
    datadir=$ac_optarg ;;
 
789
 
 
790
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
791
  | --dataroo | --dataro | --datar)
 
792
    ac_prev=datarootdir ;;
 
793
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
794
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
795
    datarootdir=$ac_optarg ;;
 
796
 
 
797
  -disable-* | --disable-*)
 
798
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
799
    # Reject names that are not valid shell variable names.
 
800
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
801
      as_fn_error "invalid feature name: $ac_useropt"
 
802
    ac_useropt_orig=$ac_useropt
 
803
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
804
    case $ac_user_opts in
 
805
      *"
 
806
"enable_$ac_useropt"
 
807
"*) ;;
 
808
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
809
         ac_unrecognized_sep=', ';;
 
810
    esac
 
811
    eval enable_$ac_useropt=no ;;
 
812
 
 
813
  -docdir | --docdir | --docdi | --doc | --do)
 
814
    ac_prev=docdir ;;
 
815
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
816
    docdir=$ac_optarg ;;
 
817
 
 
818
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
819
    ac_prev=dvidir ;;
 
820
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
821
    dvidir=$ac_optarg ;;
 
822
 
 
823
  -enable-* | --enable-*)
 
824
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
825
    # Reject names that are not valid shell variable names.
 
826
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
827
      as_fn_error "invalid feature name: $ac_useropt"
 
828
    ac_useropt_orig=$ac_useropt
 
829
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
830
    case $ac_user_opts in
 
831
      *"
 
832
"enable_$ac_useropt"
 
833
"*) ;;
 
834
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
835
         ac_unrecognized_sep=', ';;
 
836
    esac
 
837
    eval enable_$ac_useropt=\$ac_optarg ;;
 
838
 
 
839
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
840
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
841
  | --exec | --exe | --ex)
 
842
    ac_prev=exec_prefix ;;
 
843
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
844
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
845
  | --exec=* | --exe=* | --ex=*)
 
846
    exec_prefix=$ac_optarg ;;
 
847
 
 
848
  -gas | --gas | --ga | --g)
 
849
    # Obsolete; use --with-gas.
 
850
    with_gas=yes ;;
 
851
 
 
852
  -help | --help | --hel | --he | -h)
 
853
    ac_init_help=long ;;
 
854
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
855
    ac_init_help=recursive ;;
 
856
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
857
    ac_init_help=short ;;
 
858
 
 
859
  -host | --host | --hos | --ho)
 
860
    ac_prev=host_alias ;;
 
861
  -host=* | --host=* | --hos=* | --ho=*)
 
862
    host_alias=$ac_optarg ;;
 
863
 
 
864
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
865
    ac_prev=htmldir ;;
 
866
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
867
  | --ht=*)
 
868
    htmldir=$ac_optarg ;;
 
869
 
 
870
  -includedir | --includedir | --includedi | --included | --include \
 
871
  | --includ | --inclu | --incl | --inc)
 
872
    ac_prev=includedir ;;
 
873
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
874
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
875
    includedir=$ac_optarg ;;
 
876
 
 
877
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
878
    ac_prev=infodir ;;
 
879
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
880
    infodir=$ac_optarg ;;
 
881
 
 
882
  -libdir | --libdir | --libdi | --libd)
 
883
    ac_prev=libdir ;;
 
884
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
885
    libdir=$ac_optarg ;;
 
886
 
 
887
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
888
  | --libexe | --libex | --libe)
 
889
    ac_prev=libexecdir ;;
 
890
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
891
  | --libexe=* | --libex=* | --libe=*)
 
892
    libexecdir=$ac_optarg ;;
 
893
 
 
894
  -localedir | --localedir | --localedi | --localed | --locale)
 
895
    ac_prev=localedir ;;
 
896
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
897
    localedir=$ac_optarg ;;
 
898
 
 
899
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
900
  | --localstate | --localstat | --localsta | --localst | --locals)
 
901
    ac_prev=localstatedir ;;
 
902
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
903
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
904
    localstatedir=$ac_optarg ;;
 
905
 
 
906
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
907
    ac_prev=mandir ;;
 
908
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
909
    mandir=$ac_optarg ;;
 
910
 
 
911
  -nfp | --nfp | --nf)
 
912
    # Obsolete; use --without-fp.
 
913
    with_fp=no ;;
 
914
 
 
915
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
916
  | --no-cr | --no-c | -n)
 
917
    no_create=yes ;;
 
918
 
 
919
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
920
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
921
    no_recursion=yes ;;
 
922
 
 
923
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
924
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
925
  | --oldin | --oldi | --old | --ol | --o)
 
926
    ac_prev=oldincludedir ;;
 
927
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
928
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
929
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
930
    oldincludedir=$ac_optarg ;;
 
931
 
 
932
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
933
    ac_prev=prefix ;;
 
934
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
935
    prefix=$ac_optarg ;;
 
936
 
 
937
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
938
  | --program-pre | --program-pr | --program-p)
 
939
    ac_prev=program_prefix ;;
 
940
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
941
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
942
    program_prefix=$ac_optarg ;;
 
943
 
 
944
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
945
  | --program-suf | --program-su | --program-s)
 
946
    ac_prev=program_suffix ;;
 
947
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
948
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
949
    program_suffix=$ac_optarg ;;
 
950
 
 
951
  -program-transform-name | --program-transform-name \
 
952
  | --program-transform-nam | --program-transform-na \
 
953
  | --program-transform-n | --program-transform- \
 
954
  | --program-transform | --program-transfor \
 
955
  | --program-transfo | --program-transf \
 
956
  | --program-trans | --program-tran \
 
957
  | --progr-tra | --program-tr | --program-t)
 
958
    ac_prev=program_transform_name ;;
 
959
  -program-transform-name=* | --program-transform-name=* \
 
960
  | --program-transform-nam=* | --program-transform-na=* \
 
961
  | --program-transform-n=* | --program-transform-=* \
 
962
  | --program-transform=* | --program-transfor=* \
 
963
  | --program-transfo=* | --program-transf=* \
 
964
  | --program-trans=* | --program-tran=* \
 
965
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
966
    program_transform_name=$ac_optarg ;;
 
967
 
 
968
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
969
    ac_prev=pdfdir ;;
 
970
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
971
    pdfdir=$ac_optarg ;;
 
972
 
 
973
  -psdir | --psdir | --psdi | --psd | --ps)
 
974
    ac_prev=psdir ;;
 
975
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
976
    psdir=$ac_optarg ;;
 
977
 
 
978
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
979
  | -silent | --silent | --silen | --sile | --sil)
 
980
    silent=yes ;;
 
981
 
 
982
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
983
    ac_prev=sbindir ;;
 
984
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
985
  | --sbi=* | --sb=*)
 
986
    sbindir=$ac_optarg ;;
 
987
 
 
988
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
989
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
990
  | --sharedst | --shareds | --shared | --share | --shar \
 
991
  | --sha | --sh)
 
992
    ac_prev=sharedstatedir ;;
 
993
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
994
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
995
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
996
  | --sha=* | --sh=*)
 
997
    sharedstatedir=$ac_optarg ;;
 
998
 
 
999
  -site | --site | --sit)
 
1000
    ac_prev=site ;;
 
1001
  -site=* | --site=* | --sit=*)
 
1002
    site=$ac_optarg ;;
 
1003
 
 
1004
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1005
    ac_prev=srcdir ;;
 
1006
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1007
    srcdir=$ac_optarg ;;
 
1008
 
 
1009
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1010
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1011
    ac_prev=sysconfdir ;;
 
1012
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1013
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1014
    sysconfdir=$ac_optarg ;;
 
1015
 
 
1016
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1017
    ac_prev=target_alias ;;
 
1018
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1019
    target_alias=$ac_optarg ;;
 
1020
 
 
1021
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1022
    verbose=yes ;;
 
1023
 
 
1024
  -version | --version | --versio | --versi | --vers | -V)
 
1025
    ac_init_version=: ;;
 
1026
 
 
1027
  -with-* | --with-*)
 
1028
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1029
    # Reject names that are not valid shell variable names.
 
1030
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1031
      as_fn_error "invalid package name: $ac_useropt"
 
1032
    ac_useropt_orig=$ac_useropt
 
1033
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1034
    case $ac_user_opts in
 
1035
      *"
 
1036
"with_$ac_useropt"
 
1037
"*) ;;
 
1038
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1039
         ac_unrecognized_sep=', ';;
 
1040
    esac
 
1041
    eval with_$ac_useropt=\$ac_optarg ;;
 
1042
 
 
1043
  -without-* | --without-*)
 
1044
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1045
    # Reject names that are not valid shell variable names.
 
1046
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1047
      as_fn_error "invalid package name: $ac_useropt"
 
1048
    ac_useropt_orig=$ac_useropt
 
1049
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1050
    case $ac_user_opts in
 
1051
      *"
 
1052
"with_$ac_useropt"
 
1053
"*) ;;
 
1054
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1055
         ac_unrecognized_sep=', ';;
 
1056
    esac
 
1057
    eval with_$ac_useropt=no ;;
 
1058
 
 
1059
  --x)
 
1060
    # Obsolete; use --with-x.
 
1061
    with_x=yes ;;
 
1062
 
 
1063
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1064
  | --x-incl | --x-inc | --x-in | --x-i)
 
1065
    ac_prev=x_includes ;;
 
1066
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1067
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1068
    x_includes=$ac_optarg ;;
 
1069
 
 
1070
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1071
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1072
    ac_prev=x_libraries ;;
 
1073
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1074
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1075
    x_libraries=$ac_optarg ;;
 
1076
 
 
1077
  -*) as_fn_error "unrecognized option: \`$ac_option'
 
1078
Try \`$0 --help' for more information."
 
1079
    ;;
 
1080
 
 
1081
  *=*)
 
1082
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1083
    # Reject names that are not valid shell variable names.
 
1084
    case $ac_envvar in #(
 
1085
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1086
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
 
1087
    esac
 
1088
    eval $ac_envvar=\$ac_optarg
 
1089
    export $ac_envvar ;;
 
1090
 
 
1091
  *)
 
1092
    # FIXME: should be removed in autoconf 3.0.
 
1093
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1094
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1095
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1096
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1097
    ;;
 
1098
 
 
1099
  esac
 
1100
done
 
1101
 
 
1102
if test -n "$ac_prev"; then
 
1103
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1104
  as_fn_error "missing argument to $ac_option"
 
1105
fi
 
1106
 
 
1107
if test -n "$ac_unrecognized_opts"; then
 
1108
  case $enable_option_checking in
 
1109
    no) ;;
 
1110
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
 
1111
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1112
  esac
 
1113
fi
 
1114
 
 
1115
# Check all directory arguments for consistency.
 
1116
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1117
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1118
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1119
                libdir localedir mandir
 
1120
do
 
1121
  eval ac_val=\$$ac_var
 
1122
  # Remove trailing slashes.
 
1123
  case $ac_val in
 
1124
    */ )
 
1125
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1126
      eval $ac_var=\$ac_val;;
 
1127
  esac
 
1128
  # Be sure to have absolute directory names.
 
1129
  case $ac_val in
 
1130
    [\\/$]* | ?:[\\/]* )  continue;;
 
1131
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1132
  esac
 
1133
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
 
1134
done
 
1135
 
 
1136
# There might be people who depend on the old broken behavior: `$host'
 
1137
# used to hold the argument of --host etc.
 
1138
# FIXME: To remove some day.
 
1139
build=$build_alias
 
1140
host=$host_alias
 
1141
target=$target_alias
 
1142
 
 
1143
# FIXME: To remove some day.
 
1144
if test "x$host_alias" != x; then
 
1145
  if test "x$build_alias" = x; then
 
1146
    cross_compiling=maybe
 
1147
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1148
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1149
  elif test "x$build_alias" != "x$host_alias"; then
 
1150
    cross_compiling=yes
 
1151
  fi
 
1152
fi
 
1153
 
 
1154
ac_tool_prefix=
 
1155
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1156
 
 
1157
test "$silent" = yes && exec 6>/dev/null
 
1158
 
 
1159
 
 
1160
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1161
ac_ls_di=`ls -di .` &&
 
1162
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1163
  as_fn_error "working directory cannot be determined"
 
1164
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1165
  as_fn_error "pwd does not report name of working directory"
 
1166
 
 
1167
 
 
1168
# Find the source files, if location was not specified.
 
1169
if test -z "$srcdir"; then
 
1170
  ac_srcdir_defaulted=yes
 
1171
  # Try the directory containing this script, then the parent directory.
 
1172
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1173
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1174
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1175
         X"$as_myself" : 'X\(//\)$' \| \
 
1176
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1177
$as_echo X"$as_myself" |
 
1178
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1179
            s//\1/
 
1180
            q
 
1181
          }
 
1182
          /^X\(\/\/\)[^/].*/{
 
1183
            s//\1/
 
1184
            q
 
1185
          }
 
1186
          /^X\(\/\/\)$/{
 
1187
            s//\1/
 
1188
            q
 
1189
          }
 
1190
          /^X\(\/\).*/{
 
1191
            s//\1/
 
1192
            q
 
1193
          }
 
1194
          s/.*/./; q'`
 
1195
  srcdir=$ac_confdir
 
1196
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1197
    srcdir=..
 
1198
  fi
 
1199
else
 
1200
  ac_srcdir_defaulted=no
 
1201
fi
 
1202
if test ! -r "$srcdir/$ac_unique_file"; then
 
1203
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1204
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
 
1205
fi
 
1206
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1207
ac_abs_confdir=`(
 
1208
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
 
1209
        pwd)`
 
1210
# When building in place, set srcdir=.
 
1211
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1212
  srcdir=.
 
1213
fi
 
1214
# Remove unnecessary trailing slashes from srcdir.
 
1215
# Double slashes in file names in object file debugging info
 
1216
# mess up M-x gdb in Emacs.
 
1217
case $srcdir in
 
1218
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1219
esac
 
1220
for ac_var in $ac_precious_vars; do
 
1221
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1222
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1223
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1224
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1225
done
 
1226
 
 
1227
#
 
1228
# Report the --help message.
 
1229
#
 
1230
if test "$ac_init_help" = "long"; then
 
1231
  # Omit some internal or obsolete options to make the list less imposing.
 
1232
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1233
  cat <<_ACEOF
 
1234
\`configure' configures libguess 1.0 to adapt to many kinds of systems.
 
1235
 
 
1236
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1237
 
 
1238
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1239
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1240
 
 
1241
Defaults for the options are specified in brackets.
 
1242
 
 
1243
Configuration:
 
1244
  -h, --help              display this help and exit
 
1245
      --help=short        display options specific to this package
 
1246
      --help=recursive    display the short help of all the included packages
 
1247
  -V, --version           display version information and exit
 
1248
  -q, --quiet, --silent   do not print \`checking...' messages
 
1249
      --cache-file=FILE   cache test results in FILE [disabled]
 
1250
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1251
  -n, --no-create         do not create output files
 
1252
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1253
 
 
1254
Installation directories:
 
1255
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1256
                          [$ac_default_prefix]
 
1257
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1258
                          [PREFIX]
 
1259
 
 
1260
By default, \`make install' will install all the files in
 
1261
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1262
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1263
for instance \`--prefix=\$HOME'.
 
1264
 
 
1265
For better control, use the options below.
 
1266
 
 
1267
Fine tuning of the installation directories:
 
1268
  --bindir=DIR            user executables [EPREFIX/bin]
 
1269
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1270
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1271
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1272
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1273
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1274
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1275
  --includedir=DIR        C header files [PREFIX/include]
 
1276
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1277
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1278
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1279
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1280
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1281
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1282
  --docdir=DIR            documentation root [DATAROOTDIR/doc/libguess]
 
1283
  --htmldir=DIR           html documentation [DOCDIR]
 
1284
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1285
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1286
  --psdir=DIR             ps documentation [DOCDIR]
 
1287
_ACEOF
 
1288
 
 
1289
  cat <<\_ACEOF
 
1290
 
 
1291
System types:
 
1292
  --build=BUILD     configure for building on BUILD [guessed]
 
1293
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1294
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1295
_ACEOF
 
1296
fi
 
1297
 
 
1298
if test -n "$ac_init_help"; then
 
1299
  case $ac_init_help in
 
1300
     short | recursive ) echo "Configuration of libguess 1.0:";;
 
1301
   esac
 
1302
  cat <<\_ACEOF
 
1303
 
 
1304
Optional Features:
 
1305
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1306
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1307
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1308
  --enable-examples        build and install example programs
 
1309
 
 
1310
Some influential environment variables:
 
1311
  CC          C compiler command
 
1312
  CFLAGS      C compiler flags
 
1313
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1314
              nonstandard directory <lib dir>
 
1315
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1316
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1317
              you have headers in a nonstandard directory <include dir>
 
1318
  CPP         C preprocessor
 
1319
 
 
1320
Use these variables to override the choices made by `configure' or to help
 
1321
it to find libraries and programs with nonstandard names/locations.
 
1322
 
 
1323
Report bugs to <bugs+libguess@atheme.org>.
 
1324
_ACEOF
 
1325
ac_status=$?
 
1326
fi
 
1327
 
 
1328
if test "$ac_init_help" = "recursive"; then
 
1329
  # If there are subdirs, report their specific --help.
 
1330
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1331
    test -d "$ac_dir" ||
 
1332
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1333
      continue
 
1334
    ac_builddir=.
 
1335
 
 
1336
case "$ac_dir" in
 
1337
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1338
*)
 
1339
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1340
  # A ".." for each directory in $ac_dir_suffix.
 
1341
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1342
  case $ac_top_builddir_sub in
 
1343
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1344
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1345
  esac ;;
 
1346
esac
 
1347
ac_abs_top_builddir=$ac_pwd
 
1348
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1349
# for backward compatibility:
 
1350
ac_top_builddir=$ac_top_build_prefix
 
1351
 
 
1352
case $srcdir in
 
1353
  .)  # We are building in place.
 
1354
    ac_srcdir=.
 
1355
    ac_top_srcdir=$ac_top_builddir_sub
 
1356
    ac_abs_top_srcdir=$ac_pwd ;;
 
1357
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1358
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1359
    ac_top_srcdir=$srcdir
 
1360
    ac_abs_top_srcdir=$srcdir ;;
 
1361
  *) # Relative name.
 
1362
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1363
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1364
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1365
esac
 
1366
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1367
 
 
1368
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1369
    # Check for guested configure.
 
1370
    if test -f "$ac_srcdir/configure.gnu"; then
 
1371
      echo &&
 
1372
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1373
    elif test -f "$ac_srcdir/configure"; then
 
1374
      echo &&
 
1375
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1376
    else
 
1377
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1378
    fi || ac_status=$?
 
1379
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1380
  done
 
1381
fi
 
1382
 
 
1383
test -n "$ac_init_help" && exit $ac_status
 
1384
if $ac_init_version; then
 
1385
  cat <<\_ACEOF
 
1386
libguess configure 1.0
 
1387
generated by GNU Autoconf 2.64
 
1388
 
 
1389
Copyright (C) 2009 Free Software Foundation, Inc.
 
1390
This configure script is free software; the Free Software Foundation
 
1391
gives unlimited permission to copy, distribute and modify it.
 
1392
_ACEOF
 
1393
  exit
 
1394
fi
 
1395
 
 
1396
## ------------------------ ##
 
1397
## Autoconf initialization. ##
 
1398
## ------------------------ ##
 
1399
 
 
1400
# ac_fn_c_try_compile LINENO
 
1401
# --------------------------
 
1402
# Try to compile conftest.$ac_ext, and return whether this succeeded.
 
1403
ac_fn_c_try_compile ()
 
1404
{
 
1405
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1406
  rm -f conftest.$ac_objext
 
1407
  if { { ac_try="$ac_compile"
 
1408
case "(($ac_try" in
 
1409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1410
  *) ac_try_echo=$ac_try;;
 
1411
esac
 
1412
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1413
$as_echo "$ac_try_echo"; } >&5
 
1414
  (eval "$ac_compile") 2>conftest.err
 
1415
  ac_status=$?
 
1416
  if test -s conftest.err; then
 
1417
    grep -v '^ *+' conftest.err >conftest.er1
 
1418
    cat conftest.er1 >&5
 
1419
    mv -f conftest.er1 conftest.err
 
1420
  fi
 
1421
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1422
  test $ac_status = 0; } && {
 
1423
         test -z "$ac_c_werror_flag" ||
 
1424
         test ! -s conftest.err
 
1425
       } && test -s conftest.$ac_objext; then :
 
1426
  ac_retval=0
 
1427
else
 
1428
  $as_echo "$as_me: failed program was:" >&5
 
1429
sed 's/^/| /' conftest.$ac_ext >&5
 
1430
 
 
1431
        ac_retval=1
 
1432
fi
 
1433
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1434
  return $ac_retval
 
1435
 
 
1436
} # ac_fn_c_try_compile
 
1437
 
 
1438
# ac_fn_c_try_link LINENO
 
1439
# -----------------------
 
1440
# Try to link conftest.$ac_ext, and return whether this succeeded.
 
1441
ac_fn_c_try_link ()
 
1442
{
 
1443
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1444
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1445
  if { { ac_try="$ac_link"
 
1446
case "(($ac_try" in
 
1447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1448
  *) ac_try_echo=$ac_try;;
 
1449
esac
 
1450
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1451
$as_echo "$ac_try_echo"; } >&5
 
1452
  (eval "$ac_link") 2>conftest.err
 
1453
  ac_status=$?
 
1454
  if test -s conftest.err; then
 
1455
    grep -v '^ *+' conftest.err >conftest.er1
 
1456
    cat conftest.er1 >&5
 
1457
    mv -f conftest.er1 conftest.err
 
1458
  fi
 
1459
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1460
  test $ac_status = 0; } && {
 
1461
         test -z "$ac_c_werror_flag" ||
 
1462
         test ! -s conftest.err
 
1463
       } && test -s conftest$ac_exeext && {
 
1464
         test "$cross_compiling" = yes ||
 
1465
         $as_test_x conftest$ac_exeext
 
1466
       }; then :
 
1467
  ac_retval=0
 
1468
else
 
1469
  $as_echo "$as_me: failed program was:" >&5
 
1470
sed 's/^/| /' conftest.$ac_ext >&5
 
1471
 
 
1472
        ac_retval=1
 
1473
fi
 
1474
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1475
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1476
  # interfere with the next link command; also delete a directory that is
 
1477
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1478
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1479
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1480
  return $ac_retval
 
1481
 
 
1482
} # ac_fn_c_try_link
 
1483
 
 
1484
# ac_fn_c_try_cpp LINENO
 
1485
# ----------------------
 
1486
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 
1487
ac_fn_c_try_cpp ()
 
1488
{
 
1489
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1490
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1491
case "(($ac_try" in
 
1492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1493
  *) ac_try_echo=$ac_try;;
 
1494
esac
 
1495
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1496
$as_echo "$ac_try_echo"; } >&5
 
1497
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1498
  ac_status=$?
 
1499
  if test -s conftest.err; then
 
1500
    grep -v '^ *+' conftest.err >conftest.er1
 
1501
    cat conftest.er1 >&5
 
1502
    mv -f conftest.er1 conftest.err
 
1503
  fi
 
1504
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1505
  test $ac_status = 0; } >/dev/null && {
 
1506
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1507
         test ! -s conftest.err
 
1508
       }; then :
 
1509
  ac_retval=0
 
1510
else
 
1511
  $as_echo "$as_me: failed program was:" >&5
 
1512
sed 's/^/| /' conftest.$ac_ext >&5
 
1513
 
 
1514
    ac_retval=1
 
1515
fi
 
1516
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1517
  return $ac_retval
 
1518
 
 
1519
} # ac_fn_c_try_cpp
 
1520
 
 
1521
# ac_fn_c_try_run LINENO
 
1522
# ----------------------
 
1523
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
 
1524
# that executables *can* be run.
 
1525
ac_fn_c_try_run ()
 
1526
{
 
1527
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1528
  if { { ac_try="$ac_link"
 
1529
case "(($ac_try" in
 
1530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1531
  *) ac_try_echo=$ac_try;;
 
1532
esac
 
1533
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1534
$as_echo "$ac_try_echo"; } >&5
 
1535
  (eval "$ac_link") 2>&5
 
1536
  ac_status=$?
 
1537
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1538
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1539
  { { case "(($ac_try" in
 
1540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1541
  *) ac_try_echo=$ac_try;;
 
1542
esac
 
1543
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1544
$as_echo "$ac_try_echo"; } >&5
 
1545
  (eval "$ac_try") 2>&5
 
1546
  ac_status=$?
 
1547
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1548
  test $ac_status = 0; }; }; then :
 
1549
  ac_retval=0
 
1550
else
 
1551
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1552
       $as_echo "$as_me: failed program was:" >&5
 
1553
sed 's/^/| /' conftest.$ac_ext >&5
 
1554
 
 
1555
       ac_retval=$ac_status
 
1556
fi
 
1557
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1558
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1559
  return $ac_retval
 
1560
 
 
1561
} # ac_fn_c_try_run
 
1562
 
 
1563
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
 
1564
# -------------------------------------------------------
 
1565
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
 
1566
# the include files in INCLUDES and setting the cache variable VAR
 
1567
# accordingly.
 
1568
ac_fn_c_check_header_mongrel ()
 
1569
{
 
1570
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1571
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1572
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1573
$as_echo_n "checking for $2... " >&6; }
 
1574
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1575
  $as_echo_n "(cached) " >&6
 
1576
fi
 
1577
eval ac_res=\$$3
 
1578
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1579
$as_echo "$ac_res" >&6; }
 
1580
else
 
1581
  # Is the header compilable?
 
1582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
 
1583
$as_echo_n "checking $2 usability... " >&6; }
 
1584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1585
/* end confdefs.h.  */
 
1586
$4
 
1587
#include <$2>
 
1588
_ACEOF
 
1589
if ac_fn_c_try_compile "$LINENO"; then :
 
1590
  ac_header_compiler=yes
 
1591
else
 
1592
  ac_header_compiler=no
 
1593
fi
 
1594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
 
1596
$as_echo "$ac_header_compiler" >&6; }
 
1597
 
 
1598
# Is the header present?
 
1599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
 
1600
$as_echo_n "checking $2 presence... " >&6; }
 
1601
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1602
/* end confdefs.h.  */
 
1603
#include <$2>
 
1604
_ACEOF
 
1605
if ac_fn_c_try_cpp "$LINENO"; then :
 
1606
  ac_header_preproc=yes
 
1607
else
 
1608
  ac_header_preproc=no
 
1609
fi
 
1610
rm -f conftest.err conftest.$ac_ext
 
1611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
 
1612
$as_echo "$ac_header_preproc" >&6; }
 
1613
 
 
1614
# So?  What about this header?
 
1615
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
 
1616
  yes:no: )
 
1617
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
 
1618
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
1619
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1620
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1621
    ;;
 
1622
  no:yes:* )
 
1623
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
 
1624
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
 
1625
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
 
1626
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
 
1627
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
 
1628
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
 
1629
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
 
1630
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
 
1631
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 
1632
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
 
1633
( cat <<\_ASBOX
 
1634
## --------------------------------------- ##
 
1635
## Report this to bugs+libguess@atheme.org ##
 
1636
## --------------------------------------- ##
 
1637
_ASBOX
 
1638
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
1639
    ;;
 
1640
esac
 
1641
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1642
$as_echo_n "checking for $2... " >&6; }
 
1643
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1644
  $as_echo_n "(cached) " >&6
 
1645
else
 
1646
  eval "$3=\$ac_header_compiler"
 
1647
fi
 
1648
eval ac_res=\$$3
 
1649
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1650
$as_echo "$ac_res" >&6; }
 
1651
fi
 
1652
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1653
 
 
1654
} # ac_fn_c_check_header_mongrel
 
1655
 
 
1656
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1657
# -------------------------------------------------------
 
1658
# Tests whether HEADER exists and can be compiled using the include files in
 
1659
# INCLUDES, setting the cache variable VAR accordingly.
 
1660
ac_fn_c_check_header_compile ()
 
1661
{
 
1662
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1663
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1664
$as_echo_n "checking for $2... " >&6; }
 
1665
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1666
  $as_echo_n "(cached) " >&6
 
1667
else
 
1668
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1669
/* end confdefs.h.  */
 
1670
$4
 
1671
#include <$2>
 
1672
_ACEOF
 
1673
if ac_fn_c_try_compile "$LINENO"; then :
 
1674
  eval "$3=yes"
 
1675
else
 
1676
  eval "$3=no"
 
1677
fi
 
1678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1679
fi
 
1680
eval ac_res=\$$3
 
1681
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1682
$as_echo "$ac_res" >&6; }
 
1683
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1684
 
 
1685
} # ac_fn_c_check_header_compile
 
1686
 
 
1687
# ac_fn_c_check_func LINENO FUNC VAR
 
1688
# ----------------------------------
 
1689
# Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1690
ac_fn_c_check_func ()
 
1691
{
 
1692
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1693
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1694
$as_echo_n "checking for $2... " >&6; }
 
1695
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
 
1696
  $as_echo_n "(cached) " >&6
 
1697
else
 
1698
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1699
/* end confdefs.h.  */
 
1700
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1701
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1702
#define $2 innocuous_$2
 
1703
 
 
1704
/* System header to define __stub macros and hopefully few prototypes,
 
1705
    which can conflict with char $2 (); below.
 
1706
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1707
    <limits.h> exists even on freestanding compilers.  */
 
1708
 
 
1709
#ifdef __STDC__
 
1710
# include <limits.h>
 
1711
#else
 
1712
# include <assert.h>
 
1713
#endif
 
1714
 
 
1715
#undef $2
 
1716
 
 
1717
/* Override any GCC internal prototype to avoid an error.
 
1718
   Use char because int might match the return type of a GCC
 
1719
   builtin and then its argument prototype would still apply.  */
 
1720
#ifdef __cplusplus
 
1721
extern "C"
 
1722
#endif
 
1723
char $2 ();
 
1724
/* The GNU C library defines this for functions which it implements
 
1725
    to always fail with ENOSYS.  Some functions are actually named
 
1726
    something starting with __ and the normal name is an alias.  */
 
1727
#if defined __stub_$2 || defined __stub___$2
 
1728
choke me
 
1729
#endif
 
1730
 
 
1731
int
 
1732
main ()
 
1733
{
 
1734
return $2 ();
 
1735
  ;
 
1736
  return 0;
 
1737
}
 
1738
_ACEOF
 
1739
if ac_fn_c_try_link "$LINENO"; then :
 
1740
  eval "$3=yes"
 
1741
else
 
1742
  eval "$3=no"
 
1743
fi
 
1744
rm -f core conftest.err conftest.$ac_objext \
 
1745
    conftest$ac_exeext conftest.$ac_ext
 
1746
fi
 
1747
eval ac_res=\$$3
 
1748
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1749
$as_echo "$ac_res" >&6; }
 
1750
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
 
1751
 
 
1752
} # ac_fn_c_check_func
 
1753
cat >config.log <<_ACEOF
 
1754
This file contains any messages produced by compilers while
 
1755
running configure, to aid debugging if configure makes a mistake.
 
1756
 
 
1757
It was created by libguess $as_me 1.0, which was
 
1758
generated by GNU Autoconf 2.64.  Invocation command line was
 
1759
 
 
1760
  $ $0 $@
 
1761
 
 
1762
_ACEOF
 
1763
exec 5>>config.log
 
1764
{
 
1765
cat <<_ASUNAME
 
1766
## --------- ##
 
1767
## Platform. ##
 
1768
## --------- ##
 
1769
 
 
1770
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1771
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1772
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1773
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1774
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1775
 
 
1776
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1777
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1778
 
 
1779
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1780
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1781
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1782
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1783
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1784
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1785
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1786
 
 
1787
_ASUNAME
 
1788
 
 
1789
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1790
for as_dir in $PATH
 
1791
do
 
1792
  IFS=$as_save_IFS
 
1793
  test -z "$as_dir" && as_dir=.
 
1794
    $as_echo "PATH: $as_dir"
 
1795
  done
 
1796
IFS=$as_save_IFS
 
1797
 
 
1798
} >&5
 
1799
 
 
1800
cat >&5 <<_ACEOF
 
1801
 
 
1802
 
 
1803
## ----------- ##
 
1804
## Core tests. ##
 
1805
## ----------- ##
 
1806
 
 
1807
_ACEOF
 
1808
 
 
1809
 
 
1810
# Keep a trace of the command line.
 
1811
# Strip out --no-create and --no-recursion so they do not pile up.
 
1812
# Strip out --silent because we don't want to record it for future runs.
 
1813
# Also quote any args containing shell meta-characters.
 
1814
# Make two passes to allow for proper duplicate-argument suppression.
 
1815
ac_configure_args=
 
1816
ac_configure_args0=
 
1817
ac_configure_args1=
 
1818
ac_must_keep_next=false
 
1819
for ac_pass in 1 2
 
1820
do
 
1821
  for ac_arg
 
1822
  do
 
1823
    case $ac_arg in
 
1824
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1825
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1826
    | -silent | --silent | --silen | --sile | --sil)
 
1827
      continue ;;
 
1828
    *\'*)
 
1829
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1830
    esac
 
1831
    case $ac_pass in
 
1832
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1833
    2)
 
1834
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1835
      if test $ac_must_keep_next = true; then
 
1836
        ac_must_keep_next=false # Got value, back to normal.
 
1837
      else
 
1838
        case $ac_arg in
 
1839
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1840
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1841
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1842
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1843
            case "$ac_configure_args0 " in
 
1844
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1845
            esac
 
1846
            ;;
 
1847
          -* ) ac_must_keep_next=true ;;
 
1848
        esac
 
1849
      fi
 
1850
      as_fn_append ac_configure_args " '$ac_arg'"
 
1851
      ;;
 
1852
    esac
 
1853
  done
 
1854
done
 
1855
{ ac_configure_args0=; unset ac_configure_args0;}
 
1856
{ ac_configure_args1=; unset ac_configure_args1;}
 
1857
 
 
1858
# When interrupted or exit'd, cleanup temporary files, and complete
 
1859
# config.log.  We remove comments because anyway the quotes in there
 
1860
# would cause problems or look ugly.
 
1861
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1862
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1863
trap 'exit_status=$?
 
1864
  # Save into config.log some information that might help in debugging.
 
1865
  {
 
1866
    echo
 
1867
 
 
1868
    cat <<\_ASBOX
 
1869
## ---------------- ##
 
1870
## Cache variables. ##
 
1871
## ---------------- ##
 
1872
_ASBOX
 
1873
    echo
 
1874
    # The following way of writing the cache mishandles newlines in values,
 
1875
(
 
1876
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1877
    eval ac_val=\$$ac_var
 
1878
    case $ac_val in #(
 
1879
    *${as_nl}*)
 
1880
      case $ac_var in #(
 
1881
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1882
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1883
      esac
 
1884
      case $ac_var in #(
 
1885
      _ | IFS | as_nl) ;; #(
 
1886
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1887
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1888
      esac ;;
 
1889
    esac
 
1890
  done
 
1891
  (set) 2>&1 |
 
1892
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1893
    *${as_nl}ac_space=\ *)
 
1894
      sed -n \
 
1895
        "s/'\''/'\''\\\\'\'''\''/g;
 
1896
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1897
      ;; #(
 
1898
    *)
 
1899
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1900
      ;;
 
1901
    esac |
 
1902
    sort
 
1903
)
 
1904
    echo
 
1905
 
 
1906
    cat <<\_ASBOX
 
1907
## ----------------- ##
 
1908
## Output variables. ##
 
1909
## ----------------- ##
 
1910
_ASBOX
 
1911
    echo
 
1912
    for ac_var in $ac_subst_vars
 
1913
    do
 
1914
      eval ac_val=\$$ac_var
 
1915
      case $ac_val in
 
1916
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1917
      esac
 
1918
      $as_echo "$ac_var='\''$ac_val'\''"
 
1919
    done | sort
 
1920
    echo
 
1921
 
 
1922
    if test -n "$ac_subst_files"; then
 
1923
      cat <<\_ASBOX
 
1924
## ------------------- ##
 
1925
## File substitutions. ##
 
1926
## ------------------- ##
 
1927
_ASBOX
 
1928
      echo
 
1929
      for ac_var in $ac_subst_files
 
1930
      do
 
1931
        eval ac_val=\$$ac_var
 
1932
        case $ac_val in
 
1933
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1934
        esac
 
1935
        $as_echo "$ac_var='\''$ac_val'\''"
 
1936
      done | sort
 
1937
      echo
 
1938
    fi
 
1939
 
 
1940
    if test -s confdefs.h; then
 
1941
      cat <<\_ASBOX
 
1942
## ----------- ##
 
1943
## confdefs.h. ##
 
1944
## ----------- ##
 
1945
_ASBOX
 
1946
      echo
 
1947
      cat confdefs.h
 
1948
      echo
 
1949
    fi
 
1950
    test "$ac_signal" != 0 &&
 
1951
      $as_echo "$as_me: caught signal $ac_signal"
 
1952
    $as_echo "$as_me: exit $exit_status"
 
1953
  } >&5
 
1954
  rm -f core *.core core.conftest.* &&
 
1955
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1956
    exit $exit_status
 
1957
' 0
 
1958
for ac_signal in 1 2 13 15; do
 
1959
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1960
done
 
1961
ac_signal=0
 
1962
 
 
1963
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1964
rm -f -r conftest* confdefs.h
 
1965
 
 
1966
$as_echo "/* confdefs.h */" > confdefs.h
 
1967
 
 
1968
# Predefined preprocessor variables.
 
1969
 
 
1970
cat >>confdefs.h <<_ACEOF
 
1971
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1972
_ACEOF
 
1973
 
 
1974
cat >>confdefs.h <<_ACEOF
 
1975
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1976
_ACEOF
 
1977
 
 
1978
cat >>confdefs.h <<_ACEOF
 
1979
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1980
_ACEOF
 
1981
 
 
1982
cat >>confdefs.h <<_ACEOF
 
1983
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1984
_ACEOF
 
1985
 
 
1986
cat >>confdefs.h <<_ACEOF
 
1987
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1988
_ACEOF
 
1989
 
 
1990
cat >>confdefs.h <<_ACEOF
 
1991
#define PACKAGE_URL "$PACKAGE_URL"
 
1992
_ACEOF
 
1993
 
 
1994
 
 
1995
# Let the site file select an alternate cache file if it wants to.
 
1996
# Prefer an explicitly selected file to automatically selected ones.
 
1997
ac_site_file1=NONE
 
1998
ac_site_file2=NONE
 
1999
if test -n "$CONFIG_SITE"; then
 
2000
  ac_site_file1=$CONFIG_SITE
 
2001
elif test "x$prefix" != xNONE; then
 
2002
  ac_site_file1=$prefix/share/config.site
 
2003
  ac_site_file2=$prefix/etc/config.site
 
2004
else
 
2005
  ac_site_file1=$ac_default_prefix/share/config.site
 
2006
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2007
fi
 
2008
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2009
do
 
2010
  test "x$ac_site_file" = xNONE && continue
 
2011
  if test -r "$ac_site_file"; then
 
2012
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2013
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2014
    sed 's/^/| /' "$ac_site_file" >&5
 
2015
    . "$ac_site_file"
 
2016
  fi
 
2017
done
 
2018
 
 
2019
if test -r "$cache_file"; then
 
2020
  # Some versions of bash will fail to source /dev/null (special
 
2021
  # files actually), so we avoid doing that.
 
2022
  if test -f "$cache_file"; then
 
2023
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2024
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2025
    case $cache_file in
 
2026
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2027
      *)                      . "./$cache_file";;
 
2028
    esac
 
2029
  fi
 
2030
else
 
2031
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2032
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2033
  >$cache_file
 
2034
fi
 
2035
 
 
2036
# Check that the precious variables saved in the cache have kept the same
 
2037
# value.
 
2038
ac_cache_corrupted=false
 
2039
for ac_var in $ac_precious_vars; do
 
2040
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2041
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2042
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2043
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2044
  case $ac_old_set,$ac_new_set in
 
2045
    set,)
 
2046
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2047
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2048
      ac_cache_corrupted=: ;;
 
2049
    ,set)
 
2050
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2051
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2052
      ac_cache_corrupted=: ;;
 
2053
    ,);;
 
2054
    *)
 
2055
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2056
        # differences in whitespace do not lead to failure.
 
2057
        ac_old_val_w=`echo x $ac_old_val`
 
2058
        ac_new_val_w=`echo x $ac_new_val`
 
2059
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2060
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2061
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2062
          ac_cache_corrupted=:
 
2063
        else
 
2064
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2065
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2066
          eval $ac_var=\$ac_old_val
 
2067
        fi
 
2068
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2069
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2070
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2071
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2072
      fi;;
 
2073
  esac
 
2074
  # Pass precious variables to config.status.
 
2075
  if test "$ac_new_set" = set; then
 
2076
    case $ac_new_val in
 
2077
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2078
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2079
    esac
 
2080
    case " $ac_configure_args " in
 
2081
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2082
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2083
    esac
 
2084
  fi
 
2085
done
 
2086
if $ac_cache_corrupted; then
 
2087
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2088
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2089
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2090
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2091
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2092
fi
 
2093
## -------------------- ##
 
2094
## Main body of script. ##
 
2095
## -------------------- ##
 
2096
 
 
2097
ac_ext=c
 
2098
ac_cpp='$CPP $CPPFLAGS'
 
2099
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2100
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2101
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2102
 
 
2103
 
 
2104
 
 
2105
ac_config_headers="$ac_config_headers src/libguess/autoconf.h"
 
2106
 
 
2107
 
 
2108
ac_aux_dir=
 
2109
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2110
  for ac_t in install-sh install.sh shtool; do
 
2111
    if test -f "$ac_dir/$ac_t"; then
 
2112
      ac_aux_dir=$ac_dir
 
2113
      ac_install_sh="$ac_aux_dir/$ac_t -c"
 
2114
      break 2
 
2115
    fi
 
2116
  done
 
2117
done
 
2118
if test -z "$ac_aux_dir"; then
 
2119
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2120
fi
 
2121
 
 
2122
# These three variables are undocumented and unsupported,
 
2123
# and are intended to be withdrawn in a future Autoconf release.
 
2124
# They can cause serious problems if a builder's source tree is in a directory
 
2125
# whose full name contains unusual characters.
 
2126
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2127
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2128
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2129
 
 
2130
 
 
2131
# Make sure we can run config.sub.
 
2132
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2133
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2134
 
 
2135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2136
$as_echo_n "checking build system type... " >&6; }
 
2137
if test "${ac_cv_build+set}" = set; then :
 
2138
  $as_echo_n "(cached) " >&6
 
2139
else
 
2140
  ac_build_alias=$build_alias
 
2141
test "x$ac_build_alias" = x &&
 
2142
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2143
test "x$ac_build_alias" = x &&
 
2144
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
 
2145
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2146
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2147
 
 
2148
fi
 
2149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2150
$as_echo "$ac_cv_build" >&6; }
 
2151
case $ac_cv_build in
 
2152
*-*-*) ;;
 
2153
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
 
2154
esac
 
2155
build=$ac_cv_build
 
2156
ac_save_IFS=$IFS; IFS='-'
 
2157
set x $ac_cv_build
 
2158
shift
 
2159
build_cpu=$1
 
2160
build_vendor=$2
 
2161
shift; shift
 
2162
# Remember, the first character of IFS is used to create $*,
 
2163
# except with old shells:
 
2164
build_os=$*
 
2165
IFS=$ac_save_IFS
 
2166
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2167
 
 
2168
 
 
2169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2170
$as_echo_n "checking host system type... " >&6; }
 
2171
if test "${ac_cv_host+set}" = set; then :
 
2172
  $as_echo_n "(cached) " >&6
 
2173
else
 
2174
  if test "x$host_alias" = x; then
 
2175
  ac_cv_host=$ac_cv_build
 
2176
else
 
2177
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2178
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2179
fi
 
2180
 
 
2181
fi
 
2182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2183
$as_echo "$ac_cv_host" >&6; }
 
2184
case $ac_cv_host in
 
2185
*-*-*) ;;
 
2186
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
 
2187
esac
 
2188
host=$ac_cv_host
 
2189
ac_save_IFS=$IFS; IFS='-'
 
2190
set x $ac_cv_host
 
2191
shift
 
2192
host_cpu=$1
 
2193
host_vendor=$2
 
2194
shift; shift
 
2195
# Remember, the first character of IFS is used to create $*,
 
2196
# except with old shells:
 
2197
host_os=$*
 
2198
IFS=$ac_save_IFS
 
2199
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2200
 
 
2201
 
 
2202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
 
2203
$as_echo_n "checking target system type... " >&6; }
 
2204
if test "${ac_cv_target+set}" = set; then :
 
2205
  $as_echo_n "(cached) " >&6
 
2206
else
 
2207
  if test "x$target_alias" = x; then
 
2208
  ac_cv_target=$ac_cv_host
 
2209
else
 
2210
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2211
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
 
2212
fi
 
2213
 
 
2214
fi
 
2215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
 
2216
$as_echo "$ac_cv_target" >&6; }
 
2217
case $ac_cv_target in
 
2218
*-*-*) ;;
 
2219
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
 
2220
esac
 
2221
target=$ac_cv_target
 
2222
ac_save_IFS=$IFS; IFS='-'
 
2223
set x $ac_cv_target
 
2224
shift
 
2225
target_cpu=$1
 
2226
target_vendor=$2
 
2227
shift; shift
 
2228
# Remember, the first character of IFS is used to create $*,
 
2229
# except with old shells:
 
2230
target_os=$*
 
2231
IFS=$ac_save_IFS
 
2232
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2233
 
 
2234
 
 
2235
# The aliases save the names the user supplied, while $host etc.
 
2236
# will get canonicalized.
 
2237
test -n "$target_alias" &&
 
2238
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2239
    NONENONEs,x,x, &&
 
2240
  program_prefix=${target_alias}-
 
2241
 
 
2242
# Checks for programs.
 
2243
ac_ext=c
 
2244
ac_cpp='$CPP $CPPFLAGS'
 
2245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2248
if test -n "$ac_tool_prefix"; then
 
2249
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2250
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2252
$as_echo_n "checking for $ac_word... " >&6; }
 
2253
if test "${ac_cv_prog_CC+set}" = set; then :
 
2254
  $as_echo_n "(cached) " >&6
 
2255
else
 
2256
  if test -n "$CC"; then
 
2257
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2258
else
 
2259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2260
for as_dir in $PATH
 
2261
do
 
2262
  IFS=$as_save_IFS
 
2263
  test -z "$as_dir" && as_dir=.
 
2264
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2266
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2267
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2268
    break 2
 
2269
  fi
 
2270
done
 
2271
  done
 
2272
IFS=$as_save_IFS
 
2273
 
 
2274
fi
 
2275
fi
 
2276
CC=$ac_cv_prog_CC
 
2277
if test -n "$CC"; then
 
2278
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2279
$as_echo "$CC" >&6; }
 
2280
else
 
2281
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2282
$as_echo "no" >&6; }
 
2283
fi
 
2284
 
 
2285
 
 
2286
fi
 
2287
if test -z "$ac_cv_prog_CC"; then
 
2288
  ac_ct_CC=$CC
 
2289
  # Extract the first word of "gcc", so it can be a program name with args.
 
2290
set dummy gcc; ac_word=$2
 
2291
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2292
$as_echo_n "checking for $ac_word... " >&6; }
 
2293
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2294
  $as_echo_n "(cached) " >&6
 
2295
else
 
2296
  if test -n "$ac_ct_CC"; then
 
2297
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2298
else
 
2299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2300
for as_dir in $PATH
 
2301
do
 
2302
  IFS=$as_save_IFS
 
2303
  test -z "$as_dir" && as_dir=.
 
2304
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2305
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2306
    ac_cv_prog_ac_ct_CC="gcc"
 
2307
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2308
    break 2
 
2309
  fi
 
2310
done
 
2311
  done
 
2312
IFS=$as_save_IFS
 
2313
 
 
2314
fi
 
2315
fi
 
2316
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2317
if test -n "$ac_ct_CC"; then
 
2318
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2319
$as_echo "$ac_ct_CC" >&6; }
 
2320
else
 
2321
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2322
$as_echo "no" >&6; }
 
2323
fi
 
2324
 
 
2325
  if test "x$ac_ct_CC" = x; then
 
2326
    CC=""
 
2327
  else
 
2328
    case $cross_compiling:$ac_tool_warned in
 
2329
yes:)
 
2330
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2331
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2332
ac_tool_warned=yes ;;
 
2333
esac
 
2334
    CC=$ac_ct_CC
 
2335
  fi
 
2336
else
 
2337
  CC="$ac_cv_prog_CC"
 
2338
fi
 
2339
 
 
2340
if test -z "$CC"; then
 
2341
          if test -n "$ac_tool_prefix"; then
 
2342
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2343
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2344
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2345
$as_echo_n "checking for $ac_word... " >&6; }
 
2346
if test "${ac_cv_prog_CC+set}" = set; then :
 
2347
  $as_echo_n "(cached) " >&6
 
2348
else
 
2349
  if test -n "$CC"; then
 
2350
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2351
else
 
2352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2353
for as_dir in $PATH
 
2354
do
 
2355
  IFS=$as_save_IFS
 
2356
  test -z "$as_dir" && as_dir=.
 
2357
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2358
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2359
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2360
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2361
    break 2
 
2362
  fi
 
2363
done
 
2364
  done
 
2365
IFS=$as_save_IFS
 
2366
 
 
2367
fi
 
2368
fi
 
2369
CC=$ac_cv_prog_CC
 
2370
if test -n "$CC"; then
 
2371
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2372
$as_echo "$CC" >&6; }
 
2373
else
 
2374
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2375
$as_echo "no" >&6; }
 
2376
fi
 
2377
 
 
2378
 
 
2379
  fi
 
2380
fi
 
2381
if test -z "$CC"; then
 
2382
  # Extract the first word of "cc", so it can be a program name with args.
 
2383
set dummy cc; ac_word=$2
 
2384
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2385
$as_echo_n "checking for $ac_word... " >&6; }
 
2386
if test "${ac_cv_prog_CC+set}" = set; then :
 
2387
  $as_echo_n "(cached) " >&6
 
2388
else
 
2389
  if test -n "$CC"; then
 
2390
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2391
else
 
2392
  ac_prog_rejected=no
 
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2394
for as_dir in $PATH
 
2395
do
 
2396
  IFS=$as_save_IFS
 
2397
  test -z "$as_dir" && as_dir=.
 
2398
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2399
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2400
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2401
       ac_prog_rejected=yes
 
2402
       continue
 
2403
     fi
 
2404
    ac_cv_prog_CC="cc"
 
2405
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2406
    break 2
 
2407
  fi
 
2408
done
 
2409
  done
 
2410
IFS=$as_save_IFS
 
2411
 
 
2412
if test $ac_prog_rejected = yes; then
 
2413
  # We found a bogon in the path, so make sure we never use it.
 
2414
  set dummy $ac_cv_prog_CC
 
2415
  shift
 
2416
  if test $# != 0; then
 
2417
    # We chose a different compiler from the bogus one.
 
2418
    # However, it has the same basename, so the bogon will be chosen
 
2419
    # first if we set CC to just the basename; use the full file name.
 
2420
    shift
 
2421
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2422
  fi
 
2423
fi
 
2424
fi
 
2425
fi
 
2426
CC=$ac_cv_prog_CC
 
2427
if test -n "$CC"; then
 
2428
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2429
$as_echo "$CC" >&6; }
 
2430
else
 
2431
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2432
$as_echo "no" >&6; }
 
2433
fi
 
2434
 
 
2435
 
 
2436
fi
 
2437
if test -z "$CC"; then
 
2438
  if test -n "$ac_tool_prefix"; then
 
2439
  for ac_prog in cl.exe
 
2440
  do
 
2441
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2442
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2444
$as_echo_n "checking for $ac_word... " >&6; }
 
2445
if test "${ac_cv_prog_CC+set}" = set; then :
 
2446
  $as_echo_n "(cached) " >&6
 
2447
else
 
2448
  if test -n "$CC"; then
 
2449
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2450
else
 
2451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2452
for as_dir in $PATH
 
2453
do
 
2454
  IFS=$as_save_IFS
 
2455
  test -z "$as_dir" && as_dir=.
 
2456
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2458
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2459
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2460
    break 2
 
2461
  fi
 
2462
done
 
2463
  done
 
2464
IFS=$as_save_IFS
 
2465
 
 
2466
fi
 
2467
fi
 
2468
CC=$ac_cv_prog_CC
 
2469
if test -n "$CC"; then
 
2470
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
2471
$as_echo "$CC" >&6; }
 
2472
else
 
2473
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2474
$as_echo "no" >&6; }
 
2475
fi
 
2476
 
 
2477
 
 
2478
    test -n "$CC" && break
 
2479
  done
 
2480
fi
 
2481
if test -z "$CC"; then
 
2482
  ac_ct_CC=$CC
 
2483
  for ac_prog in cl.exe
 
2484
do
 
2485
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2486
set dummy $ac_prog; ac_word=$2
 
2487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2488
$as_echo_n "checking for $ac_word... " >&6; }
 
2489
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
 
2490
  $as_echo_n "(cached) " >&6
 
2491
else
 
2492
  if test -n "$ac_ct_CC"; then
 
2493
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2494
else
 
2495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2496
for as_dir in $PATH
 
2497
do
 
2498
  IFS=$as_save_IFS
 
2499
  test -z "$as_dir" && as_dir=.
 
2500
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2501
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2502
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2503
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2504
    break 2
 
2505
  fi
 
2506
done
 
2507
  done
 
2508
IFS=$as_save_IFS
 
2509
 
 
2510
fi
 
2511
fi
 
2512
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2513
if test -n "$ac_ct_CC"; then
 
2514
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
2515
$as_echo "$ac_ct_CC" >&6; }
 
2516
else
 
2517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2518
$as_echo "no" >&6; }
 
2519
fi
 
2520
 
 
2521
 
 
2522
  test -n "$ac_ct_CC" && break
 
2523
done
 
2524
 
 
2525
  if test "x$ac_ct_CC" = x; then
 
2526
    CC=""
 
2527
  else
 
2528
    case $cross_compiling:$ac_tool_warned in
 
2529
yes:)
 
2530
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2531
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2532
ac_tool_warned=yes ;;
 
2533
esac
 
2534
    CC=$ac_ct_CC
 
2535
  fi
 
2536
fi
 
2537
 
 
2538
fi
 
2539
 
 
2540
 
 
2541
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2542
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2543
as_fn_error "no acceptable C compiler found in \$PATH
 
2544
See \`config.log' for more details." "$LINENO" 5; }
 
2545
 
 
2546
# Provide some information about the compiler.
 
2547
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
2548
set X $ac_compile
 
2549
ac_compiler=$2
 
2550
for ac_option in --version -v -V -qversion; do
 
2551
  { { ac_try="$ac_compiler $ac_option >&5"
 
2552
case "(($ac_try" in
 
2553
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2554
  *) ac_try_echo=$ac_try;;
 
2555
esac
 
2556
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2557
$as_echo "$ac_try_echo"; } >&5
 
2558
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
2559
  ac_status=$?
 
2560
  if test -s conftest.err; then
 
2561
    sed '10a\
 
2562
... rest of stderr output deleted ...
 
2563
         10q' conftest.err >conftest.er1
 
2564
    cat conftest.er1 >&5
 
2565
    rm -f conftest.er1 conftest.err
 
2566
  fi
 
2567
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2568
  test $ac_status = 0; }
 
2569
done
 
2570
 
 
2571
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2572
/* end confdefs.h.  */
 
2573
#include <stdio.h>
 
2574
int
 
2575
main ()
 
2576
{
 
2577
FILE *f = fopen ("conftest.out", "w");
 
2578
 return ferror (f) || fclose (f) != 0;
 
2579
 
 
2580
  ;
 
2581
  return 0;
 
2582
}
 
2583
_ACEOF
 
2584
ac_clean_files_save=$ac_clean_files
 
2585
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
 
2586
# Try to create an executable without -o first, disregard a.out.
 
2587
# It will help us diagnose broken compilers, and finding out an intuition
 
2588
# of exeext.
 
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
2590
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2591
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2592
 
 
2593
# The possible output files:
 
2594
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2595
 
 
2596
ac_rmfiles=
 
2597
for ac_file in $ac_files
 
2598
do
 
2599
  case $ac_file in
 
2600
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2601
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2602
  esac
 
2603
done
 
2604
rm -f $ac_rmfiles
 
2605
 
 
2606
if { { ac_try="$ac_link_default"
 
2607
case "(($ac_try" in
 
2608
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2609
  *) ac_try_echo=$ac_try;;
 
2610
esac
 
2611
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2612
$as_echo "$ac_try_echo"; } >&5
 
2613
  (eval "$ac_link_default") 2>&5
 
2614
  ac_status=$?
 
2615
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2616
  test $ac_status = 0; }; then :
 
2617
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2618
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2619
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2620
# so that the user can short-circuit this test for compilers unknown to
 
2621
# Autoconf.
 
2622
for ac_file in $ac_files ''
 
2623
do
 
2624
  test -f "$ac_file" || continue
 
2625
  case $ac_file in
 
2626
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2627
        ;;
 
2628
    [ab].out )
 
2629
        # We found the default executable, but exeext='' is most
 
2630
        # certainly right.
 
2631
        break;;
 
2632
    *.* )
 
2633
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2634
        then :; else
 
2635
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2636
        fi
 
2637
        # We set ac_cv_exeext here because the later test for it is not
 
2638
        # safe: cross compilers may not add the suffix if given an `-o'
 
2639
        # argument, so we may need to know it at that point already.
 
2640
        # Even if this section looks crufty: it has the advantage of
 
2641
        # actually working.
 
2642
        break;;
 
2643
    * )
 
2644
        break;;
 
2645
  esac
 
2646
done
 
2647
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2648
 
 
2649
else
 
2650
  ac_file=''
 
2651
fi
 
2652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
2653
$as_echo "$ac_file" >&6; }
 
2654
if test -z "$ac_file"; then :
 
2655
  $as_echo "$as_me: failed program was:" >&5
 
2656
sed 's/^/| /' conftest.$ac_ext >&5
 
2657
 
 
2658
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2659
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2660
{ as_fn_set_status 77
 
2661
as_fn_error "C compiler cannot create executables
 
2662
See \`config.log' for more details." "$LINENO" 5; }; }
 
2663
fi
 
2664
ac_exeext=$ac_cv_exeext
 
2665
 
 
2666
# Check that the compiler produces executables we can run.  If not, either
 
2667
# the compiler is broken, or we cross compile.
 
2668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
2669
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2670
# If not cross compiling, check that we can run a simple program.
 
2671
if test "$cross_compiling" != yes; then
 
2672
  if { ac_try='./$ac_file'
 
2673
  { { case "(($ac_try" in
 
2674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2675
  *) ac_try_echo=$ac_try;;
 
2676
esac
 
2677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2678
$as_echo "$ac_try_echo"; } >&5
 
2679
  (eval "$ac_try") 2>&5
 
2680
  ac_status=$?
 
2681
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2682
  test $ac_status = 0; }; }; then
 
2683
    cross_compiling=no
 
2684
  else
 
2685
    if test "$cross_compiling" = maybe; then
 
2686
        cross_compiling=yes
 
2687
    else
 
2688
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2689
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2690
as_fn_error "cannot run C compiled programs.
 
2691
If you meant to cross compile, use \`--host'.
 
2692
See \`config.log' for more details." "$LINENO" 5; }
 
2693
    fi
 
2694
  fi
 
2695
fi
 
2696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2697
$as_echo "yes" >&6; }
 
2698
 
 
2699
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
 
2700
ac_clean_files=$ac_clean_files_save
 
2701
# Check that the compiler produces executables we can run.  If not, either
 
2702
# the compiler is broken, or we cross compile.
 
2703
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
2704
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
2706
$as_echo "$cross_compiling" >&6; }
 
2707
 
 
2708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
2709
$as_echo_n "checking for suffix of executables... " >&6; }
 
2710
if { { ac_try="$ac_link"
 
2711
case "(($ac_try" in
 
2712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2713
  *) ac_try_echo=$ac_try;;
 
2714
esac
 
2715
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2716
$as_echo "$ac_try_echo"; } >&5
 
2717
  (eval "$ac_link") 2>&5
 
2718
  ac_status=$?
 
2719
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2720
  test $ac_status = 0; }; then :
 
2721
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2722
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2723
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2724
# `rm'.
 
2725
for ac_file in conftest.exe conftest conftest.*; do
 
2726
  test -f "$ac_file" || continue
 
2727
  case $ac_file in
 
2728
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2729
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2730
          break;;
 
2731
    * ) break;;
 
2732
  esac
 
2733
done
 
2734
else
 
2735
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2736
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2737
as_fn_error "cannot compute suffix of executables: cannot compile and link
 
2738
See \`config.log' for more details." "$LINENO" 5; }
 
2739
fi
 
2740
rm -f conftest$ac_cv_exeext
 
2741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
2742
$as_echo "$ac_cv_exeext" >&6; }
 
2743
 
 
2744
rm -f conftest.$ac_ext
 
2745
EXEEXT=$ac_cv_exeext
 
2746
ac_exeext=$EXEEXT
 
2747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
2748
$as_echo_n "checking for suffix of object files... " >&6; }
 
2749
if test "${ac_cv_objext+set}" = set; then :
 
2750
  $as_echo_n "(cached) " >&6
 
2751
else
 
2752
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2753
/* end confdefs.h.  */
 
2754
 
 
2755
int
 
2756
main ()
 
2757
{
 
2758
 
 
2759
  ;
 
2760
  return 0;
 
2761
}
 
2762
_ACEOF
 
2763
rm -f conftest.o conftest.obj
 
2764
if { { ac_try="$ac_compile"
 
2765
case "(($ac_try" in
 
2766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2767
  *) ac_try_echo=$ac_try;;
 
2768
esac
 
2769
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
2770
$as_echo "$ac_try_echo"; } >&5
 
2771
  (eval "$ac_compile") 2>&5
 
2772
  ac_status=$?
 
2773
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
2774
  test $ac_status = 0; }; then :
 
2775
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2776
  test -f "$ac_file" || continue;
 
2777
  case $ac_file in
 
2778
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2779
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2780
       break;;
 
2781
  esac
 
2782
done
 
2783
else
 
2784
  $as_echo "$as_me: failed program was:" >&5
 
2785
sed 's/^/| /' conftest.$ac_ext >&5
 
2786
 
 
2787
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2788
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2789
as_fn_error "cannot compute suffix of object files: cannot compile
 
2790
See \`config.log' for more details." "$LINENO" 5; }
 
2791
fi
 
2792
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2793
fi
 
2794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
2795
$as_echo "$ac_cv_objext" >&6; }
 
2796
OBJEXT=$ac_cv_objext
 
2797
ac_objext=$OBJEXT
 
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
2799
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2800
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
 
2801
  $as_echo_n "(cached) " >&6
 
2802
else
 
2803
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2804
/* end confdefs.h.  */
 
2805
 
 
2806
int
 
2807
main ()
 
2808
{
 
2809
#ifndef __GNUC__
 
2810
       choke me
 
2811
#endif
 
2812
 
 
2813
  ;
 
2814
  return 0;
 
2815
}
 
2816
_ACEOF
 
2817
if ac_fn_c_try_compile "$LINENO"; then :
 
2818
  ac_compiler_gnu=yes
 
2819
else
 
2820
  ac_compiler_gnu=no
 
2821
fi
 
2822
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2823
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2824
 
 
2825
fi
 
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
2827
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2828
if test $ac_compiler_gnu = yes; then
 
2829
  GCC=yes
 
2830
else
 
2831
  GCC=
 
2832
fi
 
2833
ac_test_CFLAGS=${CFLAGS+set}
 
2834
ac_save_CFLAGS=$CFLAGS
 
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
2836
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2837
if test "${ac_cv_prog_cc_g+set}" = set; then :
 
2838
  $as_echo_n "(cached) " >&6
 
2839
else
 
2840
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2841
   ac_c_werror_flag=yes
 
2842
   ac_cv_prog_cc_g=no
 
2843
   CFLAGS="-g"
 
2844
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2845
/* end confdefs.h.  */
 
2846
 
 
2847
int
 
2848
main ()
 
2849
{
 
2850
 
 
2851
  ;
 
2852
  return 0;
 
2853
}
 
2854
_ACEOF
 
2855
if ac_fn_c_try_compile "$LINENO"; then :
 
2856
  ac_cv_prog_cc_g=yes
 
2857
else
 
2858
  CFLAGS=""
 
2859
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2860
/* end confdefs.h.  */
 
2861
 
 
2862
int
 
2863
main ()
 
2864
{
 
2865
 
 
2866
  ;
 
2867
  return 0;
 
2868
}
 
2869
_ACEOF
 
2870
if ac_fn_c_try_compile "$LINENO"; then :
 
2871
 
 
2872
else
 
2873
  ac_c_werror_flag=$ac_save_c_werror_flag
 
2874
         CFLAGS="-g"
 
2875
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2876
/* end confdefs.h.  */
 
2877
 
 
2878
int
 
2879
main ()
 
2880
{
 
2881
 
 
2882
  ;
 
2883
  return 0;
 
2884
}
 
2885
_ACEOF
 
2886
if ac_fn_c_try_compile "$LINENO"; then :
 
2887
  ac_cv_prog_cc_g=yes
 
2888
fi
 
2889
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2890
fi
 
2891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2892
fi
 
2893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2894
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2895
fi
 
2896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
2897
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
2898
if test "$ac_test_CFLAGS" = set; then
 
2899
  CFLAGS=$ac_save_CFLAGS
 
2900
elif test $ac_cv_prog_cc_g = yes; then
 
2901
  if test "$GCC" = yes; then
 
2902
    CFLAGS="-g -O2"
 
2903
  else
 
2904
    CFLAGS="-g"
 
2905
  fi
 
2906
else
 
2907
  if test "$GCC" = yes; then
 
2908
    CFLAGS="-O2"
 
2909
  else
 
2910
    CFLAGS=
 
2911
  fi
 
2912
fi
 
2913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
2914
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2915
if test "${ac_cv_prog_cc_c89+set}" = set; then :
 
2916
  $as_echo_n "(cached) " >&6
 
2917
else
 
2918
  ac_cv_prog_cc_c89=no
 
2919
ac_save_CC=$CC
 
2920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
2921
/* end confdefs.h.  */
 
2922
#include <stdarg.h>
 
2923
#include <stdio.h>
 
2924
#include <sys/types.h>
 
2925
#include <sys/stat.h>
 
2926
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2927
struct buf { int x; };
 
2928
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2929
static char *e (p, i)
 
2930
     char **p;
 
2931
     int i;
 
2932
{
 
2933
  return p[i];
 
2934
}
 
2935
static char *f (char * (*g) (char **, int), char **p, ...)
 
2936
{
 
2937
  char *s;
 
2938
  va_list v;
 
2939
  va_start (v,p);
 
2940
  s = g (p, va_arg (v,int));
 
2941
  va_end (v);
 
2942
  return s;
 
2943
}
 
2944
 
 
2945
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2946
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2947
   These don't provoke an error unfortunately, instead are silently treated
 
2948
   as 'x'.  The following induces an error, until -std is added to get
 
2949
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2950
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2951
   that's true only with -std.  */
 
2952
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2953
 
 
2954
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2955
   inside strings and character constants.  */
 
2956
#define FOO(x) 'x'
 
2957
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2958
 
 
2959
int test (int i, double x);
 
2960
struct s1 {int (*f) (int a);};
 
2961
struct s2 {int (*f) (double a);};
 
2962
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2963
int argc;
 
2964
char **argv;
 
2965
int
 
2966
main ()
 
2967
{
 
2968
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2969
  ;
 
2970
  return 0;
 
2971
}
 
2972
_ACEOF
 
2973
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2974
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2975
do
 
2976
  CC="$ac_save_CC $ac_arg"
 
2977
  if ac_fn_c_try_compile "$LINENO"; then :
 
2978
  ac_cv_prog_cc_c89=$ac_arg
 
2979
fi
 
2980
rm -f core conftest.err conftest.$ac_objext
 
2981
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2982
done
 
2983
rm -f conftest.$ac_ext
 
2984
CC=$ac_save_CC
 
2985
 
 
2986
fi
 
2987
# AC_CACHE_VAL
 
2988
case "x$ac_cv_prog_cc_c89" in
 
2989
  x)
 
2990
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
2991
$as_echo "none needed" >&6; } ;;
 
2992
  xno)
 
2993
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
2994
$as_echo "unsupported" >&6; } ;;
 
2995
  *)
 
2996
    CC="$CC $ac_cv_prog_cc_c89"
 
2997
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
2998
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
2999
esac
 
3000
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3001
 
 
3002
fi
 
3003
 
 
3004
ac_ext=c
 
3005
ac_cpp='$CPP $CPPFLAGS'
 
3006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3009
 
 
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
3011
$as_echo_n "checking whether ln -s works... " >&6; }
 
3012
LN_S=$as_ln_s
 
3013
if test "$LN_S" = "ln -s"; then
 
3014
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3015
$as_echo "yes" >&6; }
 
3016
else
 
3017
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
3018
$as_echo "no, using $LN_S" >&6; }
 
3019
fi
 
3020
 
 
3021
# Find a good install program.  We prefer a C program (faster),
 
3022
# so one script is as good as another.  But avoid the broken or
 
3023
# incompatible versions:
 
3024
# SysV /etc/install, /usr/sbin/install
 
3025
# SunOS /usr/etc/install
 
3026
# IRIX /sbin/install
 
3027
# AIX /bin/install
 
3028
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3029
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3030
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3031
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3032
# OS/2's system install, which has a completely different semantic
 
3033
# ./install, which can be erroneously created by make from ./install.sh.
 
3034
# Reject install programs that cannot install multiple files.
 
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
3036
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3037
if test -z "$INSTALL"; then
 
3038
if test "${ac_cv_path_install+set}" = set; then :
 
3039
  $as_echo_n "(cached) " >&6
 
3040
else
 
3041
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3042
for as_dir in $PATH
 
3043
do
 
3044
  IFS=$as_save_IFS
 
3045
  test -z "$as_dir" && as_dir=.
 
3046
    # Account for people who put trailing slashes in PATH elements.
 
3047
case $as_dir/ in #((
 
3048
  ./ | .// | /[cC]/* | \
 
3049
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3050
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
3051
  /usr/ucb/* ) ;;
 
3052
  *)
 
3053
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3054
    # Don't use installbsd from OSF since it installs stuff as root
 
3055
    # by default.
 
3056
    for ac_prog in ginstall scoinst install; do
 
3057
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3058
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3059
          if test $ac_prog = install &&
 
3060
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3061
            # AIX install.  It has an incompatible calling convention.
 
3062
            :
 
3063
          elif test $ac_prog = install &&
 
3064
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3065
            # program-specific install script used by HP pwplus--don't use.
 
3066
            :
 
3067
          else
 
3068
            rm -rf conftest.one conftest.two conftest.dir
 
3069
            echo one > conftest.one
 
3070
            echo two > conftest.two
 
3071
            mkdir conftest.dir
 
3072
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3073
              test -s conftest.one && test -s conftest.two &&
 
3074
              test -s conftest.dir/conftest.one &&
 
3075
              test -s conftest.dir/conftest.two
 
3076
            then
 
3077
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3078
              break 3
 
3079
            fi
 
3080
          fi
 
3081
        fi
 
3082
      done
 
3083
    done
 
3084
    ;;
 
3085
esac
 
3086
 
 
3087
  done
 
3088
IFS=$as_save_IFS
 
3089
 
 
3090
rm -rf conftest.one conftest.two conftest.dir
 
3091
 
 
3092
fi
 
3093
  if test "${ac_cv_path_install+set}" = set; then
 
3094
    INSTALL=$ac_cv_path_install
 
3095
  else
 
3096
    # As a last resort, use the slow shell script.  Don't cache a
 
3097
    # value for INSTALL within a source directory, because that will
 
3098
    # break other packages using the cache if that directory is
 
3099
    # removed, or if the value is a relative name.
 
3100
    INSTALL=$ac_install_sh
 
3101
  fi
 
3102
fi
 
3103
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
3104
$as_echo "$INSTALL" >&6; }
 
3105
 
 
3106
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3107
# It thinks the first close brace ends the variable substitution.
 
3108
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3109
 
 
3110
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3111
 
 
3112
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3113
 
 
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3115
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3116
set x ${MAKE-make}
 
3117
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3118
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3119
  $as_echo_n "(cached) " >&6
 
3120
else
 
3121
  cat >conftest.make <<\_ACEOF
 
3122
SHELL = /bin/sh
 
3123
all:
 
3124
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3125
_ACEOF
 
3126
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3127
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3128
  *@@@%%%=?*=@@@%%%*)
 
3129
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3130
  *)
 
3131
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3132
esac
 
3133
rm -f conftest.make
 
3134
fi
 
3135
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3136
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3137
$as_echo "yes" >&6; }
 
3138
  SET_MAKE=
 
3139
else
 
3140
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3141
$as_echo "no" >&6; }
 
3142
  SET_MAKE="MAKE=${MAKE-make}"
 
3143
fi
 
3144
 
 
3145
 
 
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
 
3147
$as_echo_n "checking for library containing strerror... " >&6; }
 
3148
if test "${ac_cv_search_strerror+set}" = set; then :
 
3149
  $as_echo_n "(cached) " >&6
 
3150
else
 
3151
  ac_func_search_save_LIBS=$LIBS
 
3152
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3153
/* end confdefs.h.  */
 
3154
 
 
3155
/* Override any GCC internal prototype to avoid an error.
 
3156
   Use char because int might match the return type of a GCC
 
3157
   builtin and then its argument prototype would still apply.  */
 
3158
#ifdef __cplusplus
 
3159
extern "C"
 
3160
#endif
 
3161
char strerror ();
 
3162
int
 
3163
main ()
 
3164
{
 
3165
return strerror ();
 
3166
  ;
 
3167
  return 0;
 
3168
}
 
3169
_ACEOF
 
3170
for ac_lib in '' cposix; do
 
3171
  if test -z "$ac_lib"; then
 
3172
    ac_res="none required"
 
3173
  else
 
3174
    ac_res=-l$ac_lib
 
3175
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3176
  fi
 
3177
  if ac_fn_c_try_link "$LINENO"; then :
 
3178
  ac_cv_search_strerror=$ac_res
 
3179
fi
 
3180
rm -f core conftest.err conftest.$ac_objext \
 
3181
    conftest$ac_exeext
 
3182
  if test "${ac_cv_search_strerror+set}" = set; then :
 
3183
  break
 
3184
fi
 
3185
done
 
3186
if test "${ac_cv_search_strerror+set}" = set; then :
 
3187
 
 
3188
else
 
3189
  ac_cv_search_strerror=no
 
3190
fi
 
3191
rm conftest.$ac_ext
 
3192
LIBS=$ac_func_search_save_LIBS
 
3193
fi
 
3194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
 
3195
$as_echo "$ac_cv_search_strerror" >&6; }
 
3196
ac_res=$ac_cv_search_strerror
 
3197
if test "$ac_res" != no; then :
 
3198
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3199
 
 
3200
fi
 
3201
 
 
3202
 
 
3203
test x"$GCC" = x"yes" && CFLAGS="$CFLAGS -pipe -Wall"
 
3204
 
 
3205
# XXX workaround
 
3206
PACKAGE="libguess"
 
3207
 
 
3208
 
 
3209
# Checks for libraries.
 
3210
 
 
3211
 
 
3212
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library system" >&5
 
3213
$as_echo_n "checking for shared library system... " >&6; }
 
3214
        case "$host_os" in
 
3215
                darwin*)
 
3216
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
 
3217
$as_echo "Darwin" >&6; }
 
3218
                        LIB_CPPFLAGS='-DPIC'
 
3219
                        LIB_CFLAGS='-fPIC'
 
3220
                        LIB_LDFLAGS='-dynamiclib -flat_namespace'
 
3221
                        LIB_PREFIX='lib'
 
3222
                        LIB_SUFFIX='.dylib'
 
3223
                        LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
 
3224
                        PLUGIN_CPPFLAGS='-DPIC'
 
3225
                        PLUGIN_CFLAGS='-fPIC'
 
3226
                        PLUGIN_LDFLAGS='-bundle -flat_namespace -undefined suppress'
 
3227
                        PLUGIN_SUFFIX='.impl'
 
3228
                        INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib && ${LN_S} -f $${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib ${DESTDIR}${libdir}/$$i'
 
3229
                        UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.dylib ${DESTDIR}${libdir}/$${i%.dylib}.${LIB_MAJOR}.${LIB_MINOR}.dylib'
 
3230
                        CLEAN_LIB=''
 
3231
                        ;;
 
3232
                solaris*)
 
3233
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
 
3234
$as_echo "Solaris" >&6; }
 
3235
                        LIB_CPPFLAGS='-DPIC'
 
3236
                        LIB_CFLAGS='-fPIC'
 
3237
                        LIB_LDFLAGS='-shared -fPIC -Wl,-soname=${LIB}.${LIB_MAJOR}.${LIB_MINOR}'
 
3238
                        LIB_PREFIX='lib'
 
3239
                        LIB_SUFFIX='.so'
 
3240
                        LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
 
3241
                        PLUGIN_CPPFLAGS='-DPIC'
 
3242
                        PLUGIN_CFLAGS='-fPIC'
 
3243
                        PLUGIN_LDFLAGS='-shared -fPIC'
 
3244
                        PLUGIN_SUFFIX='.so'
 
3245
                        INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR} && rm -f ${DESTDIR}${libdir}/$$i && ${LN_S} $$i.${LIB_MAJOR}.${LIB_MINOR} ${DESTDIR}${libdir}/$$i'
 
3246
                        UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}'
 
3247
                        CLEAN_LIB=''
 
3248
                        ;;
 
3249
                openbsd* | mirbsd*)
 
3250
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD" >&5
 
3251
$as_echo "OpenBSD" >&6; }
 
3252
                        LIB_CPPFLAGS='-DPIC'
 
3253
                        LIB_CFLAGS='-fPIC'
 
3254
                        LIB_LDFLAGS='-shared -fPIC'
 
3255
                        LIB_PREFIX='lib'
 
3256
                        LIB_SUFFIX='.so.${LIB_MAJOR}.${LIB_MINOR}'
 
3257
                        LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
 
3258
                        PLUGIN_CPPFLAGS='-DPIC'
 
3259
                        PLUGIN_CFLAGS='-fPIC'
 
3260
                        PLUGIN_LDFLAGS='-shared -fPIC'
 
3261
                        PLUGIN_SUFFIX='.so'
 
3262
                        INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i'
 
3263
                        UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i'
 
3264
                        CLEAN_LIB=''
 
3265
                        ;;
 
3266
                cygwin* | mingw*)
 
3267
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
 
3268
$as_echo "Win32" >&6; }
 
3269
                        LIB_CPPFLAGS='-DPIC'
 
3270
                        LIB_CFLAGS=''
 
3271
                        LIB_LDFLAGS='-shared -Wl,--out-implib,${LIB}.a'
 
3272
                        LIB_PREFIX='lib'
 
3273
                        LIB_SUFFIX='.dll'
 
3274
                        LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
 
3275
                        PLUGIN_CPPFLAGS=''
 
3276
                        PLUGIN_CFLAGS=''
 
3277
                        PLUGIN_LDFLAGS='-shared'
 
3278
                        PLUGIN_SUFFIX='.dll'
 
3279
                        INSTALL_LIB='${MKDIR_P} ${DESTDIR}${bindir} && ${INSTALL} -m 755 $$i ${DESTDIR}${bindir}/$$i && ${INSTALL} -m 755 $$i.a ${DESTDIR}${libdir}/$$i.a'
 
3280
                        UNINSTALL_LIB='rm -f ${DESTDIR}${bindir}/$$i ${DESTDIR}${libdir}/$$i.a'
 
3281
                        CLEAN_LIB='${LIB}.a'
 
3282
                        ;;
 
3283
                *)
 
3284
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNU" >&5
 
3285
$as_echo "GNU" >&6; }
 
3286
                        LIB_CPPFLAGS='-DPIC'
 
3287
                        LIB_CFLAGS='-fPIC'
 
3288
                        LIB_LDFLAGS='-shared -fPIC -Wl,-soname=${LIB}.${LIB_MAJOR}'
 
3289
                        LIB_PREFIX='lib'
 
3290
                        LIB_SUFFIX='.so'
 
3291
                        LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
 
3292
                        PLUGIN_CPPFLAGS='-DPIC'
 
3293
                        PLUGIN_CFLAGS='-fPIC'
 
3294
                        PLUGIN_LDFLAGS='-shared -fPIC'
 
3295
                        PLUGIN_SUFFIX='.so'
 
3296
                        INSTALL_LIB='${INSTALL} -m 755 $$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0 && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} && ${LN_S} -f $$i.${LIB_MAJOR}.${LIB_MINOR}.0 ${DESTDIR}${libdir}/$$i'
 
3297
                        UNINSTALL_LIB='rm -f ${DESTDIR}${libdir}/$$i ${DESTDIR}${libdir}/$$i.${LIB_MAJOR} ${DESTDIR}${libdir}/$$i.${LIB_MAJOR}.${LIB_MINOR}.0'
 
3298
                        CLEAN_LIB=''
 
3299
                        ;;
 
3300
        esac
 
3301
 
 
3302
 
 
3303
 
 
3304
 
 
3305
 
 
3306
 
 
3307
 
 
3308
 
 
3309
 
 
3310
 
 
3311
 
 
3312
 
 
3313
 
 
3314
 
 
3315
 
 
3316
LIBS="$LIBS $DYNAMIC_LD_LIBS"
 
3317
 
 
3318
# Checks for header files.
 
3319
ac_header_dirent=no
 
3320
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
3321
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
 
3323
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
 
3324
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
 
3325
  $as_echo_n "(cached) " >&6
 
3326
else
 
3327
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3328
/* end confdefs.h.  */
 
3329
#include <sys/types.h>
 
3330
#include <$ac_hdr>
 
3331
 
 
3332
int
 
3333
main ()
 
3334
{
 
3335
if ((DIR *) 0)
 
3336
return 0;
 
3337
  ;
 
3338
  return 0;
 
3339
}
 
3340
_ACEOF
 
3341
if ac_fn_c_try_compile "$LINENO"; then :
 
3342
  eval "$as_ac_Header=yes"
 
3343
else
 
3344
  eval "$as_ac_Header=no"
 
3345
fi
 
3346
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3347
fi
 
3348
eval ac_res=\$$as_ac_Header
 
3349
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
3350
$as_echo "$ac_res" >&6; }
 
3351
eval as_val=\$$as_ac_Header
 
3352
   if test "x$as_val" = x""yes; then :
 
3353
  cat >>confdefs.h <<_ACEOF
 
3354
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
3355
_ACEOF
 
3356
 
 
3357
ac_header_dirent=$ac_hdr; break
 
3358
fi
 
3359
 
 
3360
done
 
3361
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
3362
if test $ac_header_dirent = dirent.h; then
 
3363
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
3364
$as_echo_n "checking for library containing opendir... " >&6; }
 
3365
if test "${ac_cv_search_opendir+set}" = set; then :
 
3366
  $as_echo_n "(cached) " >&6
 
3367
else
 
3368
  ac_func_search_save_LIBS=$LIBS
 
3369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3370
/* end confdefs.h.  */
 
3371
 
 
3372
/* Override any GCC internal prototype to avoid an error.
 
3373
   Use char because int might match the return type of a GCC
 
3374
   builtin and then its argument prototype would still apply.  */
 
3375
#ifdef __cplusplus
 
3376
extern "C"
 
3377
#endif
 
3378
char opendir ();
 
3379
int
 
3380
main ()
 
3381
{
 
3382
return opendir ();
 
3383
  ;
 
3384
  return 0;
 
3385
}
 
3386
_ACEOF
 
3387
for ac_lib in '' dir; do
 
3388
  if test -z "$ac_lib"; then
 
3389
    ac_res="none required"
 
3390
  else
 
3391
    ac_res=-l$ac_lib
 
3392
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3393
  fi
 
3394
  if ac_fn_c_try_link "$LINENO"; then :
 
3395
  ac_cv_search_opendir=$ac_res
 
3396
fi
 
3397
rm -f core conftest.err conftest.$ac_objext \
 
3398
    conftest$ac_exeext
 
3399
  if test "${ac_cv_search_opendir+set}" = set; then :
 
3400
  break
 
3401
fi
 
3402
done
 
3403
if test "${ac_cv_search_opendir+set}" = set; then :
 
3404
 
 
3405
else
 
3406
  ac_cv_search_opendir=no
 
3407
fi
 
3408
rm conftest.$ac_ext
 
3409
LIBS=$ac_func_search_save_LIBS
 
3410
fi
 
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
3412
$as_echo "$ac_cv_search_opendir" >&6; }
 
3413
ac_res=$ac_cv_search_opendir
 
3414
if test "$ac_res" != no; then :
 
3415
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3416
 
 
3417
fi
 
3418
 
 
3419
else
 
3420
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
 
3421
$as_echo_n "checking for library containing opendir... " >&6; }
 
3422
if test "${ac_cv_search_opendir+set}" = set; then :
 
3423
  $as_echo_n "(cached) " >&6
 
3424
else
 
3425
  ac_func_search_save_LIBS=$LIBS
 
3426
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3427
/* end confdefs.h.  */
 
3428
 
 
3429
/* Override any GCC internal prototype to avoid an error.
 
3430
   Use char because int might match the return type of a GCC
 
3431
   builtin and then its argument prototype would still apply.  */
 
3432
#ifdef __cplusplus
 
3433
extern "C"
 
3434
#endif
 
3435
char opendir ();
 
3436
int
 
3437
main ()
 
3438
{
 
3439
return opendir ();
 
3440
  ;
 
3441
  return 0;
 
3442
}
 
3443
_ACEOF
 
3444
for ac_lib in '' x; do
 
3445
  if test -z "$ac_lib"; then
 
3446
    ac_res="none required"
 
3447
  else
 
3448
    ac_res=-l$ac_lib
 
3449
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
3450
  fi
 
3451
  if ac_fn_c_try_link "$LINENO"; then :
 
3452
  ac_cv_search_opendir=$ac_res
 
3453
fi
 
3454
rm -f core conftest.err conftest.$ac_objext \
 
3455
    conftest$ac_exeext
 
3456
  if test "${ac_cv_search_opendir+set}" = set; then :
 
3457
  break
 
3458
fi
 
3459
done
 
3460
if test "${ac_cv_search_opendir+set}" = set; then :
 
3461
 
 
3462
else
 
3463
  ac_cv_search_opendir=no
 
3464
fi
 
3465
rm conftest.$ac_ext
 
3466
LIBS=$ac_func_search_save_LIBS
 
3467
fi
 
3468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
 
3469
$as_echo "$ac_cv_search_opendir" >&6; }
 
3470
ac_res=$ac_cv_search_opendir
 
3471
if test "$ac_res" != no; then :
 
3472
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
3473
 
 
3474
fi
 
3475
 
 
3476
fi
 
3477
 
 
3478
ac_ext=c
 
3479
ac_cpp='$CPP $CPPFLAGS'
 
3480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
3484
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
3485
# On Suns, sometimes $CPP names a directory.
 
3486
if test -n "$CPP" && test -d "$CPP"; then
 
3487
  CPP=
 
3488
fi
 
3489
if test -z "$CPP"; then
 
3490
  if test "${ac_cv_prog_CPP+set}" = set; then :
 
3491
  $as_echo_n "(cached) " >&6
 
3492
else
 
3493
      # Double quotes because CPP needs to be expanded
 
3494
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3495
    do
 
3496
      ac_preproc_ok=false
 
3497
for ac_c_preproc_warn_flag in '' yes
 
3498
do
 
3499
  # Use a header file that comes with gcc, so configuring glibc
 
3500
  # with a fresh cross-compiler works.
 
3501
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3502
  # <limits.h> exists even on freestanding compilers.
 
3503
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3504
  # not just through cpp. "Syntax error" is here to catch this case.
 
3505
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3506
/* end confdefs.h.  */
 
3507
#ifdef __STDC__
 
3508
# include <limits.h>
 
3509
#else
 
3510
# include <assert.h>
 
3511
#endif
 
3512
                     Syntax error
 
3513
_ACEOF
 
3514
if ac_fn_c_try_cpp "$LINENO"; then :
 
3515
 
 
3516
else
 
3517
  # Broken: fails on valid input.
 
3518
continue
 
3519
fi
 
3520
rm -f conftest.err conftest.$ac_ext
 
3521
 
 
3522
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3523
  # can be detected and how.
 
3524
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3525
/* end confdefs.h.  */
 
3526
#include <ac_nonexistent.h>
 
3527
_ACEOF
 
3528
if ac_fn_c_try_cpp "$LINENO"; then :
 
3529
  # Broken: success on invalid input.
 
3530
continue
 
3531
else
 
3532
  # Passes both tests.
 
3533
ac_preproc_ok=:
 
3534
break
 
3535
fi
 
3536
rm -f conftest.err conftest.$ac_ext
 
3537
 
 
3538
done
 
3539
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3540
rm -f conftest.err conftest.$ac_ext
 
3541
if $ac_preproc_ok; then :
 
3542
  break
 
3543
fi
 
3544
 
 
3545
    done
 
3546
    ac_cv_prog_CPP=$CPP
 
3547
 
 
3548
fi
 
3549
  CPP=$ac_cv_prog_CPP
 
3550
else
 
3551
  ac_cv_prog_CPP=$CPP
 
3552
fi
 
3553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
3554
$as_echo "$CPP" >&6; }
 
3555
ac_preproc_ok=false
 
3556
for ac_c_preproc_warn_flag in '' yes
 
3557
do
 
3558
  # Use a header file that comes with gcc, so configuring glibc
 
3559
  # with a fresh cross-compiler works.
 
3560
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3561
  # <limits.h> exists even on freestanding compilers.
 
3562
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3563
  # not just through cpp. "Syntax error" is here to catch this case.
 
3564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3565
/* end confdefs.h.  */
 
3566
#ifdef __STDC__
 
3567
# include <limits.h>
 
3568
#else
 
3569
# include <assert.h>
 
3570
#endif
 
3571
                     Syntax error
 
3572
_ACEOF
 
3573
if ac_fn_c_try_cpp "$LINENO"; then :
 
3574
 
 
3575
else
 
3576
  # Broken: fails on valid input.
 
3577
continue
 
3578
fi
 
3579
rm -f conftest.err conftest.$ac_ext
 
3580
 
 
3581
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3582
  # can be detected and how.
 
3583
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3584
/* end confdefs.h.  */
 
3585
#include <ac_nonexistent.h>
 
3586
_ACEOF
 
3587
if ac_fn_c_try_cpp "$LINENO"; then :
 
3588
  # Broken: success on invalid input.
 
3589
continue
 
3590
else
 
3591
  # Passes both tests.
 
3592
ac_preproc_ok=:
 
3593
break
 
3594
fi
 
3595
rm -f conftest.err conftest.$ac_ext
 
3596
 
 
3597
done
 
3598
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3599
rm -f conftest.err conftest.$ac_ext
 
3600
if $ac_preproc_ok; then :
 
3601
 
 
3602
else
 
3603
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3604
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3605
as_fn_error "C preprocessor \"$CPP\" fails sanity check
 
3606
See \`config.log' for more details." "$LINENO" 5; }
 
3607
fi
 
3608
 
 
3609
ac_ext=c
 
3610
ac_cpp='$CPP $CPPFLAGS'
 
3611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3614
 
 
3615
 
 
3616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
3617
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3618
if test "${ac_cv_path_GREP+set}" = set; then :
 
3619
  $as_echo_n "(cached) " >&6
 
3620
else
 
3621
  if test -z "$GREP"; then
 
3622
  ac_path_GREP_found=false
 
3623
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3624
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3625
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3626
do
 
3627
  IFS=$as_save_IFS
 
3628
  test -z "$as_dir" && as_dir=.
 
3629
    for ac_prog in grep ggrep; do
 
3630
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3631
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3632
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3633
# Check for GNU ac_path_GREP and select it if it is found.
 
3634
  # Check for GNU $ac_path_GREP
 
3635
case `"$ac_path_GREP" --version 2>&1` in
 
3636
*GNU*)
 
3637
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3638
*)
 
3639
  ac_count=0
 
3640
  $as_echo_n 0123456789 >"conftest.in"
 
3641
  while :
 
3642
  do
 
3643
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3644
    mv "conftest.tmp" "conftest.in"
 
3645
    cp "conftest.in" "conftest.nl"
 
3646
    $as_echo 'GREP' >> "conftest.nl"
 
3647
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3648
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3649
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3650
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3651
      # Best one so far, save it but keep looking for a better one
 
3652
      ac_cv_path_GREP="$ac_path_GREP"
 
3653
      ac_path_GREP_max=$ac_count
 
3654
    fi
 
3655
    # 10*(2^10) chars as input seems more than enough
 
3656
    test $ac_count -gt 10 && break
 
3657
  done
 
3658
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3659
esac
 
3660
 
 
3661
      $ac_path_GREP_found && break 3
 
3662
    done
 
3663
  done
 
3664
  done
 
3665
IFS=$as_save_IFS
 
3666
  if test -z "$ac_cv_path_GREP"; then
 
3667
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3668
  fi
 
3669
else
 
3670
  ac_cv_path_GREP=$GREP
 
3671
fi
 
3672
 
 
3673
fi
 
3674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
3675
$as_echo "$ac_cv_path_GREP" >&6; }
 
3676
 GREP="$ac_cv_path_GREP"
 
3677
 
 
3678
 
 
3679
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
3680
$as_echo_n "checking for egrep... " >&6; }
 
3681
if test "${ac_cv_path_EGREP+set}" = set; then :
 
3682
  $as_echo_n "(cached) " >&6
 
3683
else
 
3684
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3685
   then ac_cv_path_EGREP="$GREP -E"
 
3686
   else
 
3687
     if test -z "$EGREP"; then
 
3688
  ac_path_EGREP_found=false
 
3689
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3690
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3691
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3692
do
 
3693
  IFS=$as_save_IFS
 
3694
  test -z "$as_dir" && as_dir=.
 
3695
    for ac_prog in egrep; do
 
3696
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3697
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3698
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3699
# Check for GNU ac_path_EGREP and select it if it is found.
 
3700
  # Check for GNU $ac_path_EGREP
 
3701
case `"$ac_path_EGREP" --version 2>&1` in
 
3702
*GNU*)
 
3703
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3704
*)
 
3705
  ac_count=0
 
3706
  $as_echo_n 0123456789 >"conftest.in"
 
3707
  while :
 
3708
  do
 
3709
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3710
    mv "conftest.tmp" "conftest.in"
 
3711
    cp "conftest.in" "conftest.nl"
 
3712
    $as_echo 'EGREP' >> "conftest.nl"
 
3713
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3714
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3715
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
3716
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3717
      # Best one so far, save it but keep looking for a better one
 
3718
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3719
      ac_path_EGREP_max=$ac_count
 
3720
    fi
 
3721
    # 10*(2^10) chars as input seems more than enough
 
3722
    test $ac_count -gt 10 && break
 
3723
  done
 
3724
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3725
esac
 
3726
 
 
3727
      $ac_path_EGREP_found && break 3
 
3728
    done
 
3729
  done
 
3730
  done
 
3731
IFS=$as_save_IFS
 
3732
  if test -z "$ac_cv_path_EGREP"; then
 
3733
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
3734
  fi
 
3735
else
 
3736
  ac_cv_path_EGREP=$EGREP
 
3737
fi
 
3738
 
 
3739
   fi
 
3740
fi
 
3741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
3742
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3743
 EGREP="$ac_cv_path_EGREP"
 
3744
 
 
3745
 
 
3746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
3747
$as_echo_n "checking for ANSI C header files... " >&6; }
 
3748
if test "${ac_cv_header_stdc+set}" = set; then :
 
3749
  $as_echo_n "(cached) " >&6
 
3750
else
 
3751
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3752
/* end confdefs.h.  */
 
3753
#include <stdlib.h>
 
3754
#include <stdarg.h>
 
3755
#include <string.h>
 
3756
#include <float.h>
 
3757
 
 
3758
int
 
3759
main ()
 
3760
{
 
3761
 
 
3762
  ;
 
3763
  return 0;
 
3764
}
 
3765
_ACEOF
 
3766
if ac_fn_c_try_compile "$LINENO"; then :
 
3767
  ac_cv_header_stdc=yes
 
3768
else
 
3769
  ac_cv_header_stdc=no
 
3770
fi
 
3771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3772
 
 
3773
if test $ac_cv_header_stdc = yes; then
 
3774
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3775
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3776
/* end confdefs.h.  */
 
3777
#include <string.h>
 
3778
 
 
3779
_ACEOF
 
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3781
  $EGREP "memchr" >/dev/null 2>&1; then :
 
3782
 
 
3783
else
 
3784
  ac_cv_header_stdc=no
 
3785
fi
 
3786
rm -f conftest*
 
3787
 
 
3788
fi
 
3789
 
 
3790
if test $ac_cv_header_stdc = yes; then
 
3791
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3792
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3793
/* end confdefs.h.  */
 
3794
#include <stdlib.h>
 
3795
 
 
3796
_ACEOF
 
3797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3798
  $EGREP "free" >/dev/null 2>&1; then :
 
3799
 
 
3800
else
 
3801
  ac_cv_header_stdc=no
 
3802
fi
 
3803
rm -f conftest*
 
3804
 
 
3805
fi
 
3806
 
 
3807
if test $ac_cv_header_stdc = yes; then
 
3808
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3809
  if test "$cross_compiling" = yes; then :
 
3810
  :
 
3811
else
 
3812
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3813
/* end confdefs.h.  */
 
3814
#include <ctype.h>
 
3815
#include <stdlib.h>
 
3816
#if ((' ' & 0x0FF) == 0x020)
 
3817
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3818
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3819
#else
 
3820
# define ISLOWER(c) \
 
3821
                   (('a' <= (c) && (c) <= 'i') \
 
3822
                     || ('j' <= (c) && (c) <= 'r') \
 
3823
                     || ('s' <= (c) && (c) <= 'z'))
 
3824
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3825
#endif
 
3826
 
 
3827
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3828
int
 
3829
main ()
 
3830
{
 
3831
  int i;
 
3832
  for (i = 0; i < 256; i++)
 
3833
    if (XOR (islower (i), ISLOWER (i))
 
3834
        || toupper (i) != TOUPPER (i))
 
3835
      return 2;
 
3836
  return 0;
 
3837
}
 
3838
_ACEOF
 
3839
if ac_fn_c_try_run "$LINENO"; then :
 
3840
 
 
3841
else
 
3842
  ac_cv_header_stdc=no
 
3843
fi
 
3844
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
3845
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
3846
fi
 
3847
 
 
3848
fi
 
3849
fi
 
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
3851
$as_echo "$ac_cv_header_stdc" >&6; }
 
3852
if test $ac_cv_header_stdc = yes; then
 
3853
 
 
3854
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
 
3855
 
 
3856
fi
 
3857
 
 
3858
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3859
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3860
                  inttypes.h stdint.h unistd.h
 
3861
do :
 
3862
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3863
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
3864
"
 
3865
eval as_val=\$$as_ac_Header
 
3866
   if test "x$as_val" = x""yes; then :
 
3867
  cat >>confdefs.h <<_ACEOF
 
3868
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3869
_ACEOF
 
3870
 
 
3871
fi
 
3872
 
 
3873
done
 
3874
 
 
3875
 
 
3876
for ac_header in limits.h stdlib.h string.h unistd.h locale.h stdarg.h sys/types.h sys/stat.h errno.h
 
3877
do :
 
3878
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3879
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
 
3880
eval as_val=\$$as_ac_Header
 
3881
   if test "x$as_val" = x""yes; then :
 
3882
  cat >>confdefs.h <<_ACEOF
 
3883
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3884
_ACEOF
 
3885
 
 
3886
fi
 
3887
 
 
3888
done
 
3889
 
 
3890
 
 
3891
# Checks for typedefs, structures, and compiler characteristics.
 
3892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
 
3893
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
3894
if test "${ac_cv_c_const+set}" = set; then :
 
3895
  $as_echo_n "(cached) " >&6
 
3896
else
 
3897
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3898
/* end confdefs.h.  */
 
3899
 
 
3900
int
 
3901
main ()
 
3902
{
 
3903
/* FIXME: Include the comments suggested by Paul. */
 
3904
#ifndef __cplusplus
 
3905
  /* Ultrix mips cc rejects this.  */
 
3906
  typedef int charset[2];
 
3907
  const charset cs;
 
3908
  /* SunOS 4.1.1 cc rejects this.  */
 
3909
  char const *const *pcpcc;
 
3910
  char **ppc;
 
3911
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
3912
  struct point {int x, y;};
 
3913
  static struct point const zero = {0,0};
 
3914
  /* AIX XL C 1.02.0.0 rejects this.
 
3915
     It does not let you subtract one const X* pointer from another in
 
3916
     an arm of an if-expression whose if-part is not a constant
 
3917
     expression */
 
3918
  const char *g = "string";
 
3919
  pcpcc = &g + (g ? g-g : 0);
 
3920
  /* HPUX 7.0 cc rejects these. */
 
3921
  ++pcpcc;
 
3922
  ppc = (char**) pcpcc;
 
3923
  pcpcc = (char const *const *) ppc;
 
3924
  { /* SCO 3.2v4 cc rejects this.  */
 
3925
    char *t;
 
3926
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
3927
 
 
3928
    *t++ = 0;
 
3929
    if (s) return 0;
 
3930
  }
 
3931
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
3932
    int x[] = {25, 17};
 
3933
    const int *foo = &x[0];
 
3934
    ++foo;
 
3935
  }
 
3936
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
3937
    typedef const int *iptr;
 
3938
    iptr p = 0;
 
3939
    ++p;
 
3940
  }
 
3941
  { /* AIX XL C 1.02.0.0 rejects this saying
 
3942
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
3943
    struct s { int j; const int *ap[3]; };
 
3944
    struct s *b; b->j = 5;
 
3945
  }
 
3946
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
3947
    const int foo = 10;
 
3948
    if (!foo) return 0;
 
3949
  }
 
3950
  return !cs[0] && !zero.x;
 
3951
#endif
 
3952
 
 
3953
  ;
 
3954
  return 0;
 
3955
}
 
3956
_ACEOF
 
3957
if ac_fn_c_try_compile "$LINENO"; then :
 
3958
  ac_cv_c_const=yes
 
3959
else
 
3960
  ac_cv_c_const=no
 
3961
fi
 
3962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3963
fi
 
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
 
3965
$as_echo "$ac_cv_c_const" >&6; }
 
3966
if test $ac_cv_c_const = no; then
 
3967
 
 
3968
$as_echo "#define const /**/" >>confdefs.h
 
3969
 
 
3970
fi
 
3971
 
 
3972
 
 
3973
# Checks for library functions.
 
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
 
3975
$as_echo_n "checking whether closedir returns void... " >&6; }
 
3976
if test "${ac_cv_func_closedir_void+set}" = set; then :
 
3977
  $as_echo_n "(cached) " >&6
 
3978
else
 
3979
  if test "$cross_compiling" = yes; then :
 
3980
  ac_cv_func_closedir_void=yes
 
3981
else
 
3982
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3983
/* end confdefs.h.  */
 
3984
$ac_includes_default
 
3985
#include <$ac_header_dirent>
 
3986
#ifndef __cplusplus
 
3987
int closedir ();
 
3988
#endif
 
3989
 
 
3990
int
 
3991
main ()
 
3992
{
 
3993
return closedir (opendir (".")) != 0;
 
3994
  ;
 
3995
  return 0;
 
3996
}
 
3997
_ACEOF
 
3998
if ac_fn_c_try_run "$LINENO"; then :
 
3999
  ac_cv_func_closedir_void=no
 
4000
else
 
4001
  ac_cv_func_closedir_void=yes
 
4002
fi
 
4003
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4004
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4005
fi
 
4006
 
 
4007
fi
 
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
 
4009
$as_echo "$ac_cv_func_closedir_void" >&6; }
 
4010
if test $ac_cv_func_closedir_void = yes; then
 
4011
 
 
4012
$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
 
4013
 
 
4014
fi
 
4015
 
 
4016
for ac_func in memset setlocale strcasecmp strchr strdup strerror strtol strtod
 
4017
do :
 
4018
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4019
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
4020
eval as_val=\$$as_ac_var
 
4021
   if test "x$as_val" = x""yes; then :
 
4022
  cat >>confdefs.h <<_ACEOF
 
4023
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4024
_ACEOF
 
4025
 
 
4026
fi
 
4027
done
 
4028
 
 
4029
for ac_func in printf sprintf snprintf vsnprintf gettimeofday strndup strlcpy strlcat
 
4030
do :
 
4031
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4032
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
 
4033
eval as_val=\$$as_ac_var
 
4034
   if test "x$as_val" = x""yes; then :
 
4035
  cat >>confdefs.h <<_ACEOF
 
4036
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4037
_ACEOF
 
4038
 
 
4039
fi
 
4040
done
 
4041
 
 
4042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
4043
$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
 
4044
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
 
4045
  $as_echo_n "(cached) " >&6
 
4046
else
 
4047
  rm -f conftest.sym conftest.file
 
4048
echo >conftest.file
 
4049
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
4050
  if test "$cross_compiling" = yes; then :
 
4051
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
4052
else
 
4053
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4054
/* end confdefs.h.  */
 
4055
$ac_includes_default
 
4056
int
 
4057
main ()
 
4058
{
 
4059
struct stat sbuf;
 
4060
     /* Linux will dereference the symlink and fail.
 
4061
        That is better in the sense that it means we will not
 
4062
        have to compile and use the lstat wrapper.  */
 
4063
     return lstat ("conftest.sym/", &sbuf) == 0;
 
4064
  ;
 
4065
  return 0;
 
4066
}
 
4067
_ACEOF
 
4068
if ac_fn_c_try_run "$LINENO"; then :
 
4069
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
4070
else
 
4071
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
4072
fi
 
4073
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4074
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4075
fi
 
4076
 
 
4077
else
 
4078
  # If the `ln -s' command failed, then we probably don't even
 
4079
  # have an lstat function.
 
4080
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
4081
fi
 
4082
rm -f conftest.sym conftest.file
 
4083
 
 
4084
fi
 
4085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
4086
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
4087
 
 
4088
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
4089
 
 
4090
cat >>confdefs.h <<_ACEOF
 
4091
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
4092
_ACEOF
 
4093
 
 
4094
 
 
4095
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
4096
  case " $LIBOBJS " in
 
4097
  *" lstat.$ac_objext "* ) ;;
 
4098
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
4099
 ;;
 
4100
esac
 
4101
 
 
4102
fi
 
4103
 
 
4104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
 
4105
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
 
4106
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
 
4107
  $as_echo_n "(cached) " >&6
 
4108
else
 
4109
  if test "$cross_compiling" = yes; then :
 
4110
  ac_cv_func_stat_empty_string_bug=yes
 
4111
else
 
4112
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
4113
/* end confdefs.h.  */
 
4114
$ac_includes_default
 
4115
int
 
4116
main ()
 
4117
{
 
4118
struct stat sbuf;
 
4119
  return stat ("", &sbuf) == 0;
 
4120
  ;
 
4121
  return 0;
 
4122
}
 
4123
_ACEOF
 
4124
if ac_fn_c_try_run "$LINENO"; then :
 
4125
  ac_cv_func_stat_empty_string_bug=no
 
4126
else
 
4127
  ac_cv_func_stat_empty_string_bug=yes
 
4128
fi
 
4129
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
4130
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
4131
fi
 
4132
 
 
4133
fi
 
4134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
 
4135
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
 
4136
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
4137
  case " $LIBOBJS " in
 
4138
  *" stat.$ac_objext "* ) ;;
 
4139
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
4140
 ;;
 
4141
esac
 
4142
 
 
4143
 
 
4144
cat >>confdefs.h <<_ACEOF
 
4145
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
4146
_ACEOF
 
4147
 
 
4148
fi
 
4149
 
 
4150
 
 
4151
 
 
4152
  succeeded=no
 
4153
 
 
4154
  if test -z "$PKG_CONFIG"; then
 
4155
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
4156
set dummy pkg-config; ac_word=$2
 
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4158
$as_echo_n "checking for $ac_word... " >&6; }
 
4159
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
 
4160
  $as_echo_n "(cached) " >&6
 
4161
else
 
4162
  case $PKG_CONFIG in
 
4163
  [\\/]* | ?:[\\/]*)
 
4164
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
4165
  ;;
 
4166
  *)
 
4167
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4168
for as_dir in $PATH
 
4169
do
 
4170
  IFS=$as_save_IFS
 
4171
  test -z "$as_dir" && as_dir=.
 
4172
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4173
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4174
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
4175
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4176
    break 2
 
4177
  fi
 
4178
done
 
4179
  done
 
4180
IFS=$as_save_IFS
 
4181
 
 
4182
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
4183
  ;;
 
4184
esac
 
4185
fi
 
4186
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
4187
if test -n "$PKG_CONFIG"; then
 
4188
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 
4189
$as_echo "$PKG_CONFIG" >&6; }
 
4190
else
 
4191
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4192
$as_echo "no" >&6; }
 
4193
fi
 
4194
 
 
4195
 
 
4196
  fi
 
4197
 
 
4198
  if test "$PKG_CONFIG" = "no" ; then
 
4199
     echo "*** The pkg-config script could not be found. Make sure it is"
 
4200
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
4201
     echo "*** to the full path to pkg-config."
 
4202
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
4203
  else
 
4204
     PKG_CONFIG_MIN_VERSION=0.9.0
 
4205
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
4206
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmowgli >= 0.7.0" >&5
 
4207
$as_echo_n "checking for libmowgli >= 0.7.0... " >&6; }
 
4208
 
 
4209
        if $PKG_CONFIG --exists "libmowgli >= 0.7.0" ; then
 
4210
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4211
$as_echo "yes" >&6; }
 
4212
            succeeded=yes
 
4213
 
 
4214
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOWGLI_CFLAGS" >&5
 
4215
$as_echo_n "checking MOWGLI_CFLAGS... " >&6; }
 
4216
            MOWGLI_CFLAGS=`$PKG_CONFIG --cflags "libmowgli >= 0.7.0"`
 
4217
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOWGLI_CFLAGS" >&5
 
4218
$as_echo "$MOWGLI_CFLAGS" >&6; }
 
4219
 
 
4220
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOWGLI_LIBS" >&5
 
4221
$as_echo_n "checking MOWGLI_LIBS... " >&6; }
 
4222
            MOWGLI_LIBS=`$PKG_CONFIG --libs "libmowgli >= 0.7.0"`
 
4223
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOWGLI_LIBS" >&5
 
4224
$as_echo "$MOWGLI_LIBS" >&6; }
 
4225
        else
 
4226
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4227
$as_echo "no" >&6; }
 
4228
            MOWGLI_CFLAGS=""
 
4229
            MOWGLI_LIBS=""
 
4230
            ## If we have a custom action on failure, don't print errors, but
 
4231
            ## do set a variable so people can do so.
 
4232
            MOWGLI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmowgli >= 0.7.0"`
 
4233
 
 
4234
        fi
 
4235
 
 
4236
 
 
4237
 
 
4238
     else
 
4239
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
4240
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
4241
     fi
 
4242
  fi
 
4243
 
 
4244
  if test $succeeded = yes; then
 
4245
     :
 
4246
  else
 
4247
     as_fn_error "Install Mowgli from http://atheme.org/projects/mowgli." "$LINENO" 5
 
4248
  fi
 
4249
 
 
4250
 
 
4251
# Check for optional features.
 
4252
EXAMPLES_BUILD=""
 
4253
# Check whether --enable-examples was given.
 
4254
if test "${enable_examples+set}" = set; then :
 
4255
  enableval=$enable_examples; enable_examples=$enableval
 
4256
else
 
4257
  enable_examples="no"
 
4258
 
 
4259
fi
 
4260
 
 
4261
 
 
4262
if test "x$enable_examples" = "xyes"; then
 
4263
        EXAMPLES_BUILD="examples"
 
4264
fi
 
4265
 
 
4266
 
 
4267
 
 
4268
 
 
4269
        ${as_echo:="echo"} "${as_me:="configure"}: touching .deps files"
 
4270
        for i in $(find . -name Makefile); do
 
4271
                DEPSFILE="$(dirname $i)/.deps"
 
4272
                test -f "$DEPSFILE" && rm "$DEPSFILE"
 
4273
                touch -t 0001010000 "$DEPSFILE"
 
4274
        done
 
4275
 
 
4276
 
 
4277
ac_config_files="$ac_config_files buildsys.mk extra.mk libguess.pc"
 
4278
 
 
4279
cat >confcache <<\_ACEOF
 
4280
# This file is a shell script that caches the results of configure
 
4281
# tests run on this system so they can be shared between configure
 
4282
# scripts and configure runs, see configure's option --config-cache.
 
4283
# It is not useful on other systems.  If it contains results you don't
 
4284
# want to keep, you may remove or edit it.
 
4285
#
 
4286
# config.status only pays attention to the cache file if you give it
 
4287
# the --recheck option to rerun configure.
 
4288
#
 
4289
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
4290
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
4291
# following values.
 
4292
 
 
4293
_ACEOF
 
4294
 
 
4295
# The following way of writing the cache mishandles newlines in values,
 
4296
# but we know of no workaround that is simple, portable, and efficient.
 
4297
# So, we kill variables containing newlines.
 
4298
# Ultrix sh set writes to stderr and can't be redirected directly,
 
4299
# and sets the high bit in the cache file unless we assign to the vars.
 
4300
(
 
4301
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
4302
    eval ac_val=\$$ac_var
 
4303
    case $ac_val in #(
 
4304
    *${as_nl}*)
 
4305
      case $ac_var in #(
 
4306
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
4307
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
4308
      esac
 
4309
      case $ac_var in #(
 
4310
      _ | IFS | as_nl) ;; #(
 
4311
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
4312
      *) { eval $ac_var=; unset $ac_var;} ;;
 
4313
      esac ;;
 
4314
    esac
 
4315
  done
 
4316
 
 
4317
  (set) 2>&1 |
 
4318
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
4319
    *${as_nl}ac_space=\ *)
 
4320
      # `set' does not quote correctly, so add quotes: double-quote
 
4321
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
4322
      sed -n \
 
4323
        "s/'/'\\\\''/g;
 
4324
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
4325
      ;; #(
 
4326
    *)
 
4327
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4328
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
4329
      ;;
 
4330
    esac |
 
4331
    sort
 
4332
) |
 
4333
  sed '
 
4334
     /^ac_cv_env_/b end
 
4335
     t clear
 
4336
     :clear
 
4337
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
4338
     t end
 
4339
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
4340
     :end' >>confcache
 
4341
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
4342
  if test -w "$cache_file"; then
 
4343
    test "x$cache_file" != "x/dev/null" &&
 
4344
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
4345
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
4346
    cat confcache >$cache_file
 
4347
  else
 
4348
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
4349
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
4350
  fi
 
4351
fi
 
4352
rm -f confcache
 
4353
 
 
4354
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
4355
# Let make expand exec_prefix.
 
4356
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
4357
 
 
4358
DEFS=-DHAVE_CONFIG_H
 
4359
 
 
4360
ac_libobjs=
 
4361
ac_ltlibobjs=
 
4362
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
4363
  # 1. Remove the extension, and $U if already installed.
 
4364
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
4365
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
4366
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
4367
  #    will be set to the directory where LIBOBJS objects are built.
 
4368
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
4369
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
4370
done
 
4371
LIBOBJS=$ac_libobjs
 
4372
 
 
4373
LTLIBOBJS=$ac_ltlibobjs
 
4374
 
 
4375
 
 
4376
 
 
4377
: ${CONFIG_STATUS=./config.status}
 
4378
ac_write_fail=0
 
4379
ac_clean_files_save=$ac_clean_files
 
4380
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
4382
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
4383
as_write_fail=0
 
4384
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
4385
#! $SHELL
 
4386
# Generated by $as_me.
 
4387
# Run this file to recreate the current configuration.
 
4388
# Compiler output produced by configure, useful for debugging
 
4389
# configure, is in config.log if it exists.
 
4390
 
 
4391
debug=false
 
4392
ac_cs_recheck=false
 
4393
ac_cs_silent=false
 
4394
 
 
4395
SHELL=\${CONFIG_SHELL-$SHELL}
 
4396
export SHELL
 
4397
_ASEOF
 
4398
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
4399
## -------------------- ##
 
4400
## M4sh Initialization. ##
 
4401
## -------------------- ##
 
4402
 
 
4403
# Be more Bourne compatible
 
4404
DUALCASE=1; export DUALCASE # for MKS sh
 
4405
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
4406
  emulate sh
 
4407
  NULLCMD=:
 
4408
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
4409
  # is contrary to our usage.  Disable this feature.
 
4410
  alias -g '${1+"$@"}'='"$@"'
 
4411
  setopt NO_GLOB_SUBST
 
4412
else
 
4413
  case `(set -o) 2>/dev/null` in #(
 
4414
  *posix*) :
 
4415
    set -o posix ;; #(
 
4416
  *) :
 
4417
     ;;
 
4418
esac
 
4419
fi
 
4420
 
 
4421
 
 
4422
as_nl='
 
4423
'
 
4424
export as_nl
 
4425
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
4426
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
4427
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
4428
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
4429
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
4430
# but without wasting forks for bash or zsh.
 
4431
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
4432
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
4433
  as_echo='print -r --'
 
4434
  as_echo_n='print -rn --'
 
4435
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
4436
  as_echo='printf %s\n'
 
4437
  as_echo_n='printf %s'
 
4438
else
 
4439
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
4440
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
4441
    as_echo_n='/usr/ucb/echo -n'
 
4442
  else
 
4443
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
4444
    as_echo_n_body='eval
 
4445
      arg=$1;
 
4446
      case $arg in #(
 
4447
      *"$as_nl"*)
 
4448
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
4449
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
4450
      esac;
 
4451
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
4452
    '
 
4453
    export as_echo_n_body
 
4454
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
4455
  fi
 
4456
  export as_echo_body
 
4457
  as_echo='sh -c $as_echo_body as_echo'
 
4458
fi
 
4459
 
 
4460
# The user is always right.
 
4461
if test "${PATH_SEPARATOR+set}" != set; then
 
4462
  PATH_SEPARATOR=:
 
4463
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
4464
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
4465
      PATH_SEPARATOR=';'
 
4466
  }
 
4467
fi
 
4468
 
 
4469
 
 
4470
# IFS
 
4471
# We need space, tab and new line, in precisely that order.  Quoting is
 
4472
# there to prevent editors from complaining about space-tab.
 
4473
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
4474
# splitting by setting IFS to empty value.)
 
4475
IFS=" ""        $as_nl"
 
4476
 
 
4477
# Find who we are.  Look in the path if we contain no directory separator.
 
4478
case $0 in #((
 
4479
  *[\\/]* ) as_myself=$0 ;;
 
4480
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4481
for as_dir in $PATH
 
4482
do
 
4483
  IFS=$as_save_IFS
 
4484
  test -z "$as_dir" && as_dir=.
 
4485
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
4486
  done
 
4487
IFS=$as_save_IFS
 
4488
 
 
4489
     ;;
 
4490
esac
 
4491
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
4492
# in which case we are not to be found in the path.
 
4493
if test "x$as_myself" = x; then
 
4494
  as_myself=$0
 
4495
fi
 
4496
if test ! -f "$as_myself"; then
 
4497
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
4498
  exit 1
 
4499
fi
 
4500
 
 
4501
# Unset variables that we do not need and which cause bugs (e.g. in
 
4502
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
4503
# suppresses any "Segmentation fault" message there.  '((' could
 
4504
# trigger a bug in pdksh 5.2.14.
 
4505
for as_var in BASH_ENV ENV MAIL MAILPATH
 
4506
do eval test x\${$as_var+set} = xset \
 
4507
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
4508
done
 
4509
PS1='$ '
 
4510
PS2='> '
 
4511
PS4='+ '
 
4512
 
 
4513
# NLS nuisances.
 
4514
LC_ALL=C
 
4515
export LC_ALL
 
4516
LANGUAGE=C
 
4517
export LANGUAGE
 
4518
 
 
4519
# CDPATH.
 
4520
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
4521
 
 
4522
 
 
4523
# as_fn_error ERROR [LINENO LOG_FD]
 
4524
# ---------------------------------
 
4525
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
4526
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
4527
# script with status $?, using 1 if that was 0.
 
4528
as_fn_error ()
 
4529
{
 
4530
  as_status=$?; test $as_status -eq 0 && as_status=1
 
4531
  if test "$3"; then
 
4532
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
4533
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
 
4534
  fi
 
4535
  $as_echo "$as_me: error: $1" >&2
 
4536
  as_fn_exit $as_status
 
4537
} # as_fn_error
 
4538
 
 
4539
 
 
4540
# as_fn_set_status STATUS
 
4541
# -----------------------
 
4542
# Set $? to STATUS, without forking.
 
4543
as_fn_set_status ()
 
4544
{
 
4545
  return $1
 
4546
} # as_fn_set_status
 
4547
 
 
4548
# as_fn_exit STATUS
 
4549
# -----------------
 
4550
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
4551
as_fn_exit ()
 
4552
{
 
4553
  set +e
 
4554
  as_fn_set_status $1
 
4555
  exit $1
 
4556
} # as_fn_exit
 
4557
 
 
4558
# as_fn_unset VAR
 
4559
# ---------------
 
4560
# Portably unset VAR.
 
4561
as_fn_unset ()
 
4562
{
 
4563
  { eval $1=; unset $1;}
 
4564
}
 
4565
as_unset=as_fn_unset
 
4566
# as_fn_append VAR VALUE
 
4567
# ----------------------
 
4568
# Append the text in VALUE to the end of the definition contained in VAR. Take
 
4569
# advantage of any shell optimizations that allow amortized linear growth over
 
4570
# repeated appends, instead of the typical quadratic growth present in naive
 
4571
# implementations.
 
4572
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
4573
  eval 'as_fn_append ()
 
4574
  {
 
4575
    eval $1+=\$2
 
4576
  }'
 
4577
else
 
4578
  as_fn_append ()
 
4579
  {
 
4580
    eval $1=\$$1\$2
 
4581
  }
 
4582
fi # as_fn_append
 
4583
 
 
4584
# as_fn_arith ARG...
 
4585
# ------------------
 
4586
# Perform arithmetic evaluation on the ARGs, and store the result in the
 
4587
# global $as_val. Take advantage of shells that can avoid forks. The arguments
 
4588
# must be portable across $(()) and expr.
 
4589
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
4590
  eval 'as_fn_arith ()
 
4591
  {
 
4592
    as_val=$(( $* ))
 
4593
  }'
 
4594
else
 
4595
  as_fn_arith ()
 
4596
  {
 
4597
    as_val=`expr "$@" || test $? -eq 1`
 
4598
  }
 
4599
fi # as_fn_arith
 
4600
 
 
4601
 
 
4602
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
4603
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
4604
  as_expr=expr
 
4605
else
 
4606
  as_expr=false
 
4607
fi
 
4608
 
 
4609
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
4610
  as_basename=basename
 
4611
else
 
4612
  as_basename=false
 
4613
fi
 
4614
 
 
4615
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
4616
  as_dirname=dirname
 
4617
else
 
4618
  as_dirname=false
 
4619
fi
 
4620
 
 
4621
as_me=`$as_basename -- "$0" ||
 
4622
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
4623
         X"$0" : 'X\(//\)$' \| \
 
4624
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
4625
$as_echo X/"$0" |
 
4626
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
4627
            s//\1/
 
4628
            q
 
4629
          }
 
4630
          /^X\/\(\/\/\)$/{
 
4631
            s//\1/
 
4632
            q
 
4633
          }
 
4634
          /^X\/\(\/\).*/{
 
4635
            s//\1/
 
4636
            q
 
4637
          }
 
4638
          s/.*/./; q'`
 
4639
 
 
4640
# Avoid depending upon Character Ranges.
 
4641
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
4642
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
4643
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
4644
as_cr_digits='0123456789'
 
4645
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
4646
 
 
4647
ECHO_C= ECHO_N= ECHO_T=
 
4648
case `echo -n x` in #(((((
 
4649
-n*)
 
4650
  case `echo 'xy\c'` in
 
4651
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
4652
  xy)  ECHO_C='\c';;
 
4653
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
4654
       ECHO_T=' ';;
 
4655
  esac;;
 
4656
*)
 
4657
  ECHO_N='-n';;
 
4658
esac
 
4659
 
 
4660
rm -f conf$$ conf$$.exe conf$$.file
 
4661
if test -d conf$$.dir; then
 
4662
  rm -f conf$$.dir/conf$$.file
 
4663
else
 
4664
  rm -f conf$$.dir
 
4665
  mkdir conf$$.dir 2>/dev/null
 
4666
fi
 
4667
if (echo >conf$$.file) 2>/dev/null; then
 
4668
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
4669
    as_ln_s='ln -s'
 
4670
    # ... but there are two gotchas:
 
4671
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
4672
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
4673
    # In both cases, we have to default to `cp -p'.
 
4674
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
4675
      as_ln_s='cp -p'
 
4676
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
4677
    as_ln_s=ln
 
4678
  else
 
4679
    as_ln_s='cp -p'
 
4680
  fi
 
4681
else
 
4682
  as_ln_s='cp -p'
 
4683
fi
 
4684
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
4685
rmdir conf$$.dir 2>/dev/null
 
4686
 
 
4687
 
 
4688
# as_fn_mkdir_p
 
4689
# -------------
 
4690
# Create "$as_dir" as a directory, including parents if necessary.
 
4691
as_fn_mkdir_p ()
 
4692
{
 
4693
 
 
4694
  case $as_dir in #(
 
4695
  -*) as_dir=./$as_dir;;
 
4696
  esac
 
4697
  test -d "$as_dir" || eval $as_mkdir_p || {
 
4698
    as_dirs=
 
4699
    while :; do
 
4700
      case $as_dir in #(
 
4701
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
4702
      *) as_qdir=$as_dir;;
 
4703
      esac
 
4704
      as_dirs="'$as_qdir' $as_dirs"
 
4705
      as_dir=`$as_dirname -- "$as_dir" ||
 
4706
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
4707
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
4708
         X"$as_dir" : 'X\(//\)$' \| \
 
4709
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
4710
$as_echo X"$as_dir" |
 
4711
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
4712
            s//\1/
 
4713
            q
 
4714
          }
 
4715
          /^X\(\/\/\)[^/].*/{
 
4716
            s//\1/
 
4717
            q
 
4718
          }
 
4719
          /^X\(\/\/\)$/{
 
4720
            s//\1/
 
4721
            q
 
4722
          }
 
4723
          /^X\(\/\).*/{
 
4724
            s//\1/
 
4725
            q
 
4726
          }
 
4727
          s/.*/./; q'`
 
4728
      test -d "$as_dir" && break
 
4729
    done
 
4730
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
4731
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
 
4732
 
 
4733
 
 
4734
} # as_fn_mkdir_p
 
4735
if mkdir -p . 2>/dev/null; then
 
4736
  as_mkdir_p='mkdir -p "$as_dir"'
 
4737
else
 
4738
  test -d ./-p && rmdir ./-p
 
4739
  as_mkdir_p=false
 
4740
fi
 
4741
 
 
4742
if test -x / >/dev/null 2>&1; then
 
4743
  as_test_x='test -x'
 
4744
else
 
4745
  if ls -dL / >/dev/null 2>&1; then
 
4746
    as_ls_L_option=L
 
4747
  else
 
4748
    as_ls_L_option=
 
4749
  fi
 
4750
  as_test_x='
 
4751
    eval sh -c '\''
 
4752
      if test -d "$1"; then
 
4753
        test -d "$1/.";
 
4754
      else
 
4755
        case $1 in #(
 
4756
        -*)set "./$1";;
 
4757
        esac;
 
4758
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
4759
        ???[sx]*):;;*)false;;esac;fi
 
4760
    '\'' sh
 
4761
  '
 
4762
fi
 
4763
as_executable_p=$as_test_x
 
4764
 
 
4765
# Sed expression to map a string onto a valid CPP name.
 
4766
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
4767
 
 
4768
# Sed expression to map a string onto a valid variable name.
 
4769
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
4770
 
 
4771
 
 
4772
exec 6>&1
 
4773
## ----------------------------------- ##
 
4774
## Main body of $CONFIG_STATUS script. ##
 
4775
## ----------------------------------- ##
 
4776
_ASEOF
 
4777
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
4778
 
 
4779
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
4780
# Save the log message, to keep $0 and so on meaningful, and to
 
4781
# report actual input values of CONFIG_FILES etc. instead of their
 
4782
# values after options handling.
 
4783
ac_log="
 
4784
This file was extended by libguess $as_me 1.0, which was
 
4785
generated by GNU Autoconf 2.64.  Invocation command line was
 
4786
 
 
4787
  CONFIG_FILES    = $CONFIG_FILES
 
4788
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
4789
  CONFIG_LINKS    = $CONFIG_LINKS
 
4790
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
4791
  $ $0 $@
 
4792
 
 
4793
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
4794
"
 
4795
 
 
4796
_ACEOF
 
4797
 
 
4798
case $ac_config_files in *"
 
4799
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
4800
esac
 
4801
 
 
4802
case $ac_config_headers in *"
 
4803
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
4804
esac
 
4805
 
 
4806
 
 
4807
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
4808
# Files that config.status was made for.
 
4809
config_files="$ac_config_files"
 
4810
config_headers="$ac_config_headers"
 
4811
 
 
4812
_ACEOF
 
4813
 
 
4814
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
4815
ac_cs_usage="\
 
4816
\`$as_me' instantiates files and other configuration actions
 
4817
from templates according to the current configuration.  Unless the files
 
4818
and actions are specified as TAGs, all are instantiated by default.
 
4819
 
 
4820
Usage: $0 [OPTION]... [TAG]...
 
4821
 
 
4822
  -h, --help       print this help, then exit
 
4823
  -V, --version    print version number and configuration settings, then exit
 
4824
  -q, --quiet, --silent
 
4825
                   do not print progress messages
 
4826
  -d, --debug      don't remove temporary files
 
4827
      --recheck    update $as_me by reconfiguring in the same conditions
 
4828
      --file=FILE[:TEMPLATE]
 
4829
                   instantiate the configuration file FILE
 
4830
      --header=FILE[:TEMPLATE]
 
4831
                   instantiate the configuration header FILE
 
4832
 
 
4833
Configuration files:
 
4834
$config_files
 
4835
 
 
4836
Configuration headers:
 
4837
$config_headers
 
4838
 
 
4839
Report bugs to <bugs+libguess@atheme.org>."
 
4840
 
 
4841
_ACEOF
 
4842
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
4843
ac_cs_version="\\
 
4844
libguess config.status 1.0
 
4845
configured by $0, generated by GNU Autoconf 2.64,
 
4846
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
4847
 
 
4848
Copyright (C) 2009 Free Software Foundation, Inc.
 
4849
This config.status script is free software; the Free Software Foundation
 
4850
gives unlimited permission to copy, distribute and modify it."
 
4851
 
 
4852
ac_pwd='$ac_pwd'
 
4853
srcdir='$srcdir'
 
4854
INSTALL='$INSTALL'
 
4855
test -n "\$AWK" || AWK=awk
 
4856
_ACEOF
 
4857
 
 
4858
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
4859
# The default lists apply if the user does not specify any file.
 
4860
ac_need_defaults=:
 
4861
while test $# != 0
 
4862
do
 
4863
  case $1 in
 
4864
  --*=*)
 
4865
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
4866
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
4867
    ac_shift=:
 
4868
    ;;
 
4869
  *)
 
4870
    ac_option=$1
 
4871
    ac_optarg=$2
 
4872
    ac_shift=shift
 
4873
    ;;
 
4874
  esac
 
4875
 
 
4876
  case $ac_option in
 
4877
  # Handling of the options.
 
4878
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
4879
    ac_cs_recheck=: ;;
 
4880
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
4881
    $as_echo "$ac_cs_version"; exit ;;
 
4882
  --debug | --debu | --deb | --de | --d | -d )
 
4883
    debug=: ;;
 
4884
  --file | --fil | --fi | --f )
 
4885
    $ac_shift
 
4886
    case $ac_optarg in
 
4887
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
4888
    esac
 
4889
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
4890
    ac_need_defaults=false;;
 
4891
  --header | --heade | --head | --hea )
 
4892
    $ac_shift
 
4893
    case $ac_optarg in
 
4894
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
4895
    esac
 
4896
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
4897
    ac_need_defaults=false;;
 
4898
  --he | --h)
 
4899
    # Conflict between --help and --header
 
4900
    as_fn_error "ambiguous option: \`$1'
 
4901
Try \`$0 --help' for more information.";;
 
4902
  --help | --hel | -h )
 
4903
    $as_echo "$ac_cs_usage"; exit ;;
 
4904
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
4905
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
4906
    ac_cs_silent=: ;;
 
4907
 
 
4908
  # This is an error.
 
4909
  -*) as_fn_error "unrecognized option: \`$1'
 
4910
Try \`$0 --help' for more information." ;;
 
4911
 
 
4912
  *) as_fn_append ac_config_targets " $1"
 
4913
     ac_need_defaults=false ;;
 
4914
 
 
4915
  esac
 
4916
  shift
 
4917
done
 
4918
 
 
4919
ac_configure_extra_args=
 
4920
 
 
4921
if $ac_cs_silent; then
 
4922
  exec 6>/dev/null
 
4923
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
4924
fi
 
4925
 
 
4926
_ACEOF
 
4927
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
4928
if \$ac_cs_recheck; then
 
4929
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
4930
  shift
 
4931
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
4932
  CONFIG_SHELL='$SHELL'
 
4933
  export CONFIG_SHELL
 
4934
  exec "\$@"
 
4935
fi
 
4936
 
 
4937
_ACEOF
 
4938
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
4939
exec 5>>config.log
 
4940
{
 
4941
  echo
 
4942
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4943
## Running $as_me. ##
 
4944
_ASBOX
 
4945
  $as_echo "$ac_log"
 
4946
} >&5
 
4947
 
 
4948
_ACEOF
 
4949
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
4950
_ACEOF
 
4951
 
 
4952
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
4953
 
 
4954
# Handling of arguments.
 
4955
for ac_config_target in $ac_config_targets
 
4956
do
 
4957
  case $ac_config_target in
 
4958
    "src/libguess/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/libguess/autoconf.h" ;;
 
4959
    "buildsys.mk") CONFIG_FILES="$CONFIG_FILES buildsys.mk" ;;
 
4960
    "extra.mk") CONFIG_FILES="$CONFIG_FILES extra.mk" ;;
 
4961
    "libguess.pc") CONFIG_FILES="$CONFIG_FILES libguess.pc" ;;
 
4962
 
 
4963
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
4964
  esac
 
4965
done
 
4966
 
 
4967
 
 
4968
# If the user did not use the arguments to specify the items to instantiate,
 
4969
# then the envvar interface is used.  Set only those that are not.
 
4970
# We use the long form for the default assignment because of an extremely
 
4971
# bizarre bug on SunOS 4.1.3.
 
4972
if $ac_need_defaults; then
 
4973
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
4974
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
4975
fi
 
4976
 
 
4977
# Have a temporary directory for convenience.  Make it in the build tree
 
4978
# simply because there is no reason against having it here, and in addition,
 
4979
# creating and moving files from /tmp can sometimes cause problems.
 
4980
# Hook for its removal unless debugging.
 
4981
# Note that there is a small window in which the directory will not be cleaned:
 
4982
# after its creation but before its name has been assigned to `$tmp'.
 
4983
$debug ||
 
4984
{
 
4985
  tmp=
 
4986
  trap 'exit_status=$?
 
4987
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
4988
' 0
 
4989
  trap 'as_fn_exit 1' 1 2 13 15
 
4990
}
 
4991
# Create a (secure) tmp directory for tmp files.
 
4992
 
 
4993
{
 
4994
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
4995
  test -n "$tmp" && test -d "$tmp"
 
4996
}  ||
 
4997
{
 
4998
  tmp=./conf$$-$RANDOM
 
4999
  (umask 077 && mkdir "$tmp")
 
5000
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
 
5001
 
 
5002
# Set up the scripts for CONFIG_FILES section.
 
5003
# No need to generate them if there are no CONFIG_FILES.
 
5004
# This happens for instance with `./config.status config.h'.
 
5005
if test -n "$CONFIG_FILES"; then
 
5006
 
 
5007
 
 
5008
ac_cr=`echo X | tr X '\015'`
 
5009
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
5010
# But we know of no other shell where ac_cr would be empty at this
 
5011
# point, so we can use a bashism as a fallback.
 
5012
if test "x$ac_cr" = x; then
 
5013
  eval ac_cr=\$\'\\r\'
 
5014
fi
 
5015
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
5016
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
5017
  ac_cs_awk_cr='\r'
 
5018
else
 
5019
  ac_cs_awk_cr=$ac_cr
 
5020
fi
 
5021
 
 
5022
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
5023
_ACEOF
 
5024
 
 
5025
 
 
5026
{
 
5027
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
5028
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
5029
  echo "_ACEOF"
 
5030
} >conf$$subs.sh ||
 
5031
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5032
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
5033
ac_delim='%!_!# '
 
5034
for ac_last_try in false false false false false :; do
 
5035
  . ./conf$$subs.sh ||
 
5036
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5037
 
 
5038
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
5039
  if test $ac_delim_n = $ac_delim_num; then
 
5040
    break
 
5041
  elif $ac_last_try; then
 
5042
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
 
5043
  else
 
5044
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5045
  fi
 
5046
done
 
5047
rm -f conf$$subs.sh
 
5048
 
 
5049
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5050
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
5051
_ACEOF
 
5052
sed -n '
 
5053
h
 
5054
s/^/S["/; s/!.*/"]=/
 
5055
p
 
5056
g
 
5057
s/^[^!]*!//
 
5058
:repl
 
5059
t repl
 
5060
s/'"$ac_delim"'$//
 
5061
t delim
 
5062
:nl
 
5063
h
 
5064
s/\(.\{148\}\).*/\1/
 
5065
t more1
 
5066
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
5067
p
 
5068
n
 
5069
b repl
 
5070
:more1
 
5071
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5072
p
 
5073
g
 
5074
s/.\{148\}//
 
5075
t nl
 
5076
:delim
 
5077
h
 
5078
s/\(.\{148\}\).*/\1/
 
5079
t more2
 
5080
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
5081
p
 
5082
b
 
5083
:more2
 
5084
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
5085
p
 
5086
g
 
5087
s/.\{148\}//
 
5088
t delim
 
5089
' <conf$$subs.awk | sed '
 
5090
/^[^""]/{
 
5091
  N
 
5092
  s/\n//
 
5093
}
 
5094
' >>$CONFIG_STATUS || ac_write_fail=1
 
5095
rm -f conf$$subs.awk
 
5096
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5097
_ACAWK
 
5098
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
5099
  for (key in S) S_is_set[key] = 1
 
5100
  FS = ""
 
5101
 
 
5102
}
 
5103
{
 
5104
  line = $ 0
 
5105
  nfields = split(line, field, "@")
 
5106
  substed = 0
 
5107
  len = length(field[1])
 
5108
  for (i = 2; i < nfields; i++) {
 
5109
    key = field[i]
 
5110
    keylen = length(key)
 
5111
    if (S_is_set[key]) {
 
5112
      value = S[key]
 
5113
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
5114
      len += length(value) + length(field[++i])
 
5115
      substed = 1
 
5116
    } else
 
5117
      len += 1 + keylen
 
5118
  }
 
5119
 
 
5120
  print line
 
5121
}
 
5122
 
 
5123
_ACAWK
 
5124
_ACEOF
 
5125
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5126
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
5127
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
5128
else
 
5129
  cat
 
5130
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
5131
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
 
5132
_ACEOF
 
5133
 
 
5134
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
5135
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
5136
# trailing colons and then remove the whole line if VPATH becomes empty
 
5137
# (actually we leave an empty line to preserve line numbers).
 
5138
if test "x$srcdir" = x.; then
 
5139
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
5140
s/:*\$(srcdir):*/:/
 
5141
s/:*\${srcdir}:*/:/
 
5142
s/:*@srcdir@:*/:/
 
5143
s/^\([^=]*=[     ]*\):*/\1/
 
5144
s/:*$//
 
5145
s/^[^=]*=[       ]*$//
 
5146
}'
 
5147
fi
 
5148
 
 
5149
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5150
fi # test -n "$CONFIG_FILES"
 
5151
 
 
5152
# Set up the scripts for CONFIG_HEADERS section.
 
5153
# No need to generate them if there are no CONFIG_HEADERS.
 
5154
# This happens for instance with `./config.status Makefile'.
 
5155
if test -n "$CONFIG_HEADERS"; then
 
5156
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
5157
BEGIN {
 
5158
_ACEOF
 
5159
 
 
5160
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
5161
# here-document in config.status, that substitutes the proper values into
 
5162
# config.h.in to produce config.h.
 
5163
 
 
5164
# Create a delimiter string that does not exist in confdefs.h, to ease
 
5165
# handling of long lines.
 
5166
ac_delim='%!_!# '
 
5167
for ac_last_try in false false :; do
 
5168
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
5169
  if test -z "$ac_t"; then
 
5170
    break
 
5171
  elif $ac_last_try; then
 
5172
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
 
5173
  else
 
5174
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
5175
  fi
 
5176
done
 
5177
 
 
5178
# For the awk script, D is an array of macro values keyed by name,
 
5179
# likewise P contains macro parameters if any.  Preserve backslash
 
5180
# newline sequences.
 
5181
 
 
5182
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
5183
sed -n '
 
5184
s/.\{148\}/&'"$ac_delim"'/g
 
5185
t rset
 
5186
:rset
 
5187
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
5188
t def
 
5189
d
 
5190
:def
 
5191
s/\\$//
 
5192
t bsnl
 
5193
s/["\\]/\\&/g
 
5194
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
5195
D["\1"]=" \3"/p
 
5196
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
5197
d
 
5198
:bsnl
 
5199
s/["\\]/\\&/g
 
5200
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
5201
D["\1"]=" \3\\\\\\n"\\/p
 
5202
t cont
 
5203
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
5204
t cont
 
5205
d
 
5206
:cont
 
5207
n
 
5208
s/.\{148\}/&'"$ac_delim"'/g
 
5209
t clear
 
5210
:clear
 
5211
s/\\$//
 
5212
t bsnlc
 
5213
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
5214
d
 
5215
:bsnlc
 
5216
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
5217
b cont
 
5218
' <confdefs.h | sed '
 
5219
s/'"$ac_delim"'/"\\\
 
5220
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
5221
 
 
5222
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5223
  for (key in D) D_is_set[key] = 1
 
5224
  FS = ""
 
5225
}
 
5226
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
5227
  line = \$ 0
 
5228
  split(line, arg, " ")
 
5229
  if (arg[1] == "#") {
 
5230
    defundef = arg[2]
 
5231
    mac1 = arg[3]
 
5232
  } else {
 
5233
    defundef = substr(arg[1], 2)
 
5234
    mac1 = arg[2]
 
5235
  }
 
5236
  split(mac1, mac2, "(") #)
 
5237
  macro = mac2[1]
 
5238
  prefix = substr(line, 1, index(line, defundef) - 1)
 
5239
  if (D_is_set[macro]) {
 
5240
    # Preserve the white space surrounding the "#".
 
5241
    print prefix "define", macro P[macro] D[macro]
 
5242
    next
 
5243
  } else {
 
5244
    # Replace #undef with comments.  This is necessary, for example,
 
5245
    # in the case of _POSIX_SOURCE, which is predefined and required
 
5246
    # on some systems where configure will not decide to define it.
 
5247
    if (defundef == "undef") {
 
5248
      print "/*", prefix defundef, macro, "*/"
 
5249
      next
 
5250
    }
 
5251
  }
 
5252
}
 
5253
{ print }
 
5254
_ACAWK
 
5255
_ACEOF
 
5256
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5257
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
 
5258
fi # test -n "$CONFIG_HEADERS"
 
5259
 
 
5260
 
 
5261
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 
5262
shift
 
5263
for ac_tag
 
5264
do
 
5265
  case $ac_tag in
 
5266
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
5267
  esac
 
5268
  case $ac_mode$ac_tag in
 
5269
  :[FHL]*:*);;
 
5270
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
5271
  :[FH]-) ac_tag=-:-;;
 
5272
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
5273
  esac
 
5274
  ac_save_IFS=$IFS
 
5275
  IFS=:
 
5276
  set x $ac_tag
 
5277
  IFS=$ac_save_IFS
 
5278
  shift
 
5279
  ac_file=$1
 
5280
  shift
 
5281
 
 
5282
  case $ac_mode in
 
5283
  :L) ac_source=$1;;
 
5284
  :[FH])
 
5285
    ac_file_inputs=
 
5286
    for ac_f
 
5287
    do
 
5288
      case $ac_f in
 
5289
      -) ac_f="$tmp/stdin";;
 
5290
      *) # Look for the file first in the build tree, then in the source tree
 
5291
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
5292
         # because $ac_f cannot contain `:'.
 
5293
         test -f "$ac_f" ||
 
5294
           case $ac_f in
 
5295
           [\\/$]*) false;;
 
5296
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
5297
           esac ||
 
5298
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
5299
      esac
 
5300
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
5301
      as_fn_append ac_file_inputs " '$ac_f'"
 
5302
    done
 
5303
 
 
5304
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
5305
    # use $as_me), people would be surprised to read:
 
5306
    #    /* config.h.  Generated by config.status.  */
 
5307
    configure_input='Generated from '`
 
5308
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
5309
        `' by configure.'
 
5310
    if test x"$ac_file" != x-; then
 
5311
      configure_input="$ac_file.  $configure_input"
 
5312
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
5313
$as_echo "$as_me: creating $ac_file" >&6;}
 
5314
    fi
 
5315
    # Neutralize special characters interpreted by sed in replacement strings.
 
5316
    case $configure_input in #(
 
5317
    *\&* | *\|* | *\\* )
 
5318
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
5319
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
5320
    *) ac_sed_conf_input=$configure_input;;
 
5321
    esac
 
5322
 
 
5323
    case $ac_tag in
 
5324
    *:-:* | *:-) cat >"$tmp/stdin" \
 
5325
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
 
5326
    esac
 
5327
    ;;
 
5328
  esac
 
5329
 
 
5330
  ac_dir=`$as_dirname -- "$ac_file" ||
 
5331
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
5332
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
5333
         X"$ac_file" : 'X\(//\)$' \| \
 
5334
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
5335
$as_echo X"$ac_file" |
 
5336
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
5337
            s//\1/
 
5338
            q
 
5339
          }
 
5340
          /^X\(\/\/\)[^/].*/{
 
5341
            s//\1/
 
5342
            q
 
5343
          }
 
5344
          /^X\(\/\/\)$/{
 
5345
            s//\1/
 
5346
            q
 
5347
          }
 
5348
          /^X\(\/\).*/{
 
5349
            s//\1/
 
5350
            q
 
5351
          }
 
5352
          s/.*/./; q'`
 
5353
  as_dir="$ac_dir"; as_fn_mkdir_p
 
5354
  ac_builddir=.
 
5355
 
 
5356
case "$ac_dir" in
 
5357
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
5358
*)
 
5359
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
5360
  # A ".." for each directory in $ac_dir_suffix.
 
5361
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
5362
  case $ac_top_builddir_sub in
 
5363
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
5364
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
5365
  esac ;;
 
5366
esac
 
5367
ac_abs_top_builddir=$ac_pwd
 
5368
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
5369
# for backward compatibility:
 
5370
ac_top_builddir=$ac_top_build_prefix
 
5371
 
 
5372
case $srcdir in
 
5373
  .)  # We are building in place.
 
5374
    ac_srcdir=.
 
5375
    ac_top_srcdir=$ac_top_builddir_sub
 
5376
    ac_abs_top_srcdir=$ac_pwd ;;
 
5377
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
5378
    ac_srcdir=$srcdir$ac_dir_suffix;
 
5379
    ac_top_srcdir=$srcdir
 
5380
    ac_abs_top_srcdir=$srcdir ;;
 
5381
  *) # Relative name.
 
5382
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
5383
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
5384
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
5385
esac
 
5386
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
5387
 
 
5388
 
 
5389
  case $ac_mode in
 
5390
  :F)
 
5391
  #
 
5392
  # CONFIG_FILE
 
5393
  #
 
5394
 
 
5395
  case $INSTALL in
 
5396
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
5397
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
5398
  esac
 
5399
_ACEOF
 
5400
 
 
5401
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5402
# If the template does not know about datarootdir, expand it.
 
5403
# FIXME: This hack should be removed a few years after 2.60.
 
5404
ac_datarootdir_hack=; ac_datarootdir_seen=
 
5405
ac_sed_dataroot='
 
5406
/datarootdir/ {
 
5407
  p
 
5408
  q
 
5409
}
 
5410
/@datadir@/p
 
5411
/@docdir@/p
 
5412
/@infodir@/p
 
5413
/@localedir@/p
 
5414
/@mandir@/p'
 
5415
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
5416
*datarootdir*) ac_datarootdir_seen=yes;;
 
5417
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
5418
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
5419
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
5420
_ACEOF
 
5421
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5422
  ac_datarootdir_hack='
 
5423
  s&@datadir@&$datadir&g
 
5424
  s&@docdir@&$docdir&g
 
5425
  s&@infodir@&$infodir&g
 
5426
  s&@localedir@&$localedir&g
 
5427
  s&@mandir@&$mandir&g
 
5428
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
5429
esac
 
5430
_ACEOF
 
5431
 
 
5432
# Neutralize VPATH when `$srcdir' = `.'.
 
5433
# Shell code in configure.ac might set extrasub.
 
5434
# FIXME: do we really want to maintain this feature?
 
5435
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
5436
ac_sed_extra="$ac_vpsub
 
5437
$extrasub
 
5438
_ACEOF
 
5439
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
5440
:t
 
5441
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
5442
s|@configure_input@|$ac_sed_conf_input|;t t
 
5443
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
5444
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
5445
s&@srcdir@&$ac_srcdir&;t t
 
5446
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
5447
s&@top_srcdir@&$ac_top_srcdir&;t t
 
5448
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
5449
s&@builddir@&$ac_builddir&;t t
 
5450
s&@abs_builddir@&$ac_abs_builddir&;t t
 
5451
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
5452
s&@INSTALL@&$ac_INSTALL&;t t
 
5453
$ac_datarootdir_hack
 
5454
"
 
5455
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
5456
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5457
 
 
5458
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
5459
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
5460
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
5461
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
5462
which seems to be undefined.  Please make sure it is defined." >&5
 
5463
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
5464
which seems to be undefined.  Please make sure it is defined." >&2;}
 
5465
 
 
5466
  rm -f "$tmp/stdin"
 
5467
  case $ac_file in
 
5468
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
5469
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
5470
  esac \
 
5471
  || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5472
 ;;
 
5473
  :H)
 
5474
  #
 
5475
  # CONFIG_HEADER
 
5476
  #
 
5477
  if test x"$ac_file" != x-; then
 
5478
    {
 
5479
      $as_echo "/* $configure_input  */" \
 
5480
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
5481
    } >"$tmp/config.h" \
 
5482
      || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5483
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
5484
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
5485
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
5486
    else
 
5487
      rm -f "$ac_file"
 
5488
      mv "$tmp/config.h" "$ac_file" \
 
5489
        || as_fn_error "could not create $ac_file" "$LINENO" 5
 
5490
    fi
 
5491
  else
 
5492
    $as_echo "/* $configure_input  */" \
 
5493
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
5494
      || as_fn_error "could not create -" "$LINENO" 5
 
5495
  fi
 
5496
 ;;
 
5497
 
 
5498
 
 
5499
  esac
 
5500
 
 
5501
done # for ac_tag
 
5502
 
 
5503
 
 
5504
as_fn_exit 0
 
5505
_ACEOF
 
5506
ac_clean_files=$ac_clean_files_save
 
5507
 
 
5508
test $ac_write_fail = 0 ||
 
5509
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
5510
 
 
5511
 
 
5512
# configure is writing to config.log, and then calls config.status.
 
5513
# config.status does its own redirection, appending to config.log.
 
5514
# Unfortunately, on DOS this fails, as config.log is still kept open
 
5515
# by configure, so config.status won't be able to write to it; its
 
5516
# output is simply discarded.  So we exec the FD to /dev/null,
 
5517
# effectively closing config.log, so it can be properly (re)opened and
 
5518
# appended to by config.status.  When coming back to configure, we
 
5519
# need to make the FD available again.
 
5520
if test "$no_create" != yes; then
 
5521
  ac_cs_success=:
 
5522
  ac_config_status_args=
 
5523
  test "$silent" = yes &&
 
5524
    ac_config_status_args="$ac_config_status_args --quiet"
 
5525
  exec 5>/dev/null
 
5526
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
5527
  exec 5>>config.log
 
5528
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
5529
  # would make configure fail if this is the last instruction.
 
5530
  $ac_cs_success || as_fn_exit $?
 
5531
fi
 
5532
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
5533
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
5534
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
5535
fi
 
5536
 
 
5537
 
 
5538
cat << _EOF_
 
5539
 
 
5540
Configuration:
 
5541
        No special features yet.
 
5542
 
 
5543
Now type "make" to build, and "make install" to install.
 
5544
Thank you for using libguess.
 
5545
 
 
5546
_EOF_