• R/O
  • SSH
  • HTTPS

hyakutyping: コミット


コミットメタ情報

リビジョン401 (tree)
日時2010-05-03 21:05:18
作者satofumi

ログメッセージ

下の句タイピング用の和歌を選択する関数を実装

変更サマリ

差分

--- trunk/cpp_lua/scripts/practice_menu.lua (revision 400)
+++ trunk/cpp_lua/scripts/practice_menu.lua (revision 401)
@@ -18,10 +18,7 @@
1818
1919
2020 function practice_menu_set_waka()
21- -- 入力開始が最も遅い和歌が 1 つ含まれるようにする
22- -- !!! 残りを 乱数で配置後、ID の並びをシャッフルする
23- -- !!! waka_handler の関数で処理する
24- --waka_id_array_ = waka_handler_shuffle(waka_handler_practice_waka(waka_id_size_))
21+ --waka_id_array_ = waka_handler_practice_waka(waka_id_size_)
2522 waka_id_array_ = { 1 }
2623 end
2724
--- trunk/cpp_lua/scripts/waka_handler.lua (revision 400)
+++ trunk/cpp_lua/scripts/waka_handler.lua (revision 401)
@@ -99,22 +99,20 @@
9999
100100 -- 練習用の和歌 ID を返す
101101 function waka_handler_practice_waka(nth)
102- -- 入力開始が最も遅い和歌が 1 つ含まれるようにする
103- -- !!!
104102
105- -- !!! 最も遅い和歌を 1 番目に配置し、
106- -- !!! ランダムに4つ選ぶ
103+ local all_id = {}
104+ for i = 1, 100 do
105+ table.insert(all_id, i)
106+ end
107107
108--- if db_local_connect() then
109--- id_array = db_local_slow_waka(1)
110--- db_local_disconnect()
111- -- else
108+ all_id = waka_handler_shuffle(all_id)
112109
113--- for i = 1, 100 do
114--- table.insert(id_array, i)
115--- end
110+ local waka_id = {}
111+ for i = 1, nth do
112+ table.insert(waka_id, all_id[i])
113+ end
116114
117- return {1, 2, 3, 4, 5}
115+ return waka_id
118116 end
119117
120118
--- trunk/cpp_lua/package/configure (revision 400)
+++ trunk/cpp_lua/package/configure (nonexistent)
@@ -1,9528 +0,0 @@
1-#! /bin/sh
2-# Guess values for system-dependent variables and create Makefiles.
3-# Generated by GNU Autoconf 2.61 for hyakutyping 1.0.0.
4-#
5-# Report bugs to <satofumi@users.sourcefoge.jp>.
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='hyakutyping'
576-PACKAGE_TARNAME='hyakutyping'
577-PACKAGE_VERSION='1.0.0'
578-PACKAGE_STRING='hyakutyping 1.0.0'
579-PACKAGE_BUGREPORT='satofumi@users.sourcefoge.jp'
580-
581-ac_unique_file="src/hyakutyping.cpp"
582-# Factoring default headers for most tests.
583-ac_includes_default="\
584-#include <stdio.h>
585-#ifdef HAVE_SYS_TYPES_H
586-# include <sys/types.h>
587-#endif
588-#ifdef HAVE_SYS_STAT_H
589-# include <sys/stat.h>
590-#endif
591-#ifdef STDC_HEADERS
592-# include <stdlib.h>
593-# include <stddef.h>
594-#else
595-# ifdef HAVE_STDLIB_H
596-# include <stdlib.h>
597-# endif
598-#endif
599-#ifdef HAVE_STRING_H
600-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601-# include <memory.h>
602-# endif
603-# include <string.h>
604-#endif
605-#ifdef HAVE_STRINGS_H
606-# include <strings.h>
607-#endif
608-#ifdef HAVE_INTTYPES_H
609-# include <inttypes.h>
610-#endif
611-#ifdef HAVE_STDINT_H
612-# include <stdint.h>
613-#endif
614-#ifdef HAVE_UNISTD_H
615-# include <unistd.h>
616-#endif"
617-
618-ac_subst_vars='SHELL
619-PATH_SEPARATOR
620-PACKAGE_NAME
621-PACKAGE_TARNAME
622-PACKAGE_VERSION
623-PACKAGE_STRING
624-PACKAGE_BUGREPORT
625-exec_prefix
626-prefix
627-program_transform_name
628-bindir
629-sbindir
630-libexecdir
631-datarootdir
632-datadir
633-sysconfdir
634-sharedstatedir
635-localstatedir
636-includedir
637-oldincludedir
638-docdir
639-infodir
640-htmldir
641-dvidir
642-pdfdir
643-psdir
644-libdir
645-localedir
646-mandir
647-DEFS
648-ECHO_C
649-ECHO_N
650-ECHO_T
651-LIBS
652-build_alias
653-host_alias
654-target_alias
655-INSTALL_PROGRAM
656-INSTALL_SCRIPT
657-INSTALL_DATA
658-am__isrc
659-CYGPATH_W
660-PACKAGE
661-VERSION
662-ACLOCAL
663-AUTOCONF
664-AUTOMAKE
665-AUTOHEADER
666-MAKEINFO
667-install_sh
668-STRIP
669-INSTALL_STRIP_PROGRAM
670-mkdir_p
671-AWK
672-SET_MAKE
673-am__leading_dot
674-AMTAR
675-am__tar
676-am__untar
677-CXX
678-CXXFLAGS
679-LDFLAGS
680-CPPFLAGS
681-ac_ct_CXX
682-EXEEXT
683-OBJEXT
684-DEPDIR
685-am__include
686-am__quote
687-AMDEP_TRUE
688-AMDEP_FALSE
689-AMDEPBACKSLASH
690-CXXDEPMODE
691-am__fastdepCXX_TRUE
692-am__fastdepCXX_FALSE
693-CC
694-CFLAGS
695-ac_ct_CC
696-CCDEPMODE
697-am__fastdepCC_TRUE
698-am__fastdepCC_FALSE
699-LUA
700-SDL_CONFIG
701-SDL_CFLAGS
702-SDL_LIBS
703-BOOST_CPPFLAGS
704-BOOST_LDFLAGS
705-BOOST_SIGNALS_LIB
706-XMKMF
707-CPP
708-X_CFLAGS
709-X_PRE_LIBS
710-X_LIBS
711-X_EXTRA_LIBS
712-GL_CFLAGS
713-GL_LIBS
714-GREP
715-EGREP
716-LIBOBJS
717-LTLIBOBJS'
718-ac_subst_files=''
719- ac_precious_vars='build_alias
720-host_alias
721-target_alias
722-CXX
723-CXXFLAGS
724-LDFLAGS
725-LIBS
726-CPPFLAGS
727-CCC
728-CC
729-CFLAGS
730-XMKMF
731-CPP'
732-
733-
734-# Initialize some variables set by options.
735-ac_init_help=
736-ac_init_version=false
737-# The variables have the same names as the options, with
738-# dashes changed to underlines.
739-cache_file=/dev/null
740-exec_prefix=NONE
741-no_create=
742-no_recursion=
743-prefix=NONE
744-program_prefix=NONE
745-program_suffix=NONE
746-program_transform_name=s,x,x,
747-silent=
748-site=
749-srcdir=
750-verbose=
751-x_includes=NONE
752-x_libraries=NONE
753-
754-# Installation directory options.
755-# These are left unexpanded so users can "make install exec_prefix=/foo"
756-# and all the variables that are supposed to be based on exec_prefix
757-# by default will actually change.
758-# Use braces instead of parens because sh, perl, etc. also accept them.
759-# (The list follows the same order as the GNU Coding Standards.)
760-bindir='${exec_prefix}/bin'
761-sbindir='${exec_prefix}/sbin'
762-libexecdir='${exec_prefix}/libexec'
763-datarootdir='${prefix}/share'
764-datadir='${datarootdir}'
765-sysconfdir='${prefix}/etc'
766-sharedstatedir='${prefix}/com'
767-localstatedir='${prefix}/var'
768-includedir='${prefix}/include'
769-oldincludedir='/usr/include'
770-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
771-infodir='${datarootdir}/info'
772-htmldir='${docdir}'
773-dvidir='${docdir}'
774-pdfdir='${docdir}'
775-psdir='${docdir}'
776-libdir='${exec_prefix}/lib'
777-localedir='${datarootdir}/locale'
778-mandir='${datarootdir}/man'
779-
780-ac_prev=
781-ac_dashdash=
782-for ac_option
783-do
784- # If the previous option needs an argument, assign it.
785- if test -n "$ac_prev"; then
786- eval $ac_prev=\$ac_option
787- ac_prev=
788- continue
789- fi
790-
791- case $ac_option in
792- *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793- *) ac_optarg=yes ;;
794- esac
795-
796- # Accept the important Cygnus configure options, so we can diagnose typos.
797-
798- case $ac_dashdash$ac_option in
799- --)
800- ac_dashdash=yes ;;
801-
802- -bindir | --bindir | --bindi | --bind | --bin | --bi)
803- ac_prev=bindir ;;
804- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
805- bindir=$ac_optarg ;;
806-
807- -build | --build | --buil | --bui | --bu)
808- ac_prev=build_alias ;;
809- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
810- build_alias=$ac_optarg ;;
811-
812- -cache-file | --cache-file | --cache-fil | --cache-fi \
813- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
814- ac_prev=cache_file ;;
815- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
816- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
817- cache_file=$ac_optarg ;;
818-
819- --config-cache | -C)
820- cache_file=config.cache ;;
821-
822- -datadir | --datadir | --datadi | --datad)
823- ac_prev=datadir ;;
824- -datadir=* | --datadir=* | --datadi=* | --datad=*)
825- datadir=$ac_optarg ;;
826-
827- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
828- | --dataroo | --dataro | --datar)
829- ac_prev=datarootdir ;;
830- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
831- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
832- datarootdir=$ac_optarg ;;
833-
834- -disable-* | --disable-*)
835- ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
836- # Reject names that are not valid shell variable names.
837- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
838- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
839- { (exit 1); exit 1; }; }
840- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
841- eval enable_$ac_feature=no ;;
842-
843- -docdir | --docdir | --docdi | --doc | --do)
844- ac_prev=docdir ;;
845- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
846- docdir=$ac_optarg ;;
847-
848- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
849- ac_prev=dvidir ;;
850- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
851- dvidir=$ac_optarg ;;
852-
853- -enable-* | --enable-*)
854- ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
855- # Reject names that are not valid shell variable names.
856- expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
857- { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858- { (exit 1); exit 1; }; }
859- ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
860- eval enable_$ac_feature=\$ac_optarg ;;
861-
862- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
863- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
864- | --exec | --exe | --ex)
865- ac_prev=exec_prefix ;;
866- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
867- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
868- | --exec=* | --exe=* | --ex=*)
869- exec_prefix=$ac_optarg ;;
870-
871- -gas | --gas | --ga | --g)
872- # Obsolete; use --with-gas.
873- with_gas=yes ;;
874-
875- -help | --help | --hel | --he | -h)
876- ac_init_help=long ;;
877- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
878- ac_init_help=recursive ;;
879- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
880- ac_init_help=short ;;
881-
882- -host | --host | --hos | --ho)
883- ac_prev=host_alias ;;
884- -host=* | --host=* | --hos=* | --ho=*)
885- host_alias=$ac_optarg ;;
886-
887- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
888- ac_prev=htmldir ;;
889- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
890- | --ht=*)
891- htmldir=$ac_optarg ;;
892-
893- -includedir | --includedir | --includedi | --included | --include \
894- | --includ | --inclu | --incl | --inc)
895- ac_prev=includedir ;;
896- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
897- | --includ=* | --inclu=* | --incl=* | --inc=*)
898- includedir=$ac_optarg ;;
899-
900- -infodir | --infodir | --infodi | --infod | --info | --inf)
901- ac_prev=infodir ;;
902- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
903- infodir=$ac_optarg ;;
904-
905- -libdir | --libdir | --libdi | --libd)
906- ac_prev=libdir ;;
907- -libdir=* | --libdir=* | --libdi=* | --libd=*)
908- libdir=$ac_optarg ;;
909-
910- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
911- | --libexe | --libex | --libe)
912- ac_prev=libexecdir ;;
913- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
914- | --libexe=* | --libex=* | --libe=*)
915- libexecdir=$ac_optarg ;;
916-
917- -localedir | --localedir | --localedi | --localed | --locale)
918- ac_prev=localedir ;;
919- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
920- localedir=$ac_optarg ;;
921-
922- -localstatedir | --localstatedir | --localstatedi | --localstated \
923- | --localstate | --localstat | --localsta | --localst | --locals)
924- ac_prev=localstatedir ;;
925- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
926- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
927- localstatedir=$ac_optarg ;;
928-
929- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
930- ac_prev=mandir ;;
931- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
932- mandir=$ac_optarg ;;
933-
934- -nfp | --nfp | --nf)
935- # Obsolete; use --without-fp.
936- with_fp=no ;;
937-
938- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
939- | --no-cr | --no-c | -n)
940- no_create=yes ;;
941-
942- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
943- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
944- no_recursion=yes ;;
945-
946- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
947- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
948- | --oldin | --oldi | --old | --ol | --o)
949- ac_prev=oldincludedir ;;
950- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
951- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
952- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
953- oldincludedir=$ac_optarg ;;
954-
955- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
956- ac_prev=prefix ;;
957- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
958- prefix=$ac_optarg ;;
959-
960- -program-prefix | --program-prefix | --program-prefi | --program-pref \
961- | --program-pre | --program-pr | --program-p)
962- ac_prev=program_prefix ;;
963- -program-prefix=* | --program-prefix=* | --program-prefi=* \
964- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
965- program_prefix=$ac_optarg ;;
966-
967- -program-suffix | --program-suffix | --program-suffi | --program-suff \
968- | --program-suf | --program-su | --program-s)
969- ac_prev=program_suffix ;;
970- -program-suffix=* | --program-suffix=* | --program-suffi=* \
971- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
972- program_suffix=$ac_optarg ;;
973-
974- -program-transform-name | --program-transform-name \
975- | --program-transform-nam | --program-transform-na \
976- | --program-transform-n | --program-transform- \
977- | --program-transform | --program-transfor \
978- | --program-transfo | --program-transf \
979- | --program-trans | --program-tran \
980- | --progr-tra | --program-tr | --program-t)
981- ac_prev=program_transform_name ;;
982- -program-transform-name=* | --program-transform-name=* \
983- | --program-transform-nam=* | --program-transform-na=* \
984- | --program-transform-n=* | --program-transform-=* \
985- | --program-transform=* | --program-transfor=* \
986- | --program-transfo=* | --program-transf=* \
987- | --program-trans=* | --program-tran=* \
988- | --progr-tra=* | --program-tr=* | --program-t=*)
989- program_transform_name=$ac_optarg ;;
990-
991- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
992- ac_prev=pdfdir ;;
993- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
994- pdfdir=$ac_optarg ;;
995-
996- -psdir | --psdir | --psdi | --psd | --ps)
997- ac_prev=psdir ;;
998- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
999- psdir=$ac_optarg ;;
1000-
1001- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1002- | -silent | --silent | --silen | --sile | --sil)
1003- silent=yes ;;
1004-
1005- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1006- ac_prev=sbindir ;;
1007- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1008- | --sbi=* | --sb=*)
1009- sbindir=$ac_optarg ;;
1010-
1011- -sharedstatedir | --sharedstatedir | --sharedstatedi \
1012- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1013- | --sharedst | --shareds | --shared | --share | --shar \
1014- | --sha | --sh)
1015- ac_prev=sharedstatedir ;;
1016- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1017- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1018- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1019- | --sha=* | --sh=*)
1020- sharedstatedir=$ac_optarg ;;
1021-
1022- -site | --site | --sit)
1023- ac_prev=site ;;
1024- -site=* | --site=* | --sit=*)
1025- site=$ac_optarg ;;
1026-
1027- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1028- ac_prev=srcdir ;;
1029- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1030- srcdir=$ac_optarg ;;
1031-
1032- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1033- | --syscon | --sysco | --sysc | --sys | --sy)
1034- ac_prev=sysconfdir ;;
1035- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1036- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1037- sysconfdir=$ac_optarg ;;
1038-
1039- -target | --target | --targe | --targ | --tar | --ta | --t)
1040- ac_prev=target_alias ;;
1041- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1042- target_alias=$ac_optarg ;;
1043-
1044- -v | -verbose | --verbose | --verbos | --verbo | --verb)
1045- verbose=yes ;;
1046-
1047- -version | --version | --versio | --versi | --vers | -V)
1048- ac_init_version=: ;;
1049-
1050- -with-* | --with-*)
1051- ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1052- # Reject names that are not valid shell variable names.
1053- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054- { echo "$as_me: error: invalid package name: $ac_package" >&2
1055- { (exit 1); exit 1; }; }
1056- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057- eval with_$ac_package=\$ac_optarg ;;
1058-
1059- -without-* | --without-*)
1060- ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061- # Reject names that are not valid shell variable names.
1062- expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063- { echo "$as_me: error: invalid package name: $ac_package" >&2
1064- { (exit 1); exit 1; }; }
1065- ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066- eval with_$ac_package=no ;;
1067-
1068- --x)
1069- # Obsolete; use --with-x.
1070- with_x=yes ;;
1071-
1072- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1073- | --x-incl | --x-inc | --x-in | --x-i)
1074- ac_prev=x_includes ;;
1075- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1076- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1077- x_includes=$ac_optarg ;;
1078-
1079- -x-libraries | --x-libraries | --x-librarie | --x-librari \
1080- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1081- ac_prev=x_libraries ;;
1082- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1083- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1084- x_libraries=$ac_optarg ;;
1085-
1086- -*) { echo "$as_me: error: unrecognized option: $ac_option
1087-Try \`$0 --help' for more information." >&2
1088- { (exit 1); exit 1; }; }
1089- ;;
1090-
1091- *=*)
1092- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1093- # Reject names that are not valid shell variable names.
1094- expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1095- { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1096- { (exit 1); exit 1; }; }
1097- eval $ac_envvar=\$ac_optarg
1098- export $ac_envvar ;;
1099-
1100- *)
1101- # FIXME: should be removed in autoconf 3.0.
1102- echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1103- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1104- echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105- : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1106- ;;
1107-
1108- esac
1109-done
1110-
1111-if test -n "$ac_prev"; then
1112- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113- { echo "$as_me: error: missing argument to $ac_option" >&2
1114- { (exit 1); exit 1; }; }
1115-fi
1116-
1117-# Be sure to have absolute directory names.
1118-for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119- datadir sysconfdir sharedstatedir localstatedir includedir \
1120- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121- libdir localedir mandir
1122-do
1123- eval ac_val=\$$ac_var
1124- case $ac_val in
1125- [\\/$]* | ?:[\\/]* ) continue;;
1126- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1127- esac
1128- { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1129- { (exit 1); exit 1; }; }
1130-done
1131-
1132-# There might be people who depend on the old broken behavior: `$host'
1133-# used to hold the argument of --host etc.
1134-# FIXME: To remove some day.
1135-build=$build_alias
1136-host=$host_alias
1137-target=$target_alias
1138-
1139-# FIXME: To remove some day.
1140-if test "x$host_alias" != x; then
1141- if test "x$build_alias" = x; then
1142- cross_compiling=maybe
1143- echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1144- If a cross compiler is detected then cross compile mode will be used." >&2
1145- elif test "x$build_alias" != "x$host_alias"; then
1146- cross_compiling=yes
1147- fi
1148-fi
1149-
1150-ac_tool_prefix=
1151-test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152-
1153-test "$silent" = yes && exec 6>/dev/null
1154-
1155-
1156-ac_pwd=`pwd` && test -n "$ac_pwd" &&
1157-ac_ls_di=`ls -di .` &&
1158-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1159- { echo "$as_me: error: Working directory cannot be determined" >&2
1160- { (exit 1); exit 1; }; }
1161-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1162- { echo "$as_me: error: pwd does not report name of working directory" >&2
1163- { (exit 1); exit 1; }; }
1164-
1165-
1166-# Find the source files, if location was not specified.
1167-if test -z "$srcdir"; then
1168- ac_srcdir_defaulted=yes
1169- # Try the directory containing this script, then the parent directory.
1170- ac_confdir=`$as_dirname -- "$0" ||
1171-$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1172- X"$0" : 'X\(//\)[^/]' \| \
1173- X"$0" : 'X\(//\)$' \| \
1174- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1175-echo X"$0" |
1176- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1177- s//\1/
1178- q
1179- }
1180- /^X\(\/\/\)[^/].*/{
1181- s//\1/
1182- q
1183- }
1184- /^X\(\/\/\)$/{
1185- s//\1/
1186- q
1187- }
1188- /^X\(\/\).*/{
1189- s//\1/
1190- q
1191- }
1192- s/.*/./; q'`
1193- srcdir=$ac_confdir
1194- if test ! -r "$srcdir/$ac_unique_file"; then
1195- srcdir=..
1196- fi
1197-else
1198- ac_srcdir_defaulted=no
1199-fi
1200-if test ! -r "$srcdir/$ac_unique_file"; then
1201- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1203- { (exit 1); exit 1; }; }
1204-fi
1205-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1206-ac_abs_confdir=`(
1207- cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1208- { (exit 1); exit 1; }; }
1209- pwd)`
1210-# When building in place, set srcdir=.
1211-if test "$ac_abs_confdir" = "$ac_pwd"; then
1212- srcdir=.
1213-fi
1214-# Remove unnecessary trailing slashes from srcdir.
1215-# Double slashes in file names in object file debugging info
1216-# mess up M-x gdb in Emacs.
1217-case $srcdir in
1218-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1219-esac
1220-for ac_var in $ac_precious_vars; do
1221- eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222- eval ac_env_${ac_var}_value=\$${ac_var}
1223- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224- eval ac_cv_env_${ac_var}_value=\$${ac_var}
1225-done
1226-
1227-#
1228-# Report the --help message.
1229-#
1230-if test "$ac_init_help" = "long"; then
1231- # Omit some internal or obsolete options to make the list less imposing.
1232- # This message is too long to be a string in the A/UX 3.1 sh.
1233- cat <<_ACEOF
1234-\`configure' configures hyakutyping 1.0.0 to adapt to many kinds of systems.
1235-
1236-Usage: $0 [OPTION]... [VAR=VALUE]...
1237-
1238-To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239-VAR=VALUE. See below for descriptions of some of the useful variables.
1240-
1241-Defaults for the options are specified in brackets.
1242-
1243-Configuration:
1244- -h, --help display this help and exit
1245- --help=short display options specific to this package
1246- --help=recursive display the short help of all the included packages
1247- -V, --version display version information and exit
1248- -q, --quiet, --silent do not print \`checking...' messages
1249- --cache-file=FILE cache test results in FILE [disabled]
1250- -C, --config-cache alias for \`--cache-file=config.cache'
1251- -n, --no-create do not create output files
1252- --srcdir=DIR find the sources in DIR [configure dir or \`..']
1253-
1254-Installation directories:
1255- --prefix=PREFIX install architecture-independent files in PREFIX
1256- [$ac_default_prefix]
1257- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1258- [PREFIX]
1259-
1260-By default, \`make install' will install all the files in
1261-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263-for instance \`--prefix=\$HOME'.
1264-
1265-For better control, use the options below.
1266-
1267-Fine tuning of the installation directories:
1268- --bindir=DIR user executables [EPREFIX/bin]
1269- --sbindir=DIR system admin executables [EPREFIX/sbin]
1270- --libexecdir=DIR program executables [EPREFIX/libexec]
1271- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274- --libdir=DIR object code libraries [EPREFIX/lib]
1275- --includedir=DIR C header files [PREFIX/include]
1276- --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279- --infodir=DIR info documentation [DATAROOTDIR/info]
1280- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281- --mandir=DIR man documentation [DATAROOTDIR/man]
1282- --docdir=DIR documentation root [DATAROOTDIR/doc/hyakutyping]
1283- --htmldir=DIR html documentation [DOCDIR]
1284- --dvidir=DIR dvi documentation [DOCDIR]
1285- --pdfdir=DIR pdf documentation [DOCDIR]
1286- --psdir=DIR ps documentation [DOCDIR]
1287-_ACEOF
1288-
1289- cat <<\_ACEOF
1290-
1291-Program names:
1292- --program-prefix=PREFIX prepend PREFIX to installed program names
1293- --program-suffix=SUFFIX append SUFFIX to installed program names
1294- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1295-
1296-X features:
1297- --x-includes=DIR X include files are in DIR
1298- --x-libraries=DIR X library files are in DIR
1299-_ACEOF
1300-fi
1301-
1302-if test -n "$ac_init_help"; then
1303- case $ac_init_help in
1304- short | recursive ) echo "Configuration of hyakutyping 1.0.0:";;
1305- esac
1306- cat <<\_ACEOF
1307-
1308-Optional Features:
1309- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1310- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1311- --disable-dependency-tracking speeds up one-time build
1312- --enable-dependency-tracking do not reject slow dependency extractors
1313- --disable-sdltest Do not try to compile and run a test SDL program
1314-$with_Mesa_help_string
1315-
1316-Optional Packages:
1317- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319- --with-lua-prefix=DIR Lua files are in DIR
1320- --with-lua-suffix=ARG Lua binary and library files are suffixed with ARG
1321- --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1322- --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1323- --with-boost[=DIR] use boost (default is yes) - it is possible to
1324- specify the root directory for boost (optional)
1325- --with-boost-libdir=LIB_DIR
1326- Force given directory for boost libraries. Note that
1327- this will overwrite library path detection, so use
1328- this parameter only if default library detection
1329- fails and you know exactly where your boost
1330- libraries are located.
1331- --with-boost-signals[=special-lib]
1332- use the Signals library from boost - it is possible
1333- to specify a certain library for the linker e.g.
1334- --with-boost-signals=boost_signals-gcc-mt-d
1335- --with-x use the X Window System
1336-Prefer the Mesa library over a vendors native OpenGL library (default=yes)
1337-
1338-Some influential environment variables:
1339- CXX C++ compiler command
1340- CXXFLAGS C++ compiler flags
1341- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1342- nonstandard directory <lib dir>
1343- LIBS libraries to pass to the linker, e.g. -l<library>
1344- CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1345- you have headers in a nonstandard directory <include dir>
1346- CC C compiler command
1347- CFLAGS C compiler flags
1348- XMKMF Path to xmkmf, Makefile generator for X Window System
1349- CPP C preprocessor
1350-
1351-Use these variables to override the choices made by `configure' or to help
1352-it to find libraries and programs with nonstandard names/locations.
1353-
1354-Report bugs to <satofumi@users.sourcefoge.jp>.
1355-_ACEOF
1356-ac_status=$?
1357-fi
1358-
1359-if test "$ac_init_help" = "recursive"; then
1360- # If there are subdirs, report their specific --help.
1361- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1362- test -d "$ac_dir" || continue
1363- ac_builddir=.
1364-
1365-case "$ac_dir" in
1366-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367-*)
1368- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1369- # A ".." for each directory in $ac_dir_suffix.
1370- ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1371- case $ac_top_builddir_sub in
1372- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374- esac ;;
1375-esac
1376-ac_abs_top_builddir=$ac_pwd
1377-ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378-# for backward compatibility:
1379-ac_top_builddir=$ac_top_build_prefix
1380-
1381-case $srcdir in
1382- .) # We are building in place.
1383- ac_srcdir=.
1384- ac_top_srcdir=$ac_top_builddir_sub
1385- ac_abs_top_srcdir=$ac_pwd ;;
1386- [\\/]* | ?:[\\/]* ) # Absolute name.
1387- ac_srcdir=$srcdir$ac_dir_suffix;
1388- ac_top_srcdir=$srcdir
1389- ac_abs_top_srcdir=$srcdir ;;
1390- *) # Relative name.
1391- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392- ac_top_srcdir=$ac_top_build_prefix$srcdir
1393- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1394-esac
1395-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1396-
1397- cd "$ac_dir" || { ac_status=$?; continue; }
1398- # Check for guested configure.
1399- if test -f "$ac_srcdir/configure.gnu"; then
1400- echo &&
1401- $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402- elif test -f "$ac_srcdir/configure"; then
1403- echo &&
1404- $SHELL "$ac_srcdir/configure" --help=recursive
1405- else
1406- echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407- fi || ac_status=$?
1408- cd "$ac_pwd" || { ac_status=$?; break; }
1409- done
1410-fi
1411-
1412-test -n "$ac_init_help" && exit $ac_status
1413-if $ac_init_version; then
1414- cat <<\_ACEOF
1415-hyakutyping configure 1.0.0
1416-generated by GNU Autoconf 2.61
1417-
1418-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1419-2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1420-This configure script is free software; the Free Software Foundation
1421-gives unlimited permission to copy, distribute and modify it.
1422-_ACEOF
1423- exit
1424-fi
1425-cat >config.log <<_ACEOF
1426-This file contains any messages produced by compilers while
1427-running configure, to aid debugging if configure makes a mistake.
1428-
1429-It was created by hyakutyping $as_me 1.0.0, which was
1430-generated by GNU Autoconf 2.61. Invocation command line was
1431-
1432- $ $0 $@
1433-
1434-_ACEOF
1435-exec 5>>config.log
1436-{
1437-cat <<_ASUNAME
1438-## --------- ##
1439-## Platform. ##
1440-## --------- ##
1441-
1442-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1443-uname -m = `(uname -m) 2>/dev/null || echo unknown`
1444-uname -r = `(uname -r) 2>/dev/null || echo unknown`
1445-uname -s = `(uname -s) 2>/dev/null || echo unknown`
1446-uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447-
1448-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1449-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1450-
1451-/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1452-/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1453-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1454-/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1455-/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1456-/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1457-/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1458-
1459-_ASUNAME
1460-
1461-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462-for as_dir in $PATH
1463-do
1464- IFS=$as_save_IFS
1465- test -z "$as_dir" && as_dir=.
1466- echo "PATH: $as_dir"
1467-done
1468-IFS=$as_save_IFS
1469-
1470-} >&5
1471-
1472-cat >&5 <<_ACEOF
1473-
1474-
1475-## ----------- ##
1476-## Core tests. ##
1477-## ----------- ##
1478-
1479-_ACEOF
1480-
1481-
1482-# Keep a trace of the command line.
1483-# Strip out --no-create and --no-recursion so they do not pile up.
1484-# Strip out --silent because we don't want to record it for future runs.
1485-# Also quote any args containing shell meta-characters.
1486-# Make two passes to allow for proper duplicate-argument suppression.
1487-ac_configure_args=
1488-ac_configure_args0=
1489-ac_configure_args1=
1490-ac_must_keep_next=false
1491-for ac_pass in 1 2
1492-do
1493- for ac_arg
1494- do
1495- case $ac_arg in
1496- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1497- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498- | -silent | --silent | --silen | --sile | --sil)
1499- continue ;;
1500- *\'*)
1501- ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1502- esac
1503- case $ac_pass in
1504- 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1505- 2)
1506- ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1507- if test $ac_must_keep_next = true; then
1508- ac_must_keep_next=false # Got value, back to normal.
1509- else
1510- case $ac_arg in
1511- *=* | --config-cache | -C | -disable-* | --disable-* \
1512- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1513- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1514- | -with-* | --with-* | -without-* | --without-* | --x)
1515- case "$ac_configure_args0 " in
1516- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517- esac
1518- ;;
1519- -* ) ac_must_keep_next=true ;;
1520- esac
1521- fi
1522- ac_configure_args="$ac_configure_args '$ac_arg'"
1523- ;;
1524- esac
1525- done
1526-done
1527-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1528-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1529-
1530-# When interrupted or exit'd, cleanup temporary files, and complete
1531-# config.log. We remove comments because anyway the quotes in there
1532-# would cause problems or look ugly.
1533-# WARNING: Use '\'' to represent an apostrophe within the trap.
1534-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1535-trap 'exit_status=$?
1536- # Save into config.log some information that might help in debugging.
1537- {
1538- echo
1539-
1540- cat <<\_ASBOX
1541-## ---------------- ##
1542-## Cache variables. ##
1543-## ---------------- ##
1544-_ASBOX
1545- echo
1546- # The following way of writing the cache mishandles newlines in values,
1547-(
1548- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1549- eval ac_val=\$$ac_var
1550- case $ac_val in #(
1551- *${as_nl}*)
1552- case $ac_var in #(
1553- *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1554-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1555- esac
1556- case $ac_var in #(
1557- _ | IFS | as_nl) ;; #(
1558- *) $as_unset $ac_var ;;
1559- esac ;;
1560- esac
1561- done
1562- (set) 2>&1 |
1563- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1564- *${as_nl}ac_space=\ *)
1565- sed -n \
1566- "s/'\''/'\''\\\\'\'''\''/g;
1567- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1568- ;; #(
1569- *)
1570- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1571- ;;
1572- esac |
1573- sort
1574-)
1575- echo
1576-
1577- cat <<\_ASBOX
1578-## ----------------- ##
1579-## Output variables. ##
1580-## ----------------- ##
1581-_ASBOX
1582- echo
1583- for ac_var in $ac_subst_vars
1584- do
1585- eval ac_val=\$$ac_var
1586- case $ac_val in
1587- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588- esac
1589- echo "$ac_var='\''$ac_val'\''"
1590- done | sort
1591- echo
1592-
1593- if test -n "$ac_subst_files"; then
1594- cat <<\_ASBOX
1595-## ------------------- ##
1596-## File substitutions. ##
1597-## ------------------- ##
1598-_ASBOX
1599- echo
1600- for ac_var in $ac_subst_files
1601- do
1602- eval ac_val=\$$ac_var
1603- case $ac_val in
1604- *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605- esac
1606- echo "$ac_var='\''$ac_val'\''"
1607- done | sort
1608- echo
1609- fi
1610-
1611- if test -s confdefs.h; then
1612- cat <<\_ASBOX
1613-## ----------- ##
1614-## confdefs.h. ##
1615-## ----------- ##
1616-_ASBOX
1617- echo
1618- cat confdefs.h
1619- echo
1620- fi
1621- test "$ac_signal" != 0 &&
1622- echo "$as_me: caught signal $ac_signal"
1623- echo "$as_me: exit $exit_status"
1624- } >&5
1625- rm -f core *.core core.conftest.* &&
1626- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1627- exit $exit_status
1628-' 0
1629-for ac_signal in 1 2 13 15; do
1630- trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1631-done
1632-ac_signal=0
1633-
1634-# confdefs.h avoids OS command line length limits that DEFS can exceed.
1635-rm -f -r conftest* confdefs.h
1636-
1637-# Predefined preprocessor variables.
1638-
1639-cat >>confdefs.h <<_ACEOF
1640-#define PACKAGE_NAME "$PACKAGE_NAME"
1641-_ACEOF
1642-
1643-
1644-cat >>confdefs.h <<_ACEOF
1645-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1646-_ACEOF
1647-
1648-
1649-cat >>confdefs.h <<_ACEOF
1650-#define PACKAGE_VERSION "$PACKAGE_VERSION"
1651-_ACEOF
1652-
1653-
1654-cat >>confdefs.h <<_ACEOF
1655-#define PACKAGE_STRING "$PACKAGE_STRING"
1656-_ACEOF
1657-
1658-
1659-cat >>confdefs.h <<_ACEOF
1660-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1661-_ACEOF
1662-
1663-
1664-# Let the site file select an alternate cache file if it wants to.
1665-# Prefer explicitly selected file to automatically selected ones.
1666-if test -n "$CONFIG_SITE"; then
1667- set x "$CONFIG_SITE"
1668-elif test "x$prefix" != xNONE; then
1669- set x "$prefix/share/config.site" "$prefix/etc/config.site"
1670-else
1671- set x "$ac_default_prefix/share/config.site" \
1672- "$ac_default_prefix/etc/config.site"
1673-fi
1674-shift
1675-for ac_site_file
1676-do
1677- if test -r "$ac_site_file"; then
1678- { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1679-echo "$as_me: loading site script $ac_site_file" >&6;}
1680- sed 's/^/| /' "$ac_site_file" >&5
1681- . "$ac_site_file"
1682- fi
1683-done
1684-
1685-if test -r "$cache_file"; then
1686- # Some versions of bash will fail to source /dev/null (special
1687- # files actually), so we avoid doing that.
1688- if test -f "$cache_file"; then
1689- { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1690-echo "$as_me: loading cache $cache_file" >&6;}
1691- case $cache_file in
1692- [\\/]* | ?:[\\/]* ) . "$cache_file";;
1693- *) . "./$cache_file";;
1694- esac
1695- fi
1696-else
1697- { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1698-echo "$as_me: creating cache $cache_file" >&6;}
1699- >$cache_file
1700-fi
1701-
1702-# Check that the precious variables saved in the cache have kept the same
1703-# value.
1704-ac_cache_corrupted=false
1705-for ac_var in $ac_precious_vars; do
1706- eval ac_old_set=\$ac_cv_env_${ac_var}_set
1707- eval ac_new_set=\$ac_env_${ac_var}_set
1708- eval ac_old_val=\$ac_cv_env_${ac_var}_value
1709- eval ac_new_val=\$ac_env_${ac_var}_value
1710- case $ac_old_set,$ac_new_set in
1711- set,)
1712- { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1713-echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1714- ac_cache_corrupted=: ;;
1715- ,set)
1716- { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1717-echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1718- ac_cache_corrupted=: ;;
1719- ,);;
1720- *)
1721- if test "x$ac_old_val" != "x$ac_new_val"; then
1722- { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1723-echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1724- { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1725-echo "$as_me: former value: $ac_old_val" >&2;}
1726- { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1727-echo "$as_me: current value: $ac_new_val" >&2;}
1728- ac_cache_corrupted=:
1729- fi;;
1730- esac
1731- # Pass precious variables to config.status.
1732- if test "$ac_new_set" = set; then
1733- case $ac_new_val in
1734- *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1735- *) ac_arg=$ac_var=$ac_new_val ;;
1736- esac
1737- case " $ac_configure_args " in
1738- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1739- *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1740- esac
1741- fi
1742-done
1743-if $ac_cache_corrupted; then
1744- { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1745-echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1746- { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1747-echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1748- { (exit 1); exit 1; }; }
1749-fi
1750-
1751-
1752-
1753-
1754-
1755-
1756-
1757-
1758-
1759-
1760-
1761-
1762-
1763-
1764-
1765-
1766-
1767-
1768-
1769-
1770-
1771-
1772-
1773-
1774-
1775-ac_ext=c
1776-ac_cpp='$CPP $CPPFLAGS'
1777-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779-ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780-
1781-
1782-am__api_version='1.10'
1783-
1784-ac_aux_dir=
1785-for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1786- if test -f "$ac_dir/install-sh"; then
1787- ac_aux_dir=$ac_dir
1788- ac_install_sh="$ac_aux_dir/install-sh -c"
1789- break
1790- elif test -f "$ac_dir/install.sh"; then
1791- ac_aux_dir=$ac_dir
1792- ac_install_sh="$ac_aux_dir/install.sh -c"
1793- break
1794- elif test -f "$ac_dir/shtool"; then
1795- ac_aux_dir=$ac_dir
1796- ac_install_sh="$ac_aux_dir/shtool install -c"
1797- break
1798- fi
1799-done
1800-if test -z "$ac_aux_dir"; then
1801- { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1802-echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1803- { (exit 1); exit 1; }; }
1804-fi
1805-
1806-# These three variables are undocumented and unsupported,
1807-# and are intended to be withdrawn in a future Autoconf release.
1808-# They can cause serious problems if a builder's source tree is in a directory
1809-# whose full name contains unusual characters.
1810-ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1811-ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1812-ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1813-
1814-
1815-# Find a good install program. We prefer a C program (faster),
1816-# so one script is as good as another. But avoid the broken or
1817-# incompatible versions:
1818-# SysV /etc/install, /usr/sbin/install
1819-# SunOS /usr/etc/install
1820-# IRIX /sbin/install
1821-# AIX /bin/install
1822-# AmigaOS /C/install, which installs bootblocks on floppy discs
1823-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1824-# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1825-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1826-# OS/2's system install, which has a completely different semantic
1827-# ./install, which can be erroneously created by make from ./install.sh.
1828-{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1829-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1830-if test -z "$INSTALL"; then
1831-if test "${ac_cv_path_install+set}" = set; then
1832- echo $ECHO_N "(cached) $ECHO_C" >&6
1833-else
1834- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835-for as_dir in $PATH
1836-do
1837- IFS=$as_save_IFS
1838- test -z "$as_dir" && as_dir=.
1839- # Account for people who put trailing slashes in PATH elements.
1840-case $as_dir/ in
1841- ./ | .// | /cC/* | \
1842- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1843- ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1844- /usr/ucb/* ) ;;
1845- *)
1846- # OSF1 and SCO ODT 3.0 have their own names for install.
1847- # Don't use installbsd from OSF since it installs stuff as root
1848- # by default.
1849- for ac_prog in ginstall scoinst install; do
1850- for ac_exec_ext in '' $ac_executable_extensions; do
1851- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1852- if test $ac_prog = install &&
1853- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1854- # AIX install. It has an incompatible calling convention.
1855- :
1856- elif test $ac_prog = install &&
1857- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1858- # program-specific install script used by HP pwplus--don't use.
1859- :
1860- else
1861- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1862- break 3
1863- fi
1864- fi
1865- done
1866- done
1867- ;;
1868-esac
1869-done
1870-IFS=$as_save_IFS
1871-
1872-
1873-fi
1874- if test "${ac_cv_path_install+set}" = set; then
1875- INSTALL=$ac_cv_path_install
1876- else
1877- # As a last resort, use the slow shell script. Don't cache a
1878- # value for INSTALL within a source directory, because that will
1879- # break other packages using the cache if that directory is
1880- # removed, or if the value is a relative name.
1881- INSTALL=$ac_install_sh
1882- fi
1883-fi
1884-{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1885-echo "${ECHO_T}$INSTALL" >&6; }
1886-
1887-# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1888-# It thinks the first close brace ends the variable substitution.
1889-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1890-
1891-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1892-
1893-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1894-
1895-{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1896-echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1897-# Just in case
1898-sleep 1
1899-echo timestamp > conftest.file
1900-# Do `set' in a subshell so we don't clobber the current shell's
1901-# arguments. Must try -L first in case configure is actually a
1902-# symlink; some systems play weird games with the mod time of symlinks
1903-# (eg FreeBSD returns the mod time of the symlink's containing
1904-# directory).
1905-if (
1906- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1907- if test "$*" = "X"; then
1908- # -L didn't work.
1909- set X `ls -t $srcdir/configure conftest.file`
1910- fi
1911- rm -f conftest.file
1912- if test "$*" != "X $srcdir/configure conftest.file" \
1913- && test "$*" != "X conftest.file $srcdir/configure"; then
1914-
1915- # If neither matched, then we have a broken ls. This can happen
1916- # if, for instance, CONFIG_SHELL is bash and it inherits a
1917- # broken ls alias from the environment. This has actually
1918- # happened. Such a system could not be considered "sane".
1919- { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1920-alias in your environment" >&5
1921-echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1922-alias in your environment" >&2;}
1923- { (exit 1); exit 1; }; }
1924- fi
1925-
1926- test "$2" = conftest.file
1927- )
1928-then
1929- # Ok.
1930- :
1931-else
1932- { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1933-Check your system clock" >&5
1934-echo "$as_me: error: newly created file is older than distributed files!
1935-Check your system clock" >&2;}
1936- { (exit 1); exit 1; }; }
1937-fi
1938-{ echo "$as_me:$LINENO: result: yes" >&5
1939-echo "${ECHO_T}yes" >&6; }
1940-test "$program_prefix" != NONE &&
1941- program_transform_name="s&^&$program_prefix&;$program_transform_name"
1942-# Use a double $ so make ignores it.
1943-test "$program_suffix" != NONE &&
1944- program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1945-# Double any \ or $. echo might interpret backslashes.
1946-# By default was `s,x,x', remove it if useless.
1947-cat <<\_ACEOF >conftest.sed
1948-s/[\\$]/&&/g;s/;s,x,x,$//
1949-_ACEOF
1950-program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1951-rm -f conftest.sed
1952-
1953-# expand $ac_aux_dir to an absolute path
1954-am_aux_dir=`cd $ac_aux_dir && pwd`
1955-
1956-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1957-# Use eval to expand $SHELL
1958-if eval "$MISSING --run true"; then
1959- am_missing_run="$MISSING --run "
1960-else
1961- am_missing_run=
1962- { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1963-echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1964-fi
1965-
1966-{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1967-echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1968-if test -z "$MKDIR_P"; then
1969- if test "${ac_cv_path_mkdir+set}" = set; then
1970- echo $ECHO_N "(cached) $ECHO_C" >&6
1971-else
1972- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973-for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1974-do
1975- IFS=$as_save_IFS
1976- test -z "$as_dir" && as_dir=.
1977- for ac_prog in mkdir gmkdir; do
1978- for ac_exec_ext in '' $ac_executable_extensions; do
1979- { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1980- case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1981- 'mkdir (GNU coreutils) '* | \
1982- 'mkdir (coreutils) '* | \
1983- 'mkdir (fileutils) '4.1*)
1984- ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1985- break 3;;
1986- esac
1987- done
1988- done
1989-done
1990-IFS=$as_save_IFS
1991-
1992-fi
1993-
1994- if test "${ac_cv_path_mkdir+set}" = set; then
1995- MKDIR_P="$ac_cv_path_mkdir -p"
1996- else
1997- # As a last resort, use the slow shell script. Don't cache a
1998- # value for MKDIR_P within a source directory, because that will
1999- # break other packages using the cache if that directory is
2000- # removed, or if the value is a relative name.
2001- test -d ./--version && rmdir ./--version
2002- MKDIR_P="$ac_install_sh -d"
2003- fi
2004-fi
2005-{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2006-echo "${ECHO_T}$MKDIR_P" >&6; }
2007-
2008-mkdir_p="$MKDIR_P"
2009-case $mkdir_p in
2010- [\\/$]* | ?:[\\/]*) ;;
2011- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2012-esac
2013-
2014-for ac_prog in gawk mawk nawk awk
2015-do
2016- # Extract the first word of "$ac_prog", so it can be a program name with args.
2017-set dummy $ac_prog; ac_word=$2
2018-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2019-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020-if test "${ac_cv_prog_AWK+set}" = set; then
2021- echo $ECHO_N "(cached) $ECHO_C" >&6
2022-else
2023- if test -n "$AWK"; then
2024- ac_cv_prog_AWK="$AWK" # Let the user override the test.
2025-else
2026-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027-for as_dir in $PATH
2028-do
2029- IFS=$as_save_IFS
2030- test -z "$as_dir" && as_dir=.
2031- for ac_exec_ext in '' $ac_executable_extensions; do
2032- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2033- ac_cv_prog_AWK="$ac_prog"
2034- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035- break 2
2036- fi
2037-done
2038-done
2039-IFS=$as_save_IFS
2040-
2041-fi
2042-fi
2043-AWK=$ac_cv_prog_AWK
2044-if test -n "$AWK"; then
2045- { echo "$as_me:$LINENO: result: $AWK" >&5
2046-echo "${ECHO_T}$AWK" >&6; }
2047-else
2048- { echo "$as_me:$LINENO: result: no" >&5
2049-echo "${ECHO_T}no" >&6; }
2050-fi
2051-
2052-
2053- test -n "$AWK" && break
2054-done
2055-
2056-{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2057-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2058-set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2059-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2060- echo $ECHO_N "(cached) $ECHO_C" >&6
2061-else
2062- cat >conftest.make <<\_ACEOF
2063-SHELL = /bin/sh
2064-all:
2065- @echo '@@@%%%=$(MAKE)=@@@%%%'
2066-_ACEOF
2067-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2068-case `${MAKE-make} -f conftest.make 2>/dev/null` in
2069- *@@@%%%=?*=@@@%%%*)
2070- eval ac_cv_prog_make_${ac_make}_set=yes;;
2071- *)
2072- eval ac_cv_prog_make_${ac_make}_set=no;;
2073-esac
2074-rm -f conftest.make
2075-fi
2076-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2077- { echo "$as_me:$LINENO: result: yes" >&5
2078-echo "${ECHO_T}yes" >&6; }
2079- SET_MAKE=
2080-else
2081- { echo "$as_me:$LINENO: result: no" >&5
2082-echo "${ECHO_T}no" >&6; }
2083- SET_MAKE="MAKE=${MAKE-make}"
2084-fi
2085-
2086-rm -rf .tst 2>/dev/null
2087-mkdir .tst 2>/dev/null
2088-if test -d .tst; then
2089- am__leading_dot=.
2090-else
2091- am__leading_dot=_
2092-fi
2093-rmdir .tst 2>/dev/null
2094-
2095-if test "`cd $srcdir && pwd`" != "`pwd`"; then
2096- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2097- # is not polluted with repeated "-I."
2098- am__isrc=' -I$(srcdir)'
2099- # test to see if srcdir already configured
2100- if test -f $srcdir/config.status; then
2101- { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2102-echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2103- { (exit 1); exit 1; }; }
2104- fi
2105-fi
2106-
2107-# test whether we have cygpath
2108-if test -z "$CYGPATH_W"; then
2109- if (cygpath --version) >/dev/null 2>/dev/null; then
2110- CYGPATH_W='cygpath -w'
2111- else
2112- CYGPATH_W=echo
2113- fi
2114-fi
2115-
2116-
2117-# Define the identity of the package.
2118- PACKAGE='hyakutyping'
2119- VERSION='1.0.0'
2120-
2121-
2122-cat >>confdefs.h <<_ACEOF
2123-#define PACKAGE "$PACKAGE"
2124-_ACEOF
2125-
2126-
2127-cat >>confdefs.h <<_ACEOF
2128-#define VERSION "$VERSION"
2129-_ACEOF
2130-
2131-# Some tools Automake needs.
2132-
2133-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2134-
2135-
2136-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2137-
2138-
2139-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2140-
2141-
2142-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2143-
2144-
2145-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2146-
2147-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2148-
2149-# Installed binaries are usually stripped using `strip' when the user
2150-# run `make install-strip'. However `strip' might not be the right
2151-# tool to use in cross-compilation environments, therefore Automake
2152-# will honor the `STRIP' environment variable to overrule this program.
2153-if test "$cross_compiling" != no; then
2154- if test -n "$ac_tool_prefix"; then
2155- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2156-set dummy ${ac_tool_prefix}strip; ac_word=$2
2157-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2158-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2159-if test "${ac_cv_prog_STRIP+set}" = set; then
2160- echo $ECHO_N "(cached) $ECHO_C" >&6
2161-else
2162- if test -n "$STRIP"; then
2163- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2164-else
2165-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166-for as_dir in $PATH
2167-do
2168- IFS=$as_save_IFS
2169- test -z "$as_dir" && as_dir=.
2170- for ac_exec_ext in '' $ac_executable_extensions; do
2171- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2172- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2173- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2174- break 2
2175- fi
2176-done
2177-done
2178-IFS=$as_save_IFS
2179-
2180-fi
2181-fi
2182-STRIP=$ac_cv_prog_STRIP
2183-if test -n "$STRIP"; then
2184- { echo "$as_me:$LINENO: result: $STRIP" >&5
2185-echo "${ECHO_T}$STRIP" >&6; }
2186-else
2187- { echo "$as_me:$LINENO: result: no" >&5
2188-echo "${ECHO_T}no" >&6; }
2189-fi
2190-
2191-
2192-fi
2193-if test -z "$ac_cv_prog_STRIP"; then
2194- ac_ct_STRIP=$STRIP
2195- # Extract the first word of "strip", so it can be a program name with args.
2196-set dummy strip; ac_word=$2
2197-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2198-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199-if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2200- echo $ECHO_N "(cached) $ECHO_C" >&6
2201-else
2202- if test -n "$ac_ct_STRIP"; then
2203- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2204-else
2205-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206-for as_dir in $PATH
2207-do
2208- IFS=$as_save_IFS
2209- test -z "$as_dir" && as_dir=.
2210- for ac_exec_ext in '' $ac_executable_extensions; do
2211- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212- ac_cv_prog_ac_ct_STRIP="strip"
2213- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214- break 2
2215- fi
2216-done
2217-done
2218-IFS=$as_save_IFS
2219-
2220-fi
2221-fi
2222-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2223-if test -n "$ac_ct_STRIP"; then
2224- { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2225-echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2226-else
2227- { echo "$as_me:$LINENO: result: no" >&5
2228-echo "${ECHO_T}no" >&6; }
2229-fi
2230-
2231- if test "x$ac_ct_STRIP" = x; then
2232- STRIP=":"
2233- else
2234- case $cross_compiling:$ac_tool_warned in
2235-yes:)
2236-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2237-whose name does not start with the host triplet. If you think this
2238-configuration is useful to you, please write to autoconf@gnu.org." >&5
2239-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2240-whose name does not start with the host triplet. If you think this
2241-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2242-ac_tool_warned=yes ;;
2243-esac
2244- STRIP=$ac_ct_STRIP
2245- fi
2246-else
2247- STRIP="$ac_cv_prog_STRIP"
2248-fi
2249-
2250-fi
2251-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2252-
2253-# We need awk for the "check" target. The system "awk" is bad on
2254-# some platforms.
2255-# Always define AMTAR for backward compatibility.
2256-
2257-AMTAR=${AMTAR-"${am_missing_run}tar"}
2258-
2259-am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2260-
2261-
2262-
2263-
2264-
2265-
2266-
2267-
2268-# Checks for programs.
2269-ac_ext=cpp
2270-ac_cpp='$CXXCPP $CPPFLAGS'
2271-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2274-if test -z "$CXX"; then
2275- if test -n "$CCC"; then
2276- CXX=$CCC
2277- else
2278- if test -n "$ac_tool_prefix"; then
2279- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2280- do
2281- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2282-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2283-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2284-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285-if test "${ac_cv_prog_CXX+set}" = set; then
2286- echo $ECHO_N "(cached) $ECHO_C" >&6
2287-else
2288- if test -n "$CXX"; then
2289- ac_cv_prog_CXX="$CXX" # Let the user override the test.
2290-else
2291-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292-for as_dir in $PATH
2293-do
2294- IFS=$as_save_IFS
2295- test -z "$as_dir" && as_dir=.
2296- for ac_exec_ext in '' $ac_executable_extensions; do
2297- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298- ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2299- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300- break 2
2301- fi
2302-done
2303-done
2304-IFS=$as_save_IFS
2305-
2306-fi
2307-fi
2308-CXX=$ac_cv_prog_CXX
2309-if test -n "$CXX"; then
2310- { echo "$as_me:$LINENO: result: $CXX" >&5
2311-echo "${ECHO_T}$CXX" >&6; }
2312-else
2313- { echo "$as_me:$LINENO: result: no" >&5
2314-echo "${ECHO_T}no" >&6; }
2315-fi
2316-
2317-
2318- test -n "$CXX" && break
2319- done
2320-fi
2321-if test -z "$CXX"; then
2322- ac_ct_CXX=$CXX
2323- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2324-do
2325- # Extract the first word of "$ac_prog", so it can be a program name with args.
2326-set dummy $ac_prog; ac_word=$2
2327-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2328-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329-if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2330- echo $ECHO_N "(cached) $ECHO_C" >&6
2331-else
2332- if test -n "$ac_ct_CXX"; then
2333- ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2334-else
2335-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336-for as_dir in $PATH
2337-do
2338- IFS=$as_save_IFS
2339- test -z "$as_dir" && as_dir=.
2340- for ac_exec_ext in '' $ac_executable_extensions; do
2341- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342- ac_cv_prog_ac_ct_CXX="$ac_prog"
2343- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344- break 2
2345- fi
2346-done
2347-done
2348-IFS=$as_save_IFS
2349-
2350-fi
2351-fi
2352-ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2353-if test -n "$ac_ct_CXX"; then
2354- { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2355-echo "${ECHO_T}$ac_ct_CXX" >&6; }
2356-else
2357- { echo "$as_me:$LINENO: result: no" >&5
2358-echo "${ECHO_T}no" >&6; }
2359-fi
2360-
2361-
2362- test -n "$ac_ct_CXX" && break
2363-done
2364-
2365- if test "x$ac_ct_CXX" = x; then
2366- CXX="g++"
2367- else
2368- case $cross_compiling:$ac_tool_warned in
2369-yes:)
2370-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2371-whose name does not start with the host triplet. If you think this
2372-configuration is useful to you, please write to autoconf@gnu.org." >&5
2373-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2374-whose name does not start with the host triplet. If you think this
2375-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2376-ac_tool_warned=yes ;;
2377-esac
2378- CXX=$ac_ct_CXX
2379- fi
2380-fi
2381-
2382- fi
2383-fi
2384-# Provide some information about the compiler.
2385-echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2386-ac_compiler=`set X $ac_compile; echo $2`
2387-{ (ac_try="$ac_compiler --version >&5"
2388-case "(($ac_try" in
2389- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390- *) ac_try_echo=$ac_try;;
2391-esac
2392-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393- (eval "$ac_compiler --version >&5") 2>&5
2394- ac_status=$?
2395- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396- (exit $ac_status); }
2397-{ (ac_try="$ac_compiler -v >&5"
2398-case "(($ac_try" in
2399- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400- *) ac_try_echo=$ac_try;;
2401-esac
2402-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403- (eval "$ac_compiler -v >&5") 2>&5
2404- ac_status=$?
2405- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406- (exit $ac_status); }
2407-{ (ac_try="$ac_compiler -V >&5"
2408-case "(($ac_try" in
2409- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2410- *) ac_try_echo=$ac_try;;
2411-esac
2412-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2413- (eval "$ac_compiler -V >&5") 2>&5
2414- ac_status=$?
2415- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416- (exit $ac_status); }
2417-
2418-cat >conftest.$ac_ext <<_ACEOF
2419-/* confdefs.h. */
2420-_ACEOF
2421-cat confdefs.h >>conftest.$ac_ext
2422-cat >>conftest.$ac_ext <<_ACEOF
2423-/* end confdefs.h. */
2424-
2425-int
2426-main ()
2427-{
2428-
2429- ;
2430- return 0;
2431-}
2432-_ACEOF
2433-ac_clean_files_save=$ac_clean_files
2434-ac_clean_files="$ac_clean_files a.out a.exe b.out"
2435-# Try to create an executable without -o first, disregard a.out.
2436-# It will help us diagnose broken compilers, and finding out an intuition
2437-# of exeext.
2438-{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2439-echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2440-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2441-#
2442-# List of possible output files, starting from the most likely.
2443-# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2444-# only as a last resort. b.out is created by i960 compilers.
2445-ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2446-#
2447-# The IRIX 6 linker writes into existing files which may not be
2448-# executable, retaining their permissions. Remove them first so a
2449-# subsequent execution test works.
2450-ac_rmfiles=
2451-for ac_file in $ac_files
2452-do
2453- case $ac_file in
2454- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2455- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2456- esac
2457-done
2458-rm -f $ac_rmfiles
2459-
2460-if { (ac_try="$ac_link_default"
2461-case "(($ac_try" in
2462- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463- *) ac_try_echo=$ac_try;;
2464-esac
2465-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466- (eval "$ac_link_default") 2>&5
2467- ac_status=$?
2468- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469- (exit $ac_status); }; then
2470- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2471-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2472-# in a Makefile. We should not override ac_cv_exeext if it was cached,
2473-# so that the user can short-circuit this test for compilers unknown to
2474-# Autoconf.
2475-for ac_file in $ac_files ''
2476-do
2477- test -f "$ac_file" || continue
2478- case $ac_file in
2479- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2480- ;;
2481- [ab].out )
2482- # We found the default executable, but exeext='' is most
2483- # certainly right.
2484- break;;
2485- *.* )
2486- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2487- then :; else
2488- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489- fi
2490- # We set ac_cv_exeext here because the later test for it is not
2491- # safe: cross compilers may not add the suffix if given an `-o'
2492- # argument, so we may need to know it at that point already.
2493- # Even if this section looks crufty: it has the advantage of
2494- # actually working.
2495- break;;
2496- * )
2497- break;;
2498- esac
2499-done
2500-test "$ac_cv_exeext" = no && ac_cv_exeext=
2501-
2502-else
2503- ac_file=''
2504-fi
2505-
2506-{ echo "$as_me:$LINENO: result: $ac_file" >&5
2507-echo "${ECHO_T}$ac_file" >&6; }
2508-if test -z "$ac_file"; then
2509- echo "$as_me: failed program was:" >&5
2510-sed 's/^/| /' conftest.$ac_ext >&5
2511-
2512-{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2513-See \`config.log' for more details." >&5
2514-echo "$as_me: error: C++ compiler cannot create executables
2515-See \`config.log' for more details." >&2;}
2516- { (exit 77); exit 77; }; }
2517-fi
2518-
2519-ac_exeext=$ac_cv_exeext
2520-
2521-# Check that the compiler produces executables we can run. If not, either
2522-# the compiler is broken, or we cross compile.
2523-{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2524-echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2525-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2526-# If not cross compiling, check that we can run a simple program.
2527-if test "$cross_compiling" != yes; then
2528- if { ac_try='./$ac_file'
2529- { (case "(($ac_try" in
2530- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531- *) ac_try_echo=$ac_try;;
2532-esac
2533-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534- (eval "$ac_try") 2>&5
2535- ac_status=$?
2536- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537- (exit $ac_status); }; }; then
2538- cross_compiling=no
2539- else
2540- if test "$cross_compiling" = maybe; then
2541- cross_compiling=yes
2542- else
2543- { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2544-If you meant to cross compile, use \`--host'.
2545-See \`config.log' for more details." >&5
2546-echo "$as_me: error: cannot run C++ compiled programs.
2547-If you meant to cross compile, use \`--host'.
2548-See \`config.log' for more details." >&2;}
2549- { (exit 1); exit 1; }; }
2550- fi
2551- fi
2552-fi
2553-{ echo "$as_me:$LINENO: result: yes" >&5
2554-echo "${ECHO_T}yes" >&6; }
2555-
2556-rm -f a.out a.exe conftest$ac_cv_exeext b.out
2557-ac_clean_files=$ac_clean_files_save
2558-# Check that the compiler produces executables we can run. If not, either
2559-# the compiler is broken, or we cross compile.
2560-{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2561-echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2562-{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2563-echo "${ECHO_T}$cross_compiling" >&6; }
2564-
2565-{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2566-echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2567-if { (ac_try="$ac_link"
2568-case "(($ac_try" in
2569- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570- *) ac_try_echo=$ac_try;;
2571-esac
2572-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573- (eval "$ac_link") 2>&5
2574- ac_status=$?
2575- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576- (exit $ac_status); }; then
2577- # If both `conftest.exe' and `conftest' are `present' (well, observable)
2578-# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2579-# work properly (i.e., refer to `conftest.exe'), while it won't with
2580-# `rm'.
2581-for ac_file in conftest.exe conftest conftest.*; do
2582- test -f "$ac_file" || continue
2583- case $ac_file in
2584- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2585- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2586- break;;
2587- * ) break;;
2588- esac
2589-done
2590-else
2591- { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2592-See \`config.log' for more details." >&5
2593-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2594-See \`config.log' for more details." >&2;}
2595- { (exit 1); exit 1; }; }
2596-fi
2597-
2598-rm -f conftest$ac_cv_exeext
2599-{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2600-echo "${ECHO_T}$ac_cv_exeext" >&6; }
2601-
2602-rm -f conftest.$ac_ext
2603-EXEEXT=$ac_cv_exeext
2604-ac_exeext=$EXEEXT
2605-{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2606-echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2607-if test "${ac_cv_objext+set}" = set; then
2608- echo $ECHO_N "(cached) $ECHO_C" >&6
2609-else
2610- cat >conftest.$ac_ext <<_ACEOF
2611-/* confdefs.h. */
2612-_ACEOF
2613-cat confdefs.h >>conftest.$ac_ext
2614-cat >>conftest.$ac_ext <<_ACEOF
2615-/* end confdefs.h. */
2616-
2617-int
2618-main ()
2619-{
2620-
2621- ;
2622- return 0;
2623-}
2624-_ACEOF
2625-rm -f conftest.o conftest.obj
2626-if { (ac_try="$ac_compile"
2627-case "(($ac_try" in
2628- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629- *) ac_try_echo=$ac_try;;
2630-esac
2631-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632- (eval "$ac_compile") 2>&5
2633- ac_status=$?
2634- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635- (exit $ac_status); }; then
2636- for ac_file in conftest.o conftest.obj conftest.*; do
2637- test -f "$ac_file" || continue;
2638- case $ac_file in
2639- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2640- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2641- break;;
2642- esac
2643-done
2644-else
2645- echo "$as_me: failed program was:" >&5
2646-sed 's/^/| /' conftest.$ac_ext >&5
2647-
2648-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2649-See \`config.log' for more details." >&5
2650-echo "$as_me: error: cannot compute suffix of object files: cannot compile
2651-See \`config.log' for more details." >&2;}
2652- { (exit 1); exit 1; }; }
2653-fi
2654-
2655-rm -f conftest.$ac_cv_objext conftest.$ac_ext
2656-fi
2657-{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2658-echo "${ECHO_T}$ac_cv_objext" >&6; }
2659-OBJEXT=$ac_cv_objext
2660-ac_objext=$OBJEXT
2661-{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2662-echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2663-if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2664- echo $ECHO_N "(cached) $ECHO_C" >&6
2665-else
2666- cat >conftest.$ac_ext <<_ACEOF
2667-/* confdefs.h. */
2668-_ACEOF
2669-cat confdefs.h >>conftest.$ac_ext
2670-cat >>conftest.$ac_ext <<_ACEOF
2671-/* end confdefs.h. */
2672-
2673-int
2674-main ()
2675-{
2676-#ifndef __GNUC__
2677- choke me
2678-#endif
2679-
2680- ;
2681- return 0;
2682-}
2683-_ACEOF
2684-rm -f conftest.$ac_objext
2685-if { (ac_try="$ac_compile"
2686-case "(($ac_try" in
2687- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688- *) ac_try_echo=$ac_try;;
2689-esac
2690-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691- (eval "$ac_compile") 2>conftest.er1
2692- ac_status=$?
2693- grep -v '^ *+' conftest.er1 >conftest.err
2694- rm -f conftest.er1
2695- cat conftest.err >&5
2696- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697- (exit $ac_status); } && {
2698- test -z "$ac_cxx_werror_flag" ||
2699- test ! -s conftest.err
2700- } && test -s conftest.$ac_objext; then
2701- ac_compiler_gnu=yes
2702-else
2703- echo "$as_me: failed program was:" >&5
2704-sed 's/^/| /' conftest.$ac_ext >&5
2705-
2706- ac_compiler_gnu=no
2707-fi
2708-
2709-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710-ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2711-
2712-fi
2713-{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2714-echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2715-GXX=`test $ac_compiler_gnu = yes && echo yes`
2716-ac_test_CXXFLAGS=${CXXFLAGS+set}
2717-ac_save_CXXFLAGS=$CXXFLAGS
2718-{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2719-echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2720-if test "${ac_cv_prog_cxx_g+set}" = set; then
2721- echo $ECHO_N "(cached) $ECHO_C" >&6
2722-else
2723- ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2724- ac_cxx_werror_flag=yes
2725- ac_cv_prog_cxx_g=no
2726- CXXFLAGS="-g"
2727- cat >conftest.$ac_ext <<_ACEOF
2728-/* confdefs.h. */
2729-_ACEOF
2730-cat confdefs.h >>conftest.$ac_ext
2731-cat >>conftest.$ac_ext <<_ACEOF
2732-/* end confdefs.h. */
2733-
2734-int
2735-main ()
2736-{
2737-
2738- ;
2739- return 0;
2740-}
2741-_ACEOF
2742-rm -f conftest.$ac_objext
2743-if { (ac_try="$ac_compile"
2744-case "(($ac_try" in
2745- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746- *) ac_try_echo=$ac_try;;
2747-esac
2748-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749- (eval "$ac_compile") 2>conftest.er1
2750- ac_status=$?
2751- grep -v '^ *+' conftest.er1 >conftest.err
2752- rm -f conftest.er1
2753- cat conftest.err >&5
2754- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755- (exit $ac_status); } && {
2756- test -z "$ac_cxx_werror_flag" ||
2757- test ! -s conftest.err
2758- } && test -s conftest.$ac_objext; then
2759- ac_cv_prog_cxx_g=yes
2760-else
2761- echo "$as_me: failed program was:" >&5
2762-sed 's/^/| /' conftest.$ac_ext >&5
2763-
2764- CXXFLAGS=""
2765- cat >conftest.$ac_ext <<_ACEOF
2766-/* confdefs.h. */
2767-_ACEOF
2768-cat confdefs.h >>conftest.$ac_ext
2769-cat >>conftest.$ac_ext <<_ACEOF
2770-/* end confdefs.h. */
2771-
2772-int
2773-main ()
2774-{
2775-
2776- ;
2777- return 0;
2778-}
2779-_ACEOF
2780-rm -f conftest.$ac_objext
2781-if { (ac_try="$ac_compile"
2782-case "(($ac_try" in
2783- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784- *) ac_try_echo=$ac_try;;
2785-esac
2786-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787- (eval "$ac_compile") 2>conftest.er1
2788- ac_status=$?
2789- grep -v '^ *+' conftest.er1 >conftest.err
2790- rm -f conftest.er1
2791- cat conftest.err >&5
2792- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793- (exit $ac_status); } && {
2794- test -z "$ac_cxx_werror_flag" ||
2795- test ! -s conftest.err
2796- } && test -s conftest.$ac_objext; then
2797- :
2798-else
2799- echo "$as_me: failed program was:" >&5
2800-sed 's/^/| /' conftest.$ac_ext >&5
2801-
2802- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2803- CXXFLAGS="-g"
2804- cat >conftest.$ac_ext <<_ACEOF
2805-/* confdefs.h. */
2806-_ACEOF
2807-cat confdefs.h >>conftest.$ac_ext
2808-cat >>conftest.$ac_ext <<_ACEOF
2809-/* end confdefs.h. */
2810-
2811-int
2812-main ()
2813-{
2814-
2815- ;
2816- return 0;
2817-}
2818-_ACEOF
2819-rm -f conftest.$ac_objext
2820-if { (ac_try="$ac_compile"
2821-case "(($ac_try" in
2822- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823- *) ac_try_echo=$ac_try;;
2824-esac
2825-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2826- (eval "$ac_compile") 2>conftest.er1
2827- ac_status=$?
2828- grep -v '^ *+' conftest.er1 >conftest.err
2829- rm -f conftest.er1
2830- cat conftest.err >&5
2831- echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832- (exit $ac_status); } && {
2833- test -z "$ac_cxx_werror_flag" ||
2834- test ! -s conftest.err
2835- } && test -s conftest.$ac_objext; then
2836- ac_cv_prog_cxx_g=yes
2837-else
2838- echo "$as_me: failed program was:" >&5
2839-sed 's/^/| /' conftest.$ac_ext >&5
2840-
2841-
2842-fi
2843-
2844-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845-fi
2846-
2847-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848-fi
2849-
2850-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2852-fi
2853-{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2854-echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2855-if test "$ac_test_CXXFLAGS" = set; then
2856- CXXFLAGS=$ac_save_CXXFLAGS
2857-elif test $ac_cv_prog_cxx_g = yes; then
2858- if test "$GXX" = yes; then
2859- CXXFLAGS="-g -O2"
2860- else
2861- CXXFLAGS="-g"
2862- fi
2863-else
2864- if test "$GXX" = yes; then
2865- CXXFLAGS="-O2"
2866- else
2867- CXXFLAGS=
2868- fi
2869-fi
2870-ac_ext=c
2871-ac_cpp='$CPP $CPPFLAGS'
2872-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874-ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875-DEPDIR="${am__leading_dot}deps"
2876-
2877-ac_config_commands="$ac_config_commands depfiles"
2878-
2879-
2880-am_make=${MAKE-make}
2881-cat > confinc << 'END'
2882-am__doit:
2883- @echo done
2884-.PHONY: am__doit
2885-END
2886-# If we don't find an include directive, just comment out the code.
2887-{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2888-echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2889-am__include="#"
2890-am__quote=
2891-_am_result=none
2892-# First try GNU make style include.
2893-echo "include confinc" > confmf
2894-# We grep out `Entering directory' and `Leaving directory'
2895-# messages which can occur if `w' ends up in MAKEFLAGS.
2896-# In particular we don't look at `^make:' because GNU make might
2897-# be invoked under some other name (usually "gmake"), in which
2898-# case it prints its new name instead of `make'.
2899-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2900- am__include=include
2901- am__quote=
2902- _am_result=GNU
2903-fi
2904-# Now try BSD make style include.
2905-if test "$am__include" = "#"; then
2906- echo '.include "confinc"' > confmf
2907- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2908- am__include=.include
2909- am__quote="\""
2910- _am_result=BSD
2911- fi
2912-fi
2913-
2914-
2915-{ echo "$as_me:$LINENO: result: $_am_result" >&5
2916-echo "${ECHO_T}$_am_result" >&6; }
2917-rm -f confinc confmf
2918-
2919-# Check whether --enable-dependency-tracking was given.
2920-if test "${enable_dependency_tracking+set}" = set; then
2921- enableval=$enable_dependency_tracking;
2922-fi
2923-
2924-if test "x$enable_dependency_tracking" != xno; then
2925- am_depcomp="$ac_aux_dir/depcomp"
2926- AMDEPBACKSLASH='\'
2927-fi
2928- if test "x$enable_dependency_tracking" != xno; then
2929- AMDEP_TRUE=
2930- AMDEP_FALSE='#'
2931-else
2932- AMDEP_TRUE='#'
2933- AMDEP_FALSE=
2934-fi
2935-
2936-
2937-
2938-depcc="$CXX" am_compiler_list=
2939-
2940-{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2941-echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2942-if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2943- echo $ECHO_N "(cached) $ECHO_C" >&6
2944-else
2945- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2946- # We make a subdir and do the tests there. Otherwise we can end up
2947- # making bogus files that we don't know about and never remove. For
2948- # instance it was reported that on HP-UX the gcc test will end up
2949- # making a dummy file named `D' -- because `-MD' means `put the output
2950- # in D'.
2951- mkdir conftest.dir
2952- # Copy depcomp to subdir because otherwise we won't find it if we're
2953- # using a relative directory.
2954- cp "$am_depcomp" conftest.dir
2955- cd conftest.dir
2956- # We will build objects and dependencies in a subdirectory because
2957- # it helps to detect inapplicable dependency modes. For instance
2958- # both Tru64's cc and ICC support -MD to output dependencies as a
2959- # side effect of compilation, but ICC will put the dependencies in
2960- # the current directory while Tru64 will put them in the object
2961- # directory.
2962- mkdir sub
2963-
2964- am_cv_CXX_dependencies_compiler_type=none
2965- if test "$am_compiler_list" = ""; then
2966- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2967- fi
2968- for depmode in $am_compiler_list; do
2969- # Setup a source with many dependencies, because some compilers
2970- # like to wrap large dependency lists on column 80 (with \), and
2971- # we should not choose a depcomp mode which is confused by this.
2972- #
2973- # We need to recreate these files for each test, as the compiler may
2974- # overwrite some of them when testing with obscure command lines.
2975- # This happens at least with the AIX C compiler.
2976- : > sub/conftest.c
2977- for i in 1 2 3 4 5 6; do
2978- echo '#include "conftst'$i'.h"' >> sub/conftest.c
2979- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2980- # Solaris 8's {/usr,}/bin/sh.
2981- touch sub/conftst$i.h
2982- done
2983- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2984-
2985- case $depmode in
2986- nosideeffect)
2987- # after this tag, mechanisms are not by side-effect, so they'll
2988- # only be used when explicitly requested
2989- if test "x$enable_dependency_tracking" = xyes; then
2990- continue
2991- else
2992- break
2993- fi
2994- ;;
2995- none) break ;;
2996- esac
2997- # We check with `-c' and `-o' for the sake of the "dashmstdout"
2998- # mode. It turns out that the SunPro C++ compiler does not properly
2999- # handle `-M -o', and we need to detect this.
3000- if depmode=$depmode \
3001- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3002- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3003- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3004- >/dev/null 2>conftest.err &&
3005- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3006- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3007- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3008- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3009- # icc doesn't choke on unknown options, it will just issue warnings
3010- # or remarks (even with -Werror). So we grep stderr for any message
3011- # that says an option was ignored or not supported.
3012- # When given -MP, icc 7.0 and 7.1 complain thusly:
3013- # icc: Command line warning: ignoring option '-M'; no argument required
3014- # The diagnosis changed in icc 8.0:
3015- # icc: Command line remark: option '-MP' not supported
3016- if (grep 'ignoring option' conftest.err ||
3017- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3018- am_cv_CXX_dependencies_compiler_type=$depmode
3019- break
3020- fi
3021- fi
3022- done
3023-
3024- cd ..
3025- rm -rf conftest.dir
3026-else
3027- am_cv_CXX_dependencies_compiler_type=none
3028-fi
3029-
3030-fi
3031-{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3032-echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3033-CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3034-
3035- if
3036- test "x$enable_dependency_tracking" != xno \
3037- && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3038- am__fastdepCXX_TRUE=
3039- am__fastdepCXX_FALSE='#'
3040-else
3041- am__fastdepCXX_TRUE='#'
3042- am__fastdepCXX_FALSE=
3043-fi
3044-
3045-
3046-ac_ext=c
3047-ac_cpp='$CPP $CPPFLAGS'
3048-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050-ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051-if test -n "$ac_tool_prefix"; then
3052- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3053-set dummy ${ac_tool_prefix}gcc; ac_word=$2
3054-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3055-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3056-if test "${ac_cv_prog_CC+set}" = set; then
3057- echo $ECHO_N "(cached) $ECHO_C" >&6
3058-else
3059- if test -n "$CC"; then
3060- ac_cv_prog_CC="$CC" # Let the user override the test.
3061-else
3062-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063-for as_dir in $PATH
3064-do
3065- IFS=$as_save_IFS
3066- test -z "$as_dir" && as_dir=.
3067- for ac_exec_ext in '' $ac_executable_extensions; do
3068- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069- ac_cv_prog_CC="${ac_tool_prefix}gcc"
3070- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071- break 2
3072- fi
3073-done
3074-done
3075-IFS=$as_save_IFS
3076-
3077-fi
3078-fi
3079-CC=$ac_cv_prog_CC
3080-if test -n "$CC"; then
3081- { echo "$as_me:$LINENO: result: $CC" >&5
3082-echo "${ECHO_T}$CC" >&6; }
3083-else
3084- { echo "$as_me:$LINENO: result: no" >&5
3085-echo "${ECHO_T}no" >&6; }
3086-fi
3087-
3088-
3089-fi
3090-if test -z "$ac_cv_prog_CC"; then
3091- ac_ct_CC=$CC
3092- # Extract the first word of "gcc", so it can be a program name with args.
3093-set dummy gcc; ac_word=$2
3094-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3095-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3096-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3097- echo $ECHO_N "(cached) $ECHO_C" >&6
3098-else
3099- if test -n "$ac_ct_CC"; then
3100- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101-else
3102-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103-for as_dir in $PATH
3104-do
3105- IFS=$as_save_IFS
3106- test -z "$as_dir" && as_dir=.
3107- for ac_exec_ext in '' $ac_executable_extensions; do
3108- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109- ac_cv_prog_ac_ct_CC="gcc"
3110- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3111- break 2
3112- fi
3113-done
3114-done
3115-IFS=$as_save_IFS
3116-
3117-fi
3118-fi
3119-ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120-if test -n "$ac_ct_CC"; then
3121- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3122-echo "${ECHO_T}$ac_ct_CC" >&6; }
3123-else
3124- { echo "$as_me:$LINENO: result: no" >&5
3125-echo "${ECHO_T}no" >&6; }
3126-fi
3127-
3128- if test "x$ac_ct_CC" = x; then
3129- CC=""
3130- else
3131- case $cross_compiling:$ac_tool_warned in
3132-yes:)
3133-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3134-whose name does not start with the host triplet. If you think this
3135-configuration is useful to you, please write to autoconf@gnu.org." >&5
3136-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3137-whose name does not start with the host triplet. If you think this
3138-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3139-ac_tool_warned=yes ;;
3140-esac
3141- CC=$ac_ct_CC
3142- fi
3143-else
3144- CC="$ac_cv_prog_CC"
3145-fi
3146-
3147-if test -z "$CC"; then
3148- if test -n "$ac_tool_prefix"; then
3149- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3150-set dummy ${ac_tool_prefix}cc; ac_word=$2
3151-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3152-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3153-if test "${ac_cv_prog_CC+set}" = set; then
3154- echo $ECHO_N "(cached) $ECHO_C" >&6
3155-else
3156- if test -n "$CC"; then
3157- ac_cv_prog_CC="$CC" # Let the user override the test.
3158-else
3159-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160-for as_dir in $PATH
3161-do
3162- IFS=$as_save_IFS
3163- test -z "$as_dir" && as_dir=.
3164- for ac_exec_ext in '' $ac_executable_extensions; do
3165- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166- ac_cv_prog_CC="${ac_tool_prefix}cc"
3167- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168- break 2
3169- fi
3170-done
3171-done
3172-IFS=$as_save_IFS
3173-
3174-fi
3175-fi
3176-CC=$ac_cv_prog_CC
3177-if test -n "$CC"; then
3178- { echo "$as_me:$LINENO: result: $CC" >&5
3179-echo "${ECHO_T}$CC" >&6; }
3180-else
3181- { echo "$as_me:$LINENO: result: no" >&5
3182-echo "${ECHO_T}no" >&6; }
3183-fi
3184-
3185-
3186- fi
3187-fi
3188-if test -z "$CC"; then
3189- # Extract the first word of "cc", so it can be a program name with args.
3190-set dummy cc; ac_word=$2
3191-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3192-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193-if test "${ac_cv_prog_CC+set}" = set; then
3194- echo $ECHO_N "(cached) $ECHO_C" >&6
3195-else
3196- if test -n "$CC"; then
3197- ac_cv_prog_CC="$CC" # Let the user override the test.
3198-else
3199- ac_prog_rejected=no
3200-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201-for as_dir in $PATH
3202-do
3203- IFS=$as_save_IFS
3204- test -z "$as_dir" && as_dir=.
3205- for ac_exec_ext in '' $ac_executable_extensions; do
3206- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3208- ac_prog_rejected=yes
3209- continue
3210- fi
3211- ac_cv_prog_CC="cc"
3212- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213- break 2
3214- fi
3215-done
3216-done
3217-IFS=$as_save_IFS
3218-
3219-if test $ac_prog_rejected = yes; then
3220- # We found a bogon in the path, so make sure we never use it.
3221- set dummy $ac_cv_prog_CC
3222- shift
3223- if test $# != 0; then
3224- # We chose a different compiler from the bogus one.
3225- # However, it has the same basename, so the bogon will be chosen
3226- # first if we set CC to just the basename; use the full file name.
3227- shift
3228- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3229- fi
3230-fi
3231-fi
3232-fi
3233-CC=$ac_cv_prog_CC
3234-if test -n "$CC"; then
3235- { echo "$as_me:$LINENO: result: $CC" >&5
3236-echo "${ECHO_T}$CC" >&6; }
3237-else
3238- { echo "$as_me:$LINENO: result: no" >&5
3239-echo "${ECHO_T}no" >&6; }
3240-fi
3241-
3242-
3243-fi
3244-if test -z "$CC"; then
3245- if test -n "$ac_tool_prefix"; then
3246- for ac_prog in cl.exe
3247- do
3248- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3249-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3250-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3251-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3252-if test "${ac_cv_prog_CC+set}" = set; then
3253- echo $ECHO_N "(cached) $ECHO_C" >&6
3254-else
3255- if test -n "$CC"; then
3256- ac_cv_prog_CC="$CC" # Let the user override the test.
3257-else
3258-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259-for as_dir in $PATH
3260-do
3261- IFS=$as_save_IFS
3262- test -z "$as_dir" && as_dir=.
3263- for ac_exec_ext in '' $ac_executable_extensions; do
3264- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3266- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267- break 2
3268- fi
3269-done
3270-done
3271-IFS=$as_save_IFS
3272-
3273-fi
3274-fi
3275-CC=$ac_cv_prog_CC
3276-if test -n "$CC"; then
3277- { echo "$as_me:$LINENO: result: $CC" >&5
3278-echo "${ECHO_T}$CC" >&6; }
3279-else
3280- { echo "$as_me:$LINENO: result: no" >&5
3281-echo "${ECHO_T}no" >&6; }
3282-fi
3283-
3284-
3285- test -n "$CC" && break
3286- done
3287-fi
3288-if test -z "$CC"; then
3289- ac_ct_CC=$CC
3290- for ac_prog in cl.exe
3291-do
3292- # Extract the first word of "$ac_prog", so it can be a program name with args.
3293-set dummy $ac_prog; ac_word=$2
3294-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3295-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3296-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297- echo $ECHO_N "(cached) $ECHO_C" >&6
3298-else
3299- if test -n "$ac_ct_CC"; then
3300- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301-else
3302-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303-for as_dir in $PATH
3304-do
3305- IFS=$as_save_IFS
3306- test -z "$as_dir" && as_dir=.
3307- for ac_exec_ext in '' $ac_executable_extensions; do
3308- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309- ac_cv_prog_ac_ct_CC="$ac_prog"
3310- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311- break 2
3312- fi
3313-done
3314-done
3315-IFS=$as_save_IFS
3316-
3317-fi
3318-fi
3319-ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320-if test -n "$ac_ct_CC"; then
3321- { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3322-echo "${ECHO_T}$ac_ct_CC" >&6; }
3323-else
3324- { echo "$as_me:$LINENO: result: no" >&5
3325-echo "${ECHO_T}no" >&6; }
3326-fi
3327-
3328-
3329- test -n "$ac_ct_CC" && break
3330-done
3331-
3332- if test "x$ac_ct_CC" = x; then
3333- CC=""
3334- else
3335- case $cross_compiling:$ac_tool_warned in
3336-yes:)
3337-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3338-whose name does not start with the host triplet. If you think this
3339-configuration is useful to you, please write to autoconf@gnu.org." >&5
3340-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3341-whose name does not start with the host triplet. If you think this
3342-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3343-ac_tool_warned=yes ;;
3344-esac
3345- CC=$ac_ct_CC
3346- fi
3347-fi
3348-
3349-fi
3350-
3351-
3352-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3353-See \`config.log' for more details." >&5
3354-echo "$as_me: error: no acceptable C compiler found in \$PATH
3355-See \`config.log' for more details." >&2;}
3356- { (exit 1); exit 1; }; }
3357-
3358-# Provide some information about the compiler.
3359-echo "$as_me:$LINENO: checking for C compiler version" >&5
3360-ac_compiler=`set X $ac_compile; echo $2`
3361-{ (ac_try="$ac_compiler --version >&5"
3362-case "(($ac_try" in
3363- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364- *) ac_try_echo=$ac_try;;
3365-esac
3366-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367- (eval "$ac_compiler --version >&5") 2>&5
3368- ac_status=$?
3369- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370- (exit $ac_status); }
3371-{ (ac_try="$ac_compiler -v >&5"
3372-case "(($ac_try" in
3373- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374- *) ac_try_echo=$ac_try;;
3375-esac
3376-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377- (eval "$ac_compiler -v >&5") 2>&5
3378- ac_status=$?
3379- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380- (exit $ac_status); }
3381-{ (ac_try="$ac_compiler -V >&5"
3382-case "(($ac_try" in
3383- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384- *) ac_try_echo=$ac_try;;
3385-esac
3386-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387- (eval "$ac_compiler -V >&5") 2>&5
3388- ac_status=$?
3389- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390- (exit $ac_status); }
3391-
3392-{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393-echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3394-if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395- echo $ECHO_N "(cached) $ECHO_C" >&6
3396-else
3397- cat >conftest.$ac_ext <<_ACEOF
3398-/* confdefs.h. */
3399-_ACEOF
3400-cat confdefs.h >>conftest.$ac_ext
3401-cat >>conftest.$ac_ext <<_ACEOF
3402-/* end confdefs.h. */
3403-
3404-int
3405-main ()
3406-{
3407-#ifndef __GNUC__
3408- choke me
3409-#endif
3410-
3411- ;
3412- return 0;
3413-}
3414-_ACEOF
3415-rm -f conftest.$ac_objext
3416-if { (ac_try="$ac_compile"
3417-case "(($ac_try" in
3418- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419- *) ac_try_echo=$ac_try;;
3420-esac
3421-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422- (eval "$ac_compile") 2>conftest.er1
3423- ac_status=$?
3424- grep -v '^ *+' conftest.er1 >conftest.err
3425- rm -f conftest.er1
3426- cat conftest.err >&5
3427- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428- (exit $ac_status); } && {
3429- test -z "$ac_c_werror_flag" ||
3430- test ! -s conftest.err
3431- } && test -s conftest.$ac_objext; then
3432- ac_compiler_gnu=yes
3433-else
3434- echo "$as_me: failed program was:" >&5
3435-sed 's/^/| /' conftest.$ac_ext >&5
3436-
3437- ac_compiler_gnu=no
3438-fi
3439-
3440-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441-ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442-
3443-fi
3444-{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3445-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3446-GCC=`test $ac_compiler_gnu = yes && echo yes`
3447-ac_test_CFLAGS=${CFLAGS+set}
3448-ac_save_CFLAGS=$CFLAGS
3449-{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3450-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3451-if test "${ac_cv_prog_cc_g+set}" = set; then
3452- echo $ECHO_N "(cached) $ECHO_C" >&6
3453-else
3454- ac_save_c_werror_flag=$ac_c_werror_flag
3455- ac_c_werror_flag=yes
3456- ac_cv_prog_cc_g=no
3457- CFLAGS="-g"
3458- cat >conftest.$ac_ext <<_ACEOF
3459-/* confdefs.h. */
3460-_ACEOF
3461-cat confdefs.h >>conftest.$ac_ext
3462-cat >>conftest.$ac_ext <<_ACEOF
3463-/* end confdefs.h. */
3464-
3465-int
3466-main ()
3467-{
3468-
3469- ;
3470- return 0;
3471-}
3472-_ACEOF
3473-rm -f conftest.$ac_objext
3474-if { (ac_try="$ac_compile"
3475-case "(($ac_try" in
3476- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477- *) ac_try_echo=$ac_try;;
3478-esac
3479-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480- (eval "$ac_compile") 2>conftest.er1
3481- ac_status=$?
3482- grep -v '^ *+' conftest.er1 >conftest.err
3483- rm -f conftest.er1
3484- cat conftest.err >&5
3485- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486- (exit $ac_status); } && {
3487- test -z "$ac_c_werror_flag" ||
3488- test ! -s conftest.err
3489- } && test -s conftest.$ac_objext; then
3490- ac_cv_prog_cc_g=yes
3491-else
3492- echo "$as_me: failed program was:" >&5
3493-sed 's/^/| /' conftest.$ac_ext >&5
3494-
3495- CFLAGS=""
3496- cat >conftest.$ac_ext <<_ACEOF
3497-/* confdefs.h. */
3498-_ACEOF
3499-cat confdefs.h >>conftest.$ac_ext
3500-cat >>conftest.$ac_ext <<_ACEOF
3501-/* end confdefs.h. */
3502-
3503-int
3504-main ()
3505-{
3506-
3507- ;
3508- return 0;
3509-}
3510-_ACEOF
3511-rm -f conftest.$ac_objext
3512-if { (ac_try="$ac_compile"
3513-case "(($ac_try" in
3514- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515- *) ac_try_echo=$ac_try;;
3516-esac
3517-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518- (eval "$ac_compile") 2>conftest.er1
3519- ac_status=$?
3520- grep -v '^ *+' conftest.er1 >conftest.err
3521- rm -f conftest.er1
3522- cat conftest.err >&5
3523- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524- (exit $ac_status); } && {
3525- test -z "$ac_c_werror_flag" ||
3526- test ! -s conftest.err
3527- } && test -s conftest.$ac_objext; then
3528- :
3529-else
3530- echo "$as_me: failed program was:" >&5
3531-sed 's/^/| /' conftest.$ac_ext >&5
3532-
3533- ac_c_werror_flag=$ac_save_c_werror_flag
3534- CFLAGS="-g"
3535- cat >conftest.$ac_ext <<_ACEOF
3536-/* confdefs.h. */
3537-_ACEOF
3538-cat confdefs.h >>conftest.$ac_ext
3539-cat >>conftest.$ac_ext <<_ACEOF
3540-/* end confdefs.h. */
3541-
3542-int
3543-main ()
3544-{
3545-
3546- ;
3547- return 0;
3548-}
3549-_ACEOF
3550-rm -f conftest.$ac_objext
3551-if { (ac_try="$ac_compile"
3552-case "(($ac_try" in
3553- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554- *) ac_try_echo=$ac_try;;
3555-esac
3556-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557- (eval "$ac_compile") 2>conftest.er1
3558- ac_status=$?
3559- grep -v '^ *+' conftest.er1 >conftest.err
3560- rm -f conftest.er1
3561- cat conftest.err >&5
3562- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563- (exit $ac_status); } && {
3564- test -z "$ac_c_werror_flag" ||
3565- test ! -s conftest.err
3566- } && test -s conftest.$ac_objext; then
3567- ac_cv_prog_cc_g=yes
3568-else
3569- echo "$as_me: failed program was:" >&5
3570-sed 's/^/| /' conftest.$ac_ext >&5
3571-
3572-
3573-fi
3574-
3575-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576-fi
3577-
3578-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579-fi
3580-
3581-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582- ac_c_werror_flag=$ac_save_c_werror_flag
3583-fi
3584-{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3585-echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3586-if test "$ac_test_CFLAGS" = set; then
3587- CFLAGS=$ac_save_CFLAGS
3588-elif test $ac_cv_prog_cc_g = yes; then
3589- if test "$GCC" = yes; then
3590- CFLAGS="-g -O2"
3591- else
3592- CFLAGS="-g"
3593- fi
3594-else
3595- if test "$GCC" = yes; then
3596- CFLAGS="-O2"
3597- else
3598- CFLAGS=
3599- fi
3600-fi
3601-{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3602-echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3603-if test "${ac_cv_prog_cc_c89+set}" = set; then
3604- echo $ECHO_N "(cached) $ECHO_C" >&6
3605-else
3606- ac_cv_prog_cc_c89=no
3607-ac_save_CC=$CC
3608-cat >conftest.$ac_ext <<_ACEOF
3609-/* confdefs.h. */
3610-_ACEOF
3611-cat confdefs.h >>conftest.$ac_ext
3612-cat >>conftest.$ac_ext <<_ACEOF
3613-/* end confdefs.h. */
3614-#include <stdarg.h>
3615-#include <stdio.h>
3616-#include <sys/types.h>
3617-#include <sys/stat.h>
3618-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3619-struct buf { int x; };
3620-FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621-static char *e (p, i)
3622- char **p;
3623- int i;
3624-{
3625- return p[i];
3626-}
3627-static char *f (char * (*g) (char **, int), char **p, ...)
3628-{
3629- char *s;
3630- va_list v;
3631- va_start (v,p);
3632- s = g (p, va_arg (v,int));
3633- va_end (v);
3634- return s;
3635-}
3636-
3637-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3638- function prototypes and stuff, but not '\xHH' hex character constants.
3639- These don't provoke an error unfortunately, instead are silently treated
3640- as 'x'. The following induces an error, until -std is added to get
3641- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3642- array size at least. It's necessary to write '\x00'==0 to get something
3643- that's true only with -std. */
3644-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645-
3646-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647- inside strings and character constants. */
3648-#define FOO(x) 'x'
3649-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650-
3651-int test (int i, double x);
3652-struct s1 {int (*f) (int a);};
3653-struct s2 {int (*f) (double a);};
3654-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655-int argc;
3656-char **argv;
3657-int
3658-main ()
3659-{
3660-return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3661- ;
3662- return 0;
3663-}
3664-_ACEOF
3665-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667-do
3668- CC="$ac_save_CC $ac_arg"
3669- rm -f conftest.$ac_objext
3670-if { (ac_try="$ac_compile"
3671-case "(($ac_try" in
3672- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673- *) ac_try_echo=$ac_try;;
3674-esac
3675-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676- (eval "$ac_compile") 2>conftest.er1
3677- ac_status=$?
3678- grep -v '^ *+' conftest.er1 >conftest.err
3679- rm -f conftest.er1
3680- cat conftest.err >&5
3681- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682- (exit $ac_status); } && {
3683- test -z "$ac_c_werror_flag" ||
3684- test ! -s conftest.err
3685- } && test -s conftest.$ac_objext; then
3686- ac_cv_prog_cc_c89=$ac_arg
3687-else
3688- echo "$as_me: failed program was:" >&5
3689-sed 's/^/| /' conftest.$ac_ext >&5
3690-
3691-
3692-fi
3693-
3694-rm -f core conftest.err conftest.$ac_objext
3695- test "x$ac_cv_prog_cc_c89" != "xno" && break
3696-done
3697-rm -f conftest.$ac_ext
3698-CC=$ac_save_CC
3699-
3700-fi
3701-# AC_CACHE_VAL
3702-case "x$ac_cv_prog_cc_c89" in
3703- x)
3704- { echo "$as_me:$LINENO: result: none needed" >&5
3705-echo "${ECHO_T}none needed" >&6; } ;;
3706- xno)
3707- { echo "$as_me:$LINENO: result: unsupported" >&5
3708-echo "${ECHO_T}unsupported" >&6; } ;;
3709- *)
3710- CC="$CC $ac_cv_prog_cc_c89"
3711- { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3712-echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3713-esac
3714-
3715-
3716-ac_ext=c
3717-ac_cpp='$CPP $CPPFLAGS'
3718-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720-ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721-
3722-depcc="$CC" am_compiler_list=
3723-
3724-{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3725-echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3726-if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3727- echo $ECHO_N "(cached) $ECHO_C" >&6
3728-else
3729- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3730- # We make a subdir and do the tests there. Otherwise we can end up
3731- # making bogus files that we don't know about and never remove. For
3732- # instance it was reported that on HP-UX the gcc test will end up
3733- # making a dummy file named `D' -- because `-MD' means `put the output
3734- # in D'.
3735- mkdir conftest.dir
3736- # Copy depcomp to subdir because otherwise we won't find it if we're
3737- # using a relative directory.
3738- cp "$am_depcomp" conftest.dir
3739- cd conftest.dir
3740- # We will build objects and dependencies in a subdirectory because
3741- # it helps to detect inapplicable dependency modes. For instance
3742- # both Tru64's cc and ICC support -MD to output dependencies as a
3743- # side effect of compilation, but ICC will put the dependencies in
3744- # the current directory while Tru64 will put them in the object
3745- # directory.
3746- mkdir sub
3747-
3748- am_cv_CC_dependencies_compiler_type=none
3749- if test "$am_compiler_list" = ""; then
3750- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3751- fi
3752- for depmode in $am_compiler_list; do
3753- # Setup a source with many dependencies, because some compilers
3754- # like to wrap large dependency lists on column 80 (with \), and
3755- # we should not choose a depcomp mode which is confused by this.
3756- #
3757- # We need to recreate these files for each test, as the compiler may
3758- # overwrite some of them when testing with obscure command lines.
3759- # This happens at least with the AIX C compiler.
3760- : > sub/conftest.c
3761- for i in 1 2 3 4 5 6; do
3762- echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3764- # Solaris 8's {/usr,}/bin/sh.
3765- touch sub/conftst$i.h
3766- done
3767- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768-
3769- case $depmode in
3770- nosideeffect)
3771- # after this tag, mechanisms are not by side-effect, so they'll
3772- # only be used when explicitly requested
3773- if test "x$enable_dependency_tracking" = xyes; then
3774- continue
3775- else
3776- break
3777- fi
3778- ;;
3779- none) break ;;
3780- esac
3781- # We check with `-c' and `-o' for the sake of the "dashmstdout"
3782- # mode. It turns out that the SunPro C++ compiler does not properly
3783- # handle `-M -o', and we need to detect this.
3784- if depmode=$depmode \
3785- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3786- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3788- >/dev/null 2>conftest.err &&
3789- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3790- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3791- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3792- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3793- # icc doesn't choke on unknown options, it will just issue warnings
3794- # or remarks (even with -Werror). So we grep stderr for any message
3795- # that says an option was ignored or not supported.
3796- # When given -MP, icc 7.0 and 7.1 complain thusly:
3797- # icc: Command line warning: ignoring option '-M'; no argument required
3798- # The diagnosis changed in icc 8.0:
3799- # icc: Command line remark: option '-MP' not supported
3800- if (grep 'ignoring option' conftest.err ||
3801- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3802- am_cv_CC_dependencies_compiler_type=$depmode
3803- break
3804- fi
3805- fi
3806- done
3807-
3808- cd ..
3809- rm -rf conftest.dir
3810-else
3811- am_cv_CC_dependencies_compiler_type=none
3812-fi
3813-
3814-fi
3815-{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3816-echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3817-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3818-
3819- if
3820- test "x$enable_dependency_tracking" != xno \
3821- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3822- am__fastdepCC_TRUE=
3823- am__fastdepCC_FALSE='#'
3824-else
3825- am__fastdepCC_TRUE='#'
3826- am__fastdepCC_FALSE=
3827-fi
3828-
3829-
3830-
3831-# Checks for libraries.
3832-
3833-# Check whether --with-lua-prefix was given.
3834-if test "${with_lua_prefix+set}" = set; then
3835- withval=$with_lua_prefix;
3836-fi
3837-
3838-
3839-# Check whether --with-lua-suffix was given.
3840-if test "${with_lua_suffix+set}" = set; then
3841- withval=$with_lua_suffix;
3842-fi
3843-
3844- if test "x$with_lua_prefix" = x; then
3845- lua_search_path="$PATH"
3846- else
3847- lua_search_path="$with_lua_prefix/bin"
3848- fi
3849- if test "x$LUA" = x; then
3850- # Extract the first word of "lua$with_lua_suffix", so it can be a program name with args.
3851-set dummy lua$with_lua_suffix; ac_word=$2
3852-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3853-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3854-if test "${ac_cv_path_LUA+set}" = set; then
3855- echo $ECHO_N "(cached) $ECHO_C" >&6
3856-else
3857- case $LUA in
3858- [\\/]* | ?:[\\/]*)
3859- ac_cv_path_LUA="$LUA" # Let the user override the test with a path.
3860- ;;
3861- *)
3862- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863-for as_dir in $lua_search_path
3864-do
3865- IFS=$as_save_IFS
3866- test -z "$as_dir" && as_dir=.
3867- for ac_exec_ext in '' $ac_executable_extensions; do
3868- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869- ac_cv_path_LUA="$as_dir/$ac_word$ac_exec_ext"
3870- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871- break 2
3872- fi
3873-done
3874-done
3875-IFS=$as_save_IFS
3876-
3877- ;;
3878-esac
3879-fi
3880-LUA=$ac_cv_path_LUA
3881-if test -n "$LUA"; then
3882- { echo "$as_me:$LINENO: result: $LUA" >&5
3883-echo "${ECHO_T}$LUA" >&6; }
3884-else
3885- { echo "$as_me:$LINENO: result: no" >&5
3886-echo "${ECHO_T}no" >&6; }
3887-fi
3888-
3889-
3890- fi
3891-
3892-
3893-# Check whether --with-lua-prefix was given.
3894-if test "${with_lua_prefix+set}" = set; then
3895- withval=$with_lua_prefix;
3896-fi
3897-
3898-
3899-# Check whether --with-lua-suffix was given.
3900-if test "${with_lua_suffix+set}" = set; then
3901- withval=$with_lua_suffix;
3902-fi
3903-
3904- if test "x$with_lua_prefix" != x; then
3905- LUA_LIB="-L$with_lua_prefix/lib"
3906- fi
3907- { echo "$as_me:$LINENO: checking for exp in -lm" >&5
3908-echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6; }
3909-if test "${ac_cv_lib_m_exp+set}" = set; then
3910- echo $ECHO_N "(cached) $ECHO_C" >&6
3911-else
3912- ac_check_lib_save_LIBS=$LIBS
3913-LIBS="-lm $LIBS"
3914-cat >conftest.$ac_ext <<_ACEOF
3915-/* confdefs.h. */
3916-_ACEOF
3917-cat confdefs.h >>conftest.$ac_ext
3918-cat >>conftest.$ac_ext <<_ACEOF
3919-/* end confdefs.h. */
3920-
3921-/* Override any GCC internal prototype to avoid an error.
3922- Use char because int might match the return type of a GCC
3923- builtin and then its argument prototype would still apply. */
3924-#ifdef __cplusplus
3925-extern "C"
3926-#endif
3927-char exp ();
3928-int
3929-main ()
3930-{
3931-return exp ();
3932- ;
3933- return 0;
3934-}
3935-_ACEOF
3936-rm -f conftest.$ac_objext conftest$ac_exeext
3937-if { (ac_try="$ac_link"
3938-case "(($ac_try" in
3939- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940- *) ac_try_echo=$ac_try;;
3941-esac
3942-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943- (eval "$ac_link") 2>conftest.er1
3944- ac_status=$?
3945- grep -v '^ *+' conftest.er1 >conftest.err
3946- rm -f conftest.er1
3947- cat conftest.err >&5
3948- echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949- (exit $ac_status); } && {
3950- test -z "$ac_c_werror_flag" ||
3951- test ! -s conftest.err
3952- } && test -s conftest$ac_exeext &&
3953- $as_test_x conftest$ac_exeext; then
3954- ac_cv_lib_m_exp=yes
3955-else
3956- echo "$as_me: failed program was:" >&5
3957-sed 's/^/| /' conftest.$ac_ext >&5
3958-
3959- ac_cv_lib_m_exp=no
3960-fi
3961-
3962-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3963- conftest$ac_exeext conftest.$ac_ext
3964-LIBS=$ac_check_lib_save_LIBS
3965-fi
3966-{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5
3967-echo "${ECHO_T}$ac_cv_lib_m_exp" >&6; }
3968-if test $ac_cv_lib_m_exp = yes; then
3969- lua_extra_libs="$lua_extra_libs -lm"
3970-fi
3971-
3972- { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3973-echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
3974-if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3975- echo $ECHO_N "(cached) $ECHO_C" >&6
3976-else
3977- ac_check_lib_save_LIBS=$LIBS
3978-LIBS="-ldl $LIBS"
3979-cat >conftest.$ac_ext <<_ACEOF
3980-/* confdefs.h. */
3981-_ACEOF
3982-cat confdefs.h >>conftest.$ac_ext
3983-cat >>conftest.$ac_ext <<_ACEOF
3984-/* end confdefs.h. */
3985-
3986-/* Override any GCC internal prototype to avoid an error.
3987- Use char because int might match the return type of a GCC
3988- builtin and then its argument prototype would still apply. */
3989-#ifdef __cplusplus
3990-extern "C"
3991-#endif
3992-char dlopen ();
3993-int
3994-main ()
3995-{
3996-return dlopen ();
3997- ;
3998- return 0;
3999-}
4000-_ACEOF
4001-rm -f conftest.$ac_objext conftest$ac_exeext
4002-if { (ac_try="$ac_link"
4003-case "(($ac_try" in
4004- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005- *) ac_try_echo=$ac_try;;
4006-esac
4007-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008- (eval "$ac_link") 2>conftest.er1
4009- ac_status=$?
4010- grep -v '^ *+' conftest.er1 >conftest.err
4011- rm -f conftest.er1
4012- cat conftest.err >&5
4013- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014- (exit $ac_status); } && {
4015- test -z "$ac_c_werror_flag" ||
4016- test ! -s conftest.err
4017- } && test -s conftest$ac_exeext &&
4018- $as_test_x conftest$ac_exeext; then
4019- ac_cv_lib_dl_dlopen=yes
4020-else
4021- echo "$as_me: failed program was:" >&5
4022-sed 's/^/| /' conftest.$ac_ext >&5
4023-
4024- ac_cv_lib_dl_dlopen=no
4025-fi
4026-
4027-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4028- conftest$ac_exeext conftest.$ac_ext
4029-LIBS=$ac_check_lib_save_LIBS
4030-fi
4031-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4032-echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
4033-if test $ac_cv_lib_dl_dlopen = yes; then
4034- lua_extra_libs="$lua_extra_libs -ldl"
4035-fi
4036-
4037- as_ac_Lib=`echo "ac_cv_lib_lua$with_lua_suffix''_lua_call" | $as_tr_sh`
4038-{ echo "$as_me:$LINENO: checking for lua_call in -llua$with_lua_suffix" >&5
4039-echo $ECHO_N "checking for lua_call in -llua$with_lua_suffix... $ECHO_C" >&6; }
4040-if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
4041- echo $ECHO_N "(cached) $ECHO_C" >&6
4042-else
4043- ac_check_lib_save_LIBS=$LIBS
4044-LIBS="-llua$with_lua_suffix $LUA_LIB $lua_extra_libs $LIBS"
4045-cat >conftest.$ac_ext <<_ACEOF
4046-/* confdefs.h. */
4047-_ACEOF
4048-cat confdefs.h >>conftest.$ac_ext
4049-cat >>conftest.$ac_ext <<_ACEOF
4050-/* end confdefs.h. */
4051-
4052-/* Override any GCC internal prototype to avoid an error.
4053- Use char because int might match the return type of a GCC
4054- builtin and then its argument prototype would still apply. */
4055-#ifdef __cplusplus
4056-extern "C"
4057-#endif
4058-char lua_call ();
4059-int
4060-main ()
4061-{
4062-return lua_call ();
4063- ;
4064- return 0;
4065-}
4066-_ACEOF
4067-rm -f conftest.$ac_objext conftest$ac_exeext
4068-if { (ac_try="$ac_link"
4069-case "(($ac_try" in
4070- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071- *) ac_try_echo=$ac_try;;
4072-esac
4073-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074- (eval "$ac_link") 2>conftest.er1
4075- ac_status=$?
4076- grep -v '^ *+' conftest.er1 >conftest.err
4077- rm -f conftest.er1
4078- cat conftest.err >&5
4079- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080- (exit $ac_status); } && {
4081- test -z "$ac_c_werror_flag" ||
4082- test ! -s conftest.err
4083- } && test -s conftest$ac_exeext &&
4084- $as_test_x conftest$ac_exeext; then
4085- eval "$as_ac_Lib=yes"
4086-else
4087- echo "$as_me: failed program was:" >&5
4088-sed 's/^/| /' conftest.$ac_ext >&5
4089-
4090- eval "$as_ac_Lib=no"
4091-fi
4092-
4093-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4094- conftest$ac_exeext conftest.$ac_ext
4095-LIBS=$ac_check_lib_save_LIBS
4096-fi
4097-ac_res=`eval echo '${'$as_ac_Lib'}'`
4098- { echo "$as_me:$LINENO: result: $ac_res" >&5
4099-echo "${ECHO_T}$ac_res" >&6; }
4100-if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4101- LUA_LIB="$LUA_LIB -llua$with_lua_suffix $lua_extra_libs"
4102-fi
4103-
4104-
4105-
4106-{ echo "$as_me:$LINENO: checking for luaL_openlibs in -lLua" >&5
4107-echo $ECHO_N "checking for luaL_openlibs in -lLua... $ECHO_C" >&6; }
4108-if test "${ac_cv_lib_Lua_luaL_openlibs+set}" = set; then
4109- echo $ECHO_N "(cached) $ECHO_C" >&6
4110-else
4111- ac_check_lib_save_LIBS=$LIBS
4112-LIBS="-lLua $LIBS"
4113-cat >conftest.$ac_ext <<_ACEOF
4114-/* confdefs.h. */
4115-_ACEOF
4116-cat confdefs.h >>conftest.$ac_ext
4117-cat >>conftest.$ac_ext <<_ACEOF
4118-/* end confdefs.h. */
4119-
4120-/* Override any GCC internal prototype to avoid an error.
4121- Use char because int might match the return type of a GCC
4122- builtin and then its argument prototype would still apply. */
4123-#ifdef __cplusplus
4124-extern "C"
4125-#endif
4126-char luaL_openlibs ();
4127-int
4128-main ()
4129-{
4130-return luaL_openlibs ();
4131- ;
4132- return 0;
4133-}
4134-_ACEOF
4135-rm -f conftest.$ac_objext conftest$ac_exeext
4136-if { (ac_try="$ac_link"
4137-case "(($ac_try" in
4138- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139- *) ac_try_echo=$ac_try;;
4140-esac
4141-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142- (eval "$ac_link") 2>conftest.er1
4143- ac_status=$?
4144- grep -v '^ *+' conftest.er1 >conftest.err
4145- rm -f conftest.er1
4146- cat conftest.err >&5
4147- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148- (exit $ac_status); } && {
4149- test -z "$ac_c_werror_flag" ||
4150- test ! -s conftest.err
4151- } && test -s conftest$ac_exeext &&
4152- $as_test_x conftest$ac_exeext; then
4153- ac_cv_lib_Lua_luaL_openlibs=yes
4154-else
4155- echo "$as_me: failed program was:" >&5
4156-sed 's/^/| /' conftest.$ac_ext >&5
4157-
4158- ac_cv_lib_Lua_luaL_openlibs=no
4159-fi
4160-
4161-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4162- conftest$ac_exeext conftest.$ac_ext
4163-LIBS=$ac_check_lib_save_LIBS
4164-fi
4165-{ echo "$as_me:$LINENO: result: $ac_cv_lib_Lua_luaL_openlibs" >&5
4166-echo "${ECHO_T}$ac_cv_lib_Lua_luaL_openlibs" >&6; }
4167-if test $ac_cv_lib_Lua_luaL_openlibs = yes; then
4168- cat >>confdefs.h <<\_ACEOF
4169-#define HAVE_LIBLUA 1
4170-_ACEOF
4171- LIBS="$LIBS -llua" HAVE_LIBLUA="yes"
4172-else
4173- { echo "$as_me:$LINENO: WARNING: *** lua not found! ***" >&5
4174-echo "$as_me: WARNING: *** lua not found! ***" >&2;}
4175-fi
4176-
4177-
4178-
4179-{ echo "$as_me:$LINENO: checking for luabind::open in -lluabind" >&5
4180-echo $ECHO_N "checking for luabind::open in -lluabind... $ECHO_C" >&6; }
4181-if test "${ac_cv_lib_luabind_luabind__open+set}" = set; then
4182- echo $ECHO_N "(cached) $ECHO_C" >&6
4183-else
4184- ac_check_lib_save_LIBS=$LIBS
4185-LIBS="-lluabind $LIBS"
4186-cat >conftest.$ac_ext <<_ACEOF
4187-/* confdefs.h. */
4188-_ACEOF
4189-cat confdefs.h >>conftest.$ac_ext
4190-cat >>conftest.$ac_ext <<_ACEOF
4191-/* end confdefs.h. */
4192-
4193-/* Override any GCC internal prototype to avoid an error.
4194- Use char because int might match the return type of a GCC
4195- builtin and then its argument prototype would still apply. */
4196-#ifdef __cplusplus
4197-extern "C"
4198-#endif
4199-char luabind::open ();
4200-int
4201-main ()
4202-{
4203-return luabind::open ();
4204- ;
4205- return 0;
4206-}
4207-_ACEOF
4208-rm -f conftest.$ac_objext conftest$ac_exeext
4209-if { (ac_try="$ac_link"
4210-case "(($ac_try" in
4211- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212- *) ac_try_echo=$ac_try;;
4213-esac
4214-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215- (eval "$ac_link") 2>conftest.er1
4216- ac_status=$?
4217- grep -v '^ *+' conftest.er1 >conftest.err
4218- rm -f conftest.er1
4219- cat conftest.err >&5
4220- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221- (exit $ac_status); } && {
4222- test -z "$ac_c_werror_flag" ||
4223- test ! -s conftest.err
4224- } && test -s conftest$ac_exeext &&
4225- $as_test_x conftest$ac_exeext; then
4226- ac_cv_lib_luabind_luabind__open=yes
4227-else
4228- echo "$as_me: failed program was:" >&5
4229-sed 's/^/| /' conftest.$ac_ext >&5
4230-
4231- ac_cv_lib_luabind_luabind__open=no
4232-fi
4233-
4234-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4235- conftest$ac_exeext conftest.$ac_ext
4236-LIBS=$ac_check_lib_save_LIBS
4237-fi
4238-{ echo "$as_me:$LINENO: result: $ac_cv_lib_luabind_luabind__open" >&5
4239-echo "${ECHO_T}$ac_cv_lib_luabind_luabind__open" >&6; }
4240-if test $ac_cv_lib_luabind_luabind__open = yes; then
4241- cat >>confdefs.h <<\_ACEOF
4242-#define HAVE_LIBLUABIND 1
4243-_ACEOF
4244- LIBS="$LIBS -lluabind" HAVE_LIBLUABIND="yes"
4245-else
4246- { echo "$as_me:$LINENO: WARNING: *** luabind not found! ***" >&5
4247-echo "$as_me: WARNING: *** luabind not found! ***" >&2;}
4248-fi
4249-
4250-
4251-SDL_VERSION=1.2.4
4252-
4253-
4254-
4255-# Check whether --with-sdl-prefix was given.
4256-if test "${with_sdl_prefix+set}" = set; then
4257- withval=$with_sdl_prefix; sdl_prefix="$withval"
4258-else
4259- sdl_prefix=""
4260-fi
4261-
4262-
4263-# Check whether --with-sdl-exec-prefix was given.
4264-if test "${with_sdl_exec_prefix+set}" = set; then
4265- withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
4266-else
4267- sdl_exec_prefix=""
4268-fi
4269-
4270-# Check whether --enable-sdltest was given.
4271-if test "${enable_sdltest+set}" = set; then
4272- enableval=$enable_sdltest;
4273-else
4274- enable_sdltest=yes
4275-fi
4276-
4277-
4278- if test x$sdl_exec_prefix != x ; then
4279- sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
4280- if test x${SDL_CONFIG+set} != xset ; then
4281- SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4282- fi
4283- fi
4284- if test x$sdl_prefix != x ; then
4285- sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
4286- if test x${SDL_CONFIG+set} != xset ; then
4287- SDL_CONFIG=$sdl_prefix/bin/sdl-config
4288- fi
4289- fi
4290-
4291- if test "x$prefix" != xNONE; then
4292- PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4293- fi
4294- # Extract the first word of "sdl-config", so it can be a program name with args.
4295-set dummy sdl-config; ac_word=$2
4296-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4297-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298-if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4299- echo $ECHO_N "(cached) $ECHO_C" >&6
4300-else
4301- case $SDL_CONFIG in
4302- [\\/]* | ?:[\\/]*)
4303- ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4304- ;;
4305- *)
4306- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307-for as_dir in $PATH
4308-do
4309- IFS=$as_save_IFS
4310- test -z "$as_dir" && as_dir=.
4311- for ac_exec_ext in '' $ac_executable_extensions; do
4312- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313- ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4314- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315- break 2
4316- fi
4317-done
4318-done
4319-IFS=$as_save_IFS
4320-
4321- test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4322- ;;
4323-esac
4324-fi
4325-SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4326-if test -n "$SDL_CONFIG"; then
4327- { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4328-echo "${ECHO_T}$SDL_CONFIG" >&6; }
4329-else
4330- { echo "$as_me:$LINENO: result: no" >&5
4331-echo "${ECHO_T}no" >&6; }
4332-fi
4333-
4334-
4335- min_sdl_version=$SDL_VERSION
4336- { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4337-echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
4338- no_sdl=""
4339- if test "$SDL_CONFIG" = "no" ; then
4340- no_sdl=yes
4341- else
4342- SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
4343- SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
4344-
4345- sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
4346- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4347- sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
4348- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4349- sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4350- sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4351- if test "x$enable_sdltest" = "xyes" ; then
4352- ac_save_CFLAGS="$CFLAGS"
4353- ac_save_CXXFLAGS="$CXXFLAGS"
4354- ac_save_LIBS="$LIBS"
4355- CFLAGS="$CFLAGS $SDL_CFLAGS"
4356- CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4357- LIBS="$LIBS $SDL_LIBS"
4358- rm -f conf.sdltest
4359- if test "$cross_compiling" = yes; then
4360- echo $ac_n "cross compiling; assumed OK... $ac_c"
4361-else
4362- cat >conftest.$ac_ext <<_ACEOF
4363-/* confdefs.h. */
4364-_ACEOF
4365-cat confdefs.h >>conftest.$ac_ext
4366-cat >>conftest.$ac_ext <<_ACEOF
4367-/* end confdefs.h. */
4368-
4369-#include <stdio.h>
4370-#include <stdlib.h>
4371-#include <string.h>
4372-#include "SDL.h"
4373-
4374-char*
4375-my_strdup (char *str)
4376-{
4377- char *new_str;
4378-
4379- if (str)
4380- {
4381- new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4382- strcpy (new_str, str);
4383- }
4384- else
4385- new_str = NULL;
4386-
4387- return new_str;
4388-}
4389-
4390-int main (int argc, char *argv[])
4391-{
4392- int major, minor, micro;
4393- char *tmp_version;
4394-
4395- /* This hangs on some systems (?)
4396- system ("touch conf.sdltest");
4397- */
4398- { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4399-
4400- /* HP/UX 9 (%@#!) writes to sscanf strings */
4401- tmp_version = my_strdup("$min_sdl_version");
4402- if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4403- printf("%s, bad version string\n", "$min_sdl_version");
4404- exit(1);
4405- }
4406-
4407- if (($sdl_major_version > major) ||
4408- (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4409- (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4410- {
4411- return 0;
4412- }
4413- else
4414- {
4415- printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4416- printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4417- printf("*** best to upgrade to the required version.\n");
4418- printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4419- printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4420- printf("*** config.cache before re-running configure\n");
4421- return 1;
4422- }
4423-}
4424-
4425-
4426-_ACEOF
4427-rm -f conftest$ac_exeext
4428-if { (ac_try="$ac_link"
4429-case "(($ac_try" in
4430- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431- *) ac_try_echo=$ac_try;;
4432-esac
4433-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434- (eval "$ac_link") 2>&5
4435- ac_status=$?
4436- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4438- { (case "(($ac_try" in
4439- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440- *) ac_try_echo=$ac_try;;
4441-esac
4442-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443- (eval "$ac_try") 2>&5
4444- ac_status=$?
4445- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446- (exit $ac_status); }; }; then
4447- :
4448-else
4449- echo "$as_me: program exited with status $ac_status" >&5
4450-echo "$as_me: failed program was:" >&5
4451-sed 's/^/| /' conftest.$ac_ext >&5
4452-
4453-( exit $ac_status )
4454-no_sdl=yes
4455-fi
4456-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4457-fi
4458-
4459-
4460- CFLAGS="$ac_save_CFLAGS"
4461- CXXFLAGS="$ac_save_CXXFLAGS"
4462- LIBS="$ac_save_LIBS"
4463- fi
4464- fi
4465- if test "x$no_sdl" = x ; then
4466- { echo "$as_me:$LINENO: result: yes" >&5
4467-echo "${ECHO_T}yes" >&6; }
4468- cat >>confdefs.h <<\_ACEOF
4469-#define HAVE_LIBSDL 1
4470-_ACEOF
4471- HAVE_LIBSDL="yes"
4472- else
4473- { echo "$as_me:$LINENO: result: no" >&5
4474-echo "${ECHO_T}no" >&6; }
4475- if test "$SDL_CONFIG" = "no" ; then
4476- echo "*** The sdl-config script installed by SDL could not be found"
4477- echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4478- echo "*** your path, or set the SDL_CONFIG environment variable to the"
4479- echo "*** full path to sdl-config."
4480- else
4481- if test -f conf.sdltest ; then
4482- :
4483- else
4484- echo "*** Could not run SDL test program, checking why..."
4485- CFLAGS="$CFLAGS $SDL_CFLAGS"
4486- CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4487- LIBS="$LIBS $SDL_LIBS"
4488- cat >conftest.$ac_ext <<_ACEOF
4489-/* confdefs.h. */
4490-_ACEOF
4491-cat confdefs.h >>conftest.$ac_ext
4492-cat >>conftest.$ac_ext <<_ACEOF
4493-/* end confdefs.h. */
4494-
4495-#include <stdio.h>
4496-#include "SDL.h"
4497-
4498-int main(int argc, char *argv[])
4499-{ return 0; }
4500-#undef main
4501-#define main K_and_R_C_main
4502-
4503-int
4504-main ()
4505-{
4506- return 0;
4507- ;
4508- return 0;
4509-}
4510-_ACEOF
4511-rm -f conftest.$ac_objext conftest$ac_exeext
4512-if { (ac_try="$ac_link"
4513-case "(($ac_try" in
4514- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515- *) ac_try_echo=$ac_try;;
4516-esac
4517-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4518- (eval "$ac_link") 2>conftest.er1
4519- ac_status=$?
4520- grep -v '^ *+' conftest.er1 >conftest.err
4521- rm -f conftest.er1
4522- cat conftest.err >&5
4523- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524- (exit $ac_status); } && {
4525- test -z "$ac_c_werror_flag" ||
4526- test ! -s conftest.err
4527- } && test -s conftest$ac_exeext &&
4528- $as_test_x conftest$ac_exeext; then
4529- echo "*** The test program compiled, but did not run. This usually means"
4530- echo "*** that the run-time linker is not finding SDL or finding the wrong"
4531- echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4532- echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4533- echo "*** to the installed location Also, make sure you have run ldconfig if that"
4534- echo "*** is required on your system"
4535- echo "***"
4536- echo "*** If you have an old version installed, it is best to remove it, although"
4537- echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4538-else
4539- echo "$as_me: failed program was:" >&5
4540-sed 's/^/| /' conftest.$ac_ext >&5
4541-
4542- echo "*** The test program failed to compile or link. See the file config.log for the"
4543- echo "*** exact error that occured. This usually means SDL was incorrectly installed"
4544- echo "*** or that you have moved SDL since it was installed. In the latter case, you"
4545- echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
4546-fi
4547-
4548-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4549- conftest$ac_exeext conftest.$ac_ext
4550- CFLAGS="$ac_save_CFLAGS"
4551- CXXFLAGS="$ac_save_CXXFLAGS"
4552- LIBS="$ac_save_LIBS"
4553- fi
4554- fi
4555- SDL_CFLAGS=""
4556- SDL_LIBS=""
4557- { echo "$as_me:$LINENO: WARNING: *** SDL $SDL_VERSION or higher is not found!" >&5
4558-echo "$as_me: WARNING: *** SDL $SDL_VERSION or higher is not found!" >&2;}
4559- fi
4560-
4561-
4562- rm -f conf.sdltest
4563-
4564-CXXFLAGS="$CFLAGS $SDL_CFLAGS"
4565-LIBS="$LIBS $SDL_LIBS"
4566-
4567-
4568-{ echo "$as_me:$LINENO: checking for SDLNet_Init in -lSDL_net" >&5
4569-echo $ECHO_N "checking for SDLNet_Init in -lSDL_net... $ECHO_C" >&6; }
4570-if test "${ac_cv_lib_SDL_net_SDLNet_Init+set}" = set; then
4571- echo $ECHO_N "(cached) $ECHO_C" >&6
4572-else
4573- ac_check_lib_save_LIBS=$LIBS
4574-LIBS="-lSDL_net $LIBS"
4575-cat >conftest.$ac_ext <<_ACEOF
4576-/* confdefs.h. */
4577-_ACEOF
4578-cat confdefs.h >>conftest.$ac_ext
4579-cat >>conftest.$ac_ext <<_ACEOF
4580-/* end confdefs.h. */
4581-
4582-/* Override any GCC internal prototype to avoid an error.
4583- Use char because int might match the return type of a GCC
4584- builtin and then its argument prototype would still apply. */
4585-#ifdef __cplusplus
4586-extern "C"
4587-#endif
4588-char SDLNet_Init ();
4589-int
4590-main ()
4591-{
4592-return SDLNet_Init ();
4593- ;
4594- return 0;
4595-}
4596-_ACEOF
4597-rm -f conftest.$ac_objext conftest$ac_exeext
4598-if { (ac_try="$ac_link"
4599-case "(($ac_try" in
4600- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601- *) ac_try_echo=$ac_try;;
4602-esac
4603-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604- (eval "$ac_link") 2>conftest.er1
4605- ac_status=$?
4606- grep -v '^ *+' conftest.er1 >conftest.err
4607- rm -f conftest.er1
4608- cat conftest.err >&5
4609- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610- (exit $ac_status); } && {
4611- test -z "$ac_c_werror_flag" ||
4612- test ! -s conftest.err
4613- } && test -s conftest$ac_exeext &&
4614- $as_test_x conftest$ac_exeext; then
4615- ac_cv_lib_SDL_net_SDLNet_Init=yes
4616-else
4617- echo "$as_me: failed program was:" >&5
4618-sed 's/^/| /' conftest.$ac_ext >&5
4619-
4620- ac_cv_lib_SDL_net_SDLNet_Init=no
4621-fi
4622-
4623-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4624- conftest$ac_exeext conftest.$ac_ext
4625-LIBS=$ac_check_lib_save_LIBS
4626-fi
4627-{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_net_SDLNet_Init" >&5
4628-echo "${ECHO_T}$ac_cv_lib_SDL_net_SDLNet_Init" >&6; }
4629-if test $ac_cv_lib_SDL_net_SDLNet_Init = yes; then
4630- cat >>confdefs.h <<\_ACEOF
4631-#define HAVE_LIBSDL_NET 1
4632-_ACEOF
4633- LIBS="$LIBS -lSDL_net" HAVE_LIBSDL_NET="yes"
4634-else
4635- { echo "$as_me:$LINENO: WARNING: *** SDL_net not found! ***" >&5
4636-echo "$as_me: WARNING: *** SDL_net not found! ***" >&2;}
4637-fi
4638-
4639-
4640-
4641-{ echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
4642-echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
4643-if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
4644- echo $ECHO_N "(cached) $ECHO_C" >&6
4645-else
4646- ac_check_lib_save_LIBS=$LIBS
4647-LIBS="-lSDL_mixer $LIBS"
4648-cat >conftest.$ac_ext <<_ACEOF
4649-/* confdefs.h. */
4650-_ACEOF
4651-cat confdefs.h >>conftest.$ac_ext
4652-cat >>conftest.$ac_ext <<_ACEOF
4653-/* end confdefs.h. */
4654-
4655-/* Override any GCC internal prototype to avoid an error.
4656- Use char because int might match the return type of a GCC
4657- builtin and then its argument prototype would still apply. */
4658-#ifdef __cplusplus
4659-extern "C"
4660-#endif
4661-char Mix_OpenAudio ();
4662-int
4663-main ()
4664-{
4665-return Mix_OpenAudio ();
4666- ;
4667- return 0;
4668-}
4669-_ACEOF
4670-rm -f conftest.$ac_objext conftest$ac_exeext
4671-if { (ac_try="$ac_link"
4672-case "(($ac_try" in
4673- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674- *) ac_try_echo=$ac_try;;
4675-esac
4676-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677- (eval "$ac_link") 2>conftest.er1
4678- ac_status=$?
4679- grep -v '^ *+' conftest.er1 >conftest.err
4680- rm -f conftest.er1
4681- cat conftest.err >&5
4682- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683- (exit $ac_status); } && {
4684- test -z "$ac_c_werror_flag" ||
4685- test ! -s conftest.err
4686- } && test -s conftest$ac_exeext &&
4687- $as_test_x conftest$ac_exeext; then
4688- ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
4689-else
4690- echo "$as_me: failed program was:" >&5
4691-sed 's/^/| /' conftest.$ac_ext >&5
4692-
4693- ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
4694-fi
4695-
4696-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4697- conftest$ac_exeext conftest.$ac_ext
4698-LIBS=$ac_check_lib_save_LIBS
4699-fi
4700-{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
4701-echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
4702-if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
4703- cat >>confdefs.h <<\_ACEOF
4704-#define HAVE_LIBSDL_MIXER 1
4705-_ACEOF
4706- LIBS="$LIBS -lSDL_mixer" HAVE_LIBSDL_MIXER="yes"
4707-else
4708- { echo "$as_me:$LINENO: WARNING: *** SDL_mixer not found! ***" >&5
4709-echo "$as_me: WARNING: *** SDL_mixer not found! ***" >&2;}
4710-fi
4711-
4712-
4713-
4714-{ echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5
4715-echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6; }
4716-if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then
4717- echo $ECHO_N "(cached) $ECHO_C" >&6
4718-else
4719- ac_check_lib_save_LIBS=$LIBS
4720-LIBS="-lSDL_ttf $LIBS"
4721-cat >conftest.$ac_ext <<_ACEOF
4722-/* confdefs.h. */
4723-_ACEOF
4724-cat confdefs.h >>conftest.$ac_ext
4725-cat >>conftest.$ac_ext <<_ACEOF
4726-/* end confdefs.h. */
4727-
4728-/* Override any GCC internal prototype to avoid an error.
4729- Use char because int might match the return type of a GCC
4730- builtin and then its argument prototype would still apply. */
4731-#ifdef __cplusplus
4732-extern "C"
4733-#endif
4734-char TTF_OpenFont ();
4735-int
4736-main ()
4737-{
4738-return TTF_OpenFont ();
4739- ;
4740- return 0;
4741-}
4742-_ACEOF
4743-rm -f conftest.$ac_objext conftest$ac_exeext
4744-if { (ac_try="$ac_link"
4745-case "(($ac_try" in
4746- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747- *) ac_try_echo=$ac_try;;
4748-esac
4749-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750- (eval "$ac_link") 2>conftest.er1
4751- ac_status=$?
4752- grep -v '^ *+' conftest.er1 >conftest.err
4753- rm -f conftest.er1
4754- cat conftest.err >&5
4755- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756- (exit $ac_status); } && {
4757- test -z "$ac_c_werror_flag" ||
4758- test ! -s conftest.err
4759- } && test -s conftest$ac_exeext &&
4760- $as_test_x conftest$ac_exeext; then
4761- ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
4762-else
4763- echo "$as_me: failed program was:" >&5
4764-sed 's/^/| /' conftest.$ac_ext >&5
4765-
4766- ac_cv_lib_SDL_ttf_TTF_OpenFont=no
4767-fi
4768-
4769-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4770- conftest$ac_exeext conftest.$ac_ext
4771-LIBS=$ac_check_lib_save_LIBS
4772-fi
4773-{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
4774-echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6; }
4775-if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then
4776- cat >>confdefs.h <<\_ACEOF
4777-#define HAVE_LIBSDL_TTF 1
4778-_ACEOF
4779- LIBS="$LIBS -lSDL_ttf" HAVE_LIBSDL_TTF="yes"
4780-else
4781- { echo "$as_me:$LINENO: WARNING: *** SDL_ttf not found! ***" >&5
4782-echo "$as_me: WARNING: *** SDL_ttf not found! ***" >&2;}
4783-fi
4784-
4785-
4786-
4787-{ echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5
4788-echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6; }
4789-if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then
4790- echo $ECHO_N "(cached) $ECHO_C" >&6
4791-else
4792- ac_check_lib_save_LIBS=$LIBS
4793-LIBS="-lSDL_image $LIBS"
4794-cat >conftest.$ac_ext <<_ACEOF
4795-/* confdefs.h. */
4796-_ACEOF
4797-cat confdefs.h >>conftest.$ac_ext
4798-cat >>conftest.$ac_ext <<_ACEOF
4799-/* end confdefs.h. */
4800-
4801-/* Override any GCC internal prototype to avoid an error.
4802- Use char because int might match the return type of a GCC
4803- builtin and then its argument prototype would still apply. */
4804-#ifdef __cplusplus
4805-extern "C"
4806-#endif
4807-char IMG_Load ();
4808-int
4809-main ()
4810-{
4811-return IMG_Load ();
4812- ;
4813- return 0;
4814-}
4815-_ACEOF
4816-rm -f conftest.$ac_objext conftest$ac_exeext
4817-if { (ac_try="$ac_link"
4818-case "(($ac_try" in
4819- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820- *) ac_try_echo=$ac_try;;
4821-esac
4822-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823- (eval "$ac_link") 2>conftest.er1
4824- ac_status=$?
4825- grep -v '^ *+' conftest.er1 >conftest.err
4826- rm -f conftest.er1
4827- cat conftest.err >&5
4828- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829- (exit $ac_status); } && {
4830- test -z "$ac_c_werror_flag" ||
4831- test ! -s conftest.err
4832- } && test -s conftest$ac_exeext &&
4833- $as_test_x conftest$ac_exeext; then
4834- ac_cv_lib_SDL_image_IMG_Load=yes
4835-else
4836- echo "$as_me: failed program was:" >&5
4837-sed 's/^/| /' conftest.$ac_ext >&5
4838-
4839- ac_cv_lib_SDL_image_IMG_Load=no
4840-fi
4841-
4842-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4843- conftest$ac_exeext conftest.$ac_ext
4844-LIBS=$ac_check_lib_save_LIBS
4845-fi
4846-{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
4847-echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6; }
4848-if test $ac_cv_lib_SDL_image_IMG_Load = yes; then
4849- cat >>confdefs.h <<\_ACEOF
4850-#define HAVE_LIBSDL_IMAGE 1
4851-_ACEOF
4852- LIBS="$LIBS -lSDL_image" HAVE_LIBSDL_IMAGE="yes"
4853-else
4854- { echo "$as_me:$LINENO: WARNING: *** SDL_image not found! ***" >&5
4855-echo "$as_me: WARNING: *** SDL_image not found! ***" >&2;}
4856-fi
4857-
4858-
4859-BOOST_VERSION=1.34.1
4860-
4861-
4862-
4863-# Check whether --with-boost was given.
4864-if test "${with_boost+set}" = set; then
4865- withval=$with_boost;
4866- if test "$withval" = "no"; then
4867- want_boost="no"
4868- elif test "$withval" = "yes"; then
4869- want_boost="yes"
4870- ac_boost_path=""
4871- else
4872- want_boost="yes"
4873- ac_boost_path="$withval"
4874- fi
4875-
4876-else
4877- want_boost="yes"
4878-fi
4879-
4880-
4881-
4882-
4883-# Check whether --with-boost-libdir was given.
4884-if test "${with_boost_libdir+set}" = set; then
4885- withval=$with_boost_libdir;
4886- if test -d $withval
4887- then
4888- ac_boost_lib_path="$withval"
4889- else
4890- { { echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
4891-echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
4892- { (exit 1); exit 1; }; }
4893- fi
4894-
4895-else
4896- ac_boost_lib_path=""
4897-
4898-fi
4899-
4900-
4901-if test "x$want_boost" = "xyes"; then
4902- boost_lib_version_req=$BOOST_VERSION
4903- boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
4904- boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
4905- boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
4906- boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
4907- if test "x$boost_lib_version_req_sub_minor" = "x" ; then
4908- boost_lib_version_req_sub_minor="0"
4909- fi
4910- WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
4911- { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
4912-echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
4913- succeeded=no
4914-
4915- if test "$ac_boost_path" != ""; then
4916- BOOST_LDFLAGS="-L$ac_boost_path/lib"
4917- BOOST_CPPFLAGS="-I$ac_boost_path/include"
4918- else
4919- for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
4920- if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
4921- BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
4922- BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
4923- break;
4924- fi
4925- done
4926- fi
4927-
4928- if test "$ac_boost_lib_path" != ""; then
4929- BOOST_LDFLAGS="-L$ac_boost_lib_path"
4930- fi
4931-
4932- CPPFLAGS_SAVED="$CPPFLAGS"
4933- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
4934- export CPPFLAGS
4935-
4936- LDFLAGS_SAVED="$LDFLAGS"
4937- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
4938- export LDFLAGS
4939-
4940- ac_ext=cpp
4941-ac_cpp='$CXXCPP $CPPFLAGS'
4942-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4945-
4946- cat >conftest.$ac_ext <<_ACEOF
4947-/* confdefs.h. */
4948-_ACEOF
4949-cat confdefs.h >>conftest.$ac_ext
4950-cat >>conftest.$ac_ext <<_ACEOF
4951-/* end confdefs.h. */
4952-
4953- #include <boost/version.hpp>
4954-
4955-int
4956-main ()
4957-{
4958-
4959- #if BOOST_VERSION >= $WANT_BOOST_VERSION
4960- // Everything is okay
4961- #else
4962- # error Boost version is too old
4963- #endif
4964-
4965- ;
4966- return 0;
4967-}
4968-_ACEOF
4969-rm -f conftest.$ac_objext
4970-if { (ac_try="$ac_compile"
4971-case "(($ac_try" in
4972- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973- *) ac_try_echo=$ac_try;;
4974-esac
4975-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976- (eval "$ac_compile") 2>conftest.er1
4977- ac_status=$?
4978- grep -v '^ *+' conftest.er1 >conftest.err
4979- rm -f conftest.er1
4980- cat conftest.err >&5
4981- echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982- (exit $ac_status); } && {
4983- test -z "$ac_cxx_werror_flag" ||
4984- test ! -s conftest.err
4985- } && test -s conftest.$ac_objext; then
4986-
4987- { echo "$as_me:$LINENO: result: yes" >&5
4988-echo "${ECHO_T}yes" >&6; }
4989- succeeded=yes
4990- found_system=yes
4991-
4992-else
4993- echo "$as_me: failed program was:" >&5
4994-sed 's/^/| /' conftest.$ac_ext >&5
4995-
4996-
4997-
4998-fi
4999-
5000-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001- ac_ext=c
5002-ac_cpp='$CPP $CPPFLAGS'
5003-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005-ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006-
5007-
5008-
5009-
5010- if test "x$succeeded" != "xyes"; then
5011- _version=0
5012- if test "$ac_boost_path" != ""; then
5013- if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
5014- for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
5015- _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5016- V_CHECK=`expr $_version_tmp \> $_version`
5017- if test "$V_CHECK" = "1" ; then
5018- _version=$_version_tmp
5019- fi
5020- VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5021- BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
5022- done
5023- fi
5024- else
5025- for ac_boost_path in /usr /usr/local /opt /opt/local ; do
5026- if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
5027- for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
5028- _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
5029- V_CHECK=`expr $_version_tmp \> $_version`
5030- if test "$V_CHECK" = "1" ; then
5031- _version=$_version_tmp
5032- best_path=$ac_boost_path
5033- fi
5034- done
5035- fi
5036- done
5037-
5038- VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
5039- BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
5040- if test "$ac_boost_lib_path" = ""
5041- then
5042- BOOST_LDFLAGS="-L$best_path/lib"
5043- fi
5044-
5045- if test "x$BOOST_ROOT" != "x"; then
5046- if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
5047- version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
5048- stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
5049- stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
5050- V_CHECK=`expr $stage_version_shorten \>\= $_version`
5051- if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
5052- { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
5053-echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
5054- BOOST_CPPFLAGS="-I$BOOST_ROOT"
5055- BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
5056- fi
5057- fi
5058- fi
5059- fi
5060-
5061- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5062- export CPPFLAGS
5063- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5064- export LDFLAGS
5065-
5066- ac_ext=cpp
5067-ac_cpp='$CXXCPP $CPPFLAGS'
5068-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5071-
5072- cat >conftest.$ac_ext <<_ACEOF
5073-/* confdefs.h. */
5074-_ACEOF
5075-cat confdefs.h >>conftest.$ac_ext
5076-cat >>conftest.$ac_ext <<_ACEOF
5077-/* end confdefs.h. */
5078-
5079- #include <boost/version.hpp>
5080-
5081-int
5082-main ()
5083-{
5084-
5085- #if BOOST_VERSION >= $WANT_BOOST_VERSION
5086- // Everything is okay
5087- #else
5088- # error Boost version is too old
5089- #endif
5090-
5091- ;
5092- return 0;
5093-}
5094-_ACEOF
5095-rm -f conftest.$ac_objext
5096-if { (ac_try="$ac_compile"
5097-case "(($ac_try" in
5098- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099- *) ac_try_echo=$ac_try;;
5100-esac
5101-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102- (eval "$ac_compile") 2>conftest.er1
5103- ac_status=$?
5104- grep -v '^ *+' conftest.er1 >conftest.err
5105- rm -f conftest.er1
5106- cat conftest.err >&5
5107- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108- (exit $ac_status); } && {
5109- test -z "$ac_cxx_werror_flag" ||
5110- test ! -s conftest.err
5111- } && test -s conftest.$ac_objext; then
5112-
5113- { echo "$as_me:$LINENO: result: yes" >&5
5114-echo "${ECHO_T}yes" >&6; }
5115- succeeded=yes
5116- found_system=yes
5117-
5118-else
5119- echo "$as_me: failed program was:" >&5
5120-sed 's/^/| /' conftest.$ac_ext >&5
5121-
5122-
5123-
5124-fi
5125-
5126-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127- ac_ext=c
5128-ac_cpp='$CPP $CPPFLAGS'
5129-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131-ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132-
5133- fi
5134-
5135- if test "$succeeded" != "yes" ; then
5136- if test "$_version" = "0" ; then
5137- { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
5138-echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
5139- { (exit 1); exit 1; }; }
5140- else
5141- { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
5142-echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
5143- fi
5144- else
5145-
5146-
5147-
5148-cat >>confdefs.h <<\_ACEOF
5149-#define HAVE_BOOST
5150-_ACEOF
5151-
5152- fi
5153-
5154- CPPFLAGS="$CPPFLAGS_SAVED"
5155- LDFLAGS="$LDFLAGS_SAVED"
5156-fi
5157-
5158-
5159-
5160-
5161-# Check whether --with-boost-signals was given.
5162-if test "${with_boost_signals+set}" = set; then
5163- withval=$with_boost_signals;
5164- if test "$withval" = "no"; then
5165- want_boost="no"
5166- elif test "$withval" = "yes"; then
5167- want_boost="yes"
5168- ax_boost_user_signals_lib=""
5169- else
5170- want_boost="yes"
5171- ax_boost_user_signals_lib="$withval"
5172- fi
5173-
5174-else
5175- want_boost="yes"
5176-
5177-fi
5178-
5179-
5180- if test "x$want_boost" = "xyes"; then
5181-
5182- CPPFLAGS_SAVED="$CPPFLAGS"
5183- CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
5184- export CPPFLAGS
5185-
5186- LDFLAGS_SAVED="$LDFLAGS"
5187- LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5188- export LDFLAGS
5189-
5190- { echo "$as_me:$LINENO: checking whether the Boost::Signals library is available" >&5
5191-echo $ECHO_N "checking whether the Boost::Signals library is available... $ECHO_C" >&6; }
5192-if test "${ax_cv_boost_signals+set}" = set; then
5193- echo $ECHO_N "(cached) $ECHO_C" >&6
5194-else
5195- ac_ext=cpp
5196-ac_cpp='$CXXCPP $CPPFLAGS'
5197-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200-
5201- cat >conftest.$ac_ext <<_ACEOF
5202-/* confdefs.h. */
5203-_ACEOF
5204-cat confdefs.h >>conftest.$ac_ext
5205-cat >>conftest.$ac_ext <<_ACEOF
5206-/* end confdefs.h. */
5207-#include <boost/signal.hpp>
5208-
5209-int
5210-main ()
5211-{
5212-boost::signal<void ()> sig;
5213- return 0;
5214-
5215- ;
5216- return 0;
5217-}
5218-_ACEOF
5219-rm -f conftest.$ac_objext
5220-if { (ac_try="$ac_compile"
5221-case "(($ac_try" in
5222- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223- *) ac_try_echo=$ac_try;;
5224-esac
5225-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226- (eval "$ac_compile") 2>conftest.er1
5227- ac_status=$?
5228- grep -v '^ *+' conftest.er1 >conftest.err
5229- rm -f conftest.er1
5230- cat conftest.err >&5
5231- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232- (exit $ac_status); } && {
5233- test -z "$ac_cxx_werror_flag" ||
5234- test ! -s conftest.err
5235- } && test -s conftest.$ac_objext; then
5236- ax_cv_boost_signals=yes
5237-else
5238- echo "$as_me: failed program was:" >&5
5239-sed 's/^/| /' conftest.$ac_ext >&5
5240-
5241- ax_cv_boost_signals=no
5242-fi
5243-
5244-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245- ac_ext=c
5246-ac_cpp='$CPP $CPPFLAGS'
5247-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249-ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250-
5251-
5252-fi
5253-{ echo "$as_me:$LINENO: result: $ax_cv_boost_signals" >&5
5254-echo "${ECHO_T}$ax_cv_boost_signals" >&6; }
5255- if test "x$ax_cv_boost_signals" = "xyes"; then
5256-
5257-cat >>confdefs.h <<\_ACEOF
5258-#define HAVE_BOOST_SIGNALS
5259-_ACEOF
5260-
5261- BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
5262- if test "x$ax_boost_user_signals_lib" = "x"; then
5263- for libextension in `ls $BOOSTLIBDIR/libboost_signals*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_signals.*\)\.so.*$;\1;' -e 's;^lib\(boost_signals.*\)\.a*$;\1;'` ; do
5264- ax_lib=${libextension}
5265- as_ac_Lib=`echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5266-{ echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
5267-echo $ECHO_N "checking for exit in -l$ax_lib... $ECHO_C" >&6; }
5268-if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5269- echo $ECHO_N "(cached) $ECHO_C" >&6
5270-else
5271- ac_check_lib_save_LIBS=$LIBS
5272-LIBS="-l$ax_lib $LIBS"
5273-cat >conftest.$ac_ext <<_ACEOF
5274-/* confdefs.h. */
5275-_ACEOF
5276-cat confdefs.h >>conftest.$ac_ext
5277-cat >>conftest.$ac_ext <<_ACEOF
5278-/* end confdefs.h. */
5279-
5280-/* Override any GCC internal prototype to avoid an error.
5281- Use char because int might match the return type of a GCC
5282- builtin and then its argument prototype would still apply. */
5283-#ifdef __cplusplus
5284-extern "C"
5285-#endif
5286-char exit ();
5287-int
5288-main ()
5289-{
5290-return exit ();
5291- ;
5292- return 0;
5293-}
5294-_ACEOF
5295-rm -f conftest.$ac_objext conftest$ac_exeext
5296-if { (ac_try="$ac_link"
5297-case "(($ac_try" in
5298- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299- *) ac_try_echo=$ac_try;;
5300-esac
5301-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302- (eval "$ac_link") 2>conftest.er1
5303- ac_status=$?
5304- grep -v '^ *+' conftest.er1 >conftest.err
5305- rm -f conftest.er1
5306- cat conftest.err >&5
5307- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308- (exit $ac_status); } && {
5309- test -z "$ac_c_werror_flag" ||
5310- test ! -s conftest.err
5311- } && test -s conftest$ac_exeext &&
5312- $as_test_x conftest$ac_exeext; then
5313- eval "$as_ac_Lib=yes"
5314-else
5315- echo "$as_me: failed program was:" >&5
5316-sed 's/^/| /' conftest.$ac_ext >&5
5317-
5318- eval "$as_ac_Lib=no"
5319-fi
5320-
5321-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5322- conftest$ac_exeext conftest.$ac_ext
5323-LIBS=$ac_check_lib_save_LIBS
5324-fi
5325-ac_res=`eval echo '${'$as_ac_Lib'}'`
5326- { echo "$as_me:$LINENO: result: $ac_res" >&5
5327-echo "${ECHO_T}$ac_res" >&6; }
5328-if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5329- BOOST_SIGNALS_LIB="-l$ax_lib"; link_signals="yes"; break
5330-else
5331- link_signals="no"
5332-fi
5333-
5334- done
5335- if test "x$link_signals" != "xyes"; then
5336- for libextension in `ls $BOOSTLIBDIR/boost_signals*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_signals.*\)\.dll.*$;\1;' -e 's;^\(boost_signals.*\)\.a*$;\1;'` ; do
5337- ax_lib=${libextension}
5338- as_ac_Lib=`echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
5339-{ echo "$as_me:$LINENO: checking for exit in -l$ax_lib" >&5
5340-echo $ECHO_N "checking for exit in -l$ax_lib... $ECHO_C" >&6; }
5341-if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5342- echo $ECHO_N "(cached) $ECHO_C" >&6
5343-else
5344- ac_check_lib_save_LIBS=$LIBS
5345-LIBS="-l$ax_lib $LIBS"
5346-cat >conftest.$ac_ext <<_ACEOF
5347-/* confdefs.h. */
5348-_ACEOF
5349-cat confdefs.h >>conftest.$ac_ext
5350-cat >>conftest.$ac_ext <<_ACEOF
5351-/* end confdefs.h. */
5352-
5353-/* Override any GCC internal prototype to avoid an error.
5354- Use char because int might match the return type of a GCC
5355- builtin and then its argument prototype would still apply. */
5356-#ifdef __cplusplus
5357-extern "C"
5358-#endif
5359-char exit ();
5360-int
5361-main ()
5362-{
5363-return exit ();
5364- ;
5365- return 0;
5366-}
5367-_ACEOF
5368-rm -f conftest.$ac_objext conftest$ac_exeext
5369-if { (ac_try="$ac_link"
5370-case "(($ac_try" in
5371- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372- *) ac_try_echo=$ac_try;;
5373-esac
5374-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375- (eval "$ac_link") 2>conftest.er1
5376- ac_status=$?
5377- grep -v '^ *+' conftest.er1 >conftest.err
5378- rm -f conftest.er1
5379- cat conftest.err >&5
5380- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381- (exit $ac_status); } && {
5382- test -z "$ac_c_werror_flag" ||
5383- test ! -s conftest.err
5384- } && test -s conftest$ac_exeext &&
5385- $as_test_x conftest$ac_exeext; then
5386- eval "$as_ac_Lib=yes"
5387-else
5388- echo "$as_me: failed program was:" >&5
5389-sed 's/^/| /' conftest.$ac_ext >&5
5390-
5391- eval "$as_ac_Lib=no"
5392-fi
5393-
5394-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5395- conftest$ac_exeext conftest.$ac_ext
5396-LIBS=$ac_check_lib_save_LIBS
5397-fi
5398-ac_res=`eval echo '${'$as_ac_Lib'}'`
5399- { echo "$as_me:$LINENO: result: $ac_res" >&5
5400-echo "${ECHO_T}$ac_res" >&6; }
5401-if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5402- BOOST_SIGNALS_LIB="-l$ax_lib"; link_signals="yes"; break
5403-else
5404- link_signals="no"
5405-fi
5406-
5407- done
5408- fi
5409-
5410- else
5411- for ax_lib in $ax_boost_user_signals_lib boost_signals-$ax_boost_user_signals_lib; do
5412- as_ac_Lib=`echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
5413-{ echo "$as_me:$LINENO: checking for main in -l$ax_lib" >&5
5414-echo $ECHO_N "checking for main in -l$ax_lib... $ECHO_C" >&6; }
5415-if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5416- echo $ECHO_N "(cached) $ECHO_C" >&6
5417-else
5418- ac_check_lib_save_LIBS=$LIBS
5419-LIBS="-l$ax_lib $LIBS"
5420-cat >conftest.$ac_ext <<_ACEOF
5421-/* confdefs.h. */
5422-_ACEOF
5423-cat confdefs.h >>conftest.$ac_ext
5424-cat >>conftest.$ac_ext <<_ACEOF
5425-/* end confdefs.h. */
5426-
5427-
5428-int
5429-main ()
5430-{
5431-return main ();
5432- ;
5433- return 0;
5434-}
5435-_ACEOF
5436-rm -f conftest.$ac_objext conftest$ac_exeext
5437-if { (ac_try="$ac_link"
5438-case "(($ac_try" in
5439- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440- *) ac_try_echo=$ac_try;;
5441-esac
5442-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443- (eval "$ac_link") 2>conftest.er1
5444- ac_status=$?
5445- grep -v '^ *+' conftest.er1 >conftest.err
5446- rm -f conftest.er1
5447- cat conftest.err >&5
5448- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449- (exit $ac_status); } && {
5450- test -z "$ac_c_werror_flag" ||
5451- test ! -s conftest.err
5452- } && test -s conftest$ac_exeext &&
5453- $as_test_x conftest$ac_exeext; then
5454- eval "$as_ac_Lib=yes"
5455-else
5456- echo "$as_me: failed program was:" >&5
5457-sed 's/^/| /' conftest.$ac_ext >&5
5458-
5459- eval "$as_ac_Lib=no"
5460-fi
5461-
5462-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5463- conftest$ac_exeext conftest.$ac_ext
5464-LIBS=$ac_check_lib_save_LIBS
5465-fi
5466-ac_res=`eval echo '${'$as_ac_Lib'}'`
5467- { echo "$as_me:$LINENO: result: $ac_res" >&5
5468-echo "${ECHO_T}$ac_res" >&6; }
5469-if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5470- BOOST_SIGNALS_LIB="-l$ax_lib"; link_signals="yes"; break
5471-else
5472- link_signals="no"
5473-fi
5474-
5475- done
5476-
5477- fi
5478- if test "x$link_signals" != "xyes"; then
5479- { { echo "$as_me:$LINENO: error: Could not link against $ax_lib !" >&5
5480-echo "$as_me: error: Could not link against $ax_lib !" >&2;}
5481- { (exit 1); exit 1; }; }
5482- fi
5483- fi
5484-
5485- CPPFLAGS="$CPPFLAGS_SAVED"
5486- LDFLAGS="$LDFLAGS_SAVED"
5487- fi
5488-
5489-CXXFLAGS="$CXXFLAGS $BOOST_CPPFLAGS"
5490-LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
5491-LIBS="$LIBS $BOOST_SIGNALS_LIB"
5492-
5493-ac_ext=c
5494-ac_cpp='$CPP $CPPFLAGS'
5495-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5496-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5497-ac_compiler_gnu=$ac_cv_c_compiler_gnu
5498-{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5499-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5500-# On Suns, sometimes $CPP names a directory.
5501-if test -n "$CPP" && test -d "$CPP"; then
5502- CPP=
5503-fi
5504-if test -z "$CPP"; then
5505- if test "${ac_cv_prog_CPP+set}" = set; then
5506- echo $ECHO_N "(cached) $ECHO_C" >&6
5507-else
5508- # Double quotes because CPP needs to be expanded
5509- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5510- do
5511- ac_preproc_ok=false
5512-for ac_c_preproc_warn_flag in '' yes
5513-do
5514- # Use a header file that comes with gcc, so configuring glibc
5515- # with a fresh cross-compiler works.
5516- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5517- # <limits.h> exists even on freestanding compilers.
5518- # On the NeXT, cc -E runs the code through the compiler's parser,
5519- # not just through cpp. "Syntax error" is here to catch this case.
5520- cat >conftest.$ac_ext <<_ACEOF
5521-/* confdefs.h. */
5522-_ACEOF
5523-cat confdefs.h >>conftest.$ac_ext
5524-cat >>conftest.$ac_ext <<_ACEOF
5525-/* end confdefs.h. */
5526-#ifdef __STDC__
5527-# include <limits.h>
5528-#else
5529-# include <assert.h>
5530-#endif
5531- Syntax error
5532-_ACEOF
5533-if { (ac_try="$ac_cpp conftest.$ac_ext"
5534-case "(($ac_try" in
5535- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536- *) ac_try_echo=$ac_try;;
5537-esac
5538-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5540- ac_status=$?
5541- grep -v '^ *+' conftest.er1 >conftest.err
5542- rm -f conftest.er1
5543- cat conftest.err >&5
5544- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545- (exit $ac_status); } >/dev/null && {
5546- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5547- test ! -s conftest.err
5548- }; then
5549- :
5550-else
5551- echo "$as_me: failed program was:" >&5
5552-sed 's/^/| /' conftest.$ac_ext >&5
5553-
5554- # Broken: fails on valid input.
5555-continue
5556-fi
5557-
5558-rm -f conftest.err conftest.$ac_ext
5559-
5560- # OK, works on sane cases. Now check whether nonexistent headers
5561- # can be detected and how.
5562- cat >conftest.$ac_ext <<_ACEOF
5563-/* confdefs.h. */
5564-_ACEOF
5565-cat confdefs.h >>conftest.$ac_ext
5566-cat >>conftest.$ac_ext <<_ACEOF
5567-/* end confdefs.h. */
5568-#include <ac_nonexistent.h>
5569-_ACEOF
5570-if { (ac_try="$ac_cpp conftest.$ac_ext"
5571-case "(($ac_try" in
5572- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573- *) ac_try_echo=$ac_try;;
5574-esac
5575-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577- ac_status=$?
5578- grep -v '^ *+' conftest.er1 >conftest.err
5579- rm -f conftest.er1
5580- cat conftest.err >&5
5581- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582- (exit $ac_status); } >/dev/null && {
5583- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5584- test ! -s conftest.err
5585- }; then
5586- # Broken: success on invalid input.
5587-continue
5588-else
5589- echo "$as_me: failed program was:" >&5
5590-sed 's/^/| /' conftest.$ac_ext >&5
5591-
5592- # Passes both tests.
5593-ac_preproc_ok=:
5594-break
5595-fi
5596-
5597-rm -f conftest.err conftest.$ac_ext
5598-
5599-done
5600-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5601-rm -f conftest.err conftest.$ac_ext
5602-if $ac_preproc_ok; then
5603- break
5604-fi
5605-
5606- done
5607- ac_cv_prog_CPP=$CPP
5608-
5609-fi
5610- CPP=$ac_cv_prog_CPP
5611-else
5612- ac_cv_prog_CPP=$CPP
5613-fi
5614-{ echo "$as_me:$LINENO: result: $CPP" >&5
5615-echo "${ECHO_T}$CPP" >&6; }
5616-ac_preproc_ok=false
5617-for ac_c_preproc_warn_flag in '' yes
5618-do
5619- # Use a header file that comes with gcc, so configuring glibc
5620- # with a fresh cross-compiler works.
5621- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5622- # <limits.h> exists even on freestanding compilers.
5623- # On the NeXT, cc -E runs the code through the compiler's parser,
5624- # not just through cpp. "Syntax error" is here to catch this case.
5625- cat >conftest.$ac_ext <<_ACEOF
5626-/* confdefs.h. */
5627-_ACEOF
5628-cat confdefs.h >>conftest.$ac_ext
5629-cat >>conftest.$ac_ext <<_ACEOF
5630-/* end confdefs.h. */
5631-#ifdef __STDC__
5632-# include <limits.h>
5633-#else
5634-# include <assert.h>
5635-#endif
5636- Syntax error
5637-_ACEOF
5638-if { (ac_try="$ac_cpp conftest.$ac_ext"
5639-case "(($ac_try" in
5640- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5641- *) ac_try_echo=$ac_try;;
5642-esac
5643-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5644- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5645- ac_status=$?
5646- grep -v '^ *+' conftest.er1 >conftest.err
5647- rm -f conftest.er1
5648- cat conftest.err >&5
5649- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650- (exit $ac_status); } >/dev/null && {
5651- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5652- test ! -s conftest.err
5653- }; then
5654- :
5655-else
5656- echo "$as_me: failed program was:" >&5
5657-sed 's/^/| /' conftest.$ac_ext >&5
5658-
5659- # Broken: fails on valid input.
5660-continue
5661-fi
5662-
5663-rm -f conftest.err conftest.$ac_ext
5664-
5665- # OK, works on sane cases. Now check whether nonexistent headers
5666- # can be detected and how.
5667- cat >conftest.$ac_ext <<_ACEOF
5668-/* confdefs.h. */
5669-_ACEOF
5670-cat confdefs.h >>conftest.$ac_ext
5671-cat >>conftest.$ac_ext <<_ACEOF
5672-/* end confdefs.h. */
5673-#include <ac_nonexistent.h>
5674-_ACEOF
5675-if { (ac_try="$ac_cpp conftest.$ac_ext"
5676-case "(($ac_try" in
5677- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678- *) ac_try_echo=$ac_try;;
5679-esac
5680-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5682- ac_status=$?
5683- grep -v '^ *+' conftest.er1 >conftest.err
5684- rm -f conftest.er1
5685- cat conftest.err >&5
5686- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687- (exit $ac_status); } >/dev/null && {
5688- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5689- test ! -s conftest.err
5690- }; then
5691- # Broken: success on invalid input.
5692-continue
5693-else
5694- echo "$as_me: failed program was:" >&5
5695-sed 's/^/| /' conftest.$ac_ext >&5
5696-
5697- # Passes both tests.
5698-ac_preproc_ok=:
5699-break
5700-fi
5701-
5702-rm -f conftest.err conftest.$ac_ext
5703-
5704-done
5705-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5706-rm -f conftest.err conftest.$ac_ext
5707-if $ac_preproc_ok; then
5708- :
5709-else
5710- { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5711-See \`config.log' for more details." >&5
5712-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5713-See \`config.log' for more details." >&2;}
5714- { (exit 1); exit 1; }; }
5715-fi
5716-
5717-ac_ext=c
5718-ac_cpp='$CPP $CPPFLAGS'
5719-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5720-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5721-ac_compiler_gnu=$ac_cv_c_compiler_gnu
5722-
5723-
5724-{ echo "$as_me:$LINENO: checking for X" >&5
5725-echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5726-
5727-
5728-# Check whether --with-x was given.
5729-if test "${with_x+set}" = set; then
5730- withval=$with_x;
5731-fi
5732-
5733-# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5734-if test "x$with_x" = xno; then
5735- # The user explicitly disabled X.
5736- have_x=disabled
5737-else
5738- case $x_includes,$x_libraries in #(
5739- *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5740-echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5741- { (exit 1); exit 1; }; };; #(
5742- *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5743- echo $ECHO_N "(cached) $ECHO_C" >&6
5744-else
5745- # One or both of the vars are not set, and there is no cached value.
5746-ac_x_includes=no ac_x_libraries=no
5747-rm -f -r conftest.dir
5748-if mkdir conftest.dir; then
5749- cd conftest.dir
5750- cat >Imakefile <<'_ACEOF'
5751-incroot:
5752- @echo incroot='${INCROOT}'
5753-usrlibdir:
5754- @echo usrlibdir='${USRLIBDIR}'
5755-libdir:
5756- @echo libdir='${LIBDIR}'
5757-_ACEOF
5758- if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5759- # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5760- for ac_var in incroot usrlibdir libdir; do
5761- eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5762- done
5763- # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5764- for ac_extension in a so sl; do
5765- if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5766- test -f "$ac_im_libdir/libX11.$ac_extension"; then
5767- ac_im_usrlibdir=$ac_im_libdir; break
5768- fi
5769- done
5770- # Screen out bogus values from the imake configuration. They are
5771- # bogus both because they are the default anyway, and because
5772- # using them would break gcc on systems where it needs fixed includes.
5773- case $ac_im_incroot in
5774- /usr/include) ac_x_includes= ;;
5775- *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5776- esac
5777- case $ac_im_usrlibdir in
5778- /usr/lib | /lib) ;;
5779- *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5780- esac
5781- fi
5782- cd ..
5783- rm -f -r conftest.dir
5784-fi
5785-
5786-# Standard set of common directories for X headers.
5787-# Check X11 before X11Rn because it is often a symlink to the current release.
5788-ac_x_header_dirs='
5789-/usr/X11/include
5790-/usr/X11R6/include
5791-/usr/X11R5/include
5792-/usr/X11R4/include
5793-
5794-/usr/include/X11
5795-/usr/include/X11R6
5796-/usr/include/X11R5
5797-/usr/include/X11R4
5798-
5799-/usr/local/X11/include
5800-/usr/local/X11R6/include
5801-/usr/local/X11R5/include
5802-/usr/local/X11R4/include
5803-
5804-/usr/local/include/X11
5805-/usr/local/include/X11R6
5806-/usr/local/include/X11R5
5807-/usr/local/include/X11R4
5808-
5809-/usr/X386/include
5810-/usr/x386/include
5811-/usr/XFree86/include/X11
5812-
5813-/usr/include
5814-/usr/local/include
5815-/usr/unsupported/include
5816-/usr/athena/include
5817-/usr/local/x11r5/include
5818-/usr/lpp/Xamples/include
5819-
5820-/usr/openwin/include
5821-/usr/openwin/share/include'
5822-
5823-if test "$ac_x_includes" = no; then
5824- # Guess where to find include files, by looking for Xlib.h.
5825- # First, try using that file with no special directory specified.
5826- cat >conftest.$ac_ext <<_ACEOF
5827-/* confdefs.h. */
5828-_ACEOF
5829-cat confdefs.h >>conftest.$ac_ext
5830-cat >>conftest.$ac_ext <<_ACEOF
5831-/* end confdefs.h. */
5832-#include <X11/Xlib.h>
5833-_ACEOF
5834-if { (ac_try="$ac_cpp conftest.$ac_ext"
5835-case "(($ac_try" in
5836- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837- *) ac_try_echo=$ac_try;;
5838-esac
5839-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5841- ac_status=$?
5842- grep -v '^ *+' conftest.er1 >conftest.err
5843- rm -f conftest.er1
5844- cat conftest.err >&5
5845- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846- (exit $ac_status); } >/dev/null && {
5847- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5848- test ! -s conftest.err
5849- }; then
5850- # We can compile using X headers with no special include directory.
5851-ac_x_includes=
5852-else
5853- echo "$as_me: failed program was:" >&5
5854-sed 's/^/| /' conftest.$ac_ext >&5
5855-
5856- for ac_dir in $ac_x_header_dirs; do
5857- if test -r "$ac_dir/X11/Xlib.h"; then
5858- ac_x_includes=$ac_dir
5859- break
5860- fi
5861-done
5862-fi
5863-
5864-rm -f conftest.err conftest.$ac_ext
5865-fi # $ac_x_includes = no
5866-
5867-if test "$ac_x_libraries" = no; then
5868- # Check for the libraries.
5869- # See if we find them without any special options.
5870- # Don't add to $LIBS permanently.
5871- ac_save_LIBS=$LIBS
5872- LIBS="-lX11 $LIBS"
5873- cat >conftest.$ac_ext <<_ACEOF
5874-/* confdefs.h. */
5875-_ACEOF
5876-cat confdefs.h >>conftest.$ac_ext
5877-cat >>conftest.$ac_ext <<_ACEOF
5878-/* end confdefs.h. */
5879-#include <X11/Xlib.h>
5880-int
5881-main ()
5882-{
5883-XrmInitialize ()
5884- ;
5885- return 0;
5886-}
5887-_ACEOF
5888-rm -f conftest.$ac_objext conftest$ac_exeext
5889-if { (ac_try="$ac_link"
5890-case "(($ac_try" in
5891- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892- *) ac_try_echo=$ac_try;;
5893-esac
5894-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895- (eval "$ac_link") 2>conftest.er1
5896- ac_status=$?
5897- grep -v '^ *+' conftest.er1 >conftest.err
5898- rm -f conftest.er1
5899- cat conftest.err >&5
5900- echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901- (exit $ac_status); } && {
5902- test -z "$ac_c_werror_flag" ||
5903- test ! -s conftest.err
5904- } && test -s conftest$ac_exeext &&
5905- $as_test_x conftest$ac_exeext; then
5906- LIBS=$ac_save_LIBS
5907-# We can link X programs with no special library path.
5908-ac_x_libraries=
5909-else
5910- echo "$as_me: failed program was:" >&5
5911-sed 's/^/| /' conftest.$ac_ext >&5
5912-
5913- LIBS=$ac_save_LIBS
5914-for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5915-do
5916- # Don't even attempt the hair of trying to link an X program!
5917- for ac_extension in a so sl; do
5918- if test -r "$ac_dir/libX11.$ac_extension"; then
5919- ac_x_libraries=$ac_dir
5920- break 2
5921- fi
5922- done
5923-done
5924-fi
5925-
5926-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927- conftest$ac_exeext conftest.$ac_ext
5928-fi # $ac_x_libraries = no
5929-
5930-case $ac_x_includes,$ac_x_libraries in #(
5931- no,* | *,no | *\'*)
5932- # Didn't find X, or a directory has "'" in its name.
5933- ac_cv_have_x="have_x=no";; #(
5934- *)
5935- # Record where we found X for the cache.
5936- ac_cv_have_x="have_x=yes\
5937- ac_x_includes='$ac_x_includes'\
5938- ac_x_libraries='$ac_x_libraries'"
5939-esac
5940-fi
5941-;; #(
5942- *) have_x=yes;;
5943- esac
5944- eval "$ac_cv_have_x"
5945-fi # $with_x != no
5946-
5947-if test "$have_x" != yes; then
5948- { echo "$as_me:$LINENO: result: $have_x" >&5
5949-echo "${ECHO_T}$have_x" >&6; }
5950- no_x=yes
5951-else
5952- # If each of the values was on the command line, it overrides each guess.
5953- test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5954- test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5955- # Update the cache value to reflect the command line values.
5956- ac_cv_have_x="have_x=yes\
5957- ac_x_includes='$x_includes'\
5958- ac_x_libraries='$x_libraries'"
5959- { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5960-echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5961-fi
5962-
5963-if test "$no_x" = yes; then
5964- # Not all programs may use this symbol, but it does not hurt to define it.
5965-
5966-cat >>confdefs.h <<\_ACEOF
5967-#define X_DISPLAY_MISSING 1
5968-_ACEOF
5969-
5970- X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5971-else
5972- if test -n "$x_includes"; then
5973- X_CFLAGS="$X_CFLAGS -I$x_includes"
5974- fi
5975-
5976- # It would also be nice to do this for all -L options, not just this one.
5977- if test -n "$x_libraries"; then
5978- X_LIBS="$X_LIBS -L$x_libraries"
5979- # For Solaris; some versions of Sun CC require a space after -R and
5980- # others require no space. Words are not sufficient . . . .
5981- { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5982-echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5983- ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5984- ac_xsave_c_werror_flag=$ac_c_werror_flag
5985- ac_c_werror_flag=yes
5986- cat >conftest.$ac_ext <<_ACEOF
5987-/* confdefs.h. */
5988-_ACEOF
5989-cat confdefs.h >>conftest.$ac_ext
5990-cat >>conftest.$ac_ext <<_ACEOF
5991-/* end confdefs.h. */
5992-
5993-int
5994-main ()
5995-{
5996-
5997- ;
5998- return 0;
5999-}
6000-_ACEOF
6001-rm -f conftest.$ac_objext conftest$ac_exeext
6002-if { (ac_try="$ac_link"
6003-case "(($ac_try" in
6004- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005- *) ac_try_echo=$ac_try;;
6006-esac
6007-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008- (eval "$ac_link") 2>conftest.er1
6009- ac_status=$?
6010- grep -v '^ *+' conftest.er1 >conftest.err
6011- rm -f conftest.er1
6012- cat conftest.err >&5
6013- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014- (exit $ac_status); } && {
6015- test -z "$ac_c_werror_flag" ||
6016- test ! -s conftest.err
6017- } && test -s conftest$ac_exeext &&
6018- $as_test_x conftest$ac_exeext; then
6019- { echo "$as_me:$LINENO: result: no" >&5
6020-echo "${ECHO_T}no" >&6; }
6021- X_LIBS="$X_LIBS -R$x_libraries"
6022-else
6023- echo "$as_me: failed program was:" >&5
6024-sed 's/^/| /' conftest.$ac_ext >&5
6025-
6026- LIBS="$ac_xsave_LIBS -R $x_libraries"
6027- cat >conftest.$ac_ext <<_ACEOF
6028-/* confdefs.h. */
6029-_ACEOF
6030-cat confdefs.h >>conftest.$ac_ext
6031-cat >>conftest.$ac_ext <<_ACEOF
6032-/* end confdefs.h. */
6033-
6034-int
6035-main ()
6036-{
6037-
6038- ;
6039- return 0;
6040-}
6041-_ACEOF
6042-rm -f conftest.$ac_objext conftest$ac_exeext
6043-if { (ac_try="$ac_link"
6044-case "(($ac_try" in
6045- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046- *) ac_try_echo=$ac_try;;
6047-esac
6048-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049- (eval "$ac_link") 2>conftest.er1
6050- ac_status=$?
6051- grep -v '^ *+' conftest.er1 >conftest.err
6052- rm -f conftest.er1
6053- cat conftest.err >&5
6054- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055- (exit $ac_status); } && {
6056- test -z "$ac_c_werror_flag" ||
6057- test ! -s conftest.err
6058- } && test -s conftest$ac_exeext &&
6059- $as_test_x conftest$ac_exeext; then
6060- { echo "$as_me:$LINENO: result: yes" >&5
6061-echo "${ECHO_T}yes" >&6; }
6062- X_LIBS="$X_LIBS -R $x_libraries"
6063-else
6064- echo "$as_me: failed program was:" >&5
6065-sed 's/^/| /' conftest.$ac_ext >&5
6066-
6067- { echo "$as_me:$LINENO: result: neither works" >&5
6068-echo "${ECHO_T}neither works" >&6; }
6069-fi
6070-
6071-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072- conftest$ac_exeext conftest.$ac_ext
6073-fi
6074-
6075-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6076- conftest$ac_exeext conftest.$ac_ext
6077- ac_c_werror_flag=$ac_xsave_c_werror_flag
6078- LIBS=$ac_xsave_LIBS
6079- fi
6080-
6081- # Check for system-dependent libraries X programs must link with.
6082- # Do this before checking for the system-independent R6 libraries
6083- # (-lICE), since we may need -lsocket or whatever for X linking.
6084-
6085- if test "$ISC" = yes; then
6086- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6087- else
6088- # Martyn Johnson says this is needed for Ultrix, if the X
6089- # libraries were built with DECnet support. And Karl Berry says
6090- # the Alpha needs dnet_stub (dnet does not exist).
6091- ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6092- cat >conftest.$ac_ext <<_ACEOF
6093-/* confdefs.h. */
6094-_ACEOF
6095-cat confdefs.h >>conftest.$ac_ext
6096-cat >>conftest.$ac_ext <<_ACEOF
6097-/* end confdefs.h. */
6098-
6099-/* Override any GCC internal prototype to avoid an error.
6100- Use char because int might match the return type of a GCC
6101- builtin and then its argument prototype would still apply. */
6102-#ifdef __cplusplus
6103-extern "C"
6104-#endif
6105-char XOpenDisplay ();
6106-int
6107-main ()
6108-{
6109-return XOpenDisplay ();
6110- ;
6111- return 0;
6112-}
6113-_ACEOF
6114-rm -f conftest.$ac_objext conftest$ac_exeext
6115-if { (ac_try="$ac_link"
6116-case "(($ac_try" in
6117- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118- *) ac_try_echo=$ac_try;;
6119-esac
6120-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121- (eval "$ac_link") 2>conftest.er1
6122- ac_status=$?
6123- grep -v '^ *+' conftest.er1 >conftest.err
6124- rm -f conftest.er1
6125- cat conftest.err >&5
6126- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127- (exit $ac_status); } && {
6128- test -z "$ac_c_werror_flag" ||
6129- test ! -s conftest.err
6130- } && test -s conftest$ac_exeext &&
6131- $as_test_x conftest$ac_exeext; then
6132- :
6133-else
6134- echo "$as_me: failed program was:" >&5
6135-sed 's/^/| /' conftest.$ac_ext >&5
6136-
6137- { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6138-echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6139-if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6140- echo $ECHO_N "(cached) $ECHO_C" >&6
6141-else
6142- ac_check_lib_save_LIBS=$LIBS
6143-LIBS="-ldnet $LIBS"
6144-cat >conftest.$ac_ext <<_ACEOF
6145-/* confdefs.h. */
6146-_ACEOF
6147-cat confdefs.h >>conftest.$ac_ext
6148-cat >>conftest.$ac_ext <<_ACEOF
6149-/* end confdefs.h. */
6150-
6151-/* Override any GCC internal prototype to avoid an error.
6152- Use char because int might match the return type of a GCC
6153- builtin and then its argument prototype would still apply. */
6154-#ifdef __cplusplus
6155-extern "C"
6156-#endif
6157-char dnet_ntoa ();
6158-int
6159-main ()
6160-{
6161-return dnet_ntoa ();
6162- ;
6163- return 0;
6164-}
6165-_ACEOF
6166-rm -f conftest.$ac_objext conftest$ac_exeext
6167-if { (ac_try="$ac_link"
6168-case "(($ac_try" in
6169- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170- *) ac_try_echo=$ac_try;;
6171-esac
6172-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173- (eval "$ac_link") 2>conftest.er1
6174- ac_status=$?
6175- grep -v '^ *+' conftest.er1 >conftest.err
6176- rm -f conftest.er1
6177- cat conftest.err >&5
6178- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179- (exit $ac_status); } && {
6180- test -z "$ac_c_werror_flag" ||
6181- test ! -s conftest.err
6182- } && test -s conftest$ac_exeext &&
6183- $as_test_x conftest$ac_exeext; then
6184- ac_cv_lib_dnet_dnet_ntoa=yes
6185-else
6186- echo "$as_me: failed program was:" >&5
6187-sed 's/^/| /' conftest.$ac_ext >&5
6188-
6189- ac_cv_lib_dnet_dnet_ntoa=no
6190-fi
6191-
6192-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193- conftest$ac_exeext conftest.$ac_ext
6194-LIBS=$ac_check_lib_save_LIBS
6195-fi
6196-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6197-echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6198-if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6199- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6200-fi
6201-
6202- if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6203- { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6204-echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6205-if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6206- echo $ECHO_N "(cached) $ECHO_C" >&6
6207-else
6208- ac_check_lib_save_LIBS=$LIBS
6209-LIBS="-ldnet_stub $LIBS"
6210-cat >conftest.$ac_ext <<_ACEOF
6211-/* confdefs.h. */
6212-_ACEOF
6213-cat confdefs.h >>conftest.$ac_ext
6214-cat >>conftest.$ac_ext <<_ACEOF
6215-/* end confdefs.h. */
6216-
6217-/* Override any GCC internal prototype to avoid an error.
6218- Use char because int might match the return type of a GCC
6219- builtin and then its argument prototype would still apply. */
6220-#ifdef __cplusplus
6221-extern "C"
6222-#endif
6223-char dnet_ntoa ();
6224-int
6225-main ()
6226-{
6227-return dnet_ntoa ();
6228- ;
6229- return 0;
6230-}
6231-_ACEOF
6232-rm -f conftest.$ac_objext conftest$ac_exeext
6233-if { (ac_try="$ac_link"
6234-case "(($ac_try" in
6235- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236- *) ac_try_echo=$ac_try;;
6237-esac
6238-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239- (eval "$ac_link") 2>conftest.er1
6240- ac_status=$?
6241- grep -v '^ *+' conftest.er1 >conftest.err
6242- rm -f conftest.er1
6243- cat conftest.err >&5
6244- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245- (exit $ac_status); } && {
6246- test -z "$ac_c_werror_flag" ||
6247- test ! -s conftest.err
6248- } && test -s conftest$ac_exeext &&
6249- $as_test_x conftest$ac_exeext; then
6250- ac_cv_lib_dnet_stub_dnet_ntoa=yes
6251-else
6252- echo "$as_me: failed program was:" >&5
6253-sed 's/^/| /' conftest.$ac_ext >&5
6254-
6255- ac_cv_lib_dnet_stub_dnet_ntoa=no
6256-fi
6257-
6258-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6259- conftest$ac_exeext conftest.$ac_ext
6260-LIBS=$ac_check_lib_save_LIBS
6261-fi
6262-{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6263-echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6264-if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6265- X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6266-fi
6267-
6268- fi
6269-fi
6270-
6271-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6272- conftest$ac_exeext conftest.$ac_ext
6273- LIBS="$ac_xsave_LIBS"
6274-
6275- # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6276- # to get the SysV transport functions.
6277- # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6278- # needs -lnsl.
6279- # The nsl library prevents programs from opening the X display
6280- # on Irix 5.2, according to T.E. Dickey.
6281- # The functions gethostbyname, getservbyname, and inet_addr are
6282- # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6283- { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6284-echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6285-if test "${ac_cv_func_gethostbyname+set}" = set; then
6286- echo $ECHO_N "(cached) $ECHO_C" >&6
6287-else
6288- cat >conftest.$ac_ext <<_ACEOF
6289-/* confdefs.h. */
6290-_ACEOF
6291-cat confdefs.h >>conftest.$ac_ext
6292-cat >>conftest.$ac_ext <<_ACEOF
6293-/* end confdefs.h. */
6294-/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6295- For example, HP-UX 11i <limits.h> declares gettimeofday. */
6296-#define gethostbyname innocuous_gethostbyname
6297-
6298-/* System header to define __stub macros and hopefully few prototypes,
6299- which can conflict with char gethostbyname (); below.
6300- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6301- <limits.h> exists even on freestanding compilers. */
6302-
6303-#ifdef __STDC__
6304-# include <limits.h>
6305-#else
6306-# include <assert.h>
6307-#endif
6308-
6309-#undef gethostbyname
6310-
6311-/* Override any GCC internal prototype to avoid an error.
6312- Use char because int might match the return type of a GCC
6313- builtin and then its argument prototype would still apply. */
6314-#ifdef __cplusplus
6315-extern "C"
6316-#endif
6317-char gethostbyname ();
6318-/* The GNU C library defines this for functions which it implements
6319- to always fail with ENOSYS. Some functions are actually named
6320- something starting with __ and the normal name is an alias. */
6321-#if defined __stub_gethostbyname || defined __stub___gethostbyname
6322-choke me
6323-#endif
6324-
6325-int
6326-main ()
6327-{
6328-return gethostbyname ();
6329- ;
6330- return 0;
6331-}
6332-_ACEOF
6333-rm -f conftest.$ac_objext conftest$ac_exeext
6334-if { (ac_try="$ac_link"
6335-case "(($ac_try" in
6336- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337- *) ac_try_echo=$ac_try;;
6338-esac
6339-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340- (eval "$ac_link") 2>conftest.er1
6341- ac_status=$?
6342- grep -v '^ *+' conftest.er1 >conftest.err
6343- rm -f conftest.er1
6344- cat conftest.err >&5
6345- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346- (exit $ac_status); } && {
6347- test -z "$ac_c_werror_flag" ||
6348- test ! -s conftest.err
6349- } && test -s conftest$ac_exeext &&
6350- $as_test_x conftest$ac_exeext; then
6351- ac_cv_func_gethostbyname=yes
6352-else
6353- echo "$as_me: failed program was:" >&5
6354-sed 's/^/| /' conftest.$ac_ext >&5
6355-
6356- ac_cv_func_gethostbyname=no
6357-fi
6358-
6359-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6360- conftest$ac_exeext conftest.$ac_ext
6361-fi
6362-{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6363-echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6364-
6365- if test $ac_cv_func_gethostbyname = no; then
6366- { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6367-echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6368-if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6369- echo $ECHO_N "(cached) $ECHO_C" >&6
6370-else
6371- ac_check_lib_save_LIBS=$LIBS
6372-LIBS="-lnsl $LIBS"
6373-cat >conftest.$ac_ext <<_ACEOF
6374-/* confdefs.h. */
6375-_ACEOF
6376-cat confdefs.h >>conftest.$ac_ext
6377-cat >>conftest.$ac_ext <<_ACEOF
6378-/* end confdefs.h. */
6379-
6380-/* Override any GCC internal prototype to avoid an error.
6381- Use char because int might match the return type of a GCC
6382- builtin and then its argument prototype would still apply. */
6383-#ifdef __cplusplus
6384-extern "C"
6385-#endif
6386-char gethostbyname ();
6387-int
6388-main ()
6389-{
6390-return gethostbyname ();
6391- ;
6392- return 0;
6393-}
6394-_ACEOF
6395-rm -f conftest.$ac_objext conftest$ac_exeext
6396-if { (ac_try="$ac_link"
6397-case "(($ac_try" in
6398- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399- *) ac_try_echo=$ac_try;;
6400-esac
6401-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402- (eval "$ac_link") 2>conftest.er1
6403- ac_status=$?
6404- grep -v '^ *+' conftest.er1 >conftest.err
6405- rm -f conftest.er1
6406- cat conftest.err >&5
6407- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408- (exit $ac_status); } && {
6409- test -z "$ac_c_werror_flag" ||
6410- test ! -s conftest.err
6411- } && test -s conftest$ac_exeext &&
6412- $as_test_x conftest$ac_exeext; then
6413- ac_cv_lib_nsl_gethostbyname=yes
6414-else
6415- echo "$as_me: failed program was:" >&5
6416-sed 's/^/| /' conftest.$ac_ext >&5
6417-
6418- ac_cv_lib_nsl_gethostbyname=no
6419-fi
6420-
6421-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6422- conftest$ac_exeext conftest.$ac_ext
6423-LIBS=$ac_check_lib_save_LIBS
6424-fi
6425-{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6426-echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6427-if test $ac_cv_lib_nsl_gethostbyname = yes; then
6428- X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6429-fi
6430-
6431- if test $ac_cv_lib_nsl_gethostbyname = no; then
6432- { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6433-echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6434-if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6435- echo $ECHO_N "(cached) $ECHO_C" >&6
6436-else
6437- ac_check_lib_save_LIBS=$LIBS
6438-LIBS="-lbsd $LIBS"
6439-cat >conftest.$ac_ext <<_ACEOF
6440-/* confdefs.h. */
6441-_ACEOF
6442-cat confdefs.h >>conftest.$ac_ext
6443-cat >>conftest.$ac_ext <<_ACEOF
6444-/* end confdefs.h. */
6445-
6446-/* Override any GCC internal prototype to avoid an error.
6447- Use char because int might match the return type of a GCC
6448- builtin and then its argument prototype would still apply. */
6449-#ifdef __cplusplus
6450-extern "C"
6451-#endif
6452-char gethostbyname ();
6453-int
6454-main ()
6455-{
6456-return gethostbyname ();
6457- ;
6458- return 0;
6459-}
6460-_ACEOF
6461-rm -f conftest.$ac_objext conftest$ac_exeext
6462-if { (ac_try="$ac_link"
6463-case "(($ac_try" in
6464- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465- *) ac_try_echo=$ac_try;;
6466-esac
6467-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468- (eval "$ac_link") 2>conftest.er1
6469- ac_status=$?
6470- grep -v '^ *+' conftest.er1 >conftest.err
6471- rm -f conftest.er1
6472- cat conftest.err >&5
6473- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474- (exit $ac_status); } && {
6475- test -z "$ac_c_werror_flag" ||
6476- test ! -s conftest.err
6477- } && test -s conftest$ac_exeext &&
6478- $as_test_x conftest$ac_exeext; then
6479- ac_cv_lib_bsd_gethostbyname=yes
6480-else
6481- echo "$as_me: failed program was:" >&5
6482-sed 's/^/| /' conftest.$ac_ext >&5
6483-
6484- ac_cv_lib_bsd_gethostbyname=no
6485-fi
6486-
6487-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6488- conftest$ac_exeext conftest.$ac_ext
6489-LIBS=$ac_check_lib_save_LIBS
6490-fi
6491-{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6492-echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6493-if test $ac_cv_lib_bsd_gethostbyname = yes; then
6494- X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6495-fi
6496-
6497- fi
6498- fi
6499-
6500- # lieder@skyler.mavd.honeywell.com says without -lsocket,
6501- # socket/setsockopt and other routines are undefined under SCO ODT
6502- # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6503- # on later versions), says Simon Leinen: it contains gethostby*
6504- # variants that don't use the name server (or something). -lsocket
6505- # must be given before -lnsl if both are needed. We assume that
6506- # if connect needs -lnsl, so does gethostbyname.
6507- { echo "$as_me:$LINENO: checking for connect" >&5
6508-echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6509-if test "${ac_cv_func_connect+set}" = set; then
6510- echo $ECHO_N "(cached) $ECHO_C" >&6
6511-else
6512- cat >conftest.$ac_ext <<_ACEOF
6513-/* confdefs.h. */
6514-_ACEOF
6515-cat confdefs.h >>conftest.$ac_ext
6516-cat >>conftest.$ac_ext <<_ACEOF
6517-/* end confdefs.h. */
6518-/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6519- For example, HP-UX 11i <limits.h> declares gettimeofday. */
6520-#define connect innocuous_connect
6521-
6522-/* System header to define __stub macros and hopefully few prototypes,
6523- which can conflict with char connect (); below.
6524- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525- <limits.h> exists even on freestanding compilers. */
6526-
6527-#ifdef __STDC__
6528-# include <limits.h>
6529-#else
6530-# include <assert.h>
6531-#endif
6532-
6533-#undef connect
6534-
6535-/* Override any GCC internal prototype to avoid an error.
6536- Use char because int might match the return type of a GCC
6537- builtin and then its argument prototype would still apply. */
6538-#ifdef __cplusplus
6539-extern "C"
6540-#endif
6541-char connect ();
6542-/* The GNU C library defines this for functions which it implements
6543- to always fail with ENOSYS. Some functions are actually named
6544- something starting with __ and the normal name is an alias. */
6545-#if defined __stub_connect || defined __stub___connect
6546-choke me
6547-#endif
6548-
6549-int
6550-main ()
6551-{
6552-return connect ();
6553- ;
6554- return 0;
6555-}
6556-_ACEOF
6557-rm -f conftest.$ac_objext conftest$ac_exeext
6558-if { (ac_try="$ac_link"
6559-case "(($ac_try" in
6560- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561- *) ac_try_echo=$ac_try;;
6562-esac
6563-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564- (eval "$ac_link") 2>conftest.er1
6565- ac_status=$?
6566- grep -v '^ *+' conftest.er1 >conftest.err
6567- rm -f conftest.er1
6568- cat conftest.err >&5
6569- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570- (exit $ac_status); } && {
6571- test -z "$ac_c_werror_flag" ||
6572- test ! -s conftest.err
6573- } && test -s conftest$ac_exeext &&
6574- $as_test_x conftest$ac_exeext; then
6575- ac_cv_func_connect=yes
6576-else
6577- echo "$as_me: failed program was:" >&5
6578-sed 's/^/| /' conftest.$ac_ext >&5
6579-
6580- ac_cv_func_connect=no
6581-fi
6582-
6583-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584- conftest$ac_exeext conftest.$ac_ext
6585-fi
6586-{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6587-echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6588-
6589- if test $ac_cv_func_connect = no; then
6590- { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6591-echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6592-if test "${ac_cv_lib_socket_connect+set}" = set; then
6593- echo $ECHO_N "(cached) $ECHO_C" >&6
6594-else
6595- ac_check_lib_save_LIBS=$LIBS
6596-LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6597-cat >conftest.$ac_ext <<_ACEOF
6598-/* confdefs.h. */
6599-_ACEOF
6600-cat confdefs.h >>conftest.$ac_ext
6601-cat >>conftest.$ac_ext <<_ACEOF
6602-/* end confdefs.h. */
6603-
6604-/* Override any GCC internal prototype to avoid an error.
6605- Use char because int might match the return type of a GCC
6606- builtin and then its argument prototype would still apply. */
6607-#ifdef __cplusplus
6608-extern "C"
6609-#endif
6610-char connect ();
6611-int
6612-main ()
6613-{
6614-return connect ();
6615- ;
6616- return 0;
6617-}
6618-_ACEOF
6619-rm -f conftest.$ac_objext conftest$ac_exeext
6620-if { (ac_try="$ac_link"
6621-case "(($ac_try" in
6622- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623- *) ac_try_echo=$ac_try;;
6624-esac
6625-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626- (eval "$ac_link") 2>conftest.er1
6627- ac_status=$?
6628- grep -v '^ *+' conftest.er1 >conftest.err
6629- rm -f conftest.er1
6630- cat conftest.err >&5
6631- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632- (exit $ac_status); } && {
6633- test -z "$ac_c_werror_flag" ||
6634- test ! -s conftest.err
6635- } && test -s conftest$ac_exeext &&
6636- $as_test_x conftest$ac_exeext; then
6637- ac_cv_lib_socket_connect=yes
6638-else
6639- echo "$as_me: failed program was:" >&5
6640-sed 's/^/| /' conftest.$ac_ext >&5
6641-
6642- ac_cv_lib_socket_connect=no
6643-fi
6644-
6645-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6646- conftest$ac_exeext conftest.$ac_ext
6647-LIBS=$ac_check_lib_save_LIBS
6648-fi
6649-{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6650-echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6651-if test $ac_cv_lib_socket_connect = yes; then
6652- X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6653-fi
6654-
6655- fi
6656-
6657- # Guillermo Gomez says -lposix is necessary on A/UX.
6658- { echo "$as_me:$LINENO: checking for remove" >&5
6659-echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6660-if test "${ac_cv_func_remove+set}" = set; then
6661- echo $ECHO_N "(cached) $ECHO_C" >&6
6662-else
6663- cat >conftest.$ac_ext <<_ACEOF
6664-/* confdefs.h. */
6665-_ACEOF
6666-cat confdefs.h >>conftest.$ac_ext
6667-cat >>conftest.$ac_ext <<_ACEOF
6668-/* end confdefs.h. */
6669-/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6670- For example, HP-UX 11i <limits.h> declares gettimeofday. */
6671-#define remove innocuous_remove
6672-
6673-/* System header to define __stub macros and hopefully few prototypes,
6674- which can conflict with char remove (); below.
6675- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6676- <limits.h> exists even on freestanding compilers. */
6677-
6678-#ifdef __STDC__
6679-# include <limits.h>
6680-#else
6681-# include <assert.h>
6682-#endif
6683-
6684-#undef remove
6685-
6686-/* Override any GCC internal prototype to avoid an error.
6687- Use char because int might match the return type of a GCC
6688- builtin and then its argument prototype would still apply. */
6689-#ifdef __cplusplus
6690-extern "C"
6691-#endif
6692-char remove ();
6693-/* The GNU C library defines this for functions which it implements
6694- to always fail with ENOSYS. Some functions are actually named
6695- something starting with __ and the normal name is an alias. */
6696-#if defined __stub_remove || defined __stub___remove
6697-choke me
6698-#endif
6699-
6700-int
6701-main ()
6702-{
6703-return remove ();
6704- ;
6705- return 0;
6706-}
6707-_ACEOF
6708-rm -f conftest.$ac_objext conftest$ac_exeext
6709-if { (ac_try="$ac_link"
6710-case "(($ac_try" in
6711- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712- *) ac_try_echo=$ac_try;;
6713-esac
6714-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715- (eval "$ac_link") 2>conftest.er1
6716- ac_status=$?
6717- grep -v '^ *+' conftest.er1 >conftest.err
6718- rm -f conftest.er1
6719- cat conftest.err >&5
6720- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721- (exit $ac_status); } && {
6722- test -z "$ac_c_werror_flag" ||
6723- test ! -s conftest.err
6724- } && test -s conftest$ac_exeext &&
6725- $as_test_x conftest$ac_exeext; then
6726- ac_cv_func_remove=yes
6727-else
6728- echo "$as_me: failed program was:" >&5
6729-sed 's/^/| /' conftest.$ac_ext >&5
6730-
6731- ac_cv_func_remove=no
6732-fi
6733-
6734-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6735- conftest$ac_exeext conftest.$ac_ext
6736-fi
6737-{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6738-echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6739-
6740- if test $ac_cv_func_remove = no; then
6741- { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6742-echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6743-if test "${ac_cv_lib_posix_remove+set}" = set; then
6744- echo $ECHO_N "(cached) $ECHO_C" >&6
6745-else
6746- ac_check_lib_save_LIBS=$LIBS
6747-LIBS="-lposix $LIBS"
6748-cat >conftest.$ac_ext <<_ACEOF
6749-/* confdefs.h. */
6750-_ACEOF
6751-cat confdefs.h >>conftest.$ac_ext
6752-cat >>conftest.$ac_ext <<_ACEOF
6753-/* end confdefs.h. */
6754-
6755-/* Override any GCC internal prototype to avoid an error.
6756- Use char because int might match the return type of a GCC
6757- builtin and then its argument prototype would still apply. */
6758-#ifdef __cplusplus
6759-extern "C"
6760-#endif
6761-char remove ();
6762-int
6763-main ()
6764-{
6765-return remove ();
6766- ;
6767- return 0;
6768-}
6769-_ACEOF
6770-rm -f conftest.$ac_objext conftest$ac_exeext
6771-if { (ac_try="$ac_link"
6772-case "(($ac_try" in
6773- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774- *) ac_try_echo=$ac_try;;
6775-esac
6776-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777- (eval "$ac_link") 2>conftest.er1
6778- ac_status=$?
6779- grep -v '^ *+' conftest.er1 >conftest.err
6780- rm -f conftest.er1
6781- cat conftest.err >&5
6782- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783- (exit $ac_status); } && {
6784- test -z "$ac_c_werror_flag" ||
6785- test ! -s conftest.err
6786- } && test -s conftest$ac_exeext &&
6787- $as_test_x conftest$ac_exeext; then
6788- ac_cv_lib_posix_remove=yes
6789-else
6790- echo "$as_me: failed program was:" >&5
6791-sed 's/^/| /' conftest.$ac_ext >&5
6792-
6793- ac_cv_lib_posix_remove=no
6794-fi
6795-
6796-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6797- conftest$ac_exeext conftest.$ac_ext
6798-LIBS=$ac_check_lib_save_LIBS
6799-fi
6800-{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6801-echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6802-if test $ac_cv_lib_posix_remove = yes; then
6803- X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6804-fi
6805-
6806- fi
6807-
6808- # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6809- { echo "$as_me:$LINENO: checking for shmat" >&5
6810-echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6811-if test "${ac_cv_func_shmat+set}" = set; then
6812- echo $ECHO_N "(cached) $ECHO_C" >&6
6813-else
6814- cat >conftest.$ac_ext <<_ACEOF
6815-/* confdefs.h. */
6816-_ACEOF
6817-cat confdefs.h >>conftest.$ac_ext
6818-cat >>conftest.$ac_ext <<_ACEOF
6819-/* end confdefs.h. */
6820-/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6821- For example, HP-UX 11i <limits.h> declares gettimeofday. */
6822-#define shmat innocuous_shmat
6823-
6824-/* System header to define __stub macros and hopefully few prototypes,
6825- which can conflict with char shmat (); below.
6826- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827- <limits.h> exists even on freestanding compilers. */
6828-
6829-#ifdef __STDC__
6830-# include <limits.h>
6831-#else
6832-# include <assert.h>
6833-#endif
6834-
6835-#undef shmat
6836-
6837-/* Override any GCC internal prototype to avoid an error.
6838- Use char because int might match the return type of a GCC
6839- builtin and then its argument prototype would still apply. */
6840-#ifdef __cplusplus
6841-extern "C"
6842-#endif
6843-char shmat ();
6844-/* The GNU C library defines this for functions which it implements
6845- to always fail with ENOSYS. Some functions are actually named
6846- something starting with __ and the normal name is an alias. */
6847-#if defined __stub_shmat || defined __stub___shmat
6848-choke me
6849-#endif
6850-
6851-int
6852-main ()
6853-{
6854-return shmat ();
6855- ;
6856- return 0;
6857-}
6858-_ACEOF
6859-rm -f conftest.$ac_objext conftest$ac_exeext
6860-if { (ac_try="$ac_link"
6861-case "(($ac_try" in
6862- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863- *) ac_try_echo=$ac_try;;
6864-esac
6865-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866- (eval "$ac_link") 2>conftest.er1
6867- ac_status=$?
6868- grep -v '^ *+' conftest.er1 >conftest.err
6869- rm -f conftest.er1
6870- cat conftest.err >&5
6871- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872- (exit $ac_status); } && {
6873- test -z "$ac_c_werror_flag" ||
6874- test ! -s conftest.err
6875- } && test -s conftest$ac_exeext &&
6876- $as_test_x conftest$ac_exeext; then
6877- ac_cv_func_shmat=yes
6878-else
6879- echo "$as_me: failed program was:" >&5
6880-sed 's/^/| /' conftest.$ac_ext >&5
6881-
6882- ac_cv_func_shmat=no
6883-fi
6884-
6885-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6886- conftest$ac_exeext conftest.$ac_ext
6887-fi
6888-{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6889-echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6890-
6891- if test $ac_cv_func_shmat = no; then
6892- { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6893-echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6894-if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6895- echo $ECHO_N "(cached) $ECHO_C" >&6
6896-else
6897- ac_check_lib_save_LIBS=$LIBS
6898-LIBS="-lipc $LIBS"
6899-cat >conftest.$ac_ext <<_ACEOF
6900-/* confdefs.h. */
6901-_ACEOF
6902-cat confdefs.h >>conftest.$ac_ext
6903-cat >>conftest.$ac_ext <<_ACEOF
6904-/* end confdefs.h. */
6905-
6906-/* Override any GCC internal prototype to avoid an error.
6907- Use char because int might match the return type of a GCC
6908- builtin and then its argument prototype would still apply. */
6909-#ifdef __cplusplus
6910-extern "C"
6911-#endif
6912-char shmat ();
6913-int
6914-main ()
6915-{
6916-return shmat ();
6917- ;
6918- return 0;
6919-}
6920-_ACEOF
6921-rm -f conftest.$ac_objext conftest$ac_exeext
6922-if { (ac_try="$ac_link"
6923-case "(($ac_try" in
6924- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925- *) ac_try_echo=$ac_try;;
6926-esac
6927-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928- (eval "$ac_link") 2>conftest.er1
6929- ac_status=$?
6930- grep -v '^ *+' conftest.er1 >conftest.err
6931- rm -f conftest.er1
6932- cat conftest.err >&5
6933- echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934- (exit $ac_status); } && {
6935- test -z "$ac_c_werror_flag" ||
6936- test ! -s conftest.err
6937- } && test -s conftest$ac_exeext &&
6938- $as_test_x conftest$ac_exeext; then
6939- ac_cv_lib_ipc_shmat=yes
6940-else
6941- echo "$as_me: failed program was:" >&5
6942-sed 's/^/| /' conftest.$ac_ext >&5
6943-
6944- ac_cv_lib_ipc_shmat=no
6945-fi
6946-
6947-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6948- conftest$ac_exeext conftest.$ac_ext
6949-LIBS=$ac_check_lib_save_LIBS
6950-fi
6951-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6952-echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6953-if test $ac_cv_lib_ipc_shmat = yes; then
6954- X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6955-fi
6956-
6957- fi
6958- fi
6959-
6960- # Check for libraries that X11R6 Xt/Xaw programs need.
6961- ac_save_LDFLAGS=$LDFLAGS
6962- test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6963- # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6964- # check for ICE first), but we must link in the order -lSM -lICE or
6965- # we get undefined symbols. So assume we have SM if we have ICE.
6966- # These have to be linked with before -lX11, unlike the other
6967- # libraries we check for below, so use a different variable.
6968- # John Interrante, Karl Berry
6969- { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6970-echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6971-if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6972- echo $ECHO_N "(cached) $ECHO_C" >&6
6973-else
6974- ac_check_lib_save_LIBS=$LIBS
6975-LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6976-cat >conftest.$ac_ext <<_ACEOF
6977-/* confdefs.h. */
6978-_ACEOF
6979-cat confdefs.h >>conftest.$ac_ext
6980-cat >>conftest.$ac_ext <<_ACEOF
6981-/* end confdefs.h. */
6982-
6983-/* Override any GCC internal prototype to avoid an error.
6984- Use char because int might match the return type of a GCC
6985- builtin and then its argument prototype would still apply. */
6986-#ifdef __cplusplus
6987-extern "C"
6988-#endif
6989-char IceConnectionNumber ();
6990-int
6991-main ()
6992-{
6993-return IceConnectionNumber ();
6994- ;
6995- return 0;
6996-}
6997-_ACEOF
6998-rm -f conftest.$ac_objext conftest$ac_exeext
6999-if { (ac_try="$ac_link"
7000-case "(($ac_try" in
7001- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002- *) ac_try_echo=$ac_try;;
7003-esac
7004-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005- (eval "$ac_link") 2>conftest.er1
7006- ac_status=$?
7007- grep -v '^ *+' conftest.er1 >conftest.err
7008- rm -f conftest.er1
7009- cat conftest.err >&5
7010- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011- (exit $ac_status); } && {
7012- test -z "$ac_c_werror_flag" ||
7013- test ! -s conftest.err
7014- } && test -s conftest$ac_exeext &&
7015- $as_test_x conftest$ac_exeext; then
7016- ac_cv_lib_ICE_IceConnectionNumber=yes
7017-else
7018- echo "$as_me: failed program was:" >&5
7019-sed 's/^/| /' conftest.$ac_ext >&5
7020-
7021- ac_cv_lib_ICE_IceConnectionNumber=no
7022-fi
7023-
7024-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7025- conftest$ac_exeext conftest.$ac_ext
7026-LIBS=$ac_check_lib_save_LIBS
7027-fi
7028-{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7029-echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7030-if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7031- X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7032-fi
7033-
7034- LDFLAGS=$ac_save_LDFLAGS
7035-
7036-fi
7037-
7038-
7039-
7040-
7041-
7042-
7043- { echo "$as_me:$LINENO: checking for OpenGL" >&5
7044-echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6; }
7045-if test "${ax_cv_have_OpenGL+set}" = set; then
7046- echo $ECHO_N "(cached) $ECHO_C" >&6
7047-else
7048-
7049-
7050-# Check whether --with---with-Mesa was given.
7051-if test "${with___with_Mesa+set}" = set; then
7052- withval=$with___with_Mesa; with_Mesa_help_string
7053-fi
7054-
7055- # Check whether --enable-Mesa was given.
7056-if test "${enable_Mesa+set}" = set; then
7057- enableval=$enable_Mesa; use_Mesa=$enableval
7058-else
7059- use_Mesa=yes
7060-fi
7061-
7062-
7063- if test x"$use_Mesa" = xyes; then
7064- GL_search_list="MesaGL GL"
7065- GLU_search_list="MesaGLU GLU"
7066- GLX_search_list="MesaGLX GLX"
7067- else
7068- GL_search_list="GL MesaGL"
7069- GLU_search_list="GLU MesaGLU"
7070- GLX_search_list="GLX MesaGLX"
7071- fi
7072-
7073-
7074- ac_ext=c
7075-ac_cpp='$CPP $CPPFLAGS'
7076-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078-ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079-
7080-
7081-if test x"$no_x" != xyes; then
7082- GL_CFLAGS="$X_CFLAGS"
7083- GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7084-fi
7085- GL_save_CPPFLAGS="$CPPFLAGS"
7086- CPPFLAGS="$GL_CFLAGS"
7087-
7088- GL_save_LIBS="$LIBS"
7089- LIBS="$GL_X_LIBS"
7090-
7091-
7092- # Save the "AC_MSG_RESULT file descriptor" to FD 8.
7093- exec 8>&6
7094-
7095- # Temporarily turn off AC_MSG_RESULT so that the user gets pretty
7096- # messages.
7097- exec 6>/dev/null
7098-
7099- { echo "$as_me:$LINENO: checking for library containing glAccum" >&5
7100-echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6; }
7101-if test "${ac_cv_search_glAccum+set}" = set; then
7102- echo $ECHO_N "(cached) $ECHO_C" >&6
7103-else
7104- ac_func_search_save_LIBS=$LIBS
7105-cat >conftest.$ac_ext <<_ACEOF
7106-/* confdefs.h. */
7107-_ACEOF
7108-cat confdefs.h >>conftest.$ac_ext
7109-cat >>conftest.$ac_ext <<_ACEOF
7110-/* end confdefs.h. */
7111-
7112-/* Override any GCC internal prototype to avoid an error.
7113- Use char because int might match the return type of a GCC
7114- builtin and then its argument prototype would still apply. */
7115-#ifdef __cplusplus
7116-extern "C"
7117-#endif
7118-char glAccum ();
7119-int
7120-main ()
7121-{
7122-return glAccum ();
7123- ;
7124- return 0;
7125-}
7126-_ACEOF
7127-for ac_lib in '' $GL_search_list; do
7128- if test -z "$ac_lib"; then
7129- ac_res="none required"
7130- else
7131- ac_res=-l$ac_lib
7132- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7133- fi
7134- rm -f conftest.$ac_objext conftest$ac_exeext
7135-if { (ac_try="$ac_link"
7136-case "(($ac_try" in
7137- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138- *) ac_try_echo=$ac_try;;
7139-esac
7140-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141- (eval "$ac_link") 2>conftest.er1
7142- ac_status=$?
7143- grep -v '^ *+' conftest.er1 >conftest.err
7144- rm -f conftest.er1
7145- cat conftest.err >&5
7146- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147- (exit $ac_status); } && {
7148- test -z "$ac_c_werror_flag" ||
7149- test ! -s conftest.err
7150- } && test -s conftest$ac_exeext &&
7151- $as_test_x conftest$ac_exeext; then
7152- ac_cv_search_glAccum=$ac_res
7153-else
7154- echo "$as_me: failed program was:" >&5
7155-sed 's/^/| /' conftest.$ac_ext >&5
7156-
7157-
7158-fi
7159-
7160-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7161- conftest$ac_exeext
7162- if test "${ac_cv_search_glAccum+set}" = set; then
7163- break
7164-fi
7165-done
7166-if test "${ac_cv_search_glAccum+set}" = set; then
7167- :
7168-else
7169- ac_cv_search_glAccum=no
7170-fi
7171-rm conftest.$ac_ext
7172-LIBS=$ac_func_search_save_LIBS
7173-fi
7174-{ echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5
7175-echo "${ECHO_T}$ac_cv_search_glAccum" >&6; }
7176-ac_res=$ac_cv_search_glAccum
7177-if test "$ac_res" != no; then
7178- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7179- have_GL=yes
7180-else
7181- have_GL=no
7182-fi
7183-
7184- { echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5
7185-echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6; }
7186-if test "${ac_cv_search_gluBeginCurve+set}" = set; then
7187- echo $ECHO_N "(cached) $ECHO_C" >&6
7188-else
7189- ac_func_search_save_LIBS=$LIBS
7190-cat >conftest.$ac_ext <<_ACEOF
7191-/* confdefs.h. */
7192-_ACEOF
7193-cat confdefs.h >>conftest.$ac_ext
7194-cat >>conftest.$ac_ext <<_ACEOF
7195-/* end confdefs.h. */
7196-
7197-/* Override any GCC internal prototype to avoid an error.
7198- Use char because int might match the return type of a GCC
7199- builtin and then its argument prototype would still apply. */
7200-#ifdef __cplusplus
7201-extern "C"
7202-#endif
7203-char gluBeginCurve ();
7204-int
7205-main ()
7206-{
7207-return gluBeginCurve ();
7208- ;
7209- return 0;
7210-}
7211-_ACEOF
7212-for ac_lib in '' $GLU_search_list; do
7213- if test -z "$ac_lib"; then
7214- ac_res="none required"
7215- else
7216- ac_res=-l$ac_lib
7217- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7218- fi
7219- rm -f conftest.$ac_objext conftest$ac_exeext
7220-if { (ac_try="$ac_link"
7221-case "(($ac_try" in
7222- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223- *) ac_try_echo=$ac_try;;
7224-esac
7225-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226- (eval "$ac_link") 2>conftest.er1
7227- ac_status=$?
7228- grep -v '^ *+' conftest.er1 >conftest.err
7229- rm -f conftest.er1
7230- cat conftest.err >&5
7231- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232- (exit $ac_status); } && {
7233- test -z "$ac_c_werror_flag" ||
7234- test ! -s conftest.err
7235- } && test -s conftest$ac_exeext &&
7236- $as_test_x conftest$ac_exeext; then
7237- ac_cv_search_gluBeginCurve=$ac_res
7238-else
7239- echo "$as_me: failed program was:" >&5
7240-sed 's/^/| /' conftest.$ac_ext >&5
7241-
7242-
7243-fi
7244-
7245-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7246- conftest$ac_exeext
7247- if test "${ac_cv_search_gluBeginCurve+set}" = set; then
7248- break
7249-fi
7250-done
7251-if test "${ac_cv_search_gluBeginCurve+set}" = set; then
7252- :
7253-else
7254- ac_cv_search_gluBeginCurve=no
7255-fi
7256-rm conftest.$ac_ext
7257-LIBS=$ac_func_search_save_LIBS
7258-fi
7259-{ echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5
7260-echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6; }
7261-ac_res=$ac_cv_search_gluBeginCurve
7262-if test "$ac_res" != no; then
7263- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7264- have_GLU=yes
7265-else
7266- have_GLU=no
7267-fi
7268-
7269- { echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5
7270-echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6; }
7271-if test "${ac_cv_search_glXChooseVisual+set}" = set; then
7272- echo $ECHO_N "(cached) $ECHO_C" >&6
7273-else
7274- ac_func_search_save_LIBS=$LIBS
7275-cat >conftest.$ac_ext <<_ACEOF
7276-/* confdefs.h. */
7277-_ACEOF
7278-cat confdefs.h >>conftest.$ac_ext
7279-cat >>conftest.$ac_ext <<_ACEOF
7280-/* end confdefs.h. */
7281-
7282-/* Override any GCC internal prototype to avoid an error.
7283- Use char because int might match the return type of a GCC
7284- builtin and then its argument prototype would still apply. */
7285-#ifdef __cplusplus
7286-extern "C"
7287-#endif
7288-char glXChooseVisual ();
7289-int
7290-main ()
7291-{
7292-return glXChooseVisual ();
7293- ;
7294- return 0;
7295-}
7296-_ACEOF
7297-for ac_lib in '' $GLX_search_list; do
7298- if test -z "$ac_lib"; then
7299- ac_res="none required"
7300- else
7301- ac_res=-l$ac_lib
7302- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7303- fi
7304- rm -f conftest.$ac_objext conftest$ac_exeext
7305-if { (ac_try="$ac_link"
7306-case "(($ac_try" in
7307- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308- *) ac_try_echo=$ac_try;;
7309-esac
7310-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311- (eval "$ac_link") 2>conftest.er1
7312- ac_status=$?
7313- grep -v '^ *+' conftest.er1 >conftest.err
7314- rm -f conftest.er1
7315- cat conftest.err >&5
7316- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317- (exit $ac_status); } && {
7318- test -z "$ac_c_werror_flag" ||
7319- test ! -s conftest.err
7320- } && test -s conftest$ac_exeext &&
7321- $as_test_x conftest$ac_exeext; then
7322- ac_cv_search_glXChooseVisual=$ac_res
7323-else
7324- echo "$as_me: failed program was:" >&5
7325-sed 's/^/| /' conftest.$ac_ext >&5
7326-
7327-
7328-fi
7329-
7330-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7331- conftest$ac_exeext
7332- if test "${ac_cv_search_glXChooseVisual+set}" = set; then
7333- break
7334-fi
7335-done
7336-if test "${ac_cv_search_glXChooseVisual+set}" = set; then
7337- :
7338-else
7339- ac_cv_search_glXChooseVisual=no
7340-fi
7341-rm conftest.$ac_ext
7342-LIBS=$ac_func_search_save_LIBS
7343-fi
7344-{ echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5
7345-echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6; }
7346-ac_res=$ac_cv_search_glXChooseVisual
7347-if test "$ac_res" != no; then
7348- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7349- have_GLX=yes
7350-else
7351- have_GLX=no
7352-fi
7353-
7354- { echo "$as_me:$LINENO: checking for library containing glutInit" >&5
7355-echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6; }
7356-if test "${ac_cv_search_glutInit+set}" = set; then
7357- echo $ECHO_N "(cached) $ECHO_C" >&6
7358-else
7359- ac_func_search_save_LIBS=$LIBS
7360-cat >conftest.$ac_ext <<_ACEOF
7361-/* confdefs.h. */
7362-_ACEOF
7363-cat confdefs.h >>conftest.$ac_ext
7364-cat >>conftest.$ac_ext <<_ACEOF
7365-/* end confdefs.h. */
7366-
7367-/* Override any GCC internal prototype to avoid an error.
7368- Use char because int might match the return type of a GCC
7369- builtin and then its argument prototype would still apply. */
7370-#ifdef __cplusplus
7371-extern "C"
7372-#endif
7373-char glutInit ();
7374-int
7375-main ()
7376-{
7377-return glutInit ();
7378- ;
7379- return 0;
7380-}
7381-_ACEOF
7382-for ac_lib in '' glut; do
7383- if test -z "$ac_lib"; then
7384- ac_res="none required"
7385- else
7386- ac_res=-l$ac_lib
7387- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7388- fi
7389- rm -f conftest.$ac_objext conftest$ac_exeext
7390-if { (ac_try="$ac_link"
7391-case "(($ac_try" in
7392- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393- *) ac_try_echo=$ac_try;;
7394-esac
7395-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396- (eval "$ac_link") 2>conftest.er1
7397- ac_status=$?
7398- grep -v '^ *+' conftest.er1 >conftest.err
7399- rm -f conftest.er1
7400- cat conftest.err >&5
7401- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402- (exit $ac_status); } && {
7403- test -z "$ac_c_werror_flag" ||
7404- test ! -s conftest.err
7405- } && test -s conftest$ac_exeext &&
7406- $as_test_x conftest$ac_exeext; then
7407- ac_cv_search_glutInit=$ac_res
7408-else
7409- echo "$as_me: failed program was:" >&5
7410-sed 's/^/| /' conftest.$ac_ext >&5
7411-
7412-
7413-fi
7414-
7415-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7416- conftest$ac_exeext
7417- if test "${ac_cv_search_glutInit+set}" = set; then
7418- break
7419-fi
7420-done
7421-if test "${ac_cv_search_glutInit+set}" = set; then
7422- :
7423-else
7424- ac_cv_search_glutInit=no
7425-fi
7426-rm conftest.$ac_ext
7427-LIBS=$ac_func_search_save_LIBS
7428-fi
7429-{ echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5
7430-echo "${ECHO_T}$ac_cv_search_glutInit" >&6; }
7431-ac_res=$ac_cv_search_glutInit
7432-if test "$ac_res" != no; then
7433- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7434- have_glut=yes
7435-else
7436- have_glut=no
7437-fi
7438-
7439-
7440-
7441-
7442- # Restore pretty messages.
7443- exec 6>&8
7444-
7445- if test -n "$LIBS"; then
7446- ax_cv_have_OpenGL=yes
7447- GL_LIBS="$LIBS"
7448-
7449-
7450- else
7451- ax_cv_have_OpenGL=no
7452- GL_CFLAGS=
7453- fi
7454-
7455- GL_X_LIBS=
7456-
7457- LIBS="$GL_save_LIBS"
7458- CPPFLAGS="$GL_save_CPPFLAGS"
7459-
7460- ac_ext=c
7461-ac_cpp='$CPP $CPPFLAGS'
7462-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464-ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465-
7466-
7467- ax_cv_GL_CFLAGS="$GL_CFLAGS"
7468- ax_cv_GL_LIBS="$GL_LIBS"
7469- ax_cv_have_GL="$have_GL"
7470- ax_cv_have_GLU="$have_GLU"
7471- ax_cv_have_GLX="$have_GLX"
7472- ax_cv_have_glut="$have_glut"
7473-
7474-fi
7475-{ echo "$as_me:$LINENO: result: $ax_cv_have_OpenGL" >&5
7476-echo "${ECHO_T}$ax_cv_have_OpenGL" >&6; }
7477- GL_CFLAGS="$ax_cv_GL_CFLAGS"
7478- GL_LIBS="$ax_cv_GL_LIBS"
7479- have_GL="$ax_cv_have_GL"
7480- have_GLU="$ax_cv_have_GLU"
7481- have_GLX="$ax_cv_have_GLX"
7482- have_glut="$ax_cv_have_glut"
7483-
7484-CXXFLAGS="$CXXFLAGS $GL_CFLAGS"
7485-LIBS="$LIBS $GL_LIBS"
7486-
7487-# Checks for header files.
7488-
7489-# Checks for typedefs, structures, and compiler characteristics.
7490-{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7491-echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7492-if test "${ac_cv_path_GREP+set}" = set; then
7493- echo $ECHO_N "(cached) $ECHO_C" >&6
7494-else
7495- # Extract the first word of "grep ggrep" to use in msg output
7496-if test -z "$GREP"; then
7497-set dummy grep ggrep; ac_prog_name=$2
7498-if test "${ac_cv_path_GREP+set}" = set; then
7499- echo $ECHO_N "(cached) $ECHO_C" >&6
7500-else
7501- ac_path_GREP_found=false
7502-# Loop through the user's path and test for each of PROGNAME-LIST
7503-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7505-do
7506- IFS=$as_save_IFS
7507- test -z "$as_dir" && as_dir=.
7508- for ac_prog in grep ggrep; do
7509- for ac_exec_ext in '' $ac_executable_extensions; do
7510- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7511- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7512- # Check for GNU ac_path_GREP and select it if it is found.
7513- # Check for GNU $ac_path_GREP
7514-case `"$ac_path_GREP" --version 2>&1` in
7515-*GNU*)
7516- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7517-*)
7518- ac_count=0
7519- echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7520- while :
7521- do
7522- cat "conftest.in" "conftest.in" >"conftest.tmp"
7523- mv "conftest.tmp" "conftest.in"
7524- cp "conftest.in" "conftest.nl"
7525- echo 'GREP' >> "conftest.nl"
7526- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7527- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7528- ac_count=`expr $ac_count + 1`
7529- if test $ac_count -gt ${ac_path_GREP_max-0}; then
7530- # Best one so far, save it but keep looking for a better one
7531- ac_cv_path_GREP="$ac_path_GREP"
7532- ac_path_GREP_max=$ac_count
7533- fi
7534- # 10*(2^10) chars as input seems more than enough
7535- test $ac_count -gt 10 && break
7536- done
7537- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7538-esac
7539-
7540-
7541- $ac_path_GREP_found && break 3
7542- done
7543-done
7544-
7545-done
7546-IFS=$as_save_IFS
7547-
7548-
7549-fi
7550-
7551-GREP="$ac_cv_path_GREP"
7552-if test -z "$GREP"; then
7553- { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7554-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7555- { (exit 1); exit 1; }; }
7556-fi
7557-
7558-else
7559- ac_cv_path_GREP=$GREP
7560-fi
7561-
7562-
7563-fi
7564-{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7565-echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7566- GREP="$ac_cv_path_GREP"
7567-
7568-
7569-{ echo "$as_me:$LINENO: checking for egrep" >&5
7570-echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7571-if test "${ac_cv_path_EGREP+set}" = set; then
7572- echo $ECHO_N "(cached) $ECHO_C" >&6
7573-else
7574- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7575- then ac_cv_path_EGREP="$GREP -E"
7576- else
7577- # Extract the first word of "egrep" to use in msg output
7578-if test -z "$EGREP"; then
7579-set dummy egrep; ac_prog_name=$2
7580-if test "${ac_cv_path_EGREP+set}" = set; then
7581- echo $ECHO_N "(cached) $ECHO_C" >&6
7582-else
7583- ac_path_EGREP_found=false
7584-# Loop through the user's path and test for each of PROGNAME-LIST
7585-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7587-do
7588- IFS=$as_save_IFS
7589- test -z "$as_dir" && as_dir=.
7590- for ac_prog in egrep; do
7591- for ac_exec_ext in '' $ac_executable_extensions; do
7592- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7593- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7594- # Check for GNU ac_path_EGREP and select it if it is found.
7595- # Check for GNU $ac_path_EGREP
7596-case `"$ac_path_EGREP" --version 2>&1` in
7597-*GNU*)
7598- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7599-*)
7600- ac_count=0
7601- echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7602- while :
7603- do
7604- cat "conftest.in" "conftest.in" >"conftest.tmp"
7605- mv "conftest.tmp" "conftest.in"
7606- cp "conftest.in" "conftest.nl"
7607- echo 'EGREP' >> "conftest.nl"
7608- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7609- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7610- ac_count=`expr $ac_count + 1`
7611- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7612- # Best one so far, save it but keep looking for a better one
7613- ac_cv_path_EGREP="$ac_path_EGREP"
7614- ac_path_EGREP_max=$ac_count
7615- fi
7616- # 10*(2^10) chars as input seems more than enough
7617- test $ac_count -gt 10 && break
7618- done
7619- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7620-esac
7621-
7622-
7623- $ac_path_EGREP_found && break 3
7624- done
7625-done
7626-
7627-done
7628-IFS=$as_save_IFS
7629-
7630-
7631-fi
7632-
7633-EGREP="$ac_cv_path_EGREP"
7634-if test -z "$EGREP"; then
7635- { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7636-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7637- { (exit 1); exit 1; }; }
7638-fi
7639-
7640-else
7641- ac_cv_path_EGREP=$EGREP
7642-fi
7643-
7644-
7645- fi
7646-fi
7647-{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7648-echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7649- EGREP="$ac_cv_path_EGREP"
7650-
7651-
7652-{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7653-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7654-if test "${ac_cv_header_stdc+set}" = set; then
7655- echo $ECHO_N "(cached) $ECHO_C" >&6
7656-else
7657- cat >conftest.$ac_ext <<_ACEOF
7658-/* confdefs.h. */
7659-_ACEOF
7660-cat confdefs.h >>conftest.$ac_ext
7661-cat >>conftest.$ac_ext <<_ACEOF
7662-/* end confdefs.h. */
7663-#include <stdlib.h>
7664-#include <stdarg.h>
7665-#include <string.h>
7666-#include <float.h>
7667-
7668-int
7669-main ()
7670-{
7671-
7672- ;
7673- return 0;
7674-}
7675-_ACEOF
7676-rm -f conftest.$ac_objext
7677-if { (ac_try="$ac_compile"
7678-case "(($ac_try" in
7679- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680- *) ac_try_echo=$ac_try;;
7681-esac
7682-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683- (eval "$ac_compile") 2>conftest.er1
7684- ac_status=$?
7685- grep -v '^ *+' conftest.er1 >conftest.err
7686- rm -f conftest.er1
7687- cat conftest.err >&5
7688- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689- (exit $ac_status); } && {
7690- test -z "$ac_c_werror_flag" ||
7691- test ! -s conftest.err
7692- } && test -s conftest.$ac_objext; then
7693- ac_cv_header_stdc=yes
7694-else
7695- echo "$as_me: failed program was:" >&5
7696-sed 's/^/| /' conftest.$ac_ext >&5
7697-
7698- ac_cv_header_stdc=no
7699-fi
7700-
7701-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702-
7703-if test $ac_cv_header_stdc = yes; then
7704- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705- cat >conftest.$ac_ext <<_ACEOF
7706-/* confdefs.h. */
7707-_ACEOF
7708-cat confdefs.h >>conftest.$ac_ext
7709-cat >>conftest.$ac_ext <<_ACEOF
7710-/* end confdefs.h. */
7711-#include <string.h>
7712-
7713-_ACEOF
7714-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7715- $EGREP "memchr" >/dev/null 2>&1; then
7716- :
7717-else
7718- ac_cv_header_stdc=no
7719-fi
7720-rm -f conftest*
7721-
7722-fi
7723-
7724-if test $ac_cv_header_stdc = yes; then
7725- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7726- cat >conftest.$ac_ext <<_ACEOF
7727-/* confdefs.h. */
7728-_ACEOF
7729-cat confdefs.h >>conftest.$ac_ext
7730-cat >>conftest.$ac_ext <<_ACEOF
7731-/* end confdefs.h. */
7732-#include <stdlib.h>
7733-
7734-_ACEOF
7735-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7736- $EGREP "free" >/dev/null 2>&1; then
7737- :
7738-else
7739- ac_cv_header_stdc=no
7740-fi
7741-rm -f conftest*
7742-
7743-fi
7744-
7745-if test $ac_cv_header_stdc = yes; then
7746- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7747- if test "$cross_compiling" = yes; then
7748- :
7749-else
7750- cat >conftest.$ac_ext <<_ACEOF
7751-/* confdefs.h. */
7752-_ACEOF
7753-cat confdefs.h >>conftest.$ac_ext
7754-cat >>conftest.$ac_ext <<_ACEOF
7755-/* end confdefs.h. */
7756-#include <ctype.h>
7757-#include <stdlib.h>
7758-#if ((' ' & 0x0FF) == 0x020)
7759-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7760-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7761-#else
7762-# define ISLOWER(c) \
7763- (('a' <= (c) && (c) <= 'i') \
7764- || ('j' <= (c) && (c) <= 'r') \
7765- || ('s' <= (c) && (c) <= 'z'))
7766-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7767-#endif
7768-
7769-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7770-int
7771-main ()
7772-{
7773- int i;
7774- for (i = 0; i < 256; i++)
7775- if (XOR (islower (i), ISLOWER (i))
7776- || toupper (i) != TOUPPER (i))
7777- return 2;
7778- return 0;
7779-}
7780-_ACEOF
7781-rm -f conftest$ac_exeext
7782-if { (ac_try="$ac_link"
7783-case "(($ac_try" in
7784- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785- *) ac_try_echo=$ac_try;;
7786-esac
7787-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788- (eval "$ac_link") 2>&5
7789- ac_status=$?
7790- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7792- { (case "(($ac_try" in
7793- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794- *) ac_try_echo=$ac_try;;
7795-esac
7796-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797- (eval "$ac_try") 2>&5
7798- ac_status=$?
7799- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800- (exit $ac_status); }; }; then
7801- :
7802-else
7803- echo "$as_me: program exited with status $ac_status" >&5
7804-echo "$as_me: failed program was:" >&5
7805-sed 's/^/| /' conftest.$ac_ext >&5
7806-
7807-( exit $ac_status )
7808-ac_cv_header_stdc=no
7809-fi
7810-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7811-fi
7812-
7813-
7814-fi
7815-fi
7816-{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7817-echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7818-if test $ac_cv_header_stdc = yes; then
7819-
7820-cat >>confdefs.h <<\_ACEOF
7821-#define STDC_HEADERS 1
7822-_ACEOF
7823-
7824-fi
7825-
7826-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7827-
7828-
7829-
7830-
7831-
7832-
7833-
7834-
7835-
7836-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7837- inttypes.h stdint.h unistd.h
7838-do
7839-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7840-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7841-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7842-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7843- echo $ECHO_N "(cached) $ECHO_C" >&6
7844-else
7845- cat >conftest.$ac_ext <<_ACEOF
7846-/* confdefs.h. */
7847-_ACEOF
7848-cat confdefs.h >>conftest.$ac_ext
7849-cat >>conftest.$ac_ext <<_ACEOF
7850-/* end confdefs.h. */
7851-$ac_includes_default
7852-
7853-#include <$ac_header>
7854-_ACEOF
7855-rm -f conftest.$ac_objext
7856-if { (ac_try="$ac_compile"
7857-case "(($ac_try" in
7858- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859- *) ac_try_echo=$ac_try;;
7860-esac
7861-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7862- (eval "$ac_compile") 2>conftest.er1
7863- ac_status=$?
7864- grep -v '^ *+' conftest.er1 >conftest.err
7865- rm -f conftest.er1
7866- cat conftest.err >&5
7867- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868- (exit $ac_status); } && {
7869- test -z "$ac_c_werror_flag" ||
7870- test ! -s conftest.err
7871- } && test -s conftest.$ac_objext; then
7872- eval "$as_ac_Header=yes"
7873-else
7874- echo "$as_me: failed program was:" >&5
7875-sed 's/^/| /' conftest.$ac_ext >&5
7876-
7877- eval "$as_ac_Header=no"
7878-fi
7879-
7880-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881-fi
7882-ac_res=`eval echo '${'$as_ac_Header'}'`
7883- { echo "$as_me:$LINENO: result: $ac_res" >&5
7884-echo "${ECHO_T}$ac_res" >&6; }
7885-if test `eval echo '${'$as_ac_Header'}'` = yes; then
7886- cat >>confdefs.h <<_ACEOF
7887-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888-_ACEOF
7889-
7890-fi
7891-
7892-done
7893-
7894-
7895-{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7896-echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7897-if test "${ac_cv_header_stdbool_h+set}" = set; then
7898- echo $ECHO_N "(cached) $ECHO_C" >&6
7899-else
7900- cat >conftest.$ac_ext <<_ACEOF
7901-/* confdefs.h. */
7902-_ACEOF
7903-cat confdefs.h >>conftest.$ac_ext
7904-cat >>conftest.$ac_ext <<_ACEOF
7905-/* end confdefs.h. */
7906-
7907-#include <stdbool.h>
7908-#ifndef bool
7909- "error: bool is not defined"
7910-#endif
7911-#ifndef false
7912- "error: false is not defined"
7913-#endif
7914-#if false
7915- "error: false is not 0"
7916-#endif
7917-#ifndef true
7918- "error: true is not defined"
7919-#endif
7920-#if true != 1
7921- "error: true is not 1"
7922-#endif
7923-#ifndef __bool_true_false_are_defined
7924- "error: __bool_true_false_are_defined is not defined"
7925-#endif
7926-
7927- struct s { _Bool s: 1; _Bool t; } s;
7928-
7929- char a[true == 1 ? 1 : -1];
7930- char b[false == 0 ? 1 : -1];
7931- char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7932- char d[(bool) 0.5 == true ? 1 : -1];
7933- bool e = &s;
7934- char f[(_Bool) 0.0 == false ? 1 : -1];
7935- char g[true];
7936- char h[sizeof (_Bool)];
7937- char i[sizeof s.t];
7938- enum { j = false, k = true, l = false * true, m = true * 256 };
7939- _Bool n[m];
7940- char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7941- char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7942-# if defined __xlc__ || defined __GNUC__
7943- /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7944- reported by James Lemley on 2005-10-05; see
7945- http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7946- This test is not quite right, since xlc is allowed to
7947- reject this program, as the initializer for xlcbug is
7948- not one of the forms that C requires support for.
7949- However, doing the test right would require a runtime
7950- test, and that would make cross-compilation harder.
7951- Let us hope that IBM fixes the xlc bug, and also adds
7952- support for this kind of constant expression. In the
7953- meantime, this test will reject xlc, which is OK, since
7954- our stdbool.h substitute should suffice. We also test
7955- this with GCC, where it should work, to detect more
7956- quickly whether someone messes up the test in the
7957- future. */
7958- char digs[] = "0123456789";
7959- int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7960-# endif
7961- /* Catch a bug in an HP-UX C compiler. See
7962- http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7963- http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7964- */
7965- _Bool q = true;
7966- _Bool *pq = &q;
7967-
7968-int
7969-main ()
7970-{
7971-
7972- *pq |= q;
7973- *pq |= ! q;
7974- /* Refer to every declared value, to avoid compiler optimizations. */
7975- return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7976- + !m + !n + !o + !p + !q + !pq);
7977-
7978- ;
7979- return 0;
7980-}
7981-_ACEOF
7982-rm -f conftest.$ac_objext
7983-if { (ac_try="$ac_compile"
7984-case "(($ac_try" in
7985- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986- *) ac_try_echo=$ac_try;;
7987-esac
7988-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989- (eval "$ac_compile") 2>conftest.er1
7990- ac_status=$?
7991- grep -v '^ *+' conftest.er1 >conftest.err
7992- rm -f conftest.er1
7993- cat conftest.err >&5
7994- echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995- (exit $ac_status); } && {
7996- test -z "$ac_c_werror_flag" ||
7997- test ! -s conftest.err
7998- } && test -s conftest.$ac_objext; then
7999- ac_cv_header_stdbool_h=yes
8000-else
8001- echo "$as_me: failed program was:" >&5
8002-sed 's/^/| /' conftest.$ac_ext >&5
8003-
8004- ac_cv_header_stdbool_h=no
8005-fi
8006-
8007-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008-fi
8009-{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8010-echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8011-{ echo "$as_me:$LINENO: checking for _Bool" >&5
8012-echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8013-if test "${ac_cv_type__Bool+set}" = set; then
8014- echo $ECHO_N "(cached) $ECHO_C" >&6
8015-else
8016- cat >conftest.$ac_ext <<_ACEOF
8017-/* confdefs.h. */
8018-_ACEOF
8019-cat confdefs.h >>conftest.$ac_ext
8020-cat >>conftest.$ac_ext <<_ACEOF
8021-/* end confdefs.h. */
8022-$ac_includes_default
8023-typedef _Bool ac__type_new_;
8024-int
8025-main ()
8026-{
8027-if ((ac__type_new_ *) 0)
8028- return 0;
8029-if (sizeof (ac__type_new_))
8030- return 0;
8031- ;
8032- return 0;
8033-}
8034-_ACEOF
8035-rm -f conftest.$ac_objext
8036-if { (ac_try="$ac_compile"
8037-case "(($ac_try" in
8038- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039- *) ac_try_echo=$ac_try;;
8040-esac
8041-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042- (eval "$ac_compile") 2>conftest.er1
8043- ac_status=$?
8044- grep -v '^ *+' conftest.er1 >conftest.err
8045- rm -f conftest.er1
8046- cat conftest.err >&5
8047- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048- (exit $ac_status); } && {
8049- test -z "$ac_c_werror_flag" ||
8050- test ! -s conftest.err
8051- } && test -s conftest.$ac_objext; then
8052- ac_cv_type__Bool=yes
8053-else
8054- echo "$as_me: failed program was:" >&5
8055-sed 's/^/| /' conftest.$ac_ext >&5
8056-
8057- ac_cv_type__Bool=no
8058-fi
8059-
8060-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061-fi
8062-{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8063-echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8064-if test $ac_cv_type__Bool = yes; then
8065-
8066-cat >>confdefs.h <<_ACEOF
8067-#define HAVE__BOOL 1
8068-_ACEOF
8069-
8070-
8071-fi
8072-
8073-if test $ac_cv_header_stdbool_h = yes; then
8074-
8075-cat >>confdefs.h <<\_ACEOF
8076-#define HAVE_STDBOOL_H 1
8077-_ACEOF
8078-
8079-fi
8080-
8081-{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8082-echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8083-if test "${ac_cv_c_const+set}" = set; then
8084- echo $ECHO_N "(cached) $ECHO_C" >&6
8085-else
8086- cat >conftest.$ac_ext <<_ACEOF
8087-/* confdefs.h. */
8088-_ACEOF
8089-cat confdefs.h >>conftest.$ac_ext
8090-cat >>conftest.$ac_ext <<_ACEOF
8091-/* end confdefs.h. */
8092-
8093-int
8094-main ()
8095-{
8096-/* FIXME: Include the comments suggested by Paul. */
8097-#ifndef __cplusplus
8098- /* Ultrix mips cc rejects this. */
8099- typedef int charset[2];
8100- const charset cs;
8101- /* SunOS 4.1.1 cc rejects this. */
8102- char const *const *pcpcc;
8103- char **ppc;
8104- /* NEC SVR4.0.2 mips cc rejects this. */
8105- struct point {int x, y;};
8106- static struct point const zero = {0,0};
8107- /* AIX XL C 1.02.0.0 rejects this.
8108- It does not let you subtract one const X* pointer from another in
8109- an arm of an if-expression whose if-part is not a constant
8110- expression */
8111- const char *g = "string";
8112- pcpcc = &g + (g ? g-g : 0);
8113- /* HPUX 7.0 cc rejects these. */
8114- ++pcpcc;
8115- ppc = (char**) pcpcc;
8116- pcpcc = (char const *const *) ppc;
8117- { /* SCO 3.2v4 cc rejects this. */
8118- char *t;
8119- char const *s = 0 ? (char *) 0 : (char const *) 0;
8120-
8121- *t++ = 0;
8122- if (s) return 0;
8123- }
8124- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8125- int x[] = {25, 17};
8126- const int *foo = &x[0];
8127- ++foo;
8128- }
8129- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8130- typedef const int *iptr;
8131- iptr p = 0;
8132- ++p;
8133- }
8134- { /* AIX XL C 1.02.0.0 rejects this saying
8135- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8136- struct s { int j; const int *ap[3]; };
8137- struct s *b; b->j = 5;
8138- }
8139- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8140- const int foo = 10;
8141- if (!foo) return 0;
8142- }
8143- return !cs[0] && !zero.x;
8144-#endif
8145-
8146- ;
8147- return 0;
8148-}
8149-_ACEOF
8150-rm -f conftest.$ac_objext
8151-if { (ac_try="$ac_compile"
8152-case "(($ac_try" in
8153- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154- *) ac_try_echo=$ac_try;;
8155-esac
8156-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157- (eval "$ac_compile") 2>conftest.er1
8158- ac_status=$?
8159- grep -v '^ *+' conftest.er1 >conftest.err
8160- rm -f conftest.er1
8161- cat conftest.err >&5
8162- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163- (exit $ac_status); } && {
8164- test -z "$ac_c_werror_flag" ||
8165- test ! -s conftest.err
8166- } && test -s conftest.$ac_objext; then
8167- ac_cv_c_const=yes
8168-else
8169- echo "$as_me: failed program was:" >&5
8170-sed 's/^/| /' conftest.$ac_ext >&5
8171-
8172- ac_cv_c_const=no
8173-fi
8174-
8175-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8176-fi
8177-{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8178-echo "${ECHO_T}$ac_cv_c_const" >&6; }
8179-if test $ac_cv_c_const = no; then
8180-
8181-cat >>confdefs.h <<\_ACEOF
8182-#define const
8183-_ACEOF
8184-
8185-fi
8186-
8187-{ echo "$as_me:$LINENO: checking for size_t" >&5
8188-echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8189-if test "${ac_cv_type_size_t+set}" = set; then
8190- echo $ECHO_N "(cached) $ECHO_C" >&6
8191-else
8192- cat >conftest.$ac_ext <<_ACEOF
8193-/* confdefs.h. */
8194-_ACEOF
8195-cat confdefs.h >>conftest.$ac_ext
8196-cat >>conftest.$ac_ext <<_ACEOF
8197-/* end confdefs.h. */
8198-$ac_includes_default
8199-typedef size_t ac__type_new_;
8200-int
8201-main ()
8202-{
8203-if ((ac__type_new_ *) 0)
8204- return 0;
8205-if (sizeof (ac__type_new_))
8206- return 0;
8207- ;
8208- return 0;
8209-}
8210-_ACEOF
8211-rm -f conftest.$ac_objext
8212-if { (ac_try="$ac_compile"
8213-case "(($ac_try" in
8214- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215- *) ac_try_echo=$ac_try;;
8216-esac
8217-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218- (eval "$ac_compile") 2>conftest.er1
8219- ac_status=$?
8220- grep -v '^ *+' conftest.er1 >conftest.err
8221- rm -f conftest.er1
8222- cat conftest.err >&5
8223- echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224- (exit $ac_status); } && {
8225- test -z "$ac_c_werror_flag" ||
8226- test ! -s conftest.err
8227- } && test -s conftest.$ac_objext; then
8228- ac_cv_type_size_t=yes
8229-else
8230- echo "$as_me: failed program was:" >&5
8231-sed 's/^/| /' conftest.$ac_ext >&5
8232-
8233- ac_cv_type_size_t=no
8234-fi
8235-
8236-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237-fi
8238-{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8239-echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8240-if test $ac_cv_type_size_t = yes; then
8241- :
8242-else
8243-
8244-cat >>confdefs.h <<_ACEOF
8245-#define size_t unsigned int
8246-_ACEOF
8247-
8248-fi
8249-
8250-
8251-# Checks for library functions.
8252-
8253-ac_config_files="$ac_config_files Makefile src/Makefile"
8254-
8255-cat >confcache <<\_ACEOF
8256-# This file is a shell script that caches the results of configure
8257-# tests run on this system so they can be shared between configure
8258-# scripts and configure runs, see configure's option --config-cache.
8259-# It is not useful on other systems. If it contains results you don't
8260-# want to keep, you may remove or edit it.
8261-#
8262-# config.status only pays attention to the cache file if you give it
8263-# the --recheck option to rerun configure.
8264-#
8265-# `ac_cv_env_foo' variables (set or unset) will be overridden when
8266-# loading this file, other *unset* `ac_cv_foo' will be assigned the
8267-# following values.
8268-
8269-_ACEOF
8270-
8271-# The following way of writing the cache mishandles newlines in values,
8272-# but we know of no workaround that is simple, portable, and efficient.
8273-# So, we kill variables containing newlines.
8274-# Ultrix sh set writes to stderr and can't be redirected directly,
8275-# and sets the high bit in the cache file unless we assign to the vars.
8276-(
8277- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8278- eval ac_val=\$$ac_var
8279- case $ac_val in #(
8280- *${as_nl}*)
8281- case $ac_var in #(
8282- *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8283-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8284- esac
8285- case $ac_var in #(
8286- _ | IFS | as_nl) ;; #(
8287- *) $as_unset $ac_var ;;
8288- esac ;;
8289- esac
8290- done
8291-
8292- (set) 2>&1 |
8293- case $as_nl`(ac_space=' '; set) 2>&1` in #(
8294- *${as_nl}ac_space=\ *)
8295- # `set' does not quote correctly, so add quotes (double-quote
8296- # substitution turns \\\\ into \\, and sed turns \\ into \).
8297- sed -n \
8298- "s/'/'\\\\''/g;
8299- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8300- ;; #(
8301- *)
8302- # `set' quotes correctly as required by POSIX, so do not add quotes.
8303- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8304- ;;
8305- esac |
8306- sort
8307-) |
8308- sed '
8309- /^ac_cv_env_/b end
8310- t clear
8311- :clear
8312- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8313- t end
8314- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8315- :end' >>confcache
8316-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8317- if test -w "$cache_file"; then
8318- test "x$cache_file" != "x/dev/null" &&
8319- { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8320-echo "$as_me: updating cache $cache_file" >&6;}
8321- cat confcache >$cache_file
8322- else
8323- { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8324-echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8325- fi
8326-fi
8327-rm -f confcache
8328-
8329-test "x$prefix" = xNONE && prefix=$ac_default_prefix
8330-# Let make expand exec_prefix.
8331-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8332-
8333-# Transform confdefs.h into DEFS.
8334-# Protect against shell expansion while executing Makefile rules.
8335-# Protect against Makefile macro expansion.
8336-#
8337-# If the first sed substitution is executed (which looks for macros that
8338-# take arguments), then branch to the quote section. Otherwise,
8339-# look for a macro that doesn't take arguments.
8340-ac_script='
8341-t clear
8342-:clear
8343-s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8344-t quote
8345-s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8346-t quote
8347-b any
8348-:quote
8349-s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8350-s/\[/\\&/g
8351-s/\]/\\&/g
8352-s/\$/$$/g
8353-H
8354-:any
8355-${
8356- g
8357- s/^\n//
8358- s/\n/ /g
8359- p
8360-}
8361-'
8362-DEFS=`sed -n "$ac_script" confdefs.h`
8363-
8364-
8365-ac_libobjs=
8366-ac_ltlibobjs=
8367-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8368- # 1. Remove the extension, and $U if already installed.
8369- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8370- ac_i=`echo "$ac_i" | sed "$ac_script"`
8371- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8372- # will be set to the directory where LIBOBJS objects are built.
8373- ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8374- ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8375-done
8376-LIBOBJS=$ac_libobjs
8377-
8378-LTLIBOBJS=$ac_ltlibobjs
8379-
8380-
8381-if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8382- { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8383-Usually this means the macro was only invoked conditionally." >&5
8384-echo "$as_me: error: conditional \"AMDEP\" was never defined.
8385-Usually this means the macro was only invoked conditionally." >&2;}
8386- { (exit 1); exit 1; }; }
8387-fi
8388-if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8389- { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8390-Usually this means the macro was only invoked conditionally." >&5
8391-echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8392-Usually this means the macro was only invoked conditionally." >&2;}
8393- { (exit 1); exit 1; }; }
8394-fi
8395-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8396- { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8397-Usually this means the macro was only invoked conditionally." >&5
8398-echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8399-Usually this means the macro was only invoked conditionally." >&2;}
8400- { (exit 1); exit 1; }; }
8401-fi
8402-
8403-: ${CONFIG_STATUS=./config.status}
8404-ac_clean_files_save=$ac_clean_files
8405-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8406-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8407-echo "$as_me: creating $CONFIG_STATUS" >&6;}
8408-cat >$CONFIG_STATUS <<_ACEOF
8409-#! $SHELL
8410-# Generated by $as_me.
8411-# Run this file to recreate the current configuration.
8412-# Compiler output produced by configure, useful for debugging
8413-# configure, is in config.log if it exists.
8414-
8415-debug=false
8416-ac_cs_recheck=false
8417-ac_cs_silent=false
8418-SHELL=\${CONFIG_SHELL-$SHELL}
8419-_ACEOF
8420-
8421-cat >>$CONFIG_STATUS <<\_ACEOF
8422-## --------------------- ##
8423-## M4sh Initialization. ##
8424-## --------------------- ##
8425-
8426-# Be more Bourne compatible
8427-DUALCASE=1; export DUALCASE # for MKS sh
8428-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8429- emulate sh
8430- NULLCMD=:
8431- # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8432- # is contrary to our usage. Disable this feature.
8433- alias -g '${1+"$@"}'='"$@"'
8434- setopt NO_GLOB_SUBST
8435-else
8436- case `(set -o) 2>/dev/null` in
8437- *posix*) set -o posix ;;
8438-esac
8439-
8440-fi
8441-
8442-
8443-
8444-
8445-# PATH needs CR
8446-# Avoid depending upon Character Ranges.
8447-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8448-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8449-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8450-as_cr_digits='0123456789'
8451-as_cr_alnum=$as_cr_Letters$as_cr_digits
8452-
8453-# The user is always right.
8454-if test "${PATH_SEPARATOR+set}" != set; then
8455- echo "#! /bin/sh" >conf$$.sh
8456- echo "exit 0" >>conf$$.sh
8457- chmod +x conf$$.sh
8458- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8459- PATH_SEPARATOR=';'
8460- else
8461- PATH_SEPARATOR=:
8462- fi
8463- rm -f conf$$.sh
8464-fi
8465-
8466-# Support unset when possible.
8467-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8468- as_unset=unset
8469-else
8470- as_unset=false
8471-fi
8472-
8473-
8474-# IFS
8475-# We need space, tab and new line, in precisely that order. Quoting is
8476-# there to prevent editors from complaining about space-tab.
8477-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8478-# splitting by setting IFS to empty value.)
8479-as_nl='
8480-'
8481-IFS=" "" $as_nl"
8482-
8483-# Find who we are. Look in the path if we contain no directory separator.
8484-case $0 in
8485- *[\\/]* ) as_myself=$0 ;;
8486- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487-for as_dir in $PATH
8488-do
8489- IFS=$as_save_IFS
8490- test -z "$as_dir" && as_dir=.
8491- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8492-done
8493-IFS=$as_save_IFS
8494-
8495- ;;
8496-esac
8497-# We did not find ourselves, most probably we were run as `sh COMMAND'
8498-# in which case we are not to be found in the path.
8499-if test "x$as_myself" = x; then
8500- as_myself=$0
8501-fi
8502-if test ! -f "$as_myself"; then
8503- echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8504- { (exit 1); exit 1; }
8505-fi
8506-
8507-# Work around bugs in pre-3.0 UWIN ksh.
8508-for as_var in ENV MAIL MAILPATH
8509-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8510-done
8511-PS1='$ '
8512-PS2='> '
8513-PS4='+ '
8514-
8515-# NLS nuisances.
8516-for as_var in \
8517- LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8518- LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8519- LC_TELEPHONE LC_TIME
8520-do
8521- if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8522- eval $as_var=C; export $as_var
8523- else
8524- ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8525- fi
8526-done
8527-
8528-# Required to use basename.
8529-if expr a : '\(a\)' >/dev/null 2>&1 &&
8530- test "X`expr 00001 : '.*\(...\)'`" = X001; then
8531- as_expr=expr
8532-else
8533- as_expr=false
8534-fi
8535-
8536-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8537- as_basename=basename
8538-else
8539- as_basename=false
8540-fi
8541-
8542-
8543-# Name of the executable.
8544-as_me=`$as_basename -- "$0" ||
8545-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8546- X"$0" : 'X\(//\)$' \| \
8547- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8548-echo X/"$0" |