~ubuntu-branches/ubuntu/jaunty/mesa/jaunty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-23 10:20:24 UTC
  • mfrom: (1.2.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090123102024-1f3kmb3aea7wzk67
Tags: 7.3~rc3-1ubuntu1
* Merge with Debian experimental.
* Drop 102_dont_vblank.patch, since the new drm code in the kernel
  fixes the bugs that it worked around.
* Bump the build-dependency of libdrm to 2.4.4. It's the first version
  with necessary changes to build this.

Show diffs side-by-side

added added

removed removed

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